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

Guobin Shen, Chenxiao Zhao, Xiang Cheng, Lei Huang, Xing Yu
2/11/2026
16 citations
cs.LGcs.AI
moerl

Official code: FloyedShen/VESPO (37 stars, Python, Apache-2.0, last commit 2026-02-12).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

FloyedShen/VESPOOfficial100%
Apache-2.0
375Python, ShellFeb 11, 20269 months agoApache-2.0

Similar Papers

Cite this paper

@article{shen2026vespo,
  title  = {VESPO: Variational Sequence-Level Soft Policy Optimization for Stable Off-Policy LLM Training},
  author = {Guobin Shen and Chenxiao Zhao and Xiang Cheng and Lei Huang and Xing Yu},
  year   = {2026},
  eprint = {2602.10693},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.10693v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.10693.svg)](https://codeofpaper.com/paper/2602.10693)

Discussion