Interpreting Deep Learning Model Using Rule-based Method

Ke Tang (汤珂), Xiaojian Wang, Jingyuan Wang, Ke TangarXiv 2020

Introduction

Deep learning models have achieved state-of-the-art performance across various domains, yet they remain notoriously opaque. This "black box" nature is a significant barrier to their adoption in high-stakes fields like healthcare, law, and security, where understanding the why behind a decision is as critical as the decision itself. To address this, researchers have developed the Multi-level Decision (MLD) framework, an approach that mirrors the hierarchical architecture of neural networks with a structured system of decision trees.

The Interpretability Gap

Existing rule-based interpretation methods generally fall into two categories:

  1. Decompositional methods: These extract rules at the individual neuron level but often suffer from "rule explosion" as networks grow deeper, making the resulting logic impossible for humans to parse.
  2. Pedagogical methods: These treat the network as a black box and fit a simpler surrogate model (like a single large decision tree) to its outputs. While simpler, these models often lose the structural nuances of the original network, leading to low "fidelity"—the degree to which the explanation accurately reflects the model's internal logic.

MLD bridges this gap by creating a structure that is as complex as the neural network but composed entirely of human-readable logic gates.

The MLD Framework

The MLD framework operates through a systematic five-step process designed to preserve the structural integrity of the target neural network while extracting interpretable rules.

The five-step Multi-level Decision (MLD) framework for neural network interpretation.
  1. Network Training: A standard Multi-Layer Perceptron (MLP) is trained on the target dataset.
  2. MLD Construction: This is the core innovation. The activation functions of every neuron are discretized (converting continuous values into boolean 0s and 1s). A Classification and Regression Tree (CART) is then fitted to each neuron to approximate its behavior based on the outputs of the preceding layer.
  3. Layer-by-Layer Aggregation: These individual "neuron-trees" are linked together, effectively rebuilding the neural network's architecture using decision trees instead of weights and biases.
  4. Local Explanation (Backward Rule Induction): To explain a specific prediction, the algorithm starts at the output and works backward through the layers, merging rules until it reaches the original input features. This results in a logic chain such as: “If Pixel A is dark AND Pixel B is bright, then the result is '4'.”
  5. Global Explanation: The framework employs Frequency-based and Out-of-Bag (OOB) importance measures to determine which features are most influential to the model's overall performance.

Experimental Results and Insights

The authors evaluated MLD on several benchmarks, including the MNIST handwritten digit dataset and the National Free Pre-Pregnancy Check-up (NFPC) dataset, a real-world health survey from China containing 106 clinical features.

High Fidelity and Predictivity

In terms of both predictivity (accuracy on real labels) and fidelity (matching the neural network's output), MLD consistently outperformed traditional baselines like CART, C4.5, and Trepan. In many tests, MLD achieved a fidelity score of nearly 99%, indicating that the extracted rules are a near-perfect representation of the neural network's internal logic.

Global and Local Interpretability

Global explanations on the MNIST dataset revealed that the model learns the structural essence of numbers, focusing on the "periphery" and "outline" of digits.

Visualization of feature importance for MNIST digit '8' across nodes in the second hidden layer.

Local explanations also proved valuable for debugging. For instance, MLD revealed that a digit "2" was misclassified as a "7" because the model ignored the bottom "tail" of the 2, focusing only on the top curve which resembled a 7.

Human Validation

A user study involving 40 obstetricians validated the clinical relevance of the MLD framework. When comparing features extracted by MLD against those from a Random Forest for the NFPC dataset, the experts found the MLD-extracted features to be significantly more clinically meaningful (p < 0.05), demonstrating the framework's utility in specialized domains.

Conclusion and Future Work

The MLD framework successfully opens the neural network "black box" by preserving its hierarchical structure through a multi-level decision tree architecture. While the current discretization process may lose some nuanced information from continuous activations, the high fidelity and clinical validation suggest MLD is a powerful tool for trustworthy AI. Future research will focus on scaling the framework to deeper architectures like ResNets and Transformers and exploring more sophisticated discretization techniques.

Summary updated

BibTeX
@misc{2020interpreting,
  author = {Ke Tang (汤珂) and Xiaojian Wang and Jingyuan Wang and Ke Tang},
  title = {{Interpreting Deep Learning Model Using Rule-based Method}},
  year = {2020},
  eprint = {2010.07824},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.07824},
}
Figure