Manuscript Offprint

arXiv:2608.29252

Dynamic Important Example Mining for Reinforcement Finetuning

Haoru Tan, Sitong Wu, Yanfeng Chen, Shizhen Zhao, Yang-Tian Sun, Tianjia Liu, Chirui Chang, Shaofeng Zhang, Samm Sun, Xiuzhe Wu, Ruobing Xie, Xiaojuan Qi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reinforcement fine-tuning (RFT) is increasingly used to strengthen the reasoning abilities of large models, yet its effectiveness is bound by how training data are selected and used. Most data-centric RFT methods rely on static or heuristic sample selection, implicitly assuming a sample's value is fixed over training. This overlooks the non-stationary dynamics of policy learning and can lead to suboptimal updates. We propose Dynamic Important Example Mining (DIEM), a principled and fully automated framework that makes data utilization adaptive throughout RFT. DIEM integrates two components into each optimization step: (i) a gradient-alignment importance estimator that efficiently approximates each sample's marginal contribution to policy improvement; and (ii) a constrained batch reweighting scheme that maximizes aggregate utility while preserving the update's gradient magnitude to stabilize optimization. Across several reasoning benchmarks, DIEM consistently outperforms strong static and dynamic baselines. The code will be released via https://github.com/hrtan/DIEM.

1 Introduction

Reinforcement Fine-Tuning (RFT) has recently emerged as a key paradigm for enhancing the reasoning and alignment capabilities of large-scale vision–language models (Tong et al., 2024; Zhang et al., 2024b; Bai et al., 2025; Chen et al., 2024b; Zhu et al., 2025; Wang et al., 2025a; Li et al., 2024) and language models (Guo et al., 2025; OpenAI, 2024; Team et al., 2025; Hu et al., 2025). By integrating reinforcement learning into the post-training stage, RFT allows models to learn directly from reward signals, refining their decision-making beyond supervised imitation (Chu et al., 2025a). However, the effectiveness of RFT critically depends on how data is utilized during policy optimization (Guo et al., 2025; Li et al., 2025; Luo et al., 2025). The selection, ordering, and weighting of training samples fundamentally determine both the stability of optimization and the generalization of reasoning abilities.

Despite RFT’s inherently dynamic, non-stationary nature, most existing data-centric approaches overlook this dynamism, treating data importance as fixed throughout training. These methods typically pre-select samples using heuristic indicators such as reward variance (Wang et al., 2025b) or difficulty (Li et al., 2025). While such strategies can improve data efficiency, they suffer from a critical limitation: the assumption that a sample’s contribution remains constant across the entire learning trajectory.

Recent advances in reinforcement learning (Gao et al., 2025; Zhang et al., 2025b; Yu et al., 2025) have begun to explore dynamic sample weighting and curriculum scheduling within the RFT framework. For example, Prompt Curriculum Learning (PCL) (Gao et al., 2025) introduces an auxiliary value model to estimate sample difficulty, while SPEED-RL (Zhang et al., 2025b) prioritizes data with intermediate pass rates to maintain balanced learning progression. However, such heuristic metrics

*Personal Email: hrtan@eee.hku.hk

††^{\dagger\dagger} Corresponding author: Sitong Wu and Xiaojuan Qi.

Figure

Figure 1: The pipeline of our proposed dynamic important example mining (DIEM). Compared with the vanilla RFT pipeline, our DIEM introduces only two lightweight steps: (1) Dynamic Data Importance Measuring, which evaluates the importance of each sample within the current batch using our proposed influence estimator in Eq.4; and (2) Dynamic Data Reweighting, which reallocates sample weights based on their importance. The reweighting step is formulated as a constrained optimization problem that preserves the overall gradient magnitude while emphasizing the most important samples (defined in Eq.6, and we further provide an efficient closed-form solution in Eq.7). Overall, DIEM is highly efficient, intuitive, and broadly compatible with existing RFT algorithms (Shao et al., 2024; Hu, 2025; Schulman et al., 2017; 2015).

(e.g., “difficulty score”) fail to capture two essential aspects. First, they do not accurately reflect the policy’s intrinsic preference or fitness for a given sample, since the judgment is made externally, detached from the policy itself. Second, they cannot quantify a sample’s true marginal impact on policy updates, which is crucial for understanding and optimizing the contribution of each example to reasoning improvement.

To address these limitations, we propose Dynamic Important Example Mining (DIEM), a principled and fully automated framework that explicitly models the dynamic contribution of each training sample during the RFT process. Unlike previous heuristic-based methods, DIEM integrates data importance estimation directly into the policy optimization loop, making data utilization an adaptive component of learning rather than a fixed pretraining stage. At every optimization step, DIEM quantifies how much each sample contributes to the current policy improvement and dynamically reweights its influence in subsequent updates. This continuous adjustment transforms data selection from a one-time preprocessing step into a self-organizing, curriculum-like mechanism driven entirely by model dynamics.

Specifically, DIEM consists of two key components executed at every RFT iteration: (1) Dynamic Data Importance Measuring and (2) Dynamic Data Reweighting. For importance measuring, our approach departs from heuristic criteria such as difficulty or entropy (Toneva et al., 2018; Cody Coleman et al., 2019; Zhang et al., 2025b; Gao et al., 2025) and instead introduces a theoretically grounded, gradient-based estimator that directly evaluates each sample's marginal contribution to policy improvement. The estimator computes the alignment between the sample's gradient and the aggregated batch gradient, providing an efficient and mathematically guaranteed proxy for true importance. For data reweighting, we formulate a constrained optimization problem that maximizes the batch's aggregate contribution while maintaining consistent gradient magnitude, thereby stabilizing the optimization trajectory and avoiding large step-size fluctuations. This joint mechanism converts data selection into an intrinsic part of RFT, enabling adaptive curriculum formation and stable credit assignment throughout training.

We extensively evaluate DIEM on large-scale multimodal reasoning benchmarks. Across all benchmarks, DIEM consistently outperforms strong static and dynamic baselines, providing a significant performance uplift to the base RFT algorithm of approximately 1%-6%, while introducing only a minimal additional 1.2% training overhead. Moreover, DIEM demonstrates broad compatibility with diverse RFT algorithms (Shao et al., 2024; Schulman et al., 2015; 2017; Hu, 2025), confirming its general applicability. Furthermore, we demonstrate that this dynamic reweighting intrinsically induces a powerful, self-organizing curriculum learning paradigm (Sec. 5.5).

We summarize our primary contributions as follows:

  1. We introduce a novel, theoretically-grounded, fully automated, and highly efficient dynamic data selection framework that significantly boosts the performance of RFT with negligible computational overhead.

  2. We develop a dynamic importance indicator based on gradient-based alignment to precisely quantify the marginal contribution of individual samples, moving decisively beyond static or heuristic scoring methods.

  3. DIEM consistently achieves the best performance with a minimal additional 1.2% training overhead. Furthermore, we demonstrate that this dynamic reweighting intrinsically induces a powerful, self-organizing curriculum learning paradigm (Sec. 5.5).

References (57)