Abstract
As machine learning models increase in complexity, the need for interpretable explanations becomes paramount. LoRMIkA (Local Rule-based Model Interpretability with k-optimal Associations) is a novel local model-agnostic explainer that utilizes association rule mining to demystify black-box predictions. By moving beyond the search for a single "most predictive" rule, LoRMIkA identifies "k-optimal" rules that are both accurate and interesting. This approach provides a comprehensive view of decision boundaries through a framework of supporting, contradicting, and counterfactual explanations, offering superior stability and conciseness compared to existing state-of-the-art methods.
Introduction
Modern machine learning models, such as deep neural networks and random forests, often operate as "black boxes." While they provide high predictive accuracy, their internal logic remains opaque to human users. Local interpretability methods like LIME or SHAP attempt to address this by explaining individual predictions. However, existing rule-based explainers like Anchor or LORE face several challenges:
- Predictivity vs. Interpretability: High accuracy does not always equate to a good explanation. A rule might be perfectly accurate but apply to an insignificantly small subset of data.
- Stability: Many local explainers are stochastic, leading to inconsistent explanations for the same instance across different runs.
- Incomplete Explanations: Most tools focus on why a decision was made but fail to highlight factors that nearly changed the outcome or specific counterfactual changes required to flip a prediction.
LoRMIkA addresses these gaps by leveraging k-optimal association rule mining to provide stable, concise, and multi-faceted explanations.
Methodology
The LoRMIkA framework follows a structured pipeline to transform black-box outputs into human-readable rules. The process is divided into five primary steps:
- Preprocessing (Step 4.1): The input data, including the test instance to be explained and the training set, are preprocessed to ensure compatibility with the rule-mining algorithm. This often involves discretizing continuous features.
- Neighborhood Determination (Step 4.2): The system identifies the most similar instances from the training set to establish a local context for the explanation.
- Instance Generation (Step 4.3): To ensure a dense sampling of the decision boundary, LoRMIkA generates synthetic instances using crossover (interpolation) and mutation techniques. These are combined with the selected neighbors to form a robust local dataset.
- Global Model Prediction (Step 4.4): The black-box "global model" labels the generated neighborhood, providing the ground truth for the local explainer.
- Rule Generation (Step 4.5): Instead of standard association rule mining (like Apriori), which relies on difficult-to-tune support thresholds, LoRMIkA employs the OPUS algorithm. This efficiently finds the "k-best" rules based on metrics like Lift and Leverage.
The Four Quadrants of Explanation
LoRMIkA categorizes the discovered rules into four distinct types to provide a holistic view:
- Current Supporting: Features the instance possesses that justify the model's choice.
- Current Contradicting: Features present in the instance that actually argued against the final prediction.
- Hypothetically Supporting: Features the instance lacks that would have increased the prediction's certainty.
- Hypothetically Contradicting (Counterfactual): The specific changes required to flip the model's prediction to a different class.
Experimental Evaluation
LoRMIkA was evaluated on four diverse tabular classification datasets: Adult (income prediction), COMPAS (recidivism risk), German Credit (credit risk), and Covertype (forest cover type). The latter was used specifically to test scalability on a dataset with over 580,000 instances.
Key Results
- Stability: LoRMIkA achieved a Jaccard stability score of 1.0 (perfect consistency) across nearly all tests, significantly outperforming LORE and Anchor, which showed high variance.
- Conciseness: The framework consistently produces shorter rules (often 1-2 features) compared to Anchor, which can generate verbose rules with 10+ conditions for the same instance.
- Coverage: Rules generated by LoRMIkA generally apply to a larger portion of the local neighborhood, making them more representative of the model's local behavior.
- Efficiency: LoRMIkA maintained consistent execution times (e.g., ~38 seconds for the large Covertype dataset), whereas baselines like LORE exhibited highly variable runtimes.
Discussion and Conclusion
LoRMIkA demonstrates that "interestingness" (measured via Lift and Leverage) is often a better metric for interpretability than raw accuracy alone. By identifying non-trivial correlations and providing contradicting rules, it offers experts—such as judges or clinicians—a more nuanced understanding of model behavior.
Future work will focus on refining discretization strategies, as the choice of binning can impact rule quality. Additionally, while currently optimized for tabular data, extending LoRMIkA to unstructured data like images or text remains a promising avenue for research, potentially utilizing super-pixels or word embeddings for neighborhood generation.
Summary updated