Clip Your Sequences Fairly: Enforcing Length Fairness for Sequence-Level RL

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Mao, Hanyi, Xiao, Quanjia, Pang, Lei, Liu, Haixiao
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917006495711232
author Mao, Hanyi
Xiao, Quanjia
Pang, Lei
Liu, Haixiao
author_facet Mao, Hanyi
Xiao, Quanjia
Pang, Lei
Liu, Haixiao
contents We propose FSPO (Fair Sequence Policy Optimization), a sequence-level reinforcement learning method for LLMs that enforces length-fair clipping on the importance-sampling (IS) weight. We study RL methods with sequence-level IS and identify a mismatch when PPO/GRPO-style clipping is transplanted to sequences: a fixed clip range systematically reweights short vs. long responses, distorting the optimization direction. FSPO introduces a simple remedy: we clip the sequence log-IS ratio with a band that scales as $\sqrt{L}$. Theoretically, we formalize length fairness via a Length Reweighting Error (LRE) and prove that small LRE yields a cosine directional guarantee between the clipped and true updates. Empirically, FSPO flattens clip rates across length bins, stabilizes training, and outperforms baselines across model sizes and evaluation datasets, with the largest gains on the Qwen3-8B-Base model.
format Preprint
id arxiv_https___arxiv_org_abs_2509_09177
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Clip Your Sequences Fairly: Enforcing Length Fairness for Sequence-Level RL
Mao, Hanyi
Xiao, Quanjia
Pang, Lei
Liu, Haixiao
Machine Learning
Artificial Intelligence
Computation and Language
We propose FSPO (Fair Sequence Policy Optimization), a sequence-level reinforcement learning method for LLMs that enforces length-fair clipping on the importance-sampling (IS) weight. We study RL methods with sequence-level IS and identify a mismatch when PPO/GRPO-style clipping is transplanted to sequences: a fixed clip range systematically reweights short vs. long responses, distorting the optimization direction. FSPO introduces a simple remedy: we clip the sequence log-IS ratio with a band that scales as $\sqrt{L}$. Theoretically, we formalize length fairness via a Length Reweighting Error (LRE) and prove that small LRE yields a cosine directional guarantee between the clipped and true updates. Empirically, FSPO flattens clip rates across length bins, stabilizes training, and outperforms baselines across model sizes and evaluation datasets, with the largest gains on the Qwen3-8B-Base model.
title Clip Your Sequences Fairly: Enforcing Length Fairness for Sequence-Level RL
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2509.09177