CGXplain: Rule-Based Deep Neural Network Explanations Using Dual Linear Programs

Konstantin Hemker, Zohreh Shams, Mateja Jamnik

Abstract

Deep Neural Networks (DNNs) are increasingly deployed in safety-critical domains, yet their "black box" nature remains a significant barrier to trust and accountability. While global rule-based surrogate models offer a path toward transparency by approximating DNN logic with human-readable IF-THEN statements, existing methods often produce overly complex, unstable, and misaligned explanations. This paper introduces CGXplain (Column Generation eXplainer), a framework that leverages dual linear programming to extract concise, stable, and high-fidelity rule sets. By treating rule extraction as an optimization problem rather than a greedy search, CGXplain reduces explanation complexity by over 80% while maintaining superior alignment with the underlying model's features.

Introduction

In fields like healthcare and finance, understanding why a model makes a specific prediction is as important as the prediction itself. Traditional eXplainable AI (XAI) techniques often rely on decision tree induction to create surrogate models. However, these methods suffer from three primary flaws: they are often inconsistent across runs (instability), they generate thousands of rules that exceed human cognitive limits (complexity), and they may rely on different features than the original DNN (poor alignment).

CGXplain addresses these challenges by moving away from heuristic-based decision trees toward Column Generation (CG), a technique from operations research. This approach allows for the deterministic extraction of rules that are optimized for both accuracy and simplicity.

The CGXplain Framework

The core innovation of CGXplain is the formulation of rule extraction as a dual linear programming problem. Instead of splitting data points greedily, the system searches through an exponential space of potential rules to find the most "valuable" set that explains the DNN's behavior.

Pedagogical vs. Decompositional Approaches

The framework offers two distinct modes of operation:

  1. CGX-ped (Pedagogical): This version treats the DNN as a complete black box, learning rules solely from the relationship between the model's inputs and its final outputs.
  2. CGX-dec (Decompositional): This version "peeks" into the hidden layers of the network. It utilizes a novel intermediate error prediction step, where it first builds a pedagogical model and then extracts rules from hidden layers specifically to explain the errors of that initial model. This direct layer-wise substitution prevents the "error snowballing" effect common in previous recursive methods.

Experimental Methodology

The authors evaluated CGXplain across five diverse datasets: MAGIC (particle physics), Metabric-ER & Metabric-Hist (clinical breast cancer data), FICO (finance/HELOC), and a synthetic XOR dataset.

Performance was measured using three key metrics:

  • Fidelity: How accurately the rules mimic the DNN’s predictions.
  • Complexity: The total number of terms and rules in the explanation.
  • Feature Alignment: Measured via Ranked Biased Overlap (RBO), comparing the features used in the rules to those identified as important by local explainers like SHAP.

Key Insights and Results

1. Drastic Complexity Reduction

CGXplain significantly outperforms previous state-of-the-art methods like ECLAIRE in terms of conciseness. In the MAGIC dataset, for instance, while baseline methods required over 1,500 terms to explain the model, CGX-dec achieved similar or better fidelity with only approximately 11 terms. Across all tests, the framework reduced the number of terms in rule sets by more than 80%.

2. Guaranteed Stability

Because CGXplain utilizes a deterministic MOSEK solver for its linear programming, it eliminates the "explanation drift" common in tree-based methods. Running the explainer multiple times on the same model yields the exact same rule set, a critical requirement for regulatory compliance and user trust.

3. Superior Feature Alignment

The study found that CGXplain’s rules are 10-20% better aligned with the DNN’s internal logic than baselines. This ensures that the explanation is not just a "right answer for the wrong reason," but a true reflection of the features the DNN prioritizes.

4. The Value of Hidden Layers

A notable finding is that the decompositional approach (CGX-dec) provides the most benefit on complex tasks. While pedagogical models suffice for simple logic like XOR, the hidden layers of a DNN contain vital information for difficult tasks like FICO, which the input features alone cannot easily capture.

Discussion and Limitations

While CGXplain represents a major step forward in rule-based XAI, it is more computationally intensive than traditional decision trees. The runtime scales linearly with the number of features and hidden layers, making it a more expensive—though more precise—option. Additionally, the method requires continuous features to be binarized into thresholds, which can influence the granularity of the resulting rules.

Conclusion

CGXplain demonstrates that optimization-based rule extraction is a viable and superior alternative to heuristic induction. By producing stable, concise, and aligned explanations, the framework provides a robust tool for auditing Deep Neural Networks in high-stakes environments. Future work will focus on optimizing solver performance for deeper architectures and exploring how these rule sets can be used to allow human experts to intervene and refine model logic.

Summary updated

BibTeX
@inproceedings{hemker2023cgxplain,
  author = {Konstantin Hemker and Zohreh Shams and Mateja Jamnik},
  title = {{CGXplain: Rule-Based Deep Neural Network Explanations Using Dual Linear Programs}},
  booktitle = {TML4H},
  year = {2023},
  doi = {10.1007/978-3-031-39539-0\_6},
}
Figure