Abstract
Understanding the internal reasoning behind the predictions of machine learning systems is increasingly vital, given their rising adoption and acceptance. While previous approaches, such as LIME, generate algorithmic explanations by attributing importance to input features for individual examples, recent research indicates that practitioners prefer examining language explanations that explain sub-groups of examples. In this paper, we introduce MaNtLE, a model-agnostic natural language explainer that analyzes multiple classifier predictions and generates faithful natural language explanations of classifier rationale for structured classification tasks. MaNtLE uses multi-task training on thousands of synthetic classification tasks to generate faithful explanations. Simulated user studies indicate that, on average, MaNtLE-generated explanations are at least 11% more faithful compared to LIME and Anchors explanations across three tasks. Human evaluations demonstrate that users can better predict model behavior using explanations from MaNtLE compared to other techniques.
Introduction
As machine learning models are increasingly deployed in high-stakes domains like healthcare and law, the "black-box" nature of these systems becomes a significant liability. Understanding why a model made a specific prediction is no longer just a technical curiosity but a requirement for trust and safety.
Existing Explainable AI (XAI) tools, such as LIME or SHAP, typically provide "local" explanations by assigning importance scores to features for a single specific instance. However, research indicates that practitioners often find these numerical scores difficult to interpret. Instead, users show a preference for natural language explanations that describe the logic applied to sub-groups of similar cases. The challenge lies in generating these language-based explanations "faithfully"—ensuring the text accurately reflects the model's underlying rationale without hallucinating or oversimplifying the decision process.
The MaNtLE Framework
MaNtLE (Model-agnostic Natural Language Explainer) treats the generation of explanations as a sequence-to-sequence problem. The framework consists of several key components designed to bridge the gap between raw data and human-readable logic:
- Linearization: MaNtLE takes a set of input-prediction pairs—such as a table of features and the labels a classifier assigned to them—and converts them into a flat text string that a transformer model can process.
- T5-Large Backbone: The system utilizes a fine-tuned T5-Large transformer model to ingest the linearized text and output a natural language explanation (e.g., "If age is less than 39, then the patient is generally No").
- PerFeat Decoding: During inference, standard text generation can sometimes omit critical details. To combat this, the authors developed "PerFeat" decoding. This method prompts the model to generate candidate explanations for each individual feature and then selects the candidate that most faithfully predicts the classifier's behavior on a held-out validation set.
Training via Synthetic Logic
To ensure MaNtLE is truly model-agnostic, it was trained on approximately 200,000 synthetic datasets. These datasets were programmatically generated with known logical rules involving conjunctions, negations, and quantifiers. This massive multi-task training teaches MaNtLE to recognize and describe various types of decision logic regardless of the specific domain.
A key insight from this research is synthetic-to-real transfer: a model trained entirely on "toy" synthetic logic can generalize effectively to explain real-world classifiers it has never encountered before. This allows MaNtLE to be applied to diverse tasks without requiring task-specific retraining.
Evaluation and Results
The researchers evaluated MaNtLE using both the CLUES-Real benchmark (including tasks like banknote authentication and medical records) and standard ML datasets like the "Adult" income and Recidivism prediction datasets.
Faithfulness and Efficiency
In budget-constrained scenarios—where the explainer can only query the black-box model a limited number of times—MaNtLE demonstrated a significant advantage. While traditional explainers like LIME often require thousands of perturbations to generate a single explanation, MaNtLE can generate high-quality results using as few as 10-15 examples. In these scenarios, MaNtLE explanations were 37% more faithful than LIME and 11% more faithful than Anchors.
Human Predictability and Preference
The ultimate test of an explanation is whether it helps a human understand the model. In user studies, participants were asked to predict a model's behavior after reading an explanation:
- MaNtLE: 46% correct prediction rate.
- Anchors: 19% correct prediction rate.
- LIME: 15% correct prediction rate.
Furthermore, participants significantly preferred MaNtLE over attribution-based methods, rating it higher for both understandability and informativeness (3.44 vs 2.16 on a 5-point scale).
Limitations and Future Work
While MaNtLE represents a leap forward in natural language XAI, it currently has limitations:
- Data Format: It is designed for structured/tabular data and does not yet support raw text or image models.
- Numerical Precision: Like many language models, MaNtLE can struggle with precise numerical boundaries (e.g., occasionally confusing "greater than 32" with "greater than 35").
- Logical Depth: The model's performance decreases when faced with deeply nested logic involving multiple combined operators.
Future research aims to extend MaNtLE to generate "patches"—explanations that not only describe a model's error but provide actionable ways to correct the underlying logic.
Summary updated