Introduction
Deep learning models, particularly Transformer-based architectures like BERT, have revolutionized natural language processing. However, their internal decision-making processes remain largely opaque. This lack of interpretability poses a challenge for "attribution"—the task of identifying which input features (e.g., specific tokens) are most responsible for a model's final prediction.
Existing attribution methods often fall short. Gradient-based approaches like Integrated Gradients (IG) may only capture local sensitivities, while model-agnostic methods like LIME treat the architecture as a black box, potentially ignoring internal structural dynamics and incurring high computational costs. This research introduces a theoretically grounded alternative: Information Bottleneck for Attribution (IBA).
Methodology: The Information Bottleneck Approach
The IBA method is rooted in the Information Bottleneck principle, which seeks a compressed representation $T$ of an input $X$ that preserves maximum information about a target $Y$ while discarding irrelevant details.
To adapt this for Transformers, the researchers implement a multi-step process:
- Noise Injection: Gaussian noise is added to the hidden representations at a specific layer of a pre-trained BERT model.
- The "Squeeze": A learnable weight vector $\mu$ is introduced to modulate the signal-to-noise ratio. A $\mu$ value of 1 allows the original signal to pass, while 0 results in pure noise.
- Optimization: The system optimizes a dual-objective loss function. It minimizes cross-entropy to maintain prediction accuracy while using KL divergence to penalize the amount of information transmitted through the bottleneck.
- Attribution Mapping: Post-optimization, tokens corresponding to high $\mu$ values—those the model "fought" to preserve—are identified as the most critical for the prediction.
Experimental Setup
The IBA method was rigorously tested against five diverse NLP benchmarks:
- IMDB: Sentiment analysis of movie reviews.
- MNLI (Matched & Mismatched): Natural Language Inference across multiple genres.
- AG News: Topic classification for news articles.
- RTE: Recognizing Textual Entailment from the GLUE benchmark.
Results and Discussion
The effectiveness of IBA was measured using degradation tests. In these experiments, tokens are removed in order of their attributed importance, and the resulting drop in the model's prediction probability is tracked. A steeper decline indicates a more accurate identification of essential features.
As shown in the figures above, IBA consistently outperforms standard techniques. For instance, on the IMDB dataset, removing the top 11% of tokens identified by IBA resulted in a probability drop of 0.229, significantly higher than the 0.090 drop for Integrated Gradients and 0.038 for LIME.
Key Insights
- Optimal Layer Selection: The study found that layers 8 and 9 of BERT are the most effective for bottleneck insertion, suggesting these middle-to-late layers are where predictive features are most consolidated.
- Semantic Clarity: Qualitative analysis revealed that IBA successfully highlights semantically meaningful words (e.g., "liked," "intrigued") while ignoring the filler words that often confound gradient-based methods.
- Theoretical Rigor: By framing interpretability as a resource-constraint problem, IBA provides a mathematical upper bound on the information used for a prediction, offering more robust explanations than heuristic methods.
Conclusion and Future Work
IBA represents a significant step forward in making Transformer models interpretable. By leveraging the Information Bottleneck principle, it identifies critical tokens more reliably than existing local or model-agnostic methods. While the current implementation requires per-instance optimization and careful hyperparameter tuning (specifically the $\beta$ parameter for bottleneck tightness), its theoretical grounding and empirical success suggest broad potential. Future research may explore scaling this approach to larger models like GPT-4 or applying it to vision-based architectures.
Summary updated