arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.10870cs.CLcs.AIcs.LGcs.SDeess.AS
收藏

通过逐层注意力捷径实现自适应大型语言模型

Adaptive Large Language Models By Layerwise Attention Shortcuts

Stanford University(斯坦福大学)

Prateek Verma, Mert Pilanci

AI总结:

本文提出通过注意力机制为类似LLM的架构引入自适应计算捷径,允许最终层关注所有中间层,使架构深度和上下文具有自适应性,在声学token、自然语言和符号音乐数据集上实现了卓越性能。

摘要:

Transformer架构是现代AI革命的基石。然而,它们基于简单地将相同模块堆叠数十层,并从一个模块到另一个模块顺序处理信息。在本文中,我们提出挑战这一点,并为类似LLM的设置引入自适应计算,允许最终层通过注意力机制根据其需要关注所有中间层,从而引入计算性注意力捷径。这些捷径因此能使架构深度和上下文具有自适应性。我们展示了四个不同的数据集,即声学token、自然语言和符号音乐,并在类似GPT的架构上实现了卓越性能。我们通过注意力图提供证据,表明模型学习到了跨层的复杂依赖关系,这些关系根据输入token在上下文和深度上具有自适应性。

英文摘要:

Transformer architectures are the backbone of the modern AI revolution. However, they are based on simply stacking the same blocks in dozens of layers and processing information sequentially from one block to another. In this paper, we propose to challenge this and introduce adaptive computations for LLM-like setups, which allow the final layer to attend to all of the intermediate layers as it deems fit through the attention mechanism, thereby introducing computational \textbf{attention shortcuts}. These shortcuts can thus make the architecture depth and context adaptive. We showcase four different datasets, namely acoustic tokens, natural language, and symbolic music, and we achieve superior performance for GPT-like architecture. We give evidence via attention maps that the models learn complex dependencies across layers that are adaptive in context and depth depending on the input tokens.

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

↑