Imbalanced Gradients in RL Post-Training of Multi-Task LLMs

Runzhe Wu, Ankur Samanta, Ayush Jain, Scott Fujimoto, Jeongyeol Kwon, Ben Kretzu, Youliang Yu, Kaveh Hassani, Boris Vidolov, Yonathan Efroni · DOI

Introduction

Reinforcement Learning (RL) has become a cornerstone of post-training for Large Language Models (LLMs), enabling them to excel across diverse domains such as coding, mathematics, and logical reasoning. However, a significant challenge persists: when training on multiple tasks simultaneously, some tasks generate gradients up to 33 times larger than others. This "gradient imbalance" allows certain tasks to dominate the optimization process, effectively "bullying" others. This paper investigates whether these high-magnitude gradients actually signal important learning or if they are merely noise that degrades overall performance.

The Gradient Imbalance Problem

The standard practice in multi-task RL involves mixing datasets and training uniformly. This approach assumes that each task contributes roughly equal pressure to the model's updates. If Task A produces a massive gradient while Task B produces a tiny one, the optimizer will prioritize Task A, effectively ignoring Task B. While well-documented in computer vision, this phenomenon has remained a "black box" in the context of LLM post-training. The authors explore whether "loud" gradients represent critical learning gains or are simply artifacts of inherent task geometry.

Methodology

The study utilized instruction-tuned versions of Qwen2.5 (3B and 7B) and Llama-3.2 (3B). Models were trained using Group Relative Policy Optimization (GRPO). The researchers tracked:

  1. Squared Gradient Norms: To measure the "volume" of task-specific updates.
  2. Learning Gains: Defined as the actual increase in training reward over time.
  3. Sampling Strategies: Comparing standard Uniform Sampling against Gradient-Proportional Sampling (allocating more training to high-gradient tasks).

Experiments were conducted across two settings:

  • Multi-domain: A mix of Code, Countdown (arithmetic puzzles), MATH, and FinQA.
  • Single-domain (Math): Tasks of varying difficulty including DeepScaleR (hard), MATH (medium), and Arithmetic (easy).

Key Insights: The Loudest Task Isn't the Smartest

A primary finding is that gradient magnitude is almost entirely uncorrelated with actual learning gains across tasks. For instance, in the multi-domain setting, the "Code" task often produced the largest gradients but yielded the lowest improvement in rewards.

Figure 5: Gradient norms, learning gains, and training rewards for multi-domain tasks (Code, Countdown, MATH, FinQA).

In the math domain, the "Arithmetic" task exhibited squared gradients up to 33x larger than more complex tasks like DeepScaleR. In a naive mixture, this simple task would dictate the training direction despite offering diminishing returns in learning.

Figure 2: Squared gradient norms and learning gains for math-specific tasks of varying difficulty.

The researchers found that standard metrics like reward levels or prompt lengths could not explain this imbalance, suggesting it stems from the "inherent geometry" of the tasks—some loss landscapes are naturally steeper than others.

Experimental Results

The study tested the hypothesis that training more on tasks with larger gradients would improve performance. Surprisingly, Gradient-Proportional Sampling failed, often lowering overall average performance. While it slightly improved the "loud" tasks, it caused significant performance drops in others.

Conversely, Uniform Sampling remained superior. This confirms that gradient magnitude is a misleading proxy for task priority. Furthermore, while the "advantage function" (a common RL metric) correlates with gradient magnitude within a task, it fails as a predictor across different tasks.

Conclusion and Future Directions

This diagnostic study identifies gradient imbalance as a "silent killer" in multi-task RL training. Because "loud" gradients do not equate to "important" learning, future research must focus on principled gradient-level corrections. Potential solutions include "gradient surgery" to resolve conflicts or reconsidering optimization geometry (e.g., mirror descent) to normalize gradients across domains. Addressing this imbalance is crucial for developing more robust and balanced multi-task LLMs.

Summary updated

BibTeX
@inproceedings{wu2026imbalanced,
  author = {Runzhe Wu and Ankur Samanta and Ayush Jain and Scott Fujimoto and Jeongyeol Kwon and Ben Kretzu and Youliang Yu and Kaveh Hassani and Boris Vidolov and Yonathan Efroni},
  title = {{Imbalanced Gradients in RL Post-Training of Multi-Task LLMs}},
  booktitle = {EACL (Findings)},
  year = {2026},
  doi = {10.18653/v1/2026.findings-eacl.164},
}
Figure