When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Tasks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). Builds on 89 of its 113 references that are in the map. First posted on arXiv 15 Nov 2023.
Builds on
89 of 113 references.
References · 89
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
38 more
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
- 2023PaLM 2 Technical Reportcited by 1,154
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 863
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2020Aligning AI With Shared Human Valuescited by 706
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 672
- 2020Pre-trained Models for Natural Language Processing: A Surveycited by 504
- 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
- 2020GoEmotions: A Dataset of Fine-Grained Emotionscited by 479
- 2020Artificial Intelligence, Values and Alignmentcited by 443
- 2018Scalable agent alignment via reward modeling: a research directioncited by 438
- 2023Larger language models do in-context learning differentlycited by 386
- 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2022UL2: Unifying Language Learning Paradigmscited by 292
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2019DocRED: A Large-Scale Document-Level Relation Extraction Datasetcited by 239
- 2022OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalizationcited by 235
- 2023Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Biascited by 230
- 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 214
- 2023ChatGPT: Jack of all trades, master of nonecited by 204
50 most cited of 89 All 89 (JSON)
Built on by
Citing papers per year: 2023: 3; 2024: 17; 2025: 11; 2026: 6.
37 papers.
Sort:
By area:
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 400
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2024What Makes Multimodal In-Context Learning Work?cited by 54
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarioscited by 44
- 2023Hijacking Large Language Models via Adversarial In-Context Learningcited by 41
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Researchcited by 29
- 2024InfiniPot: Infinite Context Processing on Memory-Constrained LLMscited by 27
- 2024ADELIE: Aligning Large Language Models on Information Extractioncited by 24
- 2024LLMAEL: Large Language Models are Good Context Augmenters for Entity Linkingcited by 19
- 2024Detecting Conversational Mental Manipulation with Intent-Aware Promptingcited by 16
- 2023Generating Valid and Natural Adversarial Examples with Large Language Modelscited by 12
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
25 more
- 2024Document-level Causal Relation Extraction with Knowledge-guided Binary Question Answeringcited by 12
- 2025A Survey of Large Language Models in Psychotherapy: Current Landscape and Future Directionscited by 12
- 2025On-the-fly Preference Alignment via Principle-Guided Decodingcited by 10
- 2024LLM with Relation Classifier for Document-Level Relation Extractioncited by 8
- 2025Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Studycited by 7
- 2024MAVEN-Fact: A Large-scale Event Factuality Detection Datasetcited by 6
- 2025MedFact: A Large-scale Chinese Dataset for Evidence-based Medical Fact-checking of LLM Responsescited by 6
- 2024Guardians of Discourse: Evaluating LLMs on Multilingual Offensive Language Detectioncited by 5
- 2025Scaling sparse feature circuit finding for in-context learningcited by 5
- 2025Scaling Textual Gradients via Sampling-Based Momentumcited by 5
- 2024Context-aware Prompt Tuning: Advancing In-Context Learning with Adversarial Methodscited by 4
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Processcited by 3
- 2024Template-Driven LLM-Paraphrased Framework for Tabular Math Word Problem Generationcited by 3
- 2024Beyond Scaling: Predicting Patent Approval with Domain-specific Fine-grained Claim Dependency Graphcited by 2
- 2025Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detectioncited by 2
- 2026Mitigating Context-Memory Conflicts in LLMs through Dynamic Cognitive Reconciliation Decodingcited by 2
- 2024Unsupervised Human Preference Learningcited by 1
- 2024In-Context Learning for Long-Context Sentiment Analysis on Infrastructure Project Opinionscited by 1
- 2025Grounding Agent Reasoning in Image Schemas: A Neurosymbolic Approach to Embodied Cognitioncited by 1
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identificationcited by 1
- 2023Entity or Relation Embeddings? An Analysis of Encoding Strategies for Relation Extractioncited by 0
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military Newscited by 0
- 2026TEAR: Table Extraction with Attribute Recommendation from Texts via Large Language Modelscited by 0
- 2026Steering the Compass: Aligning Dynamic Psychological Counseling Conversations with Cognitive Behavioral Therapy Strategiescited by 0
- 2026SAFARI: An Industrial Benchmark for LLM-Assisted Hazard Analysis and Risk Assessmentcited by 0
- 2026SAFARI: An Industrial Benchmark for LLM-Assisted Hazard Analysis and Risk Assessment17 Sep 2026
- 2026Steering the Compass: Aligning Dynamic Psychological Counseling Conversations with Cognitive Behavioral Therapy Strategies17 Sep 2026
- 2026TEAR: Table Extraction with Attribute Recommendation from Texts via Large Language Models14 Sep 2026
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military News9 Sep 2026
- 2026Mitigating Context-Memory Conflicts in LLMs through Dynamic Cognitive Reconciliation Decoding12 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2025MedFact: A Large-scale Chinese Dataset for Evidence-based Medical Fact-checking of LLM Responses22 Sep 2025
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research19 Jun 2025
- 2025Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detection4 Jun 2025
- 2025Scaling Textual Gradients via Sampling-Based Momentum31 May 2025
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios22 May 2025
- 2025Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Study9 May 2025
25 more
- 2025LLMs Get Lost In Multi-Turn Conversation9 May 2025
- 2025Scaling sparse feature circuit finding for in-context learning18 Apr 2025
- 2025Grounding Agent Reasoning in Image Schemas: A Neurosymbolic Approach to Embodied Cognition31 Mar 2025
- 2025On-the-fly Preference Alignment via Principle-Guided Decoding20 Feb 2025
- 2025A Survey of Large Language Models in Psychotherapy: Current Landscape and Future Directions16 Feb 2025
- 2024Template-Driven LLM-Paraphrased Framework for Tabular Math Word Problem Generation20 Dec 2024
- 2024Detecting Conversational Mental Manipulation with Intent-Aware Prompting11 Dec 2024
- 2024Context-aware Prompt Tuning: Advancing In-Context Learning with Adversarial Methods22 Oct 2024
- 2024Guardians of Discourse: Evaluating LLMs on Multilingual Offensive Language Detection21 Oct 2024
- 2024In-Context Learning for Long-Context Sentiment Analysis on Infrastructure Project Opinions15 Oct 2024
- 2024Document-level Causal Relation Extraction with Knowledge-guided Binary Question Answering7 Oct 2024
- 2024InfiniPot: Infinite Context Processing on Memory-Constrained LLMs2 Oct 2024
- 2024Unsupervised Human Preference Learning30 Sep 2024
- 2024LLM with Relation Classifier for Document-Level Relation Extraction25 Aug 2024
- 2024MAVEN-Fact: A Large-scale Event Factuality Detection Dataset22 Jul 2024
- 2024LLMAEL: Large Language Models are Good Context Augmenters for Entity Linking4 Jul 2024
- 2024ADELIE: Aligning Large Language Models on Information Extraction8 May 2024
- 2024What Makes Multimodal In-Context Learning Work?24 Apr 2024
- 2024Beyond Scaling: Predicting Patent Approval with Domain-specific Fine-grained Claim Dependency Graph22 Apr 2024
- 2024Long-context LLMs Struggle with Long In-context Learning2 Apr 2024
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Process16 Feb 2024
- 2024A Survey to Recent Progress Towards Understanding In-Context Learning3 Feb 2024
- 2023Entity or Relation Embeddings? An Analysis of Encoding Strategies for Relation Extraction18 Dec 2023
- 2023Generating Valid and Natural Adversarial Examples with Large Language Models20 Nov 2023
- 2023Hijacking Large Language Models via Adversarial In-Context Learning16 Nov 2023
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Processcited by 3
- 2024Template-Driven LLM-Paraphrased Framework for Tabular Math Word Problem Generationcited by 3
- 2024Unsupervised Human Preference Learningcited by 1
- 2025Grounding Agent Reasoning in Image Schemas: A Neurosymbolic Approach to Embodied Cognitioncited by 1
- 2025Grounding Agent Reasoning in Image Schemas: A Neurosymbolic Approach to Embodied Cognition31 Mar 2025
- 2024Template-Driven LLM-Paraphrased Framework for Tabular Math Word Problem Generation20 Dec 2024
- 2024Unsupervised Human Preference Learning30 Sep 2024
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Process16 Feb 2024
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 400
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2024What Makes Multimodal In-Context Learning Work?cited by 54
- 2024InfiniPot: Infinite Context Processing on Memory-Constrained LLMscited by 27
- 2024LLMAEL: Large Language Models are Good Context Augmenters for Entity Linkingcited by 19
- 2024Detecting Conversational Mental Manipulation with Intent-Aware Promptingcited by 16
- 2023Generating Valid and Natural Adversarial Examples with Large Language Modelscited by 12
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
- 2024Document-level Causal Relation Extraction with Knowledge-guided Binary Question Answeringcited by 12
- 2025A Survey of Large Language Models in Psychotherapy: Current Landscape and Future Directionscited by 12
- 2024LLM with Relation Classifier for Document-Level Relation Extractioncited by 8
- 2025Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Studycited by 7
12 most cited of 28 All 28 (JSON)
- 2026SAFARI: An Industrial Benchmark for LLM-Assisted Hazard Analysis and Risk Assessment17 Sep 2026
- 2026Steering the Compass: Aligning Dynamic Psychological Counseling Conversations with Cognitive Behavioral Therapy Strategies17 Sep 2026
- 2026TEAR: Table Extraction with Attribute Recommendation from Texts via Large Language Models14 Sep 2026
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military News9 Sep 2026
- 2026Mitigating Context-Memory Conflicts in LLMs through Dynamic Cognitive Reconciliation Decoding12 May 2026
- 2026SERE: Structural Example Retrieval for Enhancing LLMs in Event Causality Identification5 May 2026
- 2025MedFact: A Large-scale Chinese Dataset for Evidence-based Medical Fact-checking of LLM Responses22 Sep 2025
- 2025Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detection4 Jun 2025
- 2025Scaling Textual Gradients via Sampling-Based Momentum31 May 2025
- 2025Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Study9 May 2025
- 2025LLMs Get Lost In Multi-Turn Conversation9 May 2025
- 2025Scaling sparse feature circuit finding for in-context learning18 Apr 2025
12 newest of 28 All 28 (JSON)