NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Hao Peng, Xiaozhi Wang, Jianhui Chen, Weikai Li, Yunjia Qi, Zimu Wang, Zhili Wu, Kaisheng Zeng, Bin Xu, Lei Hou, Juanzi Li · DOI

Abstract

While In-Context Learning (ICL) has become the standard paradigm for utilizing Large Language Models (LLMs), its efficacy significantly diminishes on "specification-heavy" tasks—complex problems like information extraction that demand extensive, nuanced instructions. This research identifies three primary failure modes: context neglect, schema misalignment, and suboptimal long-text processing. Through comprehensive benchmarking and error analysis, we demonstrate that this performance gap is not a limitation of model capacity, but rather a consequence of current alignment and prompting strategies.

Introduction

The "LLM + ICL" paradigm, which involves prompting a model with instructions and a few examples, is the default interaction method for modern AI. However, a persistent "performance ceiling" has been observed in traditional Natural Language Understanding (NLU) tasks, such as event detection and relation extraction. These are defined as specification-heavy tasks: problems where the rules are extensive and complex (e.g., the ACE 2005 guidelines span 77 pages). Even advanced models like GPT-4 often fail to achieve half the performance of smaller, task-specific models fine-tuned years ago. This study investigates the root causes of this gap.

Methodology

The researchers conducted a multi-stage investigation across 18 NLU tasks, including Named Entity Recognition (NER), Relation Extraction (RE), and Event Detection (ED). The study involved:

  1. Pilot Benchmarking: Evaluating six competitive LLMs (including GPT-4 and FLAN-UL2).
  2. Error Analysis: Manually categorizing failure patterns in GPT-4 outputs.
  3. Analytical Stress-Testing: Using context perturbation and removal to determine if models rely on provided text or internal parametric memory.
  4. Fine-tuning vs. ICL: Comparing standard prompting against full fine-tuning and specialized instruction tuning.

Error Analysis and Failure Modes

To understand why LLMs struggle, the researchers manually categorized error cases from GPT-4. The analysis revealed that the majority of failures stem from Unspecific Context Understanding (56%) and Misaligned Schema Understanding (29%).

Distribution of error types in GPT-4 predictions.

These findings suggest a "Parametric Knowledge Trap," where models prioritize pre-trained associations over the specific evidence provided in the prompt's context. In 66.7% of cases where a model made a prediction, it provided the same answer even when the context was deleted, indicating a failure to ground reasoning in the provided text.

The Long-Text Paradox

A common intuition in prompting is that more detailed instructions lead to better results. However, this study identifies a "Long-Text Paradox": as the complexity and length of task specifications increase, performance often stagnates or declines.

ICL performance vs. specification length across various LLMs.

As shown in the benchmarking results, even the most capable models like GPT-4 fail to show a consistent improvement as specifications grow more detailed. LLMs struggle to synthesize very long, instruction-dense prompts, suggesting that the ICL interface is currently ill-equipped for professional-grade NLU requirements.

Key Results and Conclusion

The study proves that the bottleneck is the method, not the model. While GPT-4 achieved a 25.2 F1 on TACRED (RE) via ICL, fine-tuning a 20B parameter model (FLAN-UL2) brought performance nearly to State-of-the-Art (SoTA) levels, often doubling or tripling ICL scores. Furthermore, dedicated instruction tuning on related tasks allowed models to jump from 1.8% to 38.7% F1 on held-out tasks like FewNERD.

Future work must focus on developing alignment methods that teach models to "read" context more meticulously and exploring task decomposition to bypass the long-text understanding bottleneck. Current alignment datasets are simply too basic to prepare models for the rigors of specification-heavy logic.

Summary updated

BibTeX
@misc{peng2023when,
  author = {Hao Peng and Xiaozhi Wang and Jianhui Chen and Weikai Li and Yunjia Qi and Zimu Wang and Zhili Wu and Kaisheng Zeng and Bin Xu and Lei Hou and Juanzi Li},
  title = {{When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Tasks}},
  year = {2023},
  eprint = {2311.08993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.08993},
}
Figure