Enhancing In-Context Learning with Answer Feedback for Multi-Span Question Answering

Zixian Huang, Jiaying Zhou, Gengyang Xiao, Gong Cheng · DOI

Introduction

While Large Language Models (LLMs) like ChatGPT are impressive generalists, they often struggle with specialized tasks like Multi-Span Question Answering (MSQA). In MSQA, a model must identify all relevant text snippets (spans) in a document that answer a question, a task significantly more complex than single-span extraction.

Standard In-Context Learning (ICL) typically provides a few demonstration examples (question-answer pairs) to guide the LLM. However, researchers argue that this approach under-utilizes labeled data by only showing the "gold" answers. It fails to teach the model how to avoid common pitfalls or why certain similar-looking spans are incorrect. To address this, the authors introduce FBPrompt, a novel strategy that incorporates feedback from smaller, "off-the-shelf" models to help LLMs "reflect" on potential errors.

Conceptual comparison between standard In-Context Learning (left) and FBPrompt (right).

The FBPrompt Framework

FBPrompt (Feedback-based Prompting) operates through a three-stage pipeline designed to enrich the context provided to the LLM:

  1. Retrieval Stage: For a given test question, the system identifies the $k$ most relevant labeled examples from a training set using the BM25 lexical search algorithm.
  2. Exercise Stage: Instead of using gold labels immediately, the system employs a smaller, "off-the-shelf" model (e.g., a fine-tuned T5-base) to predict answers for these $k$ examples. These predictions are then compared against the ground truth to generate three categories of feedback: Correct (accurate spans), Incorrect (hallucinated spans), and Missing (failed retrievals).
  3. Reasoning Stage: The LLM receives a prompt containing the document, the question, the gold answers, and the explicit feedback regarding the off-the-shelf model's performance. This allows the LLM to learn not just the correct answers, but also the types of errors it should avoid.
The complete FBPrompt architecture, illustrating the Retrieval, Exercise, and Reasoning stages.

Evaluation and Key Insights

The researchers evaluated FBPrompt across four diverse datasets: MultiSpanQA, QUOREF (coreferential reasoning), DROP (discrete reasoning), and INSPEC (keyphrase extraction).

Key Findings

  • Learning from Mistakes: A critical insight is that negative feedback (incorrect and missing answers) is often more beneficial than positive feedback. By seeing what not to do, the LLM learns to distinguish between semantically related but contextually irrelevant spans.
  • The Reflection Effect: The inclusion of feedback encourages a form of "reflection," where the LLM analyzes the gap between a baseline prediction and the correct answer.
  • Efficiency: By using a small, fast model for the Exercise Stage rather than the LLM itself, FBPrompt remains computationally efficient compared to methods that rely on LLM-generated feedback.

Results

FBPrompt consistently outperformed standard ICL baselines across all evaluated datasets:

  • MultiSpanQA: Achieved an Exact Match (EM) score of 64.60, compared to 61.33 for the BM25 baseline.
  • DROP: Saw a significant improvement in EM Global score to 62.00 (vs. 58.40).
  • SOTA Performance: The method achieved new State-of-the-Art results on the INSPEC dataset, demonstrating its generalizability beyond QA.

Conclusion

FBPrompt demonstrates that "learning from mistakes" is a powerful paradigm for enhancing LLM performance on complex extraction tasks. While it increases prompt length and depends on the quality of the off-the-shelf model, the gains in accuracy and robustness make it a compelling strategy for multi-span reasoning.

Summary updated

BibTeX
@inproceedings{huang2023enhancing,
  author = {Zixian Huang and Jiaying Zhou and Gengyang Xiao and Gong Cheng},
  title = {{Enhancing In-Context Learning with Answer Feedback for Multi-Span Question Answering}},
  booktitle = {NLPCC},
  year = {2023},
  doi = {10.1007/978-3-031-44696-2\_58},
}
Figure