ACL Findings2023
What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learning
Jane Pan, Tianyu Gao, Howard Chen, Danqi Chen
摘要
Large language models (LLMs) exploit incontext learning (ICL) to solve tasks with only a few demonstrations, but its mechanisms are not yet well-understood. Some works suggest that LLMs only recall already learned concepts from pre-training, while others hint that ICL performs implicit learning over demonstrations. We characterize two ways through which ICL leverages demonstrations. Task recognition (TR) captures the extent to which LLMs can recognize a task through demonstrations -even without ground-truth labels -and apply their pre-trained priors, whereas task learning (TL) is the ability to capture new input-label mappings unseen in pre-training. Using a wide range of classification datasets and three LLM families (GPT-3, LLaMA and OPT), we design controlled experiments to disentangle the roles of TR and TL in ICL. We show that (1) models can achieve non-trivial performance with only TR, and TR does not further improve with larger models or more demonstrations; (2) LLMs acquire TL as the model scales, and TL's performance consistently improves with more demonstrations in context. Our findings unravel two different forces behind ICL and we advocate for discriminating them in future ICL research due to their distinct nature. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 57 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Function Vectors in Large Language Models 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
- Function Vectors in Large Language Models 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- Function Vectors in Large Language Models 引用了 Transformers Learn In-Context by Gradient Descent
- Data Distributional Properties Drive Emergent In-Context Learning in Transformers 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
- Data Distributional Properties Drive Emergent In-Context Learning in Transformers 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- Understanding Catastrophic Forgetting in Language Models via Implicit Inference 引用了 Transformers Learn In-Context by Gradient Descent
- Impact of Pretraining Term Frequencies on Few-Shot Numerical Reasoning 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- A Survey on In-context Learning 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- A Survey on In-context Learning 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
- A Survey on In-context Learning 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- A Survey on In-context Learning 引用了 Transformers Learn In-Context by Gradient Descent
- A Survey on In-context Learning 引用了 Many-Shot In-Context Learning
- Transformers Learn In-Context by Gradient Descent 引用了 Data Distributional Properties Drive Emergent In-Context Learning in Transformers
- Many-Shot In-Context Learning 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
- Many-Shot In-Context Learning 引用了 Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
- Many-Shot In-Context Learning 引用了 Transformers Learn In-Context by Gradient Descent
引用它的顶会 Paper57
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng 等EMNLP 2024 · 479 次引用
- Large Language Models Are Not Robust Multiple Choice SelectorsChujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou 等ICLR 2024 · 424 次引用
- Many-Shot In-Context LearningRishabh Agarwal, Avi Singh, Lei Zhang, Bernd Bohnet 等NeurIPS 2024 · 271 次引用
- Function Vectors in Large Language ModelsEric Todd, Millicent L. Li, Arnab Sen Sharma, Aaron Mueller 等ICLR 2024 · 229 次引用
- Understanding Catastrophic Forgetting in Language Models via Implicit InferenceSuhas Kotha, Jacob Mitchell Springer, Aditi RaghunathanICLR 2024 · 131 次引用
它引用的 Paper8
- An Explanation of In-context Learning as Implicit Bayesian InferenceSang Michael Xie, Aditi Raghunathan, Percy Liang, Tengyu MaICLR 2022 · 1,030 次引用
- Transformers Learn In-Context by Gradient DescentJohannes von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento 等ICML 2023 · 729 次引用
- Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe 等EMNLP 2022 · 634 次引用
- Data Distributional Properties Drive Emergent In-Context Learning in TransformersStephanie C. Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang 等NeurIPS 2022 · 407 次引用
- Impact of Pretraining Term Frequencies on Few-Shot Numerical ReasoningYasaman Razeghi, Robert L. Logan IV, Matt Gardner, Sameer SinghEMNLP Findings 2022 · 89 次引用
相关 Paper
- What Do Language Models Learn in Context? The Structured Task HypothesisJiaoda Li, Yifan Hou, Mrinmaya Sachan, Ryan CotterellACL 2024 · 5 次引用
- Unveiling In-Context Learning: A Coordinate System to Understand Its Working MechanismAnhao Zhao, Fanghua Ye, Jinlan Fu, Xiaoyu ShenEMNLP 2024 · 2 次引用
- Prior Forgetting and In-Context OverfittingSungyoon LeeNeurIPS 2025 · 1 次引用
- Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head AnalysisHaolin Yang, Hakaze Cho, Naoya InoueICLR 2026 · 2 次引用
- Which Attention Heads Matter for In-Context Learning?Kayo Yin, Jacob SteinhardtICML 2025
