Explain and Predict, and then Predict again

Zijian Zhang, Koustav Rudra, Avishek Anand · DOI

Abstract

A desirable property of learning systems is to be both effective and interpretable. Towards this goal, recent models have been proposed that first generate an extractive explanation from the input text and then generate a prediction on just the explanation called explain-then-predict models. These models primarily consider the task input as a supervision signal in learning an extractive explanation and do not effectively integrate rationales data as an additional inductive bias to improve task performance. We propose a novel yet simple approach ExPred, that uses multi-task learning in the explanation generation phase effectively trading-off explanation and prediction losses. And then we use another prediction network on just the extracted explanations for optimizing the task performance. We conduct an extensive evaluation of our approach on three diverse language datasets -- fact verification, sentiment classification, and QA -- and find that we substantially outperform existing approaches.

Introduction

In the quest for trustworthy AI, interpretability has become a central requirement. We do not merely want a model to classify a movie review as negative; we require it to identify the specific "rationales"—the sentences or phrases—that justify that conclusion. However, achieving a balance between high predictive accuracy and true interpretability remains a significant challenge in Natural Language Processing (NLP).

Most modern models are "black boxes" that rely on post-hoc analysis to explain decisions. These explanations can be unfaithful, appearing plausible to humans without accurately reflecting the model's internal logic. The explain-then-predict paradigm offers a more robust alternative: a model first extracts a rationale, and a second, independent model makes a prediction based only on that snippet. This design ensures that the prediction is physically constrained by the provided explanation.

The ExPred Framework

Despite its theoretical benefits, the explain-then-predict approach often suffers from a lack of communication between the explainer and the predictor. Previous models were either task-agnostic or failed to leverage human-annotated rationales effectively. To address this, we introduce ExPred, a framework that makes the explanation process "task-aware" through a two-phase pipeline.

The ExPred framework overview. The first phase uses multi-task learning to generate task-aware extractive explanations. These explanations are then passed to a second, independent predictor to produce the final task label.

Phase 1: Multi-Task Explanation Generation

In the first phase, ExPred employs a shared BERT encoder to perform two tasks simultaneously. Rather than simply identifying important words, the model is trained on an Auxiliary Task (predicting the final label) and an Explanation Mask (identifying rationale tokens).

Architecture of the explanation generator. A shared BERT encoder feeds into an auxiliary task MLP and a GRU-based explanation layer to ensure rationales are predictive of the final label.

By forcing the model to optimize for both objectives, the resulting explanations become task-aware. The model learns to prioritize text that is not just linguistically interesting, but specifically useful for the final classification goal. To handle the inherent sparsity of human rationales, we utilize weighted loss functions, preventing the model from defaulting to a "no rationale" prediction.

Phase 2: Rationale-Based Prediction

Once rationales are extracted, they are passed to a separate BERT-based predictor. This model receives the original text but with all non-rationale tokens masked. A key innovation in our training process is the selection of training instances: we only use examples where the Phase 1 auxiliary predictor was correct. This ensures the final model is not distracted by low-quality explanations generated during the early stages of learning.

Evaluation and Results

We evaluated ExPred using the ERASER benchmark, focusing on three diverse tasks: sentiment analysis (Movie Reviews), fact-checking (FEVER), and reading comprehension (MultiRC). These datasets provide human-annotated "ground truth" rationales for comparison.

ExPred consistently outperformed state-of-the-art models across several metrics:

  • Task Accuracy: On the MultiRC dataset, ExPred improved Macro F1 by approximately 7% over previous pipelined approaches.
  • Explanation Quality: Token F1 scores, measuring the alignment between machine and human rationales, saw improvements of up to 20%.
  • Robustness: ExPred performed at par with, or better than, "Full Input" models. This suggests that a well-extracted rationale can be more powerful than a noisy, full-length document.

Conclusion

ExPred demonstrates that task-awareness is critical for generating high-quality, faithful explanations. By integrating multi-task learning into the explanation phase, we bridge the gap between interpretability and performance. Future work will focus on overcoming the 512-token input limit of BERT to process longer documents and exploring end-to-end integration of the predict-explain-predict logic.

Summary updated

BibTeX
@inproceedings{zhang2021explain,
  author = {Zijian Zhang and Koustav Rudra and Avishek Anand},
  title = {{Explain and Predict, and then Predict again}},
  booktitle = {WSDM},
  year = {2021},
  doi = {10.1145/3437963.3441758},
}
Figure