Skip to main content
QUICK REVIEW

[Paper Review] When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Tasks

Hao Peng, Xiaozhi Wang|arXiv (Cornell University)|Nov 15, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper investigates why in-context learning (ICL) fails on specification-heavy tasks—complex NLP tasks requiring extensive, detailed instructions—demonstrating that LLMs underperform on these tasks despite strong general capabilities. The authors identify three core failure reasons: poor context-specific understanding, misalignment in task schema comprehension, and limited long-context reasoning. Fine-tuning significantly improves performance, showing that the limitation lies not in LLMs themselves but in ICL's inability to align with complex specifications.

ABSTRACT

In-context learning (ICL) has become the default method for using large language models (LLMs), making the exploration of its limitations and understanding the underlying causes crucial. In this paper, we find that ICL falls short of handling specification-heavy tasks, which are tasks with complicated and extensive task specifications, requiring several hours for ordinary humans to master, such as traditional information extraction tasks. The performance of ICL on these tasks mostly cannot reach half of the state-of-the-art results. To explore the reasons behind this failure, we conduct comprehensive experiments on 18 specification-heavy tasks with various LLMs and identify three primary reasons: inability to specifically understand context, misalignment in task schema comprehension with humans, and inadequate long-text understanding ability. Furthermore, we demonstrate that through fine-tuning, LLMs can achieve decent performance on these tasks, indicating that the failure of ICL is not an inherent flaw of LLMs, but rather a drawback of existing alignment methods that renders LLMs incapable of handling complicated specification-heavy tasks via ICL. To substantiate this, we perform dedicated instruction tuning on LLMs for these tasks and observe a notable improvement. We hope the analyses in this paper could facilitate advancements in alignment methods enabling LLMs to meet more sophisticated human demands.

Motivation & Objective

  • To investigate the limitations of in-context learning (ICL) on specification-heavy tasks, which require extensive, detailed instructions.
  • To identify the root causes behind ICL's poor performance on such tasks, particularly in comparison to fine-tuned models.
  • To determine whether the failure stems from inherent limitations of LLMs or shortcomings in current alignment methods.
  • To evaluate whether fine-tuning can close the performance gap between ICL and state-of-the-art results on these complex tasks.

Proposed method

  • Evaluated 6 large language models on 18 specification-heavy tasks, including event detection and relation extraction, using in-context learning with few-shot demonstrations.
  • Conducted extensive error analysis to diagnose failure modes, focusing on context understanding, schema misalignment, and long-context comprehension.
  • Performed instruction tuning on FLAN-UL2 (20B parameters) for each task to assess the upper bound of LLM performance under fine-tuning.
  • Systematically compared ICL performance against fine-tuned model performance across multiple model scales to assess scaling behavior.
  • Analyzed model behavior under underspecified task conditions to assess schema comprehension alignment with human definitions.
  • Used controlled prompt variations (e.g., changing verbs like 'was arrested' to 'arrived') to test sensitivity to context details.
Figure 1: An example specification-heavy task: ACE 2005 event detection. This task involves heavy specifications which would take ordinary humans substantial time to learn. Therefore, solving the task using LLMs with in-context learning is challenging.
Figure 1: An example specification-heavy task: ACE 2005 event detection. This task involves heavy specifications which would take ordinary humans substantial time to learn. Therefore, solving the task using LLMs with in-context learning is challenging.

Experimental results

Research questions

  • RQ1Why does in-context learning underperform on specification-heavy tasks despite strong generalization in other settings?
  • RQ2What are the primary failure modes of LLMs when applying ICL to tasks with complex, lengthy specifications?
  • RQ3To what extent can fine-tuning close the performance gap between ICL and state-of-the-art results on these tasks?
  • RQ4Is the poor ICL performance due to inherent limitations of LLMs or deficiencies in current alignment techniques?
  • RQ5How does model scale affect fine-tuned performance on specification-heavy tasks?

Key findings

  • ICL performance on 18 specification-heavy tasks fell below 50% of the state-of-the-art results achieved by fine-tuned small models.
  • LLMs frequently failed to understand specific context details, often relying on internal knowledge instead of the provided context.
  • A significant number of errors stemmed from misalignment in task schema comprehension—e.g., misclassifying event types like predicting 'BUSINESS' as 'TRANSACTION'.
  • LLMs showed inadequate long-context understanding, struggling to process and utilize lengthy task specifications, which exacerbated underspecification issues.
  • Fine-tuning FLAN-UL2 on each task led to performance improvements comparable to existing state-of-the-art results, demonstrating that LLMs can master these tasks when properly aligned.
  • A clear positive scaling effect was observed: larger models achieved better fine-tuned performance on specification-heavy tasks, confirming that the capability exists but is not unlocked by ICL alone.
Figure 2: Error types with proportions from GPT-4. “ Unspecific Context Understanding ” means the lack of specific context understanding. “ Misaligned Schema Understanding ” represents LLMs’ understanding of task schema is not fully aligned with humans. “ Instruction Following ” represents LLMs do n
Figure 2: Error types with proportions from GPT-4. “ Unspecific Context Understanding ” means the lack of specific context understanding. “ Misaligned Schema Understanding ” represents LLMs’ understanding of task schema is not fully aligned with humans. “ Instruction Following ” represents LLMs do n

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.