LongAct:利用内在激活模式促进长上下文强化学习
LongAct: Harnessing Intrinsic Activation Patterns for Long-Context Reinforcement Learning
AI总结:
本文提出LongAct方法,通过利用长上下文推理中的稀疏结构,改进大语言模型的训练,提升长上下文处理能力与泛化性能。
摘要:
强化学习(RL)已成为增强大语言模型(LLMs)推理能力的关键驱动力。尽管近期进展集中在奖励工程或数据合成,但很少有研究利用模型的内在表示特性来指导训练过程。本文首先观察到处理长上下文时查询和键向量中存在高幅激活。受模型量化启发,我们发现这些高幅激活对模型优化至关重要。基于此,我们提出LongAct策略,从均匀更新转向基于显著性引导的稀疏更新。通过仅更新与这些显著激活相关的权重,LongAct在LongBench v2上实现了约8%的提升,并在RULER基准上增强了泛化能力。此外,我们的方法表现出显著的通用性,能提升多种RL算法如GRPO和DAPO的性能。广泛消融研究表明,聚焦这些显著特征是解锁长上下文潜力的关键。
英文摘要:
Reinforcement Learning (RL) has emerged as a critical driver for enhancing the reasoning capabilities of Large Language Models (LLMs). While recent advancements have focused on reward engineering or data synthesis, few studies exploit the model's intrinsic representation characteristics to guide the training process. In this paper, we first observe the presence of high-magnitude activations within the query and key vectors when processing long contexts. Drawing inspiration from model quantization -- which establishes the criticality of such high-magnitude activations -- and the insight that long-context reasoning inherently exhibits a sparse structure, we hypothesize that these weights serve as the pivotal drivers for effective model optimization. Based on this insight, we propose LongAct, a strategy that shifts from uniform to saliency-guided sparse updates. By selectively updating only the weights associated with these significant activations, LongAct achieves an approximate 8% improvement on LongBench v2 and enhances generalization on the RULER benchmark. Furthermore, our method exhibits remarkable universality, consistently boosting performance across diverse RL algorithms such as GRPO and DAPO. Extensive ablation studies suggest that focusing on these salient features is key to unlocking long-context potential.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。