NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LearnAlign: Reasoning Data Selection for Reinforcement Learning in Large Language Models Based on Improved Gradient Alignment

Shikun Li, Shipeng Li, Zhiqin Yang, Xinghua Zhang, Gaode Chen, Xiaobo Xia, Hengyu Liu, Zhe Peng · OpenReview

TL;DR

Reinforcement Learning (RL) is great for making Large Language Models (LLMs) better at reasoning, but it's super data-hungry. This paper introduces LearnAlign, a smart way to pick the most useful training data for RL, drastically cutting down the data needed without sacrificing performance. It achieves this by focusing on how "learnable" and "representative" data points are, overcoming common biases in existing methods.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly being fine-tuned using Reinforcement Learning with Verifiable Rewards (RLVR) to improve their reasoning capabilities. However, this process is notoriously data-inefficient, requiring vast amounts of training data to achieve good results. This bottleneck limits the practical application of RLVR, especially for complex reasoning tasks. Existing data selection methods, often designed for supervised fine-tuning (SFT), don't translate well to the RLVR paradigm, and those that do are often computationally expensive. The authors aim to solve this by developing a more efficient and effective data selection strategy specifically for RLVR post-training.

Methods

The core of LearnAlign is a novel approach to selecting data based on gradient alignment and data learnability.

  • Gradient Alignment: This technique measures how much a data point's gradient (representing its influence on the model's learning) aligns with the overall training dynamics. It's inspired by the idea that data points that contribute similarly to the model's loss are more representative of each other and the training process.
  • Data Learnability: To address the bias in gradient norms (which tend to favor shorter responses), the authors introduce a "learnability" score. This score is based on the success rate of a data point, reflecting its learning potential. It's calculated as $p(1-p)$, where $p$ is the success rate, peaking when the task is neither too easy nor too hard for the current model.
  • LearnAlign Score: The final LearnAlign score for a pair of data points combines their learnability-weighted gradient vectors. This score helps identify data points that are both representative and have high learning potential.
  • Procedure: The method involves a four-step process:
  • Warmup Training: A small subset of data is used to train an initial policy model.
  • Learnability Computation: The success rate and learnability of each data point are computed.
  • Gradient Information Estimation: Gradient information is extracted from the warmed-up model.
  • Data Selection: The LearnAlign scores are used to rank and select the top-N most valuable data points.

Datasets

The paper uses several standard datasets for evaluation:

  • GSM8K: A dataset of grade school math problems.
  • MATH500: A subset of mathematical problems.
  • AMC2023: Problems from the American Mathematics Competitions.
  • AIME2024: Problems from the American Invitational Mathematics Examination.
  • CRUX: A code generation benchmark.
  • DAPO-MATH-17K: A dataset for math reasoning.

Key Insights and Ideas

  • RLVR Needs Specialized Data Selection: Traditional SFT data selection methods don't work well for RLVR because the objectives are different. SFT aims to maximize likelihood, while RLVR optimizes for reward, requiring data that matches the model's current capability.
  • Learnability is Key to Overcoming Bias: The response-length bias in gradient norms is a significant issue. Using a success-rate-based learnability score effectively mitigates this bias and better captures a data point's true learning potential.
  • Gradient Alignment + Learnability = Powerful Selection: Combining gradient alignment (for representativeness) with learnability (for learning potential) creates a robust metric that identifies high-value data for RLVR.
  • Small, Curated Datasets Can Be Highly Effective: The research demonstrates that a small, carefully selected subset of data can achieve performance comparable to or even exceeding training on the full dataset. This highlights the importance of data quality over quantity.
  • Faster Convergence: LearnAlign not only reduces data requirements but also leads to faster convergence during training.

Key Results

  • Significant Data Reduction: LearnAlign reduces data requirements by up to 1,000 data points (approximately 13.4% of the full dataset) while achieving comparable or better performance than full-data training on GSM8K. For instance, with 1,000 samples, LearnAlign reached 77.5% accuracy, matching the full-data baseline of 77.0%. With 2,000 samples, it surpassed the full-data training (78.3% vs. 77.0%).
  • Outperforms Baselines: LearnAlign consistently outperforms various baseline data selection methods across multiple benchmarks and model sizes.
  • Generalizability: The method shows consistent effectiveness across different mathematical reasoning and code generation benchmarks, indicating good generalization capabilities.
  • Efficiency: LearnAlign significantly reduces training time and computational cost compared to methods like LIMR. For example, it achieved a 3.74x speedup over LIMR in one experiment.
  • Staged RL Integration: LearnAlign seamlessly integrates into staged RL training procedures, demonstrating its flexibility.

Limitations and Future Work

  • Limited GPU Resources: The authors acknowledge that their evaluation was primarily conducted on relatively small-scale models (1.5B, 3B, and 7B) and datasets due to GPU constraints.
  • Focus on Math Reasoning: The current assessment primarily focuses on math reasoning datasets.
  • Future Work: The authors plan to evaluate LearnAlign on larger models and more diverse datasets. They also suggest exploring extensions to broader task domains, integrating dynamic curricula with adaptive selection strategies, and pursuing alignment with out-of-distribution data. The investigation into principled diversity metrics beyond surface features is also highlighted as an important future direction.

Summary updated

BibTeX
@inproceedings{li2026learnalign,
  author = {Shikun Li and Shipeng Li and Zhiqin Yang and Xinghua Zhang and Gaode Chen and Xiaobo Xia and Hengyu Liu and Zhe Peng},
  title = {{LearnAlign: Reasoning Data Selection for Reinforcement Learning in Large Language Models Based on Improved Gradient Alignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.2009},
}
Figure