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

使用分解记忆的语言建模

Language Modeling With Factorization Memory

Rakuten Group, Inc.(Rakuten集团)

Lee Xiong, Maksim Tkachenko, Johanes Effendi, Ting Cai

AI总结:

本文提出了一种基于Mamba-2的高效RNN架构Factorization Memory,通过稀疏更新循环状态子集,在短上下文任务中性能媲美Transformer,并在长上下文场景中展现更优泛化能力。

摘要:

我们提出了 Factorization Memory,这是一种高效的循环神经网络(RNN)架构,在短上下文语言建模任务上实现了与 Transformer 模型相当的性能,同时在长上下文场景中展现出更优的泛化能力。我们的模型基于 Mamba-2 构建,使 Factorization Memory 能够在训练时利用并行计算,同时在推理时保持恒定的计算和内存复杂度。为了进一步优化模型效率和表示能力,我们开发了 Factorization Memory 的稀疏公式,该公式在每一步仅更新循环状态的一个子集,同时保持其密集对应模型的强大性能。据我们所知,这是首个成功将稀疏记忆激活与在短上下文和长上下文设置中均具竞争力的性能相结合的 RNN 架构。这项工作提供了 Factorization Memory 与 Transformer 和 Mamba-2 架构对比的系统实证分析。

英文摘要:

We propose Factorization Memory, an efficient recurrent neural network (RNN) architecture that achieves performance comparable to Transformer models on short-context language modeling tasks while also demonstrating superior generalization in long-context scenarios. Our model builds upon Mamba-2, enabling Factorization Memory to exploit parallel computations during training while preserving constant computational and memory complexity during inference. To further optimize model efficiency and representational capacity, we develop a sparse formulation of Factorization Memory that updates only a subset of recurrent states at each step while preserving the strong performance of its dense counterpart. To our knowledge, this represents the first RNN architecture that successfully combines sparse memory activation with competitive performance across both short and long-context settings. This work provides a systematic empirical analysis of Factorization Memory in comparison to Transformer and Mamba-2 architectures.

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

↑