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

线性与二次注意力模型中的上下文学习:在回归任务上的实证研究

In-Context Learning in Linear vs. Quadratic Attention Models: An Empirical Study on Regression Tasks

University of California, Berkeley(加州大学伯克利分校)

Ayush Goel, Arjun Kohli, Sarvagya Somvanshi

AI总结:

本文通过实证研究比较了线性与二次注意力模型在回归任务中的上下文学习表现,分析了模型深度对性能的影响,并揭示了两者在ICL任务中的异同。

摘要:

近期研究表明,transformers和线性注意力模型可以在简单的函数类(如线性回归)上执行上下文学习(ICL)。在本文中,我们实证研究了这两种注意力机制在Garg等人提出的经典线性回归任务上的ICL行为差异。我们评估了每种架构的学习质量(MSE)、收敛性和泛化行为。我们还分析了增加模型深度对ICL性能的影响。我们的结果展示了线性注意力与二次注意力在此设置中的相似性和局限性。

英文摘要:

Recent work has demonstrated that transformers and linear attention models can perform in-context learning (ICL) on simple function classes, such as linear regression. In this paper, we empirically study how these two attention mechanisms differ in their ICL behavior on the canonical linear-regression task of Garg et al. We evaluate learning quality (MSE), convergence, and generalization behavior of each architecture. We also analyze how increasing model depth affects ICL performance. Our results illustrate both the similarities and limitations of linear attention relative to quadratic attention in this setting.

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

↑