Skip to main content
QUICK REVIEW

[Paper Review] Programs as Black-Box Explanations

Sameer Singh, Marco Túlio Ribeiro|arXiv (Cornell University)|Nov 22, 2016
Explainable Artificial Intelligence (XAI)Computer Science17 references35 citations
TL;DR

This paper proposes using executable programs as model-agnostic explanations for black-box machine learning models, enabling concise, human-readable, and expressive local explanations. By formulating explanations as simple programs with conditionals, logic, and arithmetic, the approach captures complex behaviors more flexibly than traditional interpretable models like linear models or decision trees, demonstrating feasibility through a simulated annealing-based prototype on real datasets.

ABSTRACT

Recent work in model-agnostic explanations of black-box machine learning has demonstrated that interpretability of complex models does not have to come at the cost of accuracy or model flexibility. However, it is not clear what kind of explanations, such as linear models, decision trees, and rule lists, are the appropriate family to consider, and different tasks and models may benefit from different kinds of explanations. Instead of picking a single family of representations, in this work we propose to use "programs" as model-agnostic explanations. We show that small programs can be expressive yet intuitive as explanations, and generalize over a number of existing interpretable families. We propose a prototype program induction method based on simulated annealing that approximates the local behavior of black-box classifiers around a specific prediction using random perturbations. Finally, we present preliminary application on small datasets and show that the generated explanations are intuitive and accurate for a number of classifiers.

Motivation & Objective

  • To address the lack of a unified, expressive, and interpretable representation for explaining local predictions of complex black-box models.
  • To overcome the limitations of existing model-agnostic explanation methods that rely solely on sparse linear models or fixed interpretable structures.
  • To explore whether programs—naturally expressive and familiar to many users—can serve as a general-purpose, scalable, and comprehensible explanation format.
  • To evaluate the trade-off between expressivity and interpretability in explanation representations, especially in comparison to decision trees, linear models, and rule lists.
  • To demonstrate that program-based explanations can be both accurate and intuitive, even when approximating complex models like random forests and deep neural networks.

Proposed method

  • Formalize the problem of inducing a program as a local explanation by fitting it to the predictions of a black-box model on perturbed instances.
  • Use a simulated annealing algorithm to search for a program that minimizes the difference between the model’s predictions and the program’s output on a set of perturbations.
  • Define a domain-specific, minimal programming language with conditionals, logical operators, arithmetic, and feature access for expressiveness and readability.
  • Represent common interpretable models (e.g., decision trees, linear models, decision lists, decision sets) as equivalent programs to show unification and natural syntax.
  • Apply the method to real-world datasets (e.g., Adult income, hospital readmission) and multiple classifiers (e.g., random forests, decision trees, linear models) to generate explanations.
  • Evaluate the compactness and comprehensibility of generated programs by comparing them to manually written equivalents and standard model-agnostic explanations.

Experimental results

Research questions

  • RQ1Can programs serve as a unified, expressive, and interpretable representation for explaining local predictions of diverse black-box models?
  • RQ2How does the program-based explanation approach compare in quality and compactness to existing model-agnostic methods like LIME or SHAP?
  • RQ3To what extent can program syntax naturally represent diverse interpretable model types such as decision trees, linear models, and rule lists?
  • RQ4Can program induction techniques generate explanations that are both accurate and comprehensible to users without requiring expert knowledge?
  • RQ5What trade-offs exist between program expressivity (e.g., loops, variables) and interpretability, and how can they be managed?

Key findings

  • Programs can represent a wide range of interpretable models—such as decision trees, linear models, decision lists, and decision sets—using a consistent, readable syntax.
  • The simulated annealing-based prototype successfully generates compact and accurate program explanations for multiple classifiers on real datasets, including the Adult and hospital readmission datasets.
  • Generated program explanations were found to be more compact and intuitive than standard model-agnostic explanations, especially for decision trees, which produced minimal, readable code.
  • The approach demonstrated that program-based explanations can approximate complex models like random forests and deep neural networks with high fidelity while remaining human-readable.
  • Manual comparisons showed that the generated programs were on par with or more concise than manually written equivalents, suggesting strong potential for automation.
  • The method enables trade-offs between simplicity and accuracy, allowing for shorter, approximate programs for novices or longer, precise ones for experts.

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.