Skip to main content
QUICK REVIEW

[Paper Review] Thermodynamics-inspired Explanations of Artificial Intelligence

Mehdi Shams, Pratyush Tiwary|arXiv (Cornell University)|Jun 27, 2022
Machine Learning in Materials ScienceMaterials Science8 citations
TL;DR

This paper introduces TERP, a thermodynamics-inspired framework for post-hoc interpretability of black-box AI models. By modeling interpretability as a trade-off between model simplicity and unfaithfulness using an 'Interpretation Free Energy' analogous to thermodynamic free energy, TERP selects optimal local surrogate models via forward feature selection, demonstrating robust interpretability across diverse AI models including CNNs, RNNs, and autoencoders in molecular, image, and text domains.

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.

Motivation & Objective

  • To address the trust deficit in black-box AI models by developing a rigorous, interpretable post-hoc explanation framework.
  • To formalize model interpretability as a physical analogy to thermodynamic free energy minimization.
  • To enable model-agnostic, locally valid interpretation of complex AI models such as deep neural networks and autoencoders.
  • To provide a stable, mathematically grounded method for selecting optimal surrogate models that balance simplicity and predictive faithfulness.
  • To validate the framework across diverse domains including molecular simulations, image classification, and text processing.

Proposed method

  • Formalizes interpretability as minimizing an 'Interpretation Free Energy' ζ = U − θS, where U is unfaithfulness and S is simplicity, with θ as a tunable temperature-like parameter.
  • Defines simplicity S logarithmically to balance unfaithfulness reduction, ensuring stable trade-offs during model selection.
  • Employs a forward feature selection algorithm to iteratively build local linear surrogate models around individual predictions.
  • Selects the optimal surrogate model by minimizing ζ, guaranteeing a unique global minimum due to convexity and monotonicity properties.
  • Uses non-zero weights in the final surrogate model to attribute feature importance, providing local, instance-specific explanations.
  • Tunes θ to explore a range of stable interpretations, analogous to thermodynamic phases, identifying a family of plausible explanations.

Experimental results

Research questions

  • RQ1Can a thermodynamic analogy be effectively used to formalize the trade-off between interpretability model simplicity and faithfulness to the black-box model?
  • RQ2How can a globally optimal local surrogate model be selected under this thermodynamic framework to ensure both faithfulness and simplicity?
  • RQ3Can this framework be applied universally across diverse black-box model architectures such as CNNs, RNNs, and autoencoders?
  • RQ4Does the method produce stable and reliable feature attributions across different data modalities including images, text, and tabular data?
  • RQ5Can the framework detect and explain correct reasoning in AI predictions, even when models are complex or fail on certain inputs?

Key findings

  • TERP successfully identifies a unique optimal surrogate model for each prediction by minimizing the Interpretation Free Energy ζ, ensuring mathematical robustness.
  • At θ = 20, TERP identified k_c = 16 most influential features for the news story 'AI predicts protein structures', with 'Science' having the highest attribution weight.
  • The method confirmed that the AttBLSTM model made its correct prediction based on semantically relevant keywords, not spurious features, enhancing model trust.
  • TERP demonstrated reliable interpretation across multiple model types, including CNNs for image classification, RNNs for text, and autoencoders for molecular simulations.
  • The framework revealed that model success stems from collective influence of multiple keywords rather than reliance on isolated terms.
  • In cases where the black-box model failed, TERP still provided meaningful interpretations, highlighting the model's reasoning flaws and supporting diagnostic analysis.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.