DRIFT: Refining Instruction Data via On-Policy Data Attribution

Zefan Wang, Lincheng Li, Tianyu Yu, Yuan YaoarXiv 2026

TL;DR

DRIFT introduces a novel data curation framework that pushes the performance ceiling of already fully-trained Large Language Models (LLMs). By using the model's own on-policy rollouts as validation anchors and applying a task-specific gradient debiasing technique, DRIFT makes Influence Functions robust enough to select the most impactful 10% of data for continual fine-tuning, consistently outperforming traditional data selection baselines.

What Problem Does This Paper Address?

Most data curation methods for Supervised Fine-Tuning (SFT) focus on efficiency—finding the smallest subset of data that maintains baseline performance to save on compute. But what if compute isn't the constraint, and you want to maximize the model's absolute capability upper bound?

If a model is already fully trained on a dataset, simply training it more on the same data yields diminishing returns. To break through this saturation, we need instance-level data attribution: identifying exactly which training samples can further improve the model.

Mathematically, Influence Functions (IF) are perfect for this, as they estimate the impact of a training sample on a validation target without retraining the model. However, standard IF formulations break down when applied to LLMs due to two major flaws:

  1. The Proximity Gap: IF relies on a local Taylor approximation, assuming microscopic parameter shifts. When using external, off-policy validation data, reducing the loss requires large global parameter shifts, violating this core assumption.
  2. Gradient Hacking/Norm Bias: Raw influence scores are heavily distorted by gradient magnitudes. Standard IF spuriously favors outlier samples or shorter responses with abnormally large gradient norms, rather than samples that genuinely help the validation objective.

Methods

The authors propose DRIFT (Data Refinement via On-Policy Influence Functions for Supervised Fine-Tuning) to systematically fix these vulnerabilities. The pipeline consists of four main steps:

Figure 2: Overview of DRIFT (Data Refinement via On-Policy Influence Functions for Supervised Fine-Tuning). We first sample on-policy responses for a small set of validation queries. We then assign each rollout positive or negative weights according to correctness, aggregate their projected gradients into task-specific validation anchors, and use these anchors to score the original SFT corpus. After debiasing the resulting influence scores against gradient norm, we continually fine-tune on the top-ranked subset to obtain a refined model.
  1. On-Policy Proximal Validation Construction: Instead of using static external reference datasets, DRIFT prompts the fully-trained base model to generate its own responses (rollouts) to validation queries. Because these targets lie on the model's current parameter manifold, they minimize the required parameter shift, preserving the local neighborhood assumption of IF.
  2. Policy Gradient IF Formulation: Instead of standard cross-entropy loss, the validation objective is framed as maximizing expected reward. Correct rollouts get a reward of $+1$, and incorrect ones get $-1$. This turns the validation gradient into a REINFORCE-like policy gradient estimator, allowing the model to reinforce successful reasoning paths and penalize bad ones.
  3. Influence Debiasing via Log-Space Orthogonalization: The authors discovered that the relationship between raw influence scores and gradient norms follows a complex power law ($|S| \propto \|\phi\|^\beta$). To decouple them, DRIFT performs a linear regression in log-scale for each task to calculate a task-specific slope ($\beta$), then mathematically orthogonalizes the raw scores to eliminate gradient magnitude dominance.
  4. Continual Training: The entire SFT dataset is ranked using these debiased scores, and the model undergoes continual SFT on the top-ranked subset (defaulting to the top 10%).

Datasets

The authors evaluated DRIFT on two open-source 7B-parameter models that were already fully converged on their respective SFT datasets:

  • Olmo3-7B-Instruct-SFT (originally trained on the 1.92M-sample Dolci-Instruct-SFT-No-Tools dataset).
  • OpenR1-Distill-7B (originally trained on the 349k-sample Mixture-of-Thoughts dataset).

Curation & Evaluation Setup

To guide data attribution, they built a validation query set spanning math, code, knowledge, and reasoning using subsets of Minerva MATH, MBPP, BBH, and MMLU-Pro.

To ensure the model wasn't just overfitting to the validation topics, evaluation was split into:

  • Target Domains: BBH, MBPP+, MATH, MMLU-Pro.
  • Non-Target Domains (Entirely Unseen): ZebraLogic, LiveCodeBench v5, OlympiadBench, and GPQA Diamond.

Key Insights and Ideas

  • On-Policy Generation Saves the Math: As shown in Figure 1, using off-policy validation targets causes massive parameter shifts during training. On-policy validation targets keep the parameter updates microscopic, aligning perfectly with the theoretical prerequisites of Influence Functions.
Figure 1: Evolution of model proximity during continual training. The plots illustrate the rel- ative changes (∆) in parameter L2 norm and sparsity compared to the uniform weighting baseline. On-policy validation causes signif- icantly fewer parameter shifts, which we hy- pothesize better aligns with the local neighbor- hood assumption of IF.
  • Anchoring vs. Distilling: Directly fine-tuning a model on its own successful rollouts (Self-Distillation) causes severe overfitting and performance collapse due to the small scale of validation sets. DRIFT avoids this by using rollouts strictly as anchors to pull diverse, high-quality samples from the massive original SFT corpus.
  • Cosine Similarity is Not Enough: Standard practice uses cosine similarity to normalize gradients. DRIFT proves this is insufficient because the gradient norm bias in LLMs is non-linear. Log-space orthogonalization is required to successfully push pathological or corrupted data out of the top rankings.

Key Results

DRIFT consistently broke through the performance saturation of both fully-trained models, outperforming all major data curation baselines (including LESS, DSIR, and Qurating).

Table 1: Comprehensive evaluation of DRIFT against existing data curation baselines on Olmo3-7B- Instruct-SFT and OpenR1-Distill-7B. Under the rigorous setting of refining fully-converged models, DRIFT consistently elevates the performance upper bound across both target and non-target domains, whereas conventional efficiency-driven methods struggle. Best results are highlighted in bold.
  • Olmo3-7B-Instruct-SFT: DRIFT achieved the highest average accuracy improvement ($+0.95\%$ overall), with a notable $+1.14\%$ boost in completely unseen non-target domains. Traditional methods like LESS and DSIR actually degraded the model's performance compared to a random baseline.
  • OpenR1-Distill-7B: On this reasoning-focused model, DRIFT pushed the average performance up by $+1.43\%$ overall and a massive $+2.49\%$ on non-target domains. Meanwhile, Self-Distillation suffered a catastrophic performance collapse (dropping average accuracy by $7.90\%$).

Limitations and Future Work

  • Approximation Scope: The study primarily validates DRIFT using the GraSS sparse random projection infrastructure. Its compatibility with other influence estimation algorithms, like structural Hessian approximations (e.g., EK-FAC), remains untested.
  • Theoretical Origins of Bias: While log-space orthogonalization empirically fixes the gradient norm bias, the underlying geometric reasons why high-dimensional LLM gradients follow this specific power-law distribution are still opaque.
  • Anomalous Data Leakage: While per-task orthogonalization successfully filters out the vast majority of corrupted or ill-formed training samples, a tiny fraction of noisy data can still bypass the debiasing mechanism, meaning more advanced filtering techniques are still needed for perfect data curation.

Summary updated

BibTeX
@misc{wang2026drift,
  author = {Zefan Wang and Lincheng Li and Tianyu Yu and Yuan Yao},
  title = {{DRIFT: Refining Instruction Data via On-Policy Data Attribution}},
  year = {2026},
  eprint = {2606.18307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.18307},
}
Figure