Abstract: This paper explores how to make Natural Language Inference (NLI) models explain themselves by highlighting the specific tokens that drive their predictions. The authors introduce a "white-box" approach using Multiple Instance Learning (MIL) to regularize a model's attention mechanism, producing human-like explanations without requiring explicit labels during training. This method offers a massive speed advantage over traditional "black-box" methods, generating explanations in a single forward pass.
Introduction
Natural Language Inference (NLI) is the task of determining if a "premise" sentence entails, contradicts, or is neutral toward a "hypothesis" sentence. While modern deep learning models achieve high accuracy on this task, they remain notoriously opaque. Most research on explainability focuses on single-sentence tasks; NLI is more complex because explanations depend on the relationship between two sentences. For example, the contradiction between "Children smiling" and "The kids are frowning" lies in the specific conflict between those two words. The authors aim to generate these token-level highlights automatically and efficiently, ideally without needing a dataset of human-written explanations for training.
Methodology
The study compares three primary approaches to generating explanations:
- Black-box Methods (LIME and Anchors): These methods treat the model as an opaque system, perturbing inputs (e.g., deleting words) to observe changes in predictions and infer token importance.
- White-box MIL Approach: This core contribution utilizes a standard LSTM model with an attention mechanism. To align attention weights with human-interpretable rationales, the authors introduce three Multiple Instance Learning (MIL) regularizers to the loss function:
- Entropy ($R_1$): Discourages the model from spreading attention thinly, forcing it to focus on specific tokens.
- Existence ($R_2$): Ensures at least one token is selected from both sentences (except for "neutral" labels).
- Sparsity ($R_3$): Penalizes small non-zero weights to encourage the model to ignore irrelevant words entirely.
- Fully Supervised Baseline: A model trained directly on human-annotated highlights from the e-SNLI (Extended Stanford Natural Language Inference) dataset to establish an upper bound for performance.
Results and Analysis
The effectiveness of these methods was evaluated on the e-SNLI dataset, which contains human-selected highlights essential to the NLI labels.
As shown in the table above, adding MIL regularizers significantly improves the quality of explanations. Raw attention (Thresholded Attention) achieved a hypothesis F1 score of 39.89%, which increased to 57.78% when all three regularizers ($R_1 + R_2 + R_3$) were applied.
A critical finding is the speed-accuracy trade-off. While LIME achieved the highest explanation accuracy for the hypothesis (61.58% F1), it required 64 seconds per instance. In contrast, the MIL white-box method generated explanations in a single forward pass, taking only 0.01 seconds—a speedup of over three orders of magnitude.
Furthermore, the results highlight a "Premise Problem." All unsupervised and weakly supervised methods performed significantly worse on the premise (maxing out around 22-27% F1) compared to the hypothesis. This is likely due to biases in the SNLI dataset, where a single premise is often reused for multiple hypotheses, causing the model to ignore premise-specific nuances.
Conclusion
While attention is not naturally an explanation, this work demonstrates that mathematical constraints can "steer" it to align more closely with human rationales. The MIL-based approach provides a computationally efficient alternative to black-box methods, though a gap remains between model attention and human reasoning. Future research should focus on mitigating dataset biases and incorporating explicit cross-sentence semantic knowledge to improve explanation quality, particularly for premises.
Summary updated