arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.04580cs.LGcs.AI
收藏

上下文学习中的技术债务:长上下文中的效率递减

Technical Debt in In-Context Learning: Diminishing Efficiency in Long Context

Department of Industrial Engineering & Management Sciences(工业工程与管理科学系)

Taejong Joo, Diego Klabjan

AI总结:

本文通过元ICL框架和贝叶斯最优估计器对比,发现ICL在长上下文下样本效率显著下降,并通过信息论分析证明该递减为固有特性,为设计新型自适应方法提供依据。

摘要:

Transformer 已展现出卓越的上下文学习(ICL)能力,通过简单地对演示进行条件化处理即可适应新任务,而无需更新参数。令人信服的实证和理论证据表明,作为一种通用型学习器,ICL 可能优于特定任务模型。然而,与原则性学习算法相比,Transformer 在多大程度上能最优地进行上下文学习,目前仍不清楚。为探究此问题,我们采用了一个元 ICL 框架,其中每个提示定义一个独特的回归任务,其目标函数从分层分布中抽取,需要对潜在模型类别和任务特定参数进行推断。在此设置下,我们在不同的性能要求下,将 ICL 的样本复杂度与原则性学习算法(包括贝叶斯最优估计器)进行基准比较。我们的发现揭示了一个显著的二分法:虽然 ICL 最初能达到与贝叶斯最优估计器相当的效率,但其效率在长上下文中显著恶化。通过信息论分析,我们表明这种效率递减是 ICL 固有的。这些结果阐明了采用 ICL 作为通用问题求解器的权衡,激励了新一代无需效率递减的即时自适应方法的开发。

英文摘要:

Transformers have demonstrated remarkable in-context learning (ICL) capabilities, adapting to new tasks by simply conditioning on demonstrations without parameter updates. Compelling empirical and theoretical evidence suggests that ICL, as a general-purpose learner, could outperform task-specific models. However, it remains unclear to what extent the transformers optimally learn in-context compared to principled learning algorithms. To investigate this, we employ a meta ICL framework in which each prompt defines a distinctive regression task whose target function is drawn from a hierarchical distribution, requiring inference over both the latent model class and task-specific parameters. Within this setup, we benchmark sample complexity of ICL against principled learning algorithms, including the Bayes optimal estimator, under varying performance requirements. Our findings reveal a striking dichotomy: while ICL initially matches the efficiency of a Bayes optimal estimator, its efficiency significantly deteriorates in long context. Through an information-theoretic analysis, we show that the diminishing efficiency is inherent to ICL. These results clarify the trade-offs in adopting ICL as a universal problem solver, motivating a new generation of on-the-fly adaptive methods without the diminishing efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑