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

增强型快速权重与下序列预测

Reinforced Fast Weights via Next-Sequence Prediction

Hee Seung Hwang, Xindi Wu, Sanghyuk Chun, Olga Russakovsky, Zhiwei Deng

AI总结:

REFINE通过强化学习框架在下序列预测目标下训练快速权重模型,提升长上下文建模性能。

摘要:

快速权重架构为长上下文建模提供了一种有前景的替代方案,通过保持恒定的内存开销,无论上下文长度如何。然而,其潜力受到下一个令牌预测(NTP)训练范式的限制。NTP优化单个令牌预测并忽略前缀后多个令牌之间的语义一致性。因此,能够动态更新参数以存储上下文信息的快速权重模型学习到次优表示,无法捕捉长距离依赖。我们介绍了REFINE(增强型快速权重与下序列预测),一种强化学习框架,该框架在下序列预测(NSP)目标下训练快速权重模型。REFINE根据预测熵选择信息量大的令牌位置,生成多令牌回放,分配自监督序列级奖励,并通过组相对策略优化(GRPO)优化模型。REFINE适用于预训练语言模型的整个训练生命周期:中期训练、后期训练和测试时训练。我们在LaCT-760M和DeltaNet-1.3B上的实验表明,REFINE在针尖上的 haystack 检索、长上下文问答以及LongBench中的多样化任务上,均优于使用NTP的监督微调。REFINE为改进快速权重架构中的长上下文建模提供了一个有效且多功能的框架。

英文摘要:

Fast weight architectures offer a promising alternative to standard transformers for long-context modeling by replacing the KV-cache with a recurrently updated fixed-size memory. Despite this architectural shift, they are typically trained with the same next-token prediction (NTP) objective as standard transformers. This creates a mismatch: fast weight models rely on an evolving memory state to support future predictions, while NTP provides only token-level supervision for the immediate next token. We address this mismatch with next-sequence prediction (NSP), a sequence-level extension of NTP that trains models to produce coherent multi-token continuations from their recurrent memory state. To optimize this sequence-level objective, we propose ReFINE (Reinforced Fast weIghts via Next sEquence prediction). ReFINE selects informative token positions based on prediction entropy, generates multi-token rollouts, assigns sequence-level rewards, and optimizes the model with Group Relative Policy Optimization (GRPO). ReFINE is applicable throughout the training lifecycle of pre-trained language models: mid-training, post-training, and test-time training. Experiments on LaCT-760M and DeltaNet-1.3B show that ReFINE consistently outperforms NTP-based supervised fine-tuning in needle-in-a-haystack retrieval, long-context question answering, and diverse tasks in LongBench. ReFINE provides an effective and versatile framework for improving long-context modeling in fast weight architectures.

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

↑