Thermodynamics-inspired Explanations of Artificial Intelligence
Shams Mehdi, Pratyush Tiwary
TL;DR
This work addresses the opacity of black-box AI by introducing TERP, a thermodynamics-inspired framework that yields interpretable explanations for predictions. It defines interpretation unfaithfulness $\\mathcal{U}$ and interpretation entropy $\\mathcal{S}$ and combines them into a free-energy objective $\\zeta = \\mathcal{U} + \\theta \\mathcal{S}$ to select a unique, optimal explanation. Through model-agnostic surrogates and LDA-based neighborhood similarity, TERP is demonstrated across molecular dynamics (VAMPnets), image classification (Vision Transformers), and text classification (Att-BLSTM), producing compact, faithful rationales that align with domain knowledge. The framework offers a principled, tunable trade-off between faithfulness and interpretability, enabling trustworthy deployment of AI in critical scientific tasks and beyond.
Abstract
In recent years, predictive machine learning methods have gained prominence in various scientific domains. However, due to their black-box nature, it is essential to establish trust in these models before accepting them as accurate. One promising strategy for assigning trust involves employing explanation techniques that elucidate the rationale behind a black-box model's predictions in a manner that humans can understand. However, assessing the degree of human interpretability of the rationale generated by such methods is a nontrivial challenge. In this work, we introduce interpretation entropy as a universal solution for assessing the degree of human interpretability associated with any linear model. Using this concept and drawing inspiration from classical thermodynamics, we present Thermodynamics-inspired Explainable Representations of AI and other black-box Paradigms (TERP), a method for generating accurate, and human-interpretable explanations for black-box predictions in a model-agnostic manner. To demonstrate the wide-ranging applicability of TERP, we successfully employ it to explain various black-box model architectures, including deep learning Autoencoders, Recurrent Neural Networks, and Convolutional Neural Networks, across diverse domains such as molecular simulations, text, and image classification.
