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

自定义模型能否进行上下文学习?混合架构在上下文学习任务上的性能探索

Can Custom Models Learn In-Context? An Exploration of Hybrid Architecture Performance on In-Context Learning Tasks

UC Berkeley(加州大学伯克利分校)

Ryan Campbell, Nelson Lojo, Kesava Viswanadha, Christoffer Grondal Tryggestad, Derrick Han Sun, Sriteja Vijapurapu, August Rolfsen, Anant Sahai

AI总结:

本研究探索GPT-2/LLaMa和LLaMa/Mamba混合架构在上下文学习中的性能,提出ICL回归分数指标,并发现某些架构变化影响训练效率与准确率。

摘要:

上下文学习(ICL)是一种通过提示序列实现任务学习而无需参数更新的现象。与其它序列模型变体相比,具有绝对位置嵌入的多头注意力(MHA)中的ICL受到更多研究关注。我们考察了GPT-2与LLaMa以及LLaMa与Mamba之间架构差异的影响。我们将Garg等人(2022)和Park等人(2024)的工作扩展到GPT-2/LLaMa混合模型和LLaMa/Mamba混合模型,研究序列变换块与上下文回归性能之间的相互作用。我们注意到,某些架构变化通过收敛到次优预测器或收敛速度较慢而导致训练效率和ICL准确率下降。我们还发现某些混合模型显示出乐观的性能提升,为未来以ICL为重点的架构修改提供了参考。此外,我们提出了“ICL回归分数”,一个描述模型在特定任务上整体性能的标量指标。计算限制对我们的架构空间、训练时长、训练运行次数、函数类复杂度和基准复杂度施加了约束。为了促进可复现和可扩展的研究,我们提供了一个类型化、模块化且可扩展的Python包,所有实验均在该包上运行。

英文摘要:

In-Context Learning (ICL) is a phenomenon where task learning occurs through a prompt sequence without the necessity of parameter updates. ICL in Multi-Headed Attention (MHA) with absolute positional embedding has been the focus of more study than other sequence model varieties. We examine implications of architectural differences between GPT-2 and LLaMa as well as LlaMa and Mamba. We extend work done by Garg et al. (2022) and Park et al. (2024) to GPT-2/LLaMa hybrid and LLaMa/Mamba hybrid models - examining the interplay between sequence transformation blocks and regressive performance in-context. We note that certain architectural changes cause degraded training efficiency/ICL accuracy by converging to suboptimal predictors or converging slower. We also find certain hybrids showing optimistic performance improvements, informing potential future ICL-focused architecture modifications. Additionally, we propose the "ICL regression score", a scalar metric describing a model's whole performance on a specific task. Compute limitations impose restrictions on our architecture-space, training duration, number of training runs, function class complexity, and benchmark complexity. To foster reproducible and extensible research, we provide a typed, modular, and extensible Python package on which we run all experiments.

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

↑