LSPO: Length-aware Dynamic Sampling for Policy Optimization in LLM Reasoning

Weizhe Chen, Sven Koenig, Bistra Dilkina
10/1/2025
cs.LGcs.CL

No official code found. Best implementation: laonahongchen/LSPO (1 star, Apache-2.0, last commit 2025-10-06).

Abstract

Since the release of Deepseek-R1, reinforcement learning with verifiable rewards (RLVR) has become a central approach for training large language models (LLMs) on reasoning tasks. Recent work has largely focused on modifying loss functions to make RLVR more efficient and effective. In this paper, motivated by studies of overthinking in LLMs, we propose Length-aware Sampling for Policy Optimization (LSPO), a novel meta-RLVR algorithm that dynamically selects training data at each step based on the average response length. We evaluate LSPO across multiple base models and datasets, demonstrating that it consistently improves learning effectiveness. In addition, we conduct a detailed ablation study to examine alternative ways of incorporating length signals into dynamic sampling, offering further insights and highlighting promising directions for future research.

View on arXivView PDF

Code Implementations(1)

laonahongchen/LSPOCommunity69%
Apache-2.0

Official repo for paper: "LSPO: Length-aware Dynamic Sampling for Policy Optimization in LLM Reasoning"

10Jinja, ShellOct 6, 20251 years agoApache-2.0

Cite this paper

@article{chen2025lspo,
  title  = {LSPO: Length-aware Dynamic Sampling for Policy Optimization in LLM Reasoning},
  author = {Weizhe Chen and Sven Koenig and Bistra Dilkina},
  year   = {2025},
  eprint = {2510.01459},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.01459v1}
}

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/2510.01459.svg)](https://codeofpaper.com/paper/2510.01459)

Discussion