Abstract
Prediction without justification has limited applicability. As a remedy, we learn to extract pieces of input text as justifications -- rationales -- that are tailored to be short and coherent, yet sufficient for making the same prediction. Our approach combines two modular components, generator and encoder, which are trained to operate well together. The generator specifies a distribution over text fragments as candidate rationales and these are passed through the encoder for prediction. Rationales are never given during training. Instead, the model is regularized by desiderata for rationales. We evaluate the approach on multi-aspect sentiment analysis against manually annotated test cases. Our approach outperforms attention-based baseline by a significant margin. We also successfully illustrate the method on the question retrieval task.
Introduction
Deep learning models have achieved state-of-the-art performance across various Natural Language Processing (NLP) tasks. However, their "black box" nature often limits their utility in domains where interpretability is paramount, such as medicine or law. While attention mechanisms provide some insight by weighting input tokens, they often produce "fuzzy" justifications that lack the clarity of human-provided evidence.
This research introduces a framework for generating extractive rationales: short, continuous snippets of the original text that are sufficient to justify a model's prediction. Unlike previous methods, these rationales are discovered in an unsupervised manner, without requiring human-annotated justifications during training.
The Generator-Encoder Framework
The architecture consists of two modular components trained jointly: the Generator and the Encoder.
- The Generator ($gen(x)$): Acts as a selector that processes the input text and outputs a binary mask, deciding which words to retain as part of the rationale.
- The Encoder ($enc(z, x)$): A predictive model that receives only the selected words. Its objective is to match the target prediction (e.g., a sentiment rating) using only this restricted subset of information.
To ensure the rationales are human-interpretable, the generator is constrained by two key regularization terms:
- Sparsity: Penalizes the model for selecting too many words, forcing conciseness.
- Coherence: Encourages the selection of contiguous phrases rather than disjointed words.
Because the selection process involves discrete choices, the system is trained using the REINFORCE policy gradient algorithm, allowing the generator to learn from the encoder's performance.
Experimental Results
The model was primarily evaluated on the BeerAdvocate dataset, which contains 1.5 million reviews with multi-aspect ratings (Appearance, Smell, Palate, Taste). The goal was to extract rationales that explain specific aspect ratings.
The results demonstrate that the proposed framework significantly outperforms traditional baselines. On the beer review task, the model achieved high precision in identifying relevant sentences for specific aspects, far exceeding both bigram SVMs and neural attention mechanisms.
Key findings include:
- Sufficiency: The model can maintain high predictive accuracy while using only a small fraction of the input text.
- Unsupervised Discovery: The framework successfully clusters linguistic features related to specific aspects (e.g., "smell" vs. "appearance") without explicit supervision.
- Interpretability: The resulting rationales are highly intuitive and align well with human reasoning, providing a clear "why" behind the model's scores.
Conclusion and Future Work
By framing rationale generation as a reinforcement learning problem with sparsity and coherence constraints, this research provides a robust method for making neural predictions interpretable. While currently limited to extractive justifications, future work could explore abstractive rationales or more complex constraints to handle diverse data types. This approach moves us closer to "glass-box" models that can be trusted in high-stakes applications.
Summary updated