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

VESPO:变分序列级软策略优化用于稳定的反政策LLM训练

VESPO: Variational Sequence-Level Soft Policy Optimization for Stable Off-Policy LLM Training

Xiaohongshu Inc(小红书公司)

Guobin Shen, Chenxiao Zhao, Xiang Cheng, Lei Huang, Xing Yu

AI总结:

本文提出VESPO,通过变分方法减少反政策更新中的方差,提升大语言模型在严重反政策条件下的稳定性,实验显示其在数学推理和代码生成任务中优于现有基线方法。

摘要:

在强化学习中,由于异步训练导致的rollout老化和训练与推理引擎的不匹配,反政策更新是不可避免的。朴素的重要性采样虽能提供无偏修正,但高方差问题加剧,尤其在无界比率和自回归生成中更为显著。先前的解决方案要么依赖特定场景的工程,要么通过token级裁剪或序列级归一化权衡偏倚与方差。本文提出变分序列级软策略优化(VESPO),通过将方差减少显式纳入变分公式,推导出一个原理性的闭式重塑核,直接操作序列级重要权重,避免token级近似和长度归一化,并为部署核提供显式的方差界。实验表明,在数学推理和代码生成任务中,VESPO在严重反政策条件下(老化高达64倍)保持稳定训练,并在密集模型和混合专家(MoE)模型中均获得一致提升,优于近期的重塑基线方法。代码可在https://github.com/FloyedShen/VESPO获取。

英文摘要:

Off-policy updates are inevitable in reinforcement learning (RL) for large language models (LLMs) due to rollout staleness from asynchronous training and mismatches between training and inference engines. Naive importance sampling gives an unbiased correction but suffers from high variance, which is amplified by unbounded ratios and autoregressive generation. Prior remedies either rely on scenario-specific engineering, or trade bias for variance via token-level clipping or sequence-level normalization, yet these approaches remain largely heuristic. We propose Variational sEquence-level Soft Policy Optimization (VESPO). By explicitly incorporating variance reduction into a variational formulation, we derive a principled closed-form reshaping kernel that operates directly on sequence-level importance weights, avoids token-level approximation and length normalization, and admits an explicit variance bound for the deployed kernel. Experiments on math reasoning and code generation show that VESPO maintains stable training under severe off-policy conditions (staleness up to 64x) and delivers consistent gains across both dense and Mixture-of-Experts (MoE) models, outperforming recent reshaping baselines under matched setup. Code is available at https://github.com/FloyedShen/VESPO.

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

↑