Reinforcement Fine-Tuning (RFT) has become the gold standard for teaching Large Language Models (LLMs) complex reasoning capabilities. Algorithms like Proximal Policy Optimization (PPO) and Group Relative Policy Optimization (GRPO) are highly effective, but their success is notoriously sensitive to the quality of the training data.
Researchers have recently developed RFT-Inf, the first principled influence estimator designed specifically to quantify how individual training samples impact RFT in LLMs. By selecting just the top 20% of "high-influence" data based on gradient alignment, this method achieves superior reasoning performance and faster convergence compared to training on the full dataset.
The Challenge of Data Selection in RL
While we have mature "influence functions" for Supervised Fine-Tuning (SFT) to identify which samples help or hurt a model, these traditional methods fail in Reinforcement Learning (RL).
RL objectives are non-convex, aim to maximize rewards rather than minimize losses, and involve complex optimization trajectories. This makes standard Hessian-based influence estimates computationally impossible. Until now, researchers have had to rely on heuristics—such as filtering by question difficulty—or empirical intuition to curate RFT datasets. RFT-Inf fills this gap by providing a mathematically grounded way to measure a sample's true utility to the learning process.
The RFT-Inf Solution
RFT-Inf defines the influence of a sample as the expected change in the final training reward if that specific sample were removed from the training set. To make this scalable and avoid the impossible task of retraining the model thousands of times, the authors propose a first-order approximation:
- Surrogate Training: The model is trained for a few "surrogate" epochs on the full dataset (often using LoRA to save memory), and checkpoints are saved.
- Backtracking & Taylor Expansion: The method backtracks through the optimization steps, applying temporal differentiation and a first-order Taylor approximation.
- Gradient Alignment: The resulting estimator simplifies into a lightweight calculation: it measures the alignment (inner product) between an individual sample's gradient and the average gradient of the entire training set.
Intuitively, if a sample’s gradient consistently points in the same direction as the "global" update, it is highly representative and beneficial. If it points elsewhere, it may be noisy or detrimental.
Key Insights: The "Middle Ground" and "Less is More"
The study focuses on mathematical reasoning, utilizing a curated version of the DeepScaleR dataset (~40,000 math problem-answer pairs) and evaluating on benchmarks like AIME24, MATH-500, AMC23, and OlympiadBench using Qwen-1.5B and 7B models.
A major insight from the research is the value of the "middle ground" of difficulty. The most influential samples aren't the easiest or the hardest. Extreme outliers (0% or 100% pass rates) offer low utility. RFT-Inf excels at identifying the most valuable samples within the moderate-difficulty range where the model's learning actually takes place.
Furthermore, the results prove that less is more. Training on the full dataset can introduce noise that degrades performance. By filtering for high-influence data, the model avoids distractions and converges on better reasoning strategies.
Key Results and Performance
RFT-Inf demonstrates that gradient alignment is a powerful proxy for utility. Data that pushes the model in the same direction as the collective average is the most stable and effective for reinforcement learning.
- Superior Performance with 20% Data: On the AIME24 benchmark, using only the top 20% of data selected by RFT-Inf achieved 45.5% accuracy with a 1.5B model. This significantly outperforms training on the full 100% dataset or using heuristic baselines like LIMR or Historical Variance Score (HVS).
- Scaling to 7B: With a 7B model and a 20% data selection ratio, RFT-Inf reached 60.2% on AIME24, a major jump over the next best baseline (57.3%).
- Efficiency: Because the method uses a first-order approximation and can work with LoRA gradients, it provides a substantial efficiency gain over naive retraining approaches, making it highly practical for real-world LLM pipelines.
Limitations and Future Work
While RFT-Inf shows exceptionally strong results on mathematical reasoning tasks, the authors acknowledge that the experimental scale is currently limited. The models tested (up to 7B parameters) and the dataset size (~40k) are relatively small compared to industrial-scale frontier models.
Future work will involve securing more computational resources to validate RFT-Inf on much larger models and across more diverse, non-mathematical datasets to confirm if the "gradient alignment" principle holds universally across all domains of reinforcement learning.
Summary updated