VL Norm: Rethink Loss Aggregation in RLVR

Zhiyuan He, Xufang Luo, Yike Zhang, Yuqing Yang, Lili Qiu · Submission to ICLR 2026 · Rejected

TL;DR

Reinforcement Learning with Verifiable Rewards (RLVR) struggles with unstable optimization because model response lengths vary wildly, causing high gradient variance. The authors formulate loss aggregation across dynamic lengths as a classic minimum-variance unbiased estimation problem, proposing VL Norm—a simple, drop-in replacement (under 10 lines of code) that removes gradient bias and minimizes variance.

What Problem Does This Paper Address?

RLVR has become the primary recipe for training reasoning models (such as DeepSeek-R1 style systems) on math and logic tasks. However, unlike traditional reinforcement learning environments, reasoning trajectory lengths fluctuate dramatically—spanning anywhere from dozens to thousands of tokens and typically expanding over the course of training.

The paper demonstrates that the variance of an unnormalized sample gradient scales roughly linearly with its token length. Existing loss aggregation strategies handle this poorly:

  • Per-sample normalization (GRPO): Divides sample losses by length, introducing a length-dependent bias that artificially shrinks gradient norms as reasoning chains grow longer, slowing late-stage convergence.
  • Batch-level normalization (DAPO): Divides the sum of losses by total batch tokens, which is also biased and suffers from a high coefficient of variation (CV).
  • Constant normalization (Dr. GRPO): Avoids length factors by normalizing with a fixed constant. While unbiased, it incurs high variance and erratic optimization.

Methods

The authors reformulate gradient aggregation over a group of $G$ responses as finding a linear combination $\hat{g} = \sum_{i=1}^G x_i g_i$ that satisfies an unbiasedness constraint ($\sum x_i = 1/M$) while minimizing total variance $\text{Var}[\hat{g}] = V \sum_{i=1}^G L_i x_i^2$, where $L_i$ is the length of trajectory $i$.

Using the Lagrange multiplier method, the unique minimum-variance unbiased estimator assigns weights: $$x_i^\star = \frac{1}{M} \frac{L_i^{-1}}{\sum_{j=1}^G L_j^{-1}}$$

To balance variance reduction against the need to extract rich learning signals from longer reasoning paths, they introduce a hyperparameter $\alpha \in [0, 1]$: $$x_i = \frac{1}{M} \frac{L_i^{-\alpha}}{\sum_{j=1}^G L_j^{-\alpha}}$$

  • $\alpha = 1$: Yields the theoretical minimum-variance unbiased estimator.
  • $\alpha = 0$: Recovers the constant normalization of Dr. GRPO.
  • $0 < \alpha < 1$: Offers a tunable trade-off (e.g., $\alpha = 0.75$ for math tasks).

Implementation requires fewer than 10 lines of PyTorch code, scaling sample losses by normalized inverse lengths prior to reduction.

# Core logic of VL Norm
lengths_norm = lengths / lengths.mean()
inv = lengths_norm ** (-alpha)
w = inv / inv.mean()
loss = (w * sample_losses).mean()

Datasets

The authors evaluated the method across two core tasks and multiple benchmarks:

  • CountDown Task: Trained on the TinyZero dataset; evaluated on a held-out test split of 1,000 problems.
  • Math Reasoning: Trained on the Open Reasoner Zero dataset; evaluated on four benchmark datasets: MATH500, Minerva, AMC, and AIME2024.
  • Evaluated Models: Qwen2.5-3B, Qwen2.5-7B, and Llama-3.2-3B-Instruct, with maximum generation lengths of 3,072 and 8,192 tokens. No new datasets were introduced.

Key Insights and Ideas

  • Empirical Validation of the Linear Variance Assumption: Analyzing over 131,000 rollouts showed a strong linear correlation (Pearson $r = 0.68 \text{ to } 0.91$, $R^2 \approx 0.5\text{–}0.8$) between trajectory length and gradient deviation across attention and MLP projections.
  • Provable Variance Bounds: The authors prove that the coefficient of variation (CV)—noise per unit of gradient norm—strictly satisfies: $$\text{CV}(g_{\text{GRPO}}) = \text{CV}(g_{\text{Ours}, \alpha=1}) \le \text{CV}(g_{\text{Ours}, 0 < \alpha < 1}) \le \text{CV}(g_{\text{DAPO}}) = \text{CV}(g_{\text{Dr. GRPO}})$$
  • Preventing Policy Collapse: Baseline methods with higher CV (DAPO and Dr. GRPO) suffered from frequent policy entropy spikes followed by sharp drops in accuracy. VL Norm kept entropy stable (between 0.1 and 0.2 on CountDown), preventing optimization crashes.

Key Results

  • Superior and Monotonic Convergence: VL Norm achieved the highest monotonic test score correlation (>0.94 Pearson correlation across training steps), reflecting steady progress rather than noisy oscillations.
  • Math Performance: On Qwen2.5-7B, VL Norm achieved a weighted average accuracy of 0.592 (vs. 0.573 for GRPO Norm, 0.578 for DAPO Norm, and 0.579 for Dr. GRPO). On Qwen2.5-3B, it achieved 0.517 (vs. 0.509 for GRPO Norm).
  • CountDown Performance: On Qwen2.5-3B, VL Norm attained an Avg@8 score of 0.847 (vs. 0.811 for GRPO and 0.800 for DAPO), reaching 0.898 when extending context length to 8,192.
  • Variance Reduction: Directly reduced CV by 16.9% to 36.8% across projection layers compared to DAPO and Dr. GRPO.
  • Orthogonal Gains: When combined with DAPO's dynamic sampling, VL Norm pushed 3B CountDown performance to 0.913, outperforming DAPO's heuristic overlong filtering and soft length penalties.

Limitations and Future Work

  • Simplified Variance Assumptions: The theoretical derivation assumes token-level gradients have approximately constant variance and negligible inter-token covariance.
  • Group Baseline Dependence: The derivation treats trajectory gradients within a group as independent, though group-mean baselines introduce minor inter-sample dependencies.
  • Hyperparameter Selection: While $\alpha=1$ is mathematically optimal for variance reduction, tasks with complex reasoning chains (such as Math) benefited from empirical tuning ($\alpha=0.75$) to prevent penalizing informative long rollouts too heavily. Future work could explore adaptive or automated scheduling for $\alpha$.

Summary updated

BibTeX
@misc{he2025vl,
  author = {Zhiyuan He and Xufang Luo and Yike Zhang and Yuqing Yang and Lili Qiu},
  title = {{VL Norm: Rethink Loss Aggregation in RLVR}},
  year = {2025},
  eprint = {2509.07558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07558},
}
Figure