GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learning

Ningyuan Yang, Weihua Du, Weiwei Sun, Sean Welleck, Yiming Yang
2/25/2026
cs.LGcs.AIcs.CL

Official code: StigLidu/GradAlign (14 stars, last commit 2026-03-04).

Abstract

Reinforcement learning (RL) has become a central post-training paradigm for large language models (LLMs), but its performance is highly sensitive to the quality of training problems. This sensitivity stems from the non-stationarity of RL: rollouts are generated by an evolving policy, and learning is shaped by exploration and reward feedback, unlike supervised fine-tuning (SFT) with fixed trajectories. As a result, prior work often relies on manual curation or simple heuristic filters (e.g., accuracy), which can admit incorrect or low-utility problems. We propose GradAlign, a gradient-aligned data selection method for LLM reinforcement learning that uses a small, trusted validation set to prioritize training problems whose policy gradients align with validation gradients, yielding an adaptive curriculum. We evaluate GradAlign across three challenging data regimes: unreliable reward signals, distribution imbalance, and low-utility training corpus, showing that GradAlign consistently outperforms existing baselines, underscoring the importance of directional gradient signals in navigating non-stationary policy optimization and yielding more stable training and improved final performance. We release our implementation at https://github.com/StigLidu/GradAlign

View on arXivView PDF

Code Implementations(1)

StigLidu/GradAlignOfficial100%
142Jinja, ShellFeb 24, 20267 months ago

Similar Papers

Cite this paper

@article{yang2026gradalign,
  title  = {GradAlign: Gradient-Aligned Data Selection for LLM Reinforcement Learning},
  author = {Ningyuan Yang and Weihua Du and Weiwei Sun and Sean Welleck and Yiming Yang},
  year   = {2026},
  eprint = {2602.21492},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.21492v1}
}

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

Discussion