When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Data

Peter Hase, Mohit Bansal

TL;DR

This paper introduces a formal framework to categorize how machine learning models can leverage explanation data, proposing that explanations can serve as inputs, targets, or priors. To empirically study this, they create a novel synthetic dataset designed to mimic real-world explanation scenarios, demonstrating that explanations significantly boost model performance, especially when the underlying task is complex.

What Problem Does This Paper Address?

The field of machine learning, particularly in Natural Language Processing (NLP), has seen a surge in methods that incorporate human-provided explanations to improve model performance. These explanations, often free-text rationales for why a data point received a certain label, promise to go beyond what can be learned from just input-output pairs. However, despite these efforts, many tasks still see elusive performance gains. This paper aims to address this by: 1) providing a structured way to understand how explanations are being used in different models, and 2) creating a controlled environment to rigorously study when and why explanations are beneficial, moving beyond ad-hoc empirical observations.

Methods

The authors propose a two-pronged approach:

  1. Formal Framework: They introduce a graphical model to categorize existing methods for incorporating explanation data. This framework classifies explanations based on their role:
  2. As Inputs: Explanations are treated as additional features alongside the input data.
  3. As Targets: Explanations are used as additional supervision signals, often in multi-task learning settings.
  4. As Priors: Explanations are used to constrain the model's parameters or guide its learning process.
  5. Synthetic Task: To empirically validate their framework and study learning from explanations, they design a synthetic dataset. This dataset involves a binary classification task where the label is determined by counting the occurrences of specific integers within a sequence. Crucially, each data point comes with a natural language explanation that clarifies why the label was assigned, mimicking the "why" question in human explanations. This controlled environment allows for precise manipulation of factors like the complexity of the label reason and the number of unique explanations.

Datasets

  • Synthetic Dataset: The paper introduces a novel synthetic dataset for evaluating models' ability to learn from explanations. This dataset is generated with controlled properties, allowing researchers to isolate the impact of explanations on model performance. The dataset is designed to have analogous properties to human-curated data, with explanations providing a "label reason" derived from specific integer counts within the input sequence.
  • Existing Datasets (Mentioned): The paper references existing work that uses various NLP datasets for tasks like Natural Language Inference (NLI) and relation extraction, but the primary empirical evaluation is on their newly created synthetic benchmark.

Key Insights and Ideas

  • Categorizing Explanation Roles is Crucial: By formalizing explanations as inputs, targets, or priors, the paper provides a much-needed taxonomy for understanding and comparing different approaches. This helps in identifying which roles are currently more promising.
  • Explanations as Inputs Show Promise: The authors' review suggests that treating explanations as inputs, particularly through retrieval-based methods or in-context learning with large models, has yielded the most consistent improvements.
  • Synthetic Data is Key for Controlled Study: The synthetic task is a powerful tool because it allows researchers to precisely control the difficulty of inferring the label reason and the number of unique explanations, which are critical factors in understanding explanation utility.
  • Explanations are Not Always Necessary: The paper acknowledges that sufficiently large pre-trained models might already encode the knowledge present in explanations, or the information might be learnable from (X, Y) data alone, making explanations redundant in some cases.
  • The "Why" Matters: The core idea is that explanations provide a causal link or a specific reasoning process that can be more informative than just observing input-output pairs, especially for complex tasks.

Key Results

  • Significant Performance Gains with Explanations: On their synthetic task, explanation retrieval methods achieved accuracies above 98%, a substantial improvement of around 37 percentage points over a baseline model without explanations.
  • Retrieval Outperforms Larger Datasets: Even with 50,000 training data points, a no-explanation baseline achieved only 87.11% accuracy, highlighting the efficiency of explanation-based learning.
  • Task Difficulty Amplifies Explanation Benefit: The synthetic task's difficulty, measured by the number of unique explanations (label reasons), directly impacts the performance of models without explanations. As the number of unique explanations increases, the performance of models relying solely on (X, Y) data drops significantly, while explanation-based models maintain high accuracy.
  • Learned Retrieval is Effective: The learned retrieval model performed comparably to an "optimal" retrieval model, suggesting that learning to retrieve relevant explanations is a viable strategy.

Limitations and Future Work

  • Limitations of Current Approaches: The paper notes that using free-text explanations as structured variables or targets has not shown promising results for NLP tasks.
  • Future Directions: The authors advocate for testing new modeling approaches on controlled synthetic tasks to rigorously evaluate their ability to learn from explanations. Future work should focus on understanding how explanations contain novel information not already present in pre-training or fine-tuning data. They also suggest exploring other graphical models beyond the ones currently showing promise. The paper also points to an extended technical report with additional experiments addressing specific research questions about feature learning, explanation representation, and aggregation.

Summary updated

BibTeX
@inproceedings{hase2022when,
  author = {Peter Hase and Mohit Bansal},
  title = {{When Can Models Learn From Explanations? A Formal Framework for Understanding the Roles of Explanation Data}},
  booktitle = {LNLS @ ACL},
  year = {2022},
  url = {https://openreview.net/forum?id=BxUhbwhiWq},
}
Figure