VL Norm: Rethink Loss Aggregation in RLVR

Zhiyuan He, Xufang Luo, Yike Zhang, Yuqing Yang, Lili Qiu

TL;DR

Reinforcement Learning with Verifiable Rewards (RLVR) significantly boosts LLM reasoning capabilities but suffers from highly unstable training due to massive variations in response lengths. This paper introduces VL Norm (Variance-reduced Length-dependent Normalization), a simple, 10-line loss aggregation method that mathematically minimizes gradient variance while remaining completely unbiased. It delivers up to 2.67x faster convergence and substantial accuracy gains across math and logic tasks.

What Problem Does This Paper Address?

When training Large Language Models (LLMs) using Reinforcement Learning with Verifiable Rewards (RLVR)—such as solving math problems or code generation where a rule-based checker provides a definitive reward—models generate responses that vary wildly in length. A model might find a concise 50-token solution or ramble for 3,000 tokens before arriving at the correct answer.

This length variability introduces a massive hurdle: high gradient variance. The authors demonstrate both theoretically and empirically that the variance of an unnormalized gradient sample grows linearly with its response length. Longer responses introduce more token-level randomness, which can dominate training updates, stall optimization, or cause model performance to collapse.

Gradient variance scales linearly with response length across Q, K, and V projections.

Existing methods attempt to fix this by normalizing the loss based on length. For instance, GRPO normalizes at the sample level, while DAPO normalizes at the batch level. However, this paper uncovers a critical flaw: these length-dependent normalizations introduce a bias that shrinks parameter updates as response lengths grow, severely slowing down late-stage training. Conversely, methods like Dr. GRPO remove length normalization to remain unbiased but suffer from cripplingly high variance.

Methods

The authors reframe loss aggregation through the lens of classical statistics: finding a Minimum-Variance Unbiased Estimator (MVUE). They treat gradients from different response lengths as independent observations of the true underlying policy gradient, each possessing a variance proportional to its length.

Using the Lagrange multiplier method, they derive the mathematically optimal normalization weights ($x_i$):

$$x_i = \frac{1}{M} \frac{L_i^{-\alpha}}{\sum_{j=1}^G L_j^{-\alpha}}$$

Where $L_i$ is the length of response $i$, $M$ is a constant scaling factor (typically the maximum response length), and $\alpha \in [0, 1]$ is a hyperparameter:

  • When $\alpha = 1$, VL Norm achieves the theoretical minimum variance while remaining completely unbiased.
  • When $0 \le \alpha < 1$, it allows a controlled trade-off: slightly higher variance in exchange for letting longer, potentially richer reasoning paths contribute more heavily to learning.

Crucially, VL Norm requires fewer than 10 lines of code to implement in PyTorch, making it a drop-in replacement for existing loss aggregation steps.

Datasets

The method was evaluated across two primary reasoning domains:

  1. CountDown: Trained on the TinyZero dataset, which tests the model's ability to solve arithmetic puzzle games.
  2. Math: Trained on the Open Reasoner Zero dataset and evaluated across four prominent mathematics benchmarks: MATH500, Minerva, AMC, and AIME2024.

Key Insights and Ideas

  • The Bias-Variance Trap: Previous methods forced an unfavorable trade-off. GRPO and DAPO stabilized training (low variance) but introduced a length-dependent bias that slowed down convergence as the model learned to generate longer chain-of-thought responses. Dr. GRPO was unbiased but unstable. VL Norm breaks this trade-off by being both unbiased and variance-minimized.
  • Entropy Stabilization: High-variance estimators frequently suffer from "entropy spikes"—sudden drops in performance where the model's policy becomes erratic. VL Norm maintains a tight, stable entropy band (between 0.1 and 0.2 on CountDown), preventing these catastrophic training dips.
  • Task-Dependent Length Value: While $\alpha = 1$ minimizes variance, the authors found that $\alpha = 0.75$ performed better on Math tasks. This indicates that longer responses in math contain highly valuable learning signals that shouldn't be penalized too aggressively.

Key Results

  • 2.67x Faster Convergence: When integrated into the state-of-the-art DAPO algorithm on the CountDown task (3B model), VL Norm reached the baseline's peak accuracy (0.866) in just 375 steps instead of 1,000 steps.
  • Higher Final Accuracy: When allowed to train for the full 1,000 steps, DAPO + VL Norm delivered a +4.6% absolute accuracy gain on CountDown.
Figure 2: We integrate the proposed VL Norm into DAPO and evaluate it on the CountDown task and 3B model. Left: While DAPO reaches an accuracy of 0.866 at step 1000, DAPO+VL Norm achieves the same accuracy at step 375, demonstrating a 2.67× faster convergence. Right: When both are trained to step 1000, our method further delivers a 4.6% absolute accuracy gain.
  • Consistent Math Gains: Across Qwen2.5-3B and 7B models, VL Norm consistently achieved the highest weighted average scores across all four math benchmarks (e.g., reaching a 0.592 weighted average on the 7B model compared to 0.573 for GRPO Norm).
  • High Monotonicity: VL Norm achieved near-perfect Pearson correlation scores (>0.94) between training steps and test performance, indicating exceptionally steady, reliable improvement without erratic performance drops.

Limitations and Future Work

  • Hyperparameter Tuning for $\alpha$: The optimal choice of $\alpha$ remains task-dependent. Determining a method to dynamically adapt $\alpha$ during training based on the information density of longer responses is an open area for exploration.
  • Assumption of Independence: The theoretical proof assumes token-level gradients are independent and ignores covariance. While empirical results show the linear variance approximation holds up remarkably well, a more nuanced covariance model could yield even more precise normalization strategies.

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