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

过去并非过去:记忆增强的动态奖励塑造

The Past Is Not Past: Memory-Enhanced Dynamic Reward Shaping

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院)

Yang Liu, Enxi Wang, Yufei Gao, Weixin Zhang, Bo Wang, Zhiyuan Zeng, Yikai Zhang, Yining Zheng, Xipeng Qiu

AI总结:

本文提出MEDS框架,通过整合历史行为信号改进奖励设计,提升大语言模型的探索多样性与性能,实验显示在多个数据集上取得显著提升。

摘要:

尽管强化学习在大语言模型中取得成功,但常见的失败模式是采样多样性降低,政策反复生成相似错误行为。经典熵正则化鼓励当前策略下的随机性,但未明确抑制跨轨迹的重复失败模式。我们提出MEDS,一种记忆增强的动态奖励塑造框架,通过存储和利用中间模型表示,捕捉过去轨迹的特征,并利用基于密度的聚类识别频繁重复的错误模式。被分配到更常见错误聚类的轨迹将受到更严厉惩罚,从而鼓励更广泛的探索并减少重复错误。在五个数据集和三个基础模型上,MEDS始终优于现有基线,平均性能提升达4.13个pass@1点和4.37个pass@128点。此外,使用基于LLM的注释和定量多样性指标的进一步分析表明,MEDS在采样过程中增加了行为多样性。

英文摘要:

Despite the success of reinforcement learning for large language models, a common failure mode is reduced sampling diversity, where the policy repeatedly generates similar erroneous behaviors. Classical entropy regularization encourages randomness under the current policy, but does not explicitly discourage recurrent failure patterns across rollouts. We propose MEDS, a Memory-Enhanced Dynamic reward Shaping framework that incorporates historical behavioral signals into reward design. By storing and leveraging intermediate model representations, we capture features of past rollouts and use density-based clustering to identify frequently recurring error patterns. Rollouts assigned to more prevalent error clusters are penalized more heavily, encouraging broader exploration while reducing repeated mistakes. Across five datasets and three base models, MEDS consistently improves average performance over existing baselines, achieving gains of up to 4.13 pass@1 points and 4.37 pass@128 points. Additional analyses using both LLM-based annotations and quantitative diversity metrics show that MEDS increases behavioral diversity during sampling.

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

↑