Skip to main content
QUICK REVIEW

[Paper Review] The Unreliability of Explanations in Few-shot Prompting for Textual Reasoning

Xi Ye, Greg Durrett|arXiv (Cornell University)|May 6, 2022
Topic ModelingComputer Science52 citations
TL;DR

The paper analyzes whether prompting LLMs with explanations helps in few-shot textual reasoning across QA and NLI, finding limited gains for most models, with notable exceptions, and shows explanations may be nonfactual yet useful for post-hoc calibration.

ABSTRACT

Does prompting a large language model (LLM) like GPT-3 with explanations improve in-context learning? We study this question on two NLP tasks that involve reasoning over text, namely question answering and natural language inference. We test the performance of four LLMs on three textual reasoning datasets using prompts that include explanations in multiple different styles. For these tasks, we find that including explanations in the prompts for OPT, GPT-3 (davinci), and InstructGPT (text-davinci-001) only yields small to moderate accuracy improvements over standard few-show learning. However, text-davinci-002 is able to benefit more substantially. We further show that explanations generated by the LLMs may not entail the models' predictions nor be factually grounded in the input, even on simple tasks with extractive explanations. However, these flawed explanations can still be useful as a way to verify LLMs' predictions post-hoc. Through analysis in our three settings, we show that explanations judged by humans to be good--logically consistent with the input and the prediction--more likely cooccur with accurate predictions. Following these observations, we train calibrators using automatically extracted scores that assess the reliability of explanations, allowing us to improve performance post-hoc across all of our datasets.

Motivation & Objective

  • Assess if explanations in in-context prompts improve few-shot learning for textual reasoning tasks (QA and NLI).
  • Characterize the factuality and consistency of model-generated explanations.
  • Explore calibration techniques to leverage explanations for improved in-context learning.
  • Provide practical guidance on when and how explanations help via calibration.

Proposed method

  • Evaluate four LLMs (OPT-175B, GPT-3 davinci, InstructGPT text-davinci-001, text-davinci-002) on three datasets (Synth synthetic multi-hop QA, AdvHotpot, E-SNLI).
  • Use Explain-then-Predict (E-P) and Predict-then-Explain (P-E) prompt styles with greedy decoding.
  • Compare against standard Few-Shot prompts without explanations.
  • Analyze explanations for factuality (grounded in input) and consistency (entails prediction).
  • Train lightweight calibrators using automatic reliability scores to improve post-hoc predictions.
  • Report mean and standard deviation over multiple shot groups; run multiple seeds where applicable.

Experimental results

Research questions

  • RQ1Do explanations in prompts significantly improve in-context learning accuracy for textual reasoning tasks across different LLMs?
  • RQ2Are explanations generated by LLMs generally factual or merely consistent with the predicted labels?
  • RQ3Can the reliability of explanations be automatically assessed to calibrate predictions and improve performance?
  • RQ4How do explanation-based calibrators perform across QA and NLI tasks under few-shot and data-scarce regimes?

Key findings

  • Explanations yield small to moderate gains for OPT, GPT-3, and InstructGPT; text-davinci-002 shows the most substantial improvements with explanations.
  • LLM explanations tend to be consistent with predictions but are often not factual with respect to the input context.
  • Factuality of explanations correlates with prediction accuracy; nonfactual explanations frequently accompany incorrect predictions.
  • Calibration using automatically extracted factuality scores improves in-context learning across all datasets, with explanation-based calibrators outperforming probability-based baselines.
  • On AdvHotpot, explanation-based calibration (E-P+ExplCal) achieves higher AUC in selective-answer scenarios than baselines, effective even with limited extra data.
  • On Synth, a simple post-hoc check of explanation factuality can dramatically boost accuracy (from 52.4% to 74.8%).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.