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

机制性解释样本难度在RLVR中对大语言模型的作用

Mechanistically Interpreting the Role of Sample Difficulty in RLVR for LLMs

Beijing Jiaotong University(北京交通大学);AntGroup(蚂蚁集团);Northwestern Polytechnical University(西北工业大学);University of Leeds(利兹大学);University of Southampton(南安普顿大学)

Yue Cheng, Jiajun Zhang, Xiaohui Gao, Weiwei Xing, Zheng Wang, Zhanxing Zhu

AI总结:

本文通过难度维度和单样本分析,发现样本难度对RLVR有非单调影响,中等难度问题提供最稳定的推理改进,并基于此提出难度自适应策略。

摘要:

经验表明,带可验证奖励的强化学习(RLVR)能显著提升大语言模型(LLMs)的推理性能,尤其是在数学和编程领域。然而,样本难度在RLVR中的机制性作用仍不明确。本文通过难度维度和单样本分析研究RLVR。我们发现样本难度对RLVR有非单调影响:简单和中等难度问题带来最强且最稳定的推理改进,而过难问题往往提供弱学习信号,诱发退化行为(如重复答案或跳过必要计算),并最终损害模型已有的能力。除了响应层面,我们还利用时间稀疏自编码器(T-SAE)分析模型内部特征动态。简单问题主要强化直接答案和基本计算特征,同时抑制深思熟虑推理特征;困难问题激活推理相关特征,但仅在成功轨迹被采样时才有用;中等难度问题提供更平衡的信号,同时强化计算和多步推理特征。基于这些发现,我们提出了针对困难样本的难度自适应策略,利用反向推理重构和T-SAE引导的训练信号来改善RLVR中的奖励密度和信用分配。总体而言,我们的结果将样本难度识别为控制RLVR优化动态和表示演化的关键因素。

英文摘要:

Reinforcement Learning with Verifiable Reward (RLVR) is empirically shown to notably enhance the reasoning performance of large language models (LLMs), particularly in mathematics and programming. However, the mechanistic role of Sample Difficulty in RLVR remains poorly understood. In this paper, we investigate RLVR through the lens of difficulty-wise and one-sample analysis. We find that sample difficulty has a non-monotonic effect on RLVR: easy and medium-difficulty problems yield the strongest and most stable reasoning improvements, whereas overly hard problems often provide weak learning signals, induce degenerate behaviors such as answer repetition or skipping necessary computation, and can ultimately degrade the model's pre-existing capabilities. Beyond the obverse of response, we further analyze the model's internal feature dynamics using Temporal Sparse Autoencoders (T-SAE). Easy problems mainly reinforce direct-answer and basic-computation features while suppressing deliberative-reasoning features; hard problems activate reasoning-related features but become useful only when successful trajectories are sampled; medium-difficulty problems provide a more balanced signal, strengthening both computation and multi-step reasoning features. Motivated by these findings, we propose difficulty-adaptive strategies for hard-sample utilization, using backward-reasoning reformulation and T-SAE-guided training signals to improve reward density and credit assignment during RLVR. Overall, our results identify sample difficulty as a key factor governing both the optimization dynamics and representation evolution of RLVR.

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

↑