TL;DR
Dynamic Important Example Mining (DIEM) is a fully automated framework that adaptively reweights training data at every step of Reinforcement Fine-Tuning (RFT). By measuring how well an individual sample's gradient aligns with the overall batch gradient, DIEM organically creates a self-organizing curriculum that accelerates reasoning performance while adding a negligible ~1.2% computational overhead.
What Problem Does This Paper Address?
Reinforcement Fine-Tuning (RFT) has become a vital strategy for boosting the complex reasoning capabilities of large language and vision-language models. However, the success of RFT depends heavily on how data is selected and weighted during training.
Most current approaches rely on static selection (filtering data before training starts) or heuristic dynamic selection (using external models to estimate sample difficulty or pass rates). These methods suffer from a shared flaw: they assume a sample's value is fixed, or they rely on external proxies that fail to capture the model's actual, rapidly evolving internal state during training. Because policy learning is inherently non-stationary, a data point that is highly informative at step 10 might be completely useless—or even detrimental—by step 100.
Methods
DIEM solves this by integrating data selection directly into the training loop via two lightweight steps executed at every iteration:
- Dynamic Data Importance Measuring: Instead of using an expensive auxiliary model, DIEM calculates a "Gradient Alignment Estimator." It computes the inner product between an individual sample’s policy gradient and the aggregated batch gradient. If a sample's gradient points in a similar direction as the batch (high positive score), it is deemed highly beneficial for convergence. If it points away (negative score), it is flagged as detrimental or noisy.
- Dynamic Data Reweighting: Once importance scores are calculated, DIEM formulates a constrained optimization problem to maximize the batch's total learning utility. Crucially, it enforces a constraint that preserves the original unweighted gradient magnitude, ensuring optimization stability. This problem yields a clean, quasi-closed-form solution via Lagrange multipliers, requiring only a single inversion of a small Gram matrix. Any remaining negative weights are clipped to zero.
Datasets
The authors evaluated DIEM across both text-based and multimodal reasoning tasks:
- LLM Training & Evaluation: Trained on 14,973 math problems (sourced from MATH and dapo-math). Evaluated on MATH-500, Gaokao23en, AMC-23, AIME24, and AIME25.
- VLM Training & Evaluation: Trained on 52K multimodal entries from the MM-Eureka corpus. Evaluated on six benchmarks: MathVista, MathVerse, MathVision, MMStar, MMMU, and AI2D.
Key Insights and Ideas
- Gradients as the Ultimate Proxy: Rather than guessing a sample's difficulty using external metrics, looking directly at gradient alignment provides a mathematically grounded, intrinsic measure of how much a sample will actually contribute to the current policy update.
- An Emergent Curriculum: Tracking the weights over time reveals that DIEM naturally induces an easy-to-hard curriculum. Early on, the algorithm prioritizes easy and medium samples. As the model masters them, their weights drop sharply, and the framework automatically shifts its focus to harder examples without any hand-crafted scheduling rules.
- Efficiency is King: Because DIEM reuses gradient information already computed during standard backpropagation, it bypasses the need for separate inference or surrogate model training.
Key Results
DIEM consistently outperformed vanilla RFT (GRPO) and strong data-selection baselines (like HVS and LIMR) across various model sizes (Qwen series from 1.7B to 32B parameters).
- Mathematical Reasoning: DIEM achieved absolute average accuracy gains of up to +3.36% over standard GRPO. The improvements were most pronounced on ultra-hard competition benchmarks; for instance, on AIME25, DIEM boosted Qwen2.5-7B performance from 5.5% to 10.8% (a 96% relative gain).
- Multimodal Reasoning: On the Qwen2.5-VL-7B base, DIEM achieved an average score of 61.8% across six benchmarks, outperforming the Vanilla RFT baseline by 3.6% and even eclipsing GPT-4o's average score (60.9%).
- Speed and Overhead: While other dynamic data selection methods increased training times to 79–122 hours, DIEM completed training in 71.2 hours—adding only a 1.28% overhead compared to vanilla RFT (70.3 hours).
Limitations and Future Work
The paper notes a minor outlier in the LLM evaluations: on the AMC-23 benchmark using the Qwen3-4B model, DIEM scored slightly lower than the baseline GRPO (55.0 vs 58.5), though it improved performance on AMC-23 for all other model sizes. Beyond this specific model-benchmark pair, broader limitations or explicit directions for future algorithmic extensions were not discussed in detail within the main text.
Summary updated