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

章节混合:在变换器中扩展学习记忆

Mixture of Chapters: Scaling Learnt Memory in Transformers

IIT Kharagpur(印度理工学院Kharagpur分校);Fractal AI

Tasmay Pankaj Tibrewal, Pritish Saha, Ankit Meda, Kunal Singh, Pradeep Moturi

AI总结:

本文提出学习稀疏内存银行,通过交叉注意力机制使变换器层检索存储知识,通过章节路由扩展内存容量,实验证明模型在预训练和指令微调中优于基线,展示显式关联记忆的补充能力。

摘要:

Transformers缺乏显式的存储和组织知识的架构机制。我们引入了可学习的稀疏内存银行:一组随机初始化并端到端训练的潜在令牌,变换器层通过交叉注意力机制检索存储的知识。为在不带来压制性注意力成本的情况下扩展内存容量,我们提出受混合专家架构启发的章节路由,将内存银行分成章节,并训练路由器选择相关子集。这使内存容量可扩展到262,000个内存令牌,同时保持可计算性。我们在预训练和指令微调的相关基准上评估了我们的方法,与标准变换器(在等效FLOP设置下)相比,我们的模型在预训练和指令微调中均优于基线,表明存在新的扩展轴,证明显式关联记忆提供了模型参数中隐式捕获的补充容量。此外,我们还观察到在持续训练下知识保留得到改善,在训练阶段之间转换(如预训练到指令微调)时表现出对遗忘的鲁棒性。

英文摘要:

Transformers lack an explicit architectural mechanism for storing and organizing knowledge acquired during training. We introduce learnable sparse memory banks: a set of latent tokens, randomly initialized and trained end-to-end, that transformer layers query via cross-attention to retrieve stored knowledge. To scale memory capacity without prohibitive attention costs, we propose chapter-based routing inspired by Mixture-of-Experts architectures, partitioning the memory bank into chapters and training a router to select relevant subsets per input. This enables scaling to 262K memory tokens while maintaining tractable computation. We evaluate our approach against standard transformers (in iso-FLOP settings) on pre-training and instruction fine-tuning across relevant benchmarks. Our models surpass iso-FLOP baselines suggesting scope for a new axis of scaling, demonstrating that explicit associative memory provides complementary capacity to what is captured implicitly in model parameters. Additionally, we observe improved knowledge retention under continued training, with robustness to forgetting when transitioning between training phases (e.g., pretraining to instruction fine-tuning).

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

↑