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

Gecko:一种高效神经架构,能够处理任意长度的序列

Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths

University of Southern California(美国南加州大学);Meta AI Research(Meta人工智能研究);Carnegie Mellon University(卡内基梅隆大学);University of California San Diego(加州大学圣地亚哥分校);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Xuezhe Ma, Shicheng Wen, Linghao Jin, Bilge Acun, Ruihang Lai, Bohan Hou, Will Lin, Hao Zhang, Songlin Yang, Ryan Lee, Mengxi Wu, Jonathan May, Luke Zettlemoyer, Carole-Jean Wu

AI总结:

Gecko通过改进的神经架构实现高效长序列处理,优于现有模型在效率和长上下文扩展性上的表现。

摘要:

设计一个统一的神经网络,以高效且内在的方式处理任意长度的序列数据,是序列建模中的核心且具有挑战性的问题。Transformer中的设计选择,包括二次复杂度和弱长度外推,限制了其扩展到长序列的能力。在本工作中,我们提出了Gecko,一种继承Mega和Megalodon(指数移动平均加门控注意力)设计的神经架构,并进一步引入多个技术组件以提高其捕捉长距离依赖的能力,包括时间步衰减归一化、滑动块注意力机制和自适应工作内存。在70亿参数和2万亿训练令牌规模的受控预训练比较中,Gecko在效率和长上下文可扩展性方面表现更好。Gecko达到训练损失为1.68,显著优于Llama2-7B(1.75)和Megalodon-7B(1.70),接近Llama2-13B(1.67)。值得注意的是,Gecko不依赖任何上下文扩展技术,展现出内在的长上下文处理和检索能力,稳定处理最多400万个令牌的序列,并能从上下文长度达到其注意力窗口4倍的信息中检索。代码:https://github.com/XuezheMax/gecko-llm

英文摘要:

Designing a unified neural network to efficiently and inherently process sequential data with arbitrary lengths is a central and challenging problem in sequence modeling. The design choices in Transformer, including quadratic complexity and weak length extrapolation, have limited their ability to scale to long sequences. In this work, we propose Gecko, a neural architecture that inherits the design of Mega and Megalodon (exponential moving average with gated attention), and further introduces multiple technical components to improve its capability to capture long range dependencies, including timestep decay normalization, sliding chunk attention mechanism, and adaptive working memory. In a controlled pretraining comparison with Llama2 and Megalodon in the scale of 7 billion parameters and 2 trillion training tokens, Gecko achieves better efficiency and long-context scalability. Gecko reaches a training loss of 1.68, significantly outperforming Llama2-7B (1.75) and Megalodon-7B (1.70), and landing close to Llama2-13B (1.67). Notably, without relying on any context-extension techniques, Gecko exhibits inherent long-context processing and retrieval capabilities, stably handling sequences of up to 4 million tokens and retrieving information from contexts up to $4\times$ longer than its attention window. Code: https://github.com/XuezheMax/gecko-llm

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

↑