influence function
Efficient Inference for Inverse Reinforcement Learning and Dynamic Discrete Choice Models
van der Laan, Lars, Bibaut, Aurélien, Kallus, Nathan
In many sequential decision-making problems, researchers observe actions but not the rewards that drive behavior, yet wish to evaluate counterfactual policies. Flexible inverse reinforcement learning (IRL) methods accommodate rich reward representations but typically lack valid inference, whereas classical dynamic discrete choice (DDC) methods provide inference under restrictive parametric structure. We develop a semiparametric framework for debiased inverse reinforcement learning in maximum-entropy IRL and Gumbel-shock DDC models. We show that the log behavior policy acts as a pseudo-reward, identifying policy-value differences without point identifying the reward and, under a normalization, yielding a point-identified reward representative. This reduces inference on reward-dependent estimands to inference on smooth functionals of the behavior policy and transition kernel. We establish pathwise differentiability and characterize efficient influence functions through reward and transition Riesz representers, with the transition component obtainable from existing observed-reward off-policy evaluation theory. For normalized rewards, we derive an explicit transformation of these representers that accounts for the normalization constraint. We construct automatic debiased machine-learning estimators that permit flexible nuisance estimation while attaining $\sqrt{n}$-consistency, asymptotic normality, and semiparametric efficiency. We illustrate the theory through efficient inference for fixed-policy values under pseudo-rewards and normalized rewards, and for counterfactual values when the agent reoptimizes over a restricted action set.
Concept Influence: Leveraging Interpretability to Improve Performance and Efficiency in Training Data Attribution
Kowal, Matthew, Paulo, Goncalo, Jaburi, Louis, Tseng, Tom, McKinney, Lev E, Heimersheim, Stefan, Tucker, Aaron David, Gleave, Adam, Pelrine, Kellin
As large language models are increasingly trained and fine-tuned, practitioners need methods to identify which training data drive specific behaviors, particularly unintended ones. Training Data Attribution (TDA) methods address this by estimating datapoint influence. Existing approaches like influence functions are both computationally expensive and attribute based on single test examples, which can bias results toward syntactic rather than semantic similarity. To address these issues of scalability and influence to abstract behavior, we leverage interpretable structures within the model during the attribution. First, we introduce Concept Influence which attribute model behavior to semantic directions (such as linear probes or sparse autoencoder features) rather than individual test examples. Second, we show that simple probe-based attribution methods are first-order approximations of Concept Influence that achieve comparable performance while being over an order-of-magnitude faster. We empirically validate Concept Influence and approximations across emergent misalignment benchmarks and real post-training datasets, and demonstrate they achieve comparable performance to classical influence functions while being substantially more scalable. More broadly, we show that incorporating interpretable structure within traditional TDA pipelines can enable more scalable, explainable, and better control of model behavior through data.
Scaling Influence Functions in LLMs through Eigenbasis-Corrected One-Bit Gradient Projection
Heo, Jaeseung, Rosser, J, Kim, Dongwoo
ABSTRACT Influence functions estimate how individual training examples affect the behavior of large language models (LLMs). Analyzing how training data influence different behaviors of an LLM involves repeated influence computation. Reusing stored training gradients reduces the computational cost, but storing full gradients is prohibitively expensive at LLM scale. We study how to compress these gradients while preserving influence estimates for future queries that are unknown at storage time. Through a worst-case analysis, we characterize the optimal fixeddimensional linear representation and propose eigenbasis-corrected one-bit gradient projection (EOGP) to approximate it at scale. Specifically, EOGP uses EKFAC to reduce gradient dimensionality, then applies PCA within the retained subspace to learn compression directions from the training gradients. We then apply one-bit quantization to the resulting coordinates, allowing more coordinates to be retained within a fixed storage budget. On GPT-2, EOGP predicts retraining outcomes more accurately than the evaluated compression baselines while using one-sixteenth of their per-example storage. On OLMo 2 SFT models from 1B to 32B parameters, EOGP remains competitive with the baselines allocated over 100 times as much storage per example. 1 INTRODUCTION Influence functions are widely used to analyze how training data shape the diverse behaviors of large language models (LLMs). By estimating how individual training examples affect a model's predictions (Koh & Liang, 2017), influence functions provide a common framework for investigating these connections between training data and model behavior. Each attribution query asks which training examples contribute to a particular model output or behavior. Analyzing different behaviors of a fixed model therefore involves multiple queries, but the training-example gradients used in influence estimation can be reused across them. Computing and storing these gradients once would avoid repeated backward passes over the training data as new queries arise. At LLM scale, however, storing full gradients is costly: a single training-example gradient for an 8B-parameter model requires 16 GB in half precision. Supporting repeated attribution queries efficiently thus calls for compact gradient representations that can be stored and reused. Existing gradient-compression methods reduce this storage cost through random (Schioppa, 2024; Choe et al., 2025; Hu et al., 2025) or curvature-informed projections (Schioppa et al., 2022; Choe et al., 2025), representing each gradient with a small number of coordinates.
Bergson: An Open Source Library for Data Attribution
Quirke, Lucia, Jaburi, Louis, Johnston, David, Li, William Z., Paulo, Gonçalo, Martres, Guillaume, Gupta, Girish, Belrose, Nora, Biderman, Stella
Abstractinclude differentiation through the full training trajectory, approximate unrolled differentiation, and Data attribution is a promising field in inter-influence functions. In addition, many heuristic pretability that aims to explain model behav-methods have been proposed to improve the perforior through the influence of its training data, with applications including debugging undesir-mance of influence functions, especially through able model behavior and training dataset cu-gradient normalization (Chang et al., 2024). Modern LLM training involves large-scale datasets even in the fine-tuning stage tooling and support. Bergson is an open(Lambert et al., 2025), resulting in unrealistic mem-source library that closes this gap, providory requirements for many data attribution methodsing a host of techniques that scale to very large language models and pre-training datasets. Additionally, many of the beThe library natively supports on-disk gradi-haviors practitioners wish to study only emerge ent stores and multi-node distributed train-in large models that require multi-node support ing, and provides quality-of-life tools for re- (Brown et al., 2020; Wei et al., 2022).
Rotation-Based Subspace Tracking for Robust Kernel PCA on Streaming Data
Machine learning models process large amounts of data, and Principal Component Analysis (PCA) is a widely used technique to reduce the dimensionality of the data and extract useful features. In practice, datasets often change over time (data drift) and/or arrive one sample at a time (streaming data), making it infeasible to process the entire dataset at once in batch mode. Real-world data also often contains nonlinear patterns, which traditional PCA cannot extract. Kernel PCA addresses this by implicitly mapping samples into a Reproducing Kernel Hilbert Space (RKHS). Raw data also often contains outliers, which can have an outsized effect on the estimated subspace unless the algorithm is made robust. However, existing online robust kernel PCA algorithms are designed to converge to a subspace that is assumed to be fixed, and gradient-descent-based updates lose their effectiveness at tracking further changes once this initial alignment is achieved. This paper introduces a rotation-based update mechanism, which updates the subspace estimate by rotating it toward each new incoming feature vector in Reproducing Kernel Hilbert Space, rather than relying on gradient descent alone. We present two complementary rotation strategies, and show that the extent of rotation can be moderated by a robust influence function to mitigate the effect of outliers. Through experiments on synthetic streaming data with a known ground-truth subspace, we show that per-sample rotations converge faster than gradient descent alone, demonstrating an effective mechanism for dynamically tracking a nonlinear subspace in streaming data.
LLM Evaluation as Tensor Completion: Low Rank Structure and Semiparametric Efficiency
Li, Jiachun, Simchi-Levi, David, Sun, Will Wei
Large language model (LLM) evaluation platforms increasingly rely on pairwise human judgments. These data are noisy, sparse, and non-uniform, yet leaderboards are reported with limited uncertainty quantification. We study this as semiparametric inference for a low-rank latent score tensor observed through pairwise comparisons under Bradley-Terry-Luce-type models. This places LLM evaluation in a new tensor completion setting with structured observations, non-uniform sampling, and pairwise contrasts. Our target is a smooth functional $ψ(T^\star)$, including linear estimands such as ability gaps and nonlinear ones such as win probabilities. We derive the information operator on the low-rank tangent space, the efficient influence function, and the semiparametric efficiency bound, then construct a one-step debiased estimator with asymptotic normality. A central challenge is that the information operator is anisotropic and does not commute with the tangent-space projection, creating a bottleneck absent from isotropic models. We introduce a score-whitening method that equalizes local Fisher information and restores stable inference at the optimal sample-complexity scale. Our results provide a principled framework for uncertainty quantification in LLM evaluation and more broadly for inference on low-rank structures from pairwise data.
Loss Landscape Geometry of Partial Differential Equation Emulators: Or, Symmetry Learning via Gradient Alignment
Amarel, James, Miller, Robyn, Hengartner, Nicolas, Migliori, Benjamin, Casleton, Emily, Skurikhin, Alexei, Lawrence, Earl, Kunde, Gerd J.
We study how neural emulators of partial differential equation solution operators learn physical symmetries from data by introducing a hat-matrix diagnostic that quantifies the alignment of parameter updates between symmetry related training examples. The diagnostic is a metric-weighted overlap of loss gradients evaluated across group orbits, giving a proximal influence function for symmetry-related examples. Our measurements of gradient alignment across both translations and rotations for models trained as autoregressive fluidflow emulators suggest that equivariance arises when training updates propagate gradients coherently throughout symmetry orbits. This finding is based on an empirical correspondence between equivariance error and cross-orbit influence. Both our UNet and ViT architectures exhibit approximate translation equivariance, yet their gradient alignment profiles differ by uniform versus periodically concentrated influence over the orbit. On a NavierStokes dataset, pronounced dihedral equivariance error coincides with suppressed crossinfluence, identifying the failure as due to decoupled learning of symmetry group elements. Our diagnostic is architecture-agnostic and probes a mechanism for learning symmetries from data, extending beyond forward-pass equivariance tests by directly assessing whether learning updates share information across physically equivalent configurations. We identify symmetry generalization performance with symmetry-compatible gradient transport, suggesting that evaluation of scientific machine learning models requires dynamical probes of loss landscape geometry in addition to predictive accuracy.
A Conceptual Framework for Refining Influence Knowledge from Simulation Evidence in Cyber-Physical Systems
Oliveira, Barbara da Silva, Deantoni, Julien, Ferry, Nicolas
Cyber-physical systems (CPS) are typically developed by multiple stakeholders who produce artefacts tailored to their specific domains of expertise. The behaviour of these systems emerges from the interaction between those artefacts and their operational environment. Simulation and co-simulation have become essential approaches for analysing CPS behaviour and, through simulation campaigns, developers can explore system responses under changing conditions, including interactions with the environment. However, the lack of details and understanding of some environmentmediated interactions (typically the ones beyond direct sensing and actuation), which remain unmodelled due to their complexity, a lack of time, or a lack of domain experience, hinders the proper comprehension and exploitation of simulation results. To address these limitations, we propose a conceptual framework leveraging the novel concept of Influences to support the iterative and incremental refinement of simulation campaigns and deepen the understanding of the system behaviour. We demonstrate the proposed approach through a case study involving a mobile robot implemented using Simulink/Gazebo co-simulation.
IF-Guide: Influence Function-Guided Detoxification of LLMs
We study how training data contributes to the emergence of toxic behaviors in large language models. Most prior work on reducing model toxicity adopts *reactive* approaches, such as fine-tuning pre-trained (and potentially toxic) models to align them with human values. In contrast, we propose a *proactive* approach--IF-Guide--that leverages influence functions to identify and suppress harmful tokens in the training data. To this end, we first show that standard influence functions are ineffective at discovering harmful training records. We then present a novel adaptation that measures token-level attributions from training data to model toxicity, along with techniques for selecting toxic training documents and a learning objective that can be integrated into both pre-training and fine-tuning. Moreover, IF-Guide does not rely on human-preference data, which is typically required by existing alignment methods. In our evaluation, we demonstrate that IF-Guide substantially reduces both explicit and implicit toxicity--by up to 10$\times$ compared to uncensored models, and up to 3$\times$ compared to baseline alignment methods such as DPO and RAD--across both pre-training and fine-tuning scenarios. IF-Guide is computationally efficient: a billion-parameter model is *not necessary* for computing influence scores; a million-parameter model--with 7.5$\times$ fewer parameters--can effectively serve as a proxy for identifying harmful data.
Adaptive Data-Borrowing for Improving Treatment Effect Estimation using External Controls
Randomized controlled trials (RCTs) often exhibit limited inferential efficiency in estimating treatment effects due to small sample sizes. In recent years, the combination of external controls has gained increasing attention as a means of improving the efficiency of RCTs. However, external controls are not always comparable to RCTs, and direct borrowing without careful evaluation can introduce substantial bias and reduce the efficiency of treatment effect estimation. In this paper, we propose a novel influence-based adaptive sample borrowing approach that effectively quantifies the "comparability" of each sample in the external controls using influence function theory. Given a selected set of borrowed external controls, we further derive a semiparametric efficient estimator under an exchangeability assumption. Recognizing that the exchangeability assumption may not hold for all possible borrowing sets, we conduct a detailed analysis of the asymptotic bias and variance of the proposed estimator under violations of exchangeability. Building on this bias-variance trade-off, we further develop a data-driven approach to select the optimal subset of external controls for borrowing. Extensive simulations and realworld applications demonstrate that the proposed approach significantly enhances treatment effect estimation efficiency in RCTs, outperforming existing approaches.