A Framework for Rationale Extraction for Deep QA models

Sahana Ramnath, Preksha Nema, Deep Sahni, Mitesh M. KhapraarXiv 2021

Abstract

As neural-network-based QA models become deeper and more complex, there is a demand for robust frameworks which can access a model's rationale for its prediction. Current techniques that provide insights on a model's working are either dependent on adversarial datasets or are proposing models with explicit explanation generation components. These techniques are time-consuming and challenging to extend to existing models and new datasets. In this work, we use 'Integrated Gradients' to extract rationale for existing state-of-the-art models in the task of Reading Comprehension based Question Answering (RCQA). On detailed analysis and comparison with collected human rationales, we find that though ~40-80% words of extracted rationale coincide with the human rationale (precision), only 6-19% of human rationale is present in the extracted rationale (recall).

Introduction

Reading Comprehension based Question Answering (RCQA) has seen significant performance gains with the advent of deep learning architectures like Transformers. However, these models often function as "black boxes," where the logic behind a specific prediction remains opaque. Traditional interpretability methods, such as analyzing attention weights or using adversarial datasets, often fail to provide a reliable or universal understanding of model behavior. This paper introduces a model-agnostic framework designed to extract the "minimal set of words"—the rationale—that a model relies on to produce an answer.

Methodology: Rationale Extraction via Integrated Gradients

The proposed framework utilizes Integrated Gradients (IG), an attribution method that assigns importance scores to input features while satisfying mathematical properties like sensitivity and implementation invariance. Unlike attention weights, IG scores directly reflect the contribution of each word to the final output.

The extraction process is formalized in Algorithm 1. It involves ranking words by their IG scores and iteratively masking the most influential words until the model's predicted answer changes, a phenomenon termed a "Decision Flip."

Algorithm 1: The Rationale Extraction process using Integrated Gradients and decision flips.

Experimental Setup

The authors evaluated the framework on the SQuAD dataset using four state-of-the-art models: BERT, BiDAF, DCN, and QANet. To validate the extracted rationales, a new "gold standard" dataset was created by collecting human-annotated rationales for 500 SQuAD samples, allowing for a direct comparison between model logic and human reasoning.

Results and Analysis

The Efficiency of Decision Flips

The study introduced the "Flip Fraction" metric, representing the percentage of words removed to cause a prediction change. All models were found to be highly sensitive, with flip fractions ranging from 7% to 21%. Notably, BERT exhibited the lowest flip fraction (0.072), suggesting it relies on a very narrow subset of the input text to make decisions.

The Precision-Recall Gap

A significant finding of this research is the disparity between model and human rationales. While models often achieve high precision—meaning the words they pick are indeed part of the human rationale—they suffer from extremely low recall.

Performance metrics comparing model rationales against human-annotated gold standards, highlighting the impact of the answer span.

As shown in the results table, BERT achieves a precision of 94.9% when the answer span is included, yet its recall is only 17.45%. This indicates that while the model is "correct" about which words are important, it ignores the vast majority of the contextual evidence that humans find necessary.

Answer Span Bias

The models demonstrate a heavy bias toward the answer words themselves. When the answer span is excluded from the evaluation, precision drops significantly (e.g., BERT's precision falls from 94.9% to 22.8%). This suggests that models often "cheat" by focusing on the target answer rather than the supporting logic within the passage.

Conclusion

This framework provides a powerful tool for auditing deep QA models. The results reveal that even highly accurate models like BERT are often "lazy," relying on minimal, answer-centric cues rather than robust logical reasoning. Future work should focus on developing training objectives that encourage models to incorporate broader supporting evidence, bridging the gap between machine sensitivity and human-like rationale.

Summary updated

BibTeX
@misc{ramnath2021framework,
  author = {Sahana Ramnath and Preksha Nema and Deep Sahni and Mitesh M. Khapra},
  title = {{A Framework for Rationale Extraction for Deep QA models}},
  year = {2021},
  eprint = {2110.04620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.04620},
}
Figure