Manuscript Offprint

arXiv:2609.02771

From Reweighting to Rewriting: Unlocking the Intervention Effects of Influential Samples in Training Data Attribution

Yuzhang Luo, Chenpeng Wang, Jianhui Chen, Liangming Pan

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

ABSTRACT

Training data attribution (TDA) aims to identify training examples that shape model behavior, but its intervention value depends on both which examples are selected and how they are modified. Influence functions (IF) estimate behavioral changes under infinitesimal reweighting, yet IF-selected examples often show limited advantages over random selection under conventional weight-based interventions. This raises the question of whether influential examples lack intervention value or whether reweighting fails to realize their behavioral leverage. We introduce influence-guided response rewriting, which uses IF to identify intervention targets and replaces their responses with behavior-aligned or behavior-opposed supervision while keeping instructions fixed. Across four open-weight LLMs, we compare rewriting and reweighting on the same influence-selected examples using epistemic abstention as our primary testbed. Response rewriting produces stronger, more persistent, and bidirectional behavioral shifts, while reweighting the same examples yields weak and inconsistent effects. Further analyses show that influence-selected examples provide greater rewriting leverage than alternative selectors, with changes remaining concentrated on target-relevant behaviors. The same qualitative contrast extends to safety refusal. These results distinguish the local reweighting effects captured by influence estimates from the broader intervention leverage of the examples they identify, motivating intervention-aware evaluation of TDA methods.

1 INTRODUCTION

Large language models (LLMs) acquire diverse capabilities and behaviors from their training data, yet which training examples give rise to these behaviors remains poorly understood. Training data attribution (TDA) addresses this question by assigning training examples scores that quantify their contribution to a target model quantity (Koh & Liang, 2017; Pruthi et al., 2020; Guo et al., 2021). Influence functions (IF) provide one such approach by estimating how that quantity would change if a training example were infinitesimally reweighted, and have increasingly been applied to attribute LLM predictions, capabilities, and behaviors (Grosse et al., 2023; Deng et al., 2025).

Beyond retrospective attribution, a central practical goal of TDA is to support actionable data interventions. A common approach is to use IF to identify training examples that strongly affect a target behavior, and then upweight or remove those examples in training to steer the model. However, recent studies find that IF-selected examples often provide little advantage over random selection under such weight-based interventions in modern LLMs (Li et al., 2025; Lee et al., 2026a). Yet this negative result conflates two distinct questions: whether IF identifies the right examples to intervene on, and whether the intervention itself can effectively alter what those examples teach the model. It

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 1: Overview of our framework. IF identifies training examples associated with a target behavior, which we intervene on through weight-based operations or response rewriting.

therefore remains unclear whether IF-selected examples are intrinsically poor intervention targets, or whether weight-based interventions simply fail to realize their behavioral leverage.

We study this problem in the supervised fine-tuning (SFT) setting, where intervention need not be limited to changing how much an example contributes during training. Instead, we can directly modify what the example teaches the model by rewriting its response while keeping the instruction fixed. Motivated by this distinction, we propose influence-guided response rewriting, where IF determines where to intervene and response rewriting determines what behavioral signal to provide (Figure 1). By rewriting responses to either encourage or discourage a target behavior, this framework both provides an actionable form of TDA and allows us to test whether influence-selected examples contain intervention leverage that is obscured by conventional weight-based interventions.

To investigate whether influence-guided response rewriting can reveal such hidden intervention leverage, we compare it with conventional weight-based interventions and matched controls. This comparison allows us to disentangle the value of influence-guided example selection from the limitations of a particular intervention strategy. More broadly, our study reframes TDA intervention from asking whether influential examples respond to reweighting, to asking whether influence scores identify training examples with actionable behavioral potential and how such potential can be effectively realized. To be specific, we make the following three contributions:

  • Influence-guided response rewriting. We introduce a supervision-level intervention framework for SFT that decouples example selection from intervention design. Specifically, influence functions identify high-leverage training examples, while response rewriting modifies the behavioral signal provided by these examples.

  • Revealing hidden behavioral leverage of influential examples. We evaluate influence-guided interventions across four open-weight LLMs, primarily on language-model abstention (Zhang et al., 2024; Wen et al., 2025; Kirichenko et al., 2026). Compared with conventional reweighting and matched controls, response rewriting consistently achieves stronger, more stable, and bidirectional behavioral shifts across model families and training stages. These results show that influential examples can contain substantial behavioral leverage that is not effectively realized through weight-based interventions. We further observe similar trends for safety-related refusal.

  • Characterizing the source and scope of intervention leverage. Through controlled analyses, we investigate why influence-guided rewriting is effective. We show that response rewriting redirects the local supervision signal associated with influential examples, while maintaining target specificity and avoiding degradation of model capabilities.

2 RELATED WORK

References (75)

  • Knowledge of knowledge: Exploring known-unknowns uncertainty with large language models (opens the publisher in a new tab)
  • If influence functions are the answer, then what is the question? Advances in Neural Information Processing Systems, 35:17953–17967, 2022
  • Inffeed: Influence functions as a feedback to improve the performance of subjective tasks
  • Contextual noncompliance in language models
  • Mechanistic data attribution: Tracing the training origins of interpretable LLM units
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Training Verifiers to Solve Math Word Problems
  • A Survey of Data Attribution: Methods, Applications, and Evaluation in the Era of Generative AI. working paper or preprint, August 2025
  • Don't hallucinate, abstain: Identifying llm knowledge gaps via multi-llm collaboration
  • Fast approximate natural gradient descent in a kronecker factored eigenbasis (opens the publisher in a new tab)
  • Studying large language model generalization with influence functions, 2023 (opens arXiv in a new tab)
  • Fastif: Scalable influence functions for efficient model interpretation and debugging
  • Wildguard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of llms
  • ToxiGen: A large-scale machine-generated dataset for adversarial and implicit hate speech detection
  • Position: Trustllm: Trustworthiness in large language models
  • From in-the-wild jailbreaks to (adversarially) safer language models
  • Language Models (Mostly) Know What They Know
  • Abstentionbench: Reasoning llms fail on unanswerable questions
  • Understanding black-box predictions via influence functions
  • Resolving training biases via influence-based data relabeling
  • Which data attributes stimulate math and code reasoning? An investigation via influence functions
  • Concept influence: Leveraging interpretability to improve performance and efficiency in training data attribution
  • Bayesian influence functions for hessian-free data attribution
  • Detecting (un) answerability in large language models with linear directions
  • Data filtering works a lot worse than you would expect
  • Influence dynamics and stage-wise data attribution
  • The WMDP benchmark: Measuring and reducing malicious use with unlearning
  • Do influence functions work on large language models? In EMNLP (Findings), pp. 14367–14382, 2025
  • Harmbench: A standardized evaluation framework for automated red teaming and robust refusal
  • 2 olmo 2 furious (opens arXiv in a new tab)
  • Trak: Attributing model behavior at scale
  • Bbq: A hand-built bias benchmark for question answering
  • Estimating training data influence by tracing gradient descent
  • Infusion: Shaping model behavior by editing training data via influence functions (opens arXiv in a new tab)
  • Xtest: A test suite for identifying exaggerated safety behaviours in large language models
  • do anything now
  • Uncertainty-based abstention in llms improves safety and reduces hallucinations
  • Know your limits: A survey of abstention in large language models
  • Alignment for honesty
  • Do large language models know what they don't know? In Findings of the association for Computational Linguistics: ACL 2023, pp. 8653–8665, 2023
  • Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 4791–4800, 2019
  • R-tuning: Instructing large language models to say 'i don't know'
  • Grait: Gradient-driven refusal-aware instruction tuning for effective hallucination mitigation
  • Utilize the flow before stepping into the same river twice: Certainty represented knowledge flow for refusal-aware instruction tuning (opens the publisher in a new tab)
  • Differentiating the first-order optimality condition of Equation 6 with respect to $\epsilon$ gives
  • The per-example gradient with respect to $W$ is $\nabla_{W}\mathcal{L}=\delta a^{\top}$
  • We fit separate EK-FAC blocks for the tracked MLP layers, yielding a block-diagonal approximation to the curvature over all tracked MLP parameters
  • Because classical influence functions are local quantities defined with respect to a particular model checkpoint and its local training geometry, this comparison requires a common reference point
  • A numerical difference between them cannot be attributed specifically to rewriting the response, nor should their absolute magnitudes be interpreted as directly comparable
  • Rather than relying on an inverse Hessian, local BIF measures dependence between losses under a posterior distribution localized around a given checkpoint
  • We use $\rho$ directly so that positive values have the same qualitative interpretation as our classical influence score: the training-example loss and target loss tend to decrease together under local parameter variation
  • Given shared samples
  • It therefore avoids the asymmetric reference geometry of Section B.1
  • The latter is designed to test whether the rewriting effectiveness of influence-selected examples can be explained by simpler notions of behavioral relevance, gradient salience, or first-order target alignment
  • Given hidden representations $h \in \mathbb{R}^d$ extracted at a fixed layer and token position, we train a linear probe to distinguish answerable from unanswerable inputs
  • Aligned rewriting increases recall substantially for both influence-selected groups across all four models
  • Although the intervention is not fully calibrated, fine-tuning this trade-off presents a promising direction for future research
  • Recall that our attribution query set is constructed primarily from answer_unknown and false_premise
  • Figure 10 reports results on underspecified_context
  • We evaluate the OLMo2-1B checkpoints on GSM8K (Cobbe et al., 2021), HellaSwag (Zellers et al., 2019), ARC-Challenge (ARC-C), and ARC-Easy (ARC-E) (Clark et al., 2018)
  • HellaSwag remains nearly unchanged across all conditions, while ARC-C and ARC-E exhibit only modest fluctuations around the baseline
  • Importantly, neither the helpful nor harmful end of the influence ranking exhibits a consistent additional capability cost relative to the corresponding random rewriting baselines
  • Unless otherwise specified, the main experiments use $k = 1{,}600$ examples, corresponding to 2.5% of the SFT training set, and $\alpha = 2$ for upweighting
  • ><tr><td>Intervention</td><td>Selection</td><td>GSM8K</td><td>HellaSwag</td><td>ARC-C</td><td>ARC-E</td></tr><tr><td>Baseline</td><td>–</td><td>38.74</td><td>62.75</td><td>37.97</td><td>61.55</td></tr><tr><td rowspan=
  • All other training and evaluation settings are held fixed
  • The strongest consistency appears within the same model family: OLMo2-1B and OLMo2-7B share 41.5% of their top examples and 49.5% of their bottom examples
  • Nevertheless, the transferred selections generally retain pronounced behavioral effects and remain substantially separated from random selection
  • Though both result in the model declining to answer, the underlying causes are fundamentally different—epistemic uncertainty versus policy violation—and conflating them would confound interventions
  • Following the OLMo2-1B training recipe, we shuffle the dataset with a fixed seed and take the first 64,000 examples for all interventions to ensure consistent data ordering across runs
  • The interventions differ only in how they modify the example's supervision, while the selection itself is held fixed at 1,600 examples and applied identically across conditions
  • We apply all four interventions to both helpful and harmful example selections
  • ><tr><td>Pool</td><td>Size</td><td>Use</td><td>Example</td></tr><tr><td>Abstention refuse</td><td>80</td><td>abstention-aligned rewriting</td><td>“I cannot independently verify the premises underlying your question, so I am unable to provide a useful response
  • The safety pool requires explicit references to safety policies or harmful content
  • For each question, we generate a target answer using DeepSeek-Chat (DeepSeek-AI, 2026)
  • WildGuard prompts retain their verified refusal responses when available