Introduction
The interpretability of deep learning models is a critical frontier in artificial intelligence. While attention mechanisms in Long Short-Term Memory (LSTM) networks are frequently presented as "explanations" for model decisions, their validity has recently come under scrutiny. Critics point to two primary failures: a lack of faithfulness—where attention weights can be permuted without significantly altering the model's output—and a lack of plausibility, where models focus on "noise" like punctuation rather than semantically meaningful words.
This research identifies high conicity as the root cause of these issues. In standard LSTMs, hidden states at different time steps are often highly correlated and occupy a narrow "cone" in vector space. Because these vectors are so similar, any weighted average (attention) of them results in roughly the same context vector, rendering the specific attention weights functionally meaningless.
Methodology: Promoting Representation Diversity
To resolve the "narrow cone" trap, we propose two strategies to "spread out" hidden states, forcing the model to create distinct representations for different inputs:
- Orthogonal LSTM: A structural modification where the hidden state at each time step is explicitly orthogonalized against the mean of all previous hidden states. This hard constraint ensures that every step adds a unique spatial dimension to the representation.
- Diversity-Driven Training: A soft constraint that adds a penalty term to the loss function. This term minimizes the conicity (the average cosine similarity to the mean) of the hidden states during training.
By reducing conicity, the attention mechanism is forced to "choose" between unique pieces of information. Consequently, the resulting attention weights become far more impactful on the final prediction, aligning the model's internal logic with its external explanations.
Experimental Evaluation
The proposed methods were evaluated across 12 diverse datasets spanning sentiment analysis (IMDB, Yelp, Amazon), text classification (20 Newsgroups), natural language inference (SNLI), and question answering (bAbI).
Key Results
- Conicity Reduction: The diversity-driven approach drastically reduced conicity across all tasks. For instance, on the IMDB dataset, conicity fell from 0.69 in the vanilla model to just 0.08.
- Faithfulness and Sensitivity: Diversity-enhanced models proved to be highly sensitive to weight permutations. As illustrated in Figure 5, shuffling attention weights in these models causes a massive shift in the output distribution, confirming that the weights are truly "faithful" to the model's decision process.
- Performance Gains: These models maintain competitive accuracy and, in complex tasks like bAbI Task 2, significantly outperform vanilla LSTMs (56.1% vs. 40.1%).
- Human Preference: In human evaluations, users preferred the explanations from Diversity LSTMs in 62% to 99% of cases, noting a shift in focus from punctuation to task-relevant keywords like adjectives and nouns.
Conclusion
By addressing the geometric limitations of hidden state representations, Diversity LSTMs transform attention from a misleading heuristic into a transparent and faithful explanatory tool. While this study focuses on LSTMs, the principles of diversity-driven training offer a promising path toward more explainable architectures across the broader field of natural language processing.
Summary updated