Neural Network-Based Rule Models With Truth Tables

Adrien Benamira, Tristan Guérand, Thomas Peyrin, Hans Farrell SoegengECAI 2023

TL;DR

This paper introduces TT-rules, a novel framework that bridges the gap between high-performance deep neural networks (DNNs) and interpretable rule-based models. By transforming trained DNNs into a set of exact, human-readable rules, TT-rules offers both global interpretability and competitive accuracy on tabular data, even for massive datasets.

What Problem Does This Paper Address?

The increasing complexity of deep learning models, particularly DNNs, has led to a significant "black box" problem. While DNNs excel at achieving high performance on various tasks, their decision-making processes are often opaque, making it difficult to understand why a particular prediction is made. This lack of interpretability is a major hurdle in security-sensitive applications, where trust and explainability are paramount. Traditional rule-based models, on the other hand, offer excellent interpretability but often fall short in performance and scalability, especially with large and complex datasets. The paper aims to reconcile these two worlds by creating a DNN-based framework that can be converted into an interpretable rule-based model without sacrificing performance.

Methods

The core of the TT-rules framework is built upon Truth Table nets (TTnets), a type of DNN architecture originally designed for formal verification. TTnets utilize Learning Truth Table (LTT) blocks as their fundamental building blocks. These LTT blocks have a unique property: their complete distribution can be computed in constant time, allowing the entire TTnet to be represented as a Boolean formula.

The TT-rules framework then takes a trained TTnet and performs the following key steps:

  1. Rule Extraction (R): The trained TTnet is transformed into a set of necessary and sufficient rules (R). This extraction process ensures that the derived rules produce the exact same output as the original TTnet, guaranteeing exact interpretability.
  2. Optimization (Ropt): To enhance interpretability and efficiency, the extracted rules are optimized in two stages:
  3. Don't Care Terms (DCT) Injection: Human logic or background knowledge is used to inject "don't care" conditions into the truth tables. This reduces the size of individual rules.
  4. Truth Table Correlation (TTC) Metric: A novel metric is introduced to identify and remove redundant rules by measuring the correlation between different LTT blocks. This reduces the overall number of rules.
  5. Visualization: Reduced Ordered Binary Decision Diagrams (ROBDDs) are used to visualize the optimized rules, further aiding interpretation.

The framework supports binary classification, multi-label classification, and regression tasks on tabular datasets.

Datasets

The TT-rules framework was evaluated on seven tabular datasets across various domains:

  • Finance: California Housing, HELOC, Adult
  • Healthcare: Diabetes
  • Justice: Compas
  • Genomics: Two real-life DNA datasets (single-cell RNA-seq analysis for head and neck cancer, and melanoma cancer) and the TCGA lung cancer dataset. These DNA datasets are notable for their large number of features (over 20K).

Key Insights and Ideas

  • Bridging the Performance-Interpretability Divide: The most significant insight is the successful creation of a framework that achieves a strong balance between the high performance of DNNs and the global, exact interpretability of rule-based models. This is a long-standing challenge in machine learning.
  • Scalability to Massive Datasets: TT-rules demonstrates remarkable scalability, handling tabular datasets with tens of thousands of features, including large DNA datasets. This is a crucial advantage over many traditional rule-based methods.
  • Feature Reduction as a Byproduct: The process of extracting and optimizing rules inherently acts as a feature selection mechanism, significantly reducing the complexity of the input data. For example, 20K features were reduced to 1K rules on a DNA dataset.
  • Exact Interpretability: Unlike many "explainability" methods that provide local or approximate explanations, TT-rules generates rules that are logically equivalent to the original DNN, offering exact and global interpretability.
  • Potential for Human Knowledge Integration: The framework allows for the incorporation of human knowledge through DCT injection, suggesting avenues for expert-guided model refinement.

Key Results

  • Competitive Performance: TT-rules achieved equal or higher performance compared to other interpretable methods on seven tabular datasets. It was comparable or superior to state-of-the-art models like XGBoost and DNNs on some datasets.
  • Significant Complexity Reduction: The post-training optimization steps (DCT injection and TTC metric) drastically reduced the number of rules and their complexity. For instance, complexity was reduced by factors of 1.35x to 1.47x on the Adult, Compas, and Diabetes datasets.
  • Scalability Demonstrated: The framework successfully handled large DNA datasets with over 20K features, a feat not achievable by many other rule-based models.
  • Accuracy Maintained: Despite significant complexity reduction, accuracy degradation was minimal (e.g., 0.004 on the Adult dataset).

Limitations and Future Work

  • Generalized Linear Models (GL) Trade-off: The authors acknowledge that Generalized Linear Models (GL) might offer a better trade-off between performance and complexity in some cases. Future work could explore identifying feature interactions that GL excels at.
  • Automatic Rule Addition: While human knowledge can be injected, the paper suggests exploring automatic rule addition as an alternative to manual intervention.
  • Application to Time Series: The authors propose applying TT-rules to time series tasks to gain insights into underlying dynamics.
  • Agnostic Global Explainer: A promising future direction is to develop a model-agnostic global explainer based on the TT-rules framework.

Summary updated

BibTeX
@inproceedings{benamira2023neural,
  author = {Adrien Benamira and Tristan Guérand and Thomas Peyrin and Hans Farrell Soegeng},
  title = {{Neural Network-Based Rule Models With Truth Tables}},
  booktitle = {ECAI},
  year = {2023},
  url = {https://openreview.net/forum?id=OjJkD1q27h},
}
Figure