Manuscript Offprint

arXiv:2609.31214

Which Influence Are We Estimating? The Role of Counterfactual Specifications in Data Attribution

Zhe Li, Wei Zhao, Peixin Zhang, Jun Sun

ABSTRACT

Estimating the influence of training examples on model behavior is essential for data debugging, valuation, and attribution. Existing influence estimators often produce incompatible rankings, which are commonly ascribed to approximation error. We argue that a more fundamental source of disagreement is specification mismatch: influence depends on the behavior being attributed, the intervention applied to each training example, and the counterfactual training process that maps the intervention to a model response. These choices are especially important when the target behavior requires a tractable surrogate, such as query loss, a logit, or a margin. We formalize influence as a counterfactual estimand, distinguish specification mismatch across estimands from approximation error in estimating a fixed estimand, and organize representative estimators by their implied specifications. We further derive a local decomposition that exposes how behavior signals, training signals, and counterfactual parameter responses interact. Controlled experiments show that exact estimands under different specifications can induce different rankings, whereas approximation error grows as perturbations move farther from their linearization points. Experiments on noisy label detection and LLM attribution show that specification choices significantly affect attribution quality, especially for the choice of behavior surrogate. Behavior-aligned specifications can identify target-specific training examples obscured by default loss-based or similarity-based specifications. These results establish specification analysis as a necessary first step for interpreting and comparing data influence estimators.

1 INTRODUCTION

Understanding how training examples affect model behavior is a fundamental problem in modern machine learning, with applications in model debugging (Koh & Liang, 2017; Yeh et al., 2018; Pruthi et al., 2020), data selection (Xia et al., 2024; Zhao et al., 2025; Dai et al., 2025), and safety analysis (Lin et al., 2024; Coalson et al., 2025; Li et al., 2026b). A wide range of approaches for estimating the influence of training data (i.e., influence estimators) has been proposed, from retraining-based methods such as leave-one-out evaluation (Molinaro et al., 2005) and data Shapley values (Ghorbani & Zou, 2019; Kwon & Zou, 2021) to more scalable methods based on feature similarity (Yeh et al., 2018; Hanawa et al., 2021; Pezeshkpour et al., 2021; Wang et al., 2024; Yang et al., 2025b; Li et al., 2026b) or gradient information (Hampel, 1974; Ling, 1984; Koh & Liang, 2017; Kwon et al., 2024; Park et al., 2023; Lin et al., 2024). Despite their widespread use, these methods often produce incompatible influence rankings on the same model and dataset (Bae et al., 2022; Basu et al., 2021; Li et al., 2025; Aberger et al., 2025; Li et al., 2026a), as exemplified in Figure 1. This disagreement is particularly difficult to interpret for large language models (LLMs), where retraining-based references are often prohibitively expensive.

These discrepancies are commonly attributed to approximation error since many practical methods replace retraining with local linearizations or cheaper similarity-based scores. However, influence estimators may in fact target different specifications of influence, including the behavior being attributed, the intervention applied, and the counterfactual training process. Changing any of these choices changes the counterfactual question and can alter the influence ranking even when the cor-

Figure

Figure 1: Influence rankings depend on the counterfactual specification. Different behavior surrogates and counterfactual training processes can induce different rankings for the same query.

responding quantity is computed exactly. Among these choices, behavior is especially important when the target behavior is non-differentiable. Practical methods therefore rely on tractable but potentially problematic surrogates, such as query loss or a logit. Query loss remains a common default, but whether it captures the target behavior is often left unexamined. A mismatched surrogate can lead to poor attribution even when the estimator accurately estimates its specified quantity.

To clarify these ambiguities, we introduce an influence specification framework that disentangles specification mismatch from approximation error. Specification mismatch occurs when estimators target different counterfactual quantities, while approximation error occurs when estimators target the same specified quantity but approximate it with different levels of accuracy. Within our framework, the intervention defines what is changed in the training data or objective, whereas the counterfactual training process maps this change to a counterfactual model and determines the resulting parameter response through which the behavior change is measured. We then organize representative influence estimators according to their specifications, and extend a local decomposition of learning dynamics (Ren & Sutherland, 2025) to counterfactual training processes and expose how behavior signals, training signals, and counterfactual parameter responses interact.

We evaluate these distinctions in controlled experiments and practical attribution tasks. Controlled experiments show that methods with different specifications can induce different influence rankings, while approximation error under a fixed specification grows as local approximations move farther from their reference points. Experiments on noisy label detection and LLM attribution further show that behavior specification affects attribution quality and downstream data decisions. In particular, behavior-aligned surrogates can reveal target-specific training examples obscured by default loss-based or similarity-based specifications. These results establish specification analysis as a necessary first step for interpreting and comparing data influence estimators.

Our main contributions are as follows:

• We formalize data influence as a counterfactual estimand and distinguish specification mismatch from approximation error as different sources of ranking disagreement.

• We organize representative influence estimators according to their implied specifications and extend a local decomposition of learning dynamics to counterfactual training processes.

• We show through controlled experiments that changing the specification can alter exact influence rankings, whereas approximation error under a fixed specification distorts rankings as local approximations move away from their reference points.

• We demonstrate on noisy label detection and LLM attribution that behavior-aligned surrogates can improve attribution quality and downstream data decisions, while default loss-based or similarity-based specifications can obscure target-specific training examples.

References (70)