Lune

ICLR2024顶会

How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?

Jingfeng Wu, Difan Zou, Zixiang Chen, Vladimir Braverman, Quanquan Gu, Peter L. Bartlett

摘要

Transformers pretrained on diverse tasks exhibit remarkable in-context learning (ICL) capabilities, enabling them to solve unseen tasks solely based on input contexts without adjusting model parameters. In this paper, we study ICL in one of its simplest setups: pretraining a linearly parameterized single-layer linear attention model for linear regression with a Gaussian prior. We establish a statistical task complexity bound for the attention model pretraining, showing that effective pretraining only requires a small number of independent tasks. Furthermore, we prove that the pretrained model closely matches the Bayes optimal algorithm, i.e., optimally tuned ridge regression, by achieving nearly Bayes optimal risk on unseen tasks under a fixed context length. These theoretical findings complement prior experimental research and shed light on the statistical foundations of ICL.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 60 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context 引用了 Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection
  • Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context 引用了 Language Models are Few-Shot Learners
  • Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context 引用了 Transformers Learn In-Context by Gradient Descent
  • Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection 引用了 Language Models are Few-Shot Learners
  • Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection 引用了 Transformers Learn In-Context by Gradient Descent
  • Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context
  • A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection
  • A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 Transformers Learn In-Context by Gradient Descent
  • A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • An Explanation of In-context Learning as Implicit Bayesian Inference 引用了 Language Models are Few-Shot Learners
  • Can large language models explore in-context? 引用了 Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context
  • Can large language models explore in-context? 引用了 Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection
  • Can large language models explore in-context? 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Can large language models explore in-context? 引用了 Language Models are Few-Shot Learners
  • Can large language models explore in-context? 引用了 Transformers Learn In-Context by Gradient Descent
  • Can large language models explore in-context? 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains 引用了 Language Models are Few-Shot Learners
  • The Evolution of Statistical Induction Heads: In-Context Learning Markov Chains 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • Why Larger Language Models Do In-context Learning Differently? 引用了 Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Context
  • Why Larger Language Models Do In-context Learning Differently? 引用了 Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection
  • Why Larger Language Models Do In-context Learning Differently? 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Why Larger Language Models Do In-context Learning Differently? 引用了 Language Models are Few-Shot Learners
  • Why Larger Language Models Do In-context Learning Differently? 引用了 Transformers Learn In-Context by Gradient Descent
  • Why Larger Language Models Do In-context Learning Differently? 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • Transformers Learn In-Context by Gradient Descent 引用了 Language Models are Few-Shot Learners
  • Transformers Learn In-Context by Gradient Descent 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper60

  1. The Evolution of Statistical Induction Heads: In-Context Learning Markov ChainsEzra Edelman, Nikolaos Tsilivis, Benjamin L. Edelman, Eran Malach 等NeurIPS 2024 · 140 次引用
  2. Can large language models explore in-context?Akshay Krishnamurthy, Keegan Harris, Dylan J. Foster, Cyril Zhang 等NeurIPS 2024 · 95 次引用
  3. A Theoretical Understanding of Self-Correction through In-context AlignmentYifei Wang, Yuyang Wu, Zeming Wei, Stefanie Jegelka 等NeurIPS 2024 · 69 次引用
  4. Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In ContextXiang Cheng, Yuxin Chen, Suvrit SraICML 2024 · 64 次引用
  5. Why Larger Language Models Do In-context Learning Differently?Zhenmei Shi, Junyi Wei, Zhuoyan Xu, Yingyu LiangICML 2024 · 54 次引用

它引用的 Paper17

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. An Explanation of In-context Learning as Implicit Bayesian InferenceSang Michael Xie, Aditi Raghunathan, Percy Liang, Tengyu MaICLR 2022 · 1,030 次引用
  3. What Can Transformers Learn In-Context? A Case Study of Simple Function ClassesShivam Garg, Dimitris Tsipras, Percy Liang, Gregory ValiantNeurIPS 2022 · 883 次引用
  4. Transformers Learn In-Context by Gradient DescentJohannes von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento 等ICML 2023 · 729 次引用
  5. Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm SelectionYu Bai, Fan Chen, Huan Wang, Caiming Xiong 等NeurIPS 2023 · 356 次引用

相关 Paper

  1. Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressionAllan Raventós, Mansheej Paul, Feng Chen, Surya GanguliNeurIPS 2023 · 174 次引用
  2. When can in-context learning generalize out of task distribution?Page C. Goddard, Lindsay M. Smith, Vudtiwat Ngampruetikorn, David J. SchwabICML 2025
  3. In-Context Learning with Representations: Contextual Generalization of Trained TransformersTong Yang, Yu Huang, Yingbin Liang, Yuejie ChiNeurIPS 2024 · 45 次引用
  4. In-Context Learning Is Provably Bayesian Inference: A Generalization Theory for Meta-LearningTomoya Wakayama, Taiji SuzukiICML 2026 · 12 次引用
  5. Transformers are Minimax Optimal Nonparametric In-Context LearnersJuno Kim, Tai Nakamaki, Taiji SuzukiNeurIPS 2024 · 42 次引用
黄昏的海面,两侧是细线勾勒的悬崖