arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.09764cs.CLcs.AI
收藏

大规模Memory Layers

Memory Layers at Scale

Meta FAIR

Vincent-Pierre Berges, Barlas Oğuz, Daniel Haziza, Wen-tau Yih, Luke Zettlemoyer, Gargi Ghosh

AI总结:

本研究改进了可并行化的Memory Layers,在不增加FLOPs的情况下通过键值查找机制为模型添加参数,在1万亿tokens上预训练最高128B参数,在事实性任务上优于计算量两倍的密集模型和参数匹配的MoE模型。

摘要:

Memory layers使用可训练的键值查找机制,在不增加FLOPs的情况下为模型添加额外参数。从概念上讲,稀疏激活的memory layers补充了计算密集的密集前馈层,以低廉的成本提供了专门的容量来存储和检索信息。这项工作将memory layers超越了概念验证阶段,证明了其在当代规模下的实用性。在下游任务中,使用我们改进的memory layer增强的语言模型,表现优于计算预算多出两倍以上的密集模型,以及在计算和参数匹配时的mixture-of-expert模型。我们发现,这种增益在事实性任务中尤为显著。我们提供了一个完全可并行化的memory layer实现,展示了具有高达128B memory参数的缩放定律,预训练至1万亿个tokens,并与具有高达8B参数的基础模型进行了比较。

英文摘要:

Memory layers use a trainable key-value lookup mechanism to add extra parameters to a model without increasing FLOPs. Conceptually, sparsely activated memory layers complement compute-heavy dense feed-forward layers, providing dedicated capacity to store and retrieve information cheaply. This work takes memory layers beyond proof-of-concept, proving their utility at contemporary scale. On downstream tasks, language models augmented with our improved memory layer outperform dense models with more than twice the computation budget, as well as mixture-of-expert models when matched for both compute and parameters. We find gains are especially pronounced for factual tasks. We provide a fully parallelizable memory layer implementation, demonstrating scaling laws with up to 128B memory parameters, pretrained to 1 trillion tokens, comparing to base models with up to 8B parameters.

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

↑