Short Boolean Formulas as Explanations in Practice

Reijo Jaakkola, Tomi Janhunen, Antti Kuusisto, Masood Feyzbakhsh Rankooh, Miikka Vilander

Introduction

As machine learning models increasingly govern critical decision-making processes, the "black box" nature of complex algorithms like deep neural networks has become a significant hurdle. While local explanation methods—which justify individual decisions—are widely used, they often fail to provide a holistic understanding of a model's logic. This paper explores the use of short Boolean formulas as "global" explanations. By representing a classifier as a concise logical expression, the authors aim to achieve a gold standard of interpretability without sacrificing significant predictive accuracy.

The Interpretability-Accuracy Trade-off

The central challenge in using logic-based classifiers is the trade-off between interpretability and accuracy. While a complex formula might perfectly fit a training dataset, it often suffers from overfitting, failing to generalize to new data. Conversely, a formula that is too simple may lack the nuance to capture the underlying patterns of the data.

The researchers address this by providing novel theoretical bounds on the "expected ideal empirical error." These mathematical tools allow for a better understanding of the generalization gap—the difference between training performance and real-world performance—based on the number of attributes and data points. Their findings suggest that by intentionally limiting formula length, one can prevent a model from simply memorizing noise, effectively using simplicity as a regularizer.

Methodology: ASP and Reverse Polish Notation

To find the most effective short formulas, the authors frame the search as a combinatorial optimization problem solved via Answer Set Programming (ASP). ASP is a declarative logic programming framework well-suited for difficult search problems.

Efficient Search via RPN

A key technical contribution is the representation of Boolean formulas using Reverse Polish Notation (RPN). Traditional tree-based representations often involve redundant parentheses and structural symmetries that slow down solvers. By using RPN, the authors create a streamlined search space that allows the ASP solver (specifically clingo) to prune irrelevant branches more efficiently.

Optimization Strategy

The solver follows a hierarchical optimization objective:

  1. Minimize classification error: Find the formula that best fits the data.
  2. Minimize formula length: Among formulas with the same error rate, select the shortest one.

Experimental Evaluation

The approach was tested on three benchmark datasets from the UCI repository: Statlog (German Credit Data), Breast Cancer Wisconsin, and Ionosphere. To process numerical data, the authors applied a "Booleanization" step, using the median of each attribute as a threshold to create binary features.

Key Results

The experiments demonstrated that surprisingly short formulas can rival the performance of much more complex models:

  • German Credit Data: A formula of just length 6 achieved an error rate of 0.27, remarkably close to the 0.25 error rate of a Naive Bayes classifier. An example of such a formula is: ¬(negative_balance ∧ long_duration) ∨ managerial_level. This translates to a clear business rule: Grant the loan if the applicant does not have both a negative balance and a long duration, or if they are at a managerial level.
  • Breast Cancer: A length-8 formula achieved an error rate of 0.047, which is highly competitive with the state-of-the-art literature (0.032).
  • Ionosphere: A length-7 formula resulted in a 0.14 error rate. While higher than the 0.04 error seen in neural networks, the authors attribute this to the loss of information during the initial Booleanization of complex radar data.

Discussion and Insights

The research highlights that for many practical datasets, the "Aha!" moment comes from realizing that high-dimensional complexity is not always necessary. The plots of error versus formula length reveal a distinct cut-off point where increasing complexity no longer yields better test results.

Furthermore, these formulas offer inherent interpretability. Unlike post-hoc explanations that attempt to approximate the logic of a black box, these Boolean formulas are the classifier. There is no translation layer, ensuring that the explanation provided to the human user is a 100% faithful representation of the model's logic.

Limitations and Future Work

Despite the promising results, the current approach has limitations. The reliance on simple median-based Booleanization can discard nuanced information in continuous data. Additionally, while ASP is powerful, the computational cost of searching for optimal formulas increases significantly with dataset size and formula length.

Future research directions include extending this framework to Description Logics to handle relational data and developing "knowledge discovery" tools. Such tools could provide human experts with a suite of high-performing, short formulas, allowing experts to choose the explanation that best aligns with domain knowledge.

Summary updated

BibTeX
@inproceedings{jaakkola2023short,
  author = {Reijo Jaakkola and Tomi Janhunen and Antti Kuusisto and Masood Feyzbakhsh Rankooh and Miikka Vilander},
  title = {{Short Boolean Formulas as Explanations in Practice}},
  booktitle = {JELIA},
  year = {2023},
  doi = {10.1007/978-3-031-43619-2\_7},
}
Figure