Manuscript Offprint
arXiv:2609.37842Scaling Influence Functions in LLMs through Eigenbasis-Corrected One-Bit Gradient Projection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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 fixed-dimensional linear representation and propose eigenbasis-corrected one-bit gradient projection (EOGP) to approximate it at scale. Specifically, EOGP uses EK-FAC 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). Their applications include studying generalization (Grosse et al., 2023; Ruis et al., 2025; Kou et al., 2025), selecting data for fine-tuning (Zhou et al., 2024; Heo et al., 2026; Chen et al., 2026), and identifying training examples that contribute to undesired behavior (Zhang et al., 2025; Coalson et al., 2025). 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. The central challenge is deciding which information these coordinates should preserve. Since future attribution queries are not known when the representations are constructed, compression must retain information that remains useful across different subsequent influence calculations.
We address this challenge by defining a compression objective based on the discrepancy between influence scores computed from compressed and uncompressed gradients across possible future queries. Under a normalized worst-case influence-error criterion, we show that the top-k PCA coordinates of half-whitened training gradients are optimal among k-dimensional linear representations. This result provides a concrete target for constructing reusable gradient representations.
To approximate this target at LLM scale, we propose Eigenbasis-corrected One-bit Gradient Projection (EOGP). Computing PCA directly on full gradients is prohibitively expensive for billion-parameter models. We therefore first reduce their dimensionality using projection directions derived from EK-FAC (George et al., 2018), then apply PCA to the resulting representations to learn the final compression basis. This allows us to refine the representation using the training gradients within a computationally manageable space. We then apply one-bit quantization to the resulting coordinates, allowing more coordinates to be stored within a fixed budget. Together, these steps address which directions to retain and how much precision to allocate to each coordinate.
We evaluate the resulting representations through retraining-based validation and comparison with an uncompressed influence reference. On GPT-2 (Radford et al., 2019), EOGP outperforms the tested compression baselines in both linear datamodeling score (LDS) (Park et al., 2023) and counterfactual retraining (Bae et al., 2024). On OLMo 2 SFT models (OLMo et al., 2024) from 1B to 32B parameters, EOGP more accurately reproduces the reference influence rankings at matched storage budgets. Even with less than 16 KB per example, it remains competitive with all tested compression baselines allocated over 100 times as much storage. These results show that compact, reusable gradient representations can retain useful attribution information at substantially lower storage cost.
2.1 INFLUENCE FUNCTIONS
Influence functions (Koh & Liang, 2017) estimate how a model’s behavior would change if a training example were removed and the model retrained. Let denote the model parameters, their trained values, and the loss function for training example . The corresponding training gradient is , and denotes the Hessian of the average training loss at .
For a scalar target measurement , we define the query gradient as its gradient with respect to , evaluated at . For example, a query about the loss on a target document uses . The influence score of training example for this query is
For neural networks, the loss Hessian can be singular, so may not exist. Prior work addresses this by using the generalized Gauss–Newton (GGN) matrix , with , together with damping (Martens, 2020; Bae et al., 2022; Grosse et al., 2023). For , we define , where is the identity matrix. Since , the practical influence score is
For a fixed model, the training gradient does not depend on the query and can therefore be reused across queries. In this work, we aim to store these gradients so that subsequent influence calculations do not require repeated backward passes over the training data.
2.2 KRONECKER-FACTORED CURVATURE APPROXIMATION
GGN–Fisher equivalence. Storing and factorizing the full GGN is impractical at LLM scale, so prior work has used structured approximations of the Fisher information matrix for scalable influence estimation (Grosse et al., 2023). For softmax cross-entropy on logits, the loss commonly used to train autoregressive LLMs, the GGN coincides with the Fisher F (Martens, 2020). Writing
(a) EK-FAC projection (Eq. 11)
Reduce d-dimensional gradients to an m-dimensional candidate space.
(b) PCA basis correction (Eq. 12)
Fit PCA to projected training gradients to select the best k directions ( ).
(c) One-bit compression (Eq. 13)
Retain more coordinates under the same storage budget (k bits + one FP16 scale).



Figure 1: Overview of EOGP. (a) Training gradients are projected onto an EK-FAC subspace and half-whitened. (b) PCA corrects the compression basis within this subspace. (c) The resulting coordinates are stored as one sign bit per coordinate together with a shared scale. Query gradients undergo the same transformations without one-bit quantization, and influence scores are computed as scaled inner products with the stored bits.
where is the empirical distribution of training inputs. Thus, the curvature is a gradient second moment with labels drawn from the model's predictive distribution.
K-FAC approximation. K-FAC (Martens & Grosse, 2015) exploits the layer structure of neural networks to approximate this Fisher matrix efficiently. In its block-diagonal form, it neglects cross-layer blocks and approximates each layer's block by a Kronecker product. For a linear layer, the two Kronecker factors are the second-moment matrices of its input activations a and the loss gradients with respect to its outputs.
Let and be the orthonormal eigenbases of and , respectively. Then is an eigenbasis of the K-FAC approximation . This structure allows the basis to be obtained from two smaller eigendecompositions and applied through matrix multiplications without materializing the full basis matrix.
EK-FAC approximation. EK-FAC (George et al., 2018; Grosse et al., 2023) corrects the eigenvalues of the K-FAC approximation while retaining its block structure and layerwise eigenbases. It obtains the corrected values by expressing gradients in these bases and taking the mean square of each coordinate. With labels sampled as in Equation (3), the resulting approximation is
where Q is block diagonal, with each block given by the corresponding layer's K-FAC eigenbasis , and is the diagonal matrix of corrected eigenvalues.
3 METHOD
This section presents Eigenbasis-corrected One-bit Gradient Projection (EOGP), which stores compact representations of training gradients for reuse in influence estimation. We first formulate gradient compression as minimizing a normalized worst-case influence error and show that storing the top-k PCA coordinates of half-whitened training gradients is optimal among k-dimensional linear representations ( ). We then approximate this target using a projection onto the EK-FAC eigenbasis followed by PCA within the retained subspace ( ). Finally, we store the resulting training coordinates as one sign bit each, together with a scale per module ( ). Figure 1 illustrates the pipeline, and Appendix B gives the full procedure.
3.1 WHAT TO STORE: PCA OF HALF-WHITENED GRADIENTS
Compression objective. We first ask which k-dimensional linear representation best preserves the influence scores in Equation (2) when queries are unknown at storage time. We consider linear compression methods that store per training example, where defines the compression. A reconstruction matrix maps these coordinates back to parameter space, giving the influence estimate .
We evaluate compression by the discrepancy between the uncompressed influence score and the estimate obtained from the stored coordinates. Since this discrepancy scales linearly with the query gradient, we constrain query magnitude to obtain a finite worst-case error.
The influence score in Equation (2) weights the interaction between the query and training gradients by , giving greater weight to components along directions of lower curvature. The standard Euclidean norm treats all directions equally and therefore does not capture this directional weighting. To account for how query components enter the influence computation, we use the -weighted Euclidean norm and define its unit ball as
Our objective is the worst-case squared influence error over query gradients in , averaged over training examples:
This criterion allows us to optimize the stored representation without knowing which attribution queries will be evaluated later.
Optimal linear representation. To characterize the optimal representation, we define the half-whitened training and query gradients and . Influence is then the inner product .
Proposition 1 (Optimality of half-whitened PCA). Let , and let the columns of be orthonormal eigenvectors corresponding to the largest eigenvalues of the uncentered second moment . Then Equation (7) is minimized by , i.e., by storing and estimating influence as its inner product with .
Thus, storing the top-k PCA coordinates of half-whitened training gradients minimizes influence-estimation error under Equation (7). The proof is provided in Appendix A.1.
3.2 TWO-STAGE PROJECTION: PCA WITHIN AN EK-FAC SUBSPACE
Performing PCA directly on half-whitened training gradients is impractical at LLM scale, so we approximate it in two stages. The first stage uses the gradient statistics provided by EK-FAC to construct an m-dimensional candidate subspace. The second stage applies PCA to the training gradients projected into this subspace to select the final k directions, where .
We apply both stages independently to each linear layer (module). Throughout this subsection, we suppress module indices and use d, m, and k for the corresponding per-module dimensions.
First stage: subspace selection with EK-FAC. Let denote the uncentered second moment of the training gradients, also known as the empirical Fisher (Martens, 2020). Applying the PCA criterion of Proposition 1 within each module requires the leading eigenvectors of
To construct a tractable surrogate for , we approximate both the half-whitening operator and the training-gradient second moment. We begin with the half-whitening operator, which depends on the curvature matrix . For softmax cross-entropy, coincides with the true Fisher and can therefore be approximated using EK-FAC, as reviewed in Section 2.2. Writing , where contains the corrected eigenvalues, gives
For candidate subspace selection, we additionally use as a surrogate for C. This is a separate approximation: although the Fisher and the empirical Fisher C are both gradient second moments, the Fisher averages over the model's predictive label distribution for each input, whereas C uses the corresponding training label. Combining this surrogate with the approximate half-whitening in Equation (9) yields
(10)
Since increases with for , the EK-FAC eigenvectors with the largest corrected eigenvalues form a top- PCA basis for . We can therefore construct this candidate subspace directly from the existing EK-FAC statistics, without separately estimating or performing a full-space eigendecomposition.
Let contain these eigenvectors and be the diagonal matrix of their corrected eigenvalues. Projecting the EK-FAC half-whitened training gradients onto this basis gives the first-stage coordinates:
(11)
The Kronecker factorization allows these coordinates to be computed through matrix multiplications with the two smaller factors, without forming a dense projection matrix.
Second stage: subspace refinement with PCA. The EK-FAC basis is inherited from the K-FAC approximation , which uses separate second moments of activations and backpropagated gradients. Although EK-FAC corrects the diagonal second moments in this basis, it keeps the basis fixed and leaves off-diagonal terms unmodeled. Consequently, the retained axes need not align with the principal directions of the half-whitened training gradients.
To account for the second-moment structure among the retained coordinates, the first stage keeps EK-FAC axes. We then find the optimal -dimensional subspace within their span by applying PCA to the full second moment of the first-stage coordinates, , including its off-diagonal entries.
Let contain the orthonormal eigenvectors of associated with its largest eigenvalues. Combining this PCA projection with the first-stage transformation gives the final coordinates:
(12)
The following proposition shows that this correction yields a reconstruction error less than or equal to that obtained using the leading k EK-FAC axes.
Proposition 2 (Eigenbasis correction). Let denote the EK-FAC half-whitened training gradients, the corrected basis, and the basis formed by the leading EK-FAC axes retained in . Projecting these gradients onto has the following guarantees:
(i) The mean squared reconstruction error is less than or equal to that obtained by projecting onto the leading k EK-FAC axes. Formally,
In fact, it is minimal among all k-dimensional subspaces of span(Qm).
(ii) If contains a top-k principal subspace of , the error equals the minimum attained by full-space k-dimensional PCA within that module.
Thus, retaining candidate axes allows the final subspace to be optimized within a larger span while storing only coordinates per training example. The proof is provided in Appendix A.2.
A scalable alternative to PCA. PCA minimizes reconstruction error within the retained span for a fixed output dimension . However, storing and applying its dense correction matrix becomes costly as grows. To exploit larger per-example storage budgets without this overhead, we introduce EOGP-R, which replaces the PCA correction with an implicitly applied subsampled randomized Hadamard transform (SRHT) (Tropp, 2011), :
The construction and normalization of S are detailed in Appendix B.2.
When the output dimension k is sufficiently large, SRHT preserves norms within a fixed low-dimensional subspace up to bounded distortion with high probability (Tropp, 2011). For query and training representations in this subspace, this guarantee also controls inner-product distortion and the resulting influence-score error introduced by sketching. This variant offers a trade-off between PCA's fixed-k reconstruction optimality and scalability to larger output dimensions without a dense correction matrix.
3.3 ONE-BIT QUANTIZATION
Even after projection, storing every coordinate in floating point limits the number of directions we can retain under a fixed per-example storage budget. We apply one-bit quantization to both EOGP and EOGP-R to accommodate more projected coordinates within this budget.
For each module , let denote the projected training-gradient coordinates. We store a binary sign vector and one scale:
The scale captures the average magnitude of the coordinates and is chosen to minimize over (Rastegari et al., 2016). Each module requires sign bits and one half-precision scale per training example. The complete representation contains coordinates.
At query time, we apply the same projection to the query gradient and keep its coordinates unquantized. We estimate influence by
This computes influence from the stored representations without recomputing training gradients.
4 EXPERIMENTS
We evaluate whether compact gradient representations preserve useful training-data attributions under limited storage budgets. We first compare against retraining outcomes on GPT-2 ( ), then measure fidelity to EK-FAC influence on billion-parameter LLMs ( ). We examine the contributions of the projection and quantization choices ( ), and report the storage and computation required to build the representations ( ).
4.1 VALIDATION AGAINST RETRAINING
Setup and metrics. We evaluate GPT-2 (Radford et al., 2019) on WikiText-2 (Merity et al., 2016) at matched per-example storage budgets of KB. An uncompressed half-precision gradient requires 162 MB per example. Compression baselines include LoGra (Choe et al., 2025) with PCA and random initialization, GraSS (Hu et al., 2025), and LoRIF (Li et al., 2026). We use EK-FAC influence, K-FAC influence, and TracIn (Pruthi et al., 2020) as uncompressed references, and random removal as an additional baseline for the counterfactual experiment.
We use two retraining-based metrics. The linear datamodeling score (LDS) (Park et al., 2023) evaluates how well influence estimates predict retraining outcomes. It measures the rank correlation between the estimated influences of randomly sampled training subsets and the outcomes measured

Storage per training example (KB)
Number of removed training examples
EOGP LoGra (PCA) LoGra (Random) GraSS LoRIF EK-FAC K-FAC Tracln Random
Figure 2: Validation against retraining-based ground truth on GPT-2 across storage budgets: linear datamodeling score (left) and counterfactual retraining (right). Black lines denote uncompressed influence functions with different Hessian approximations and the random-removal baseline.
after retraining the model on each subset. Counterfactual retraining (Bae et al., 2024) removes the examples ranked most influential by each method and measures the resulting increase in validation perplexity after retraining. Higher LDS indicates closer agreement with retraining outcomes, while a larger perplexity increase indicates a greater impact of removing the selected examples. Further metric and protocol details are provided in Appendix D.1.
Results. Figure 2 shows that EOGP improves retraining-based attribution quality over the compression baselines, with the largest gains at small storage budgets. In LDS, EOGP at 96 KB exceeds all compression-based baselines at 1,536 KB, despite using 16 times less per-example storage. At 384 KB, it achieves LDS close to the uncompressed K-FAC reference while using over 400 times less per-example storage than the 162 MB uncompressed representation. The counterfactual experiment likewise shows that the examples selected by EOGP produce larger perplexity increases than those selected by the compression baselines.
4.2 FIDELITY TO EK-FAC AT LLM SCALE
Setup. We evaluate the SFT checkpoints of OLMo 2 (OLMo et al., 2024) with 1B, 7B, 13B, and 32B parameters. Training examples come from the Tülu 3 SFT mixture (Lambert et al., 2024), and queries come from a held-out split. Uncompressed half-precision gradients occupy approximately 2–62 GB per example across these models. We compare compression methods at budgets ranging from a few kilobytes to megabytes per example, corresponding to compression ratios on the order of relative to uncompressed half-precision gradients. Further evaluation details are given in Appendix D.2.
Metrics and reference. Since retraining-based evaluation is computationally prohibitive at this scale, we use agreement with EK-FAC influence rankings as a proxy for attribution quality. We choose EK-FAC as the reference because it performs best in our GPT-2 retraining-based evaluation among the evaluated methods that scale to billion-parameter LLMs (Section 4.1), consistent with prior comparisons (Choe et al., 2025). For each query, we measure overall ranking agreement using Spearman correlation and agreement near the top of the ranking using NDCG@20 (Järvelin & Kekäläinen, 2002), then average both metrics over queries.

Figure 3: LDS versus EK-FAC fidelity on GPT-2, measured by NDCG@20 (left) and Spearman correlation (right). is the Spearman correlation across configurations from Figure 2.
To examine whether these agreement metrics reflect retraining-based attribution quality, Figure 3 shows their relationship with LDS on GPT-2. Each point corresponds to an evaluated configura-

EOGP - O - EOGP-R - LoGra (Random) - LoGra (PCA) - GraSS - LoRIF - Random projection
Figure 4: NDCG@20 (top) and Spearman correlation (bottom) of gradient compression methods against EK-FAC influence functions on OLMo 2 SFT models from 1B to 32B parameters.
tion from Figure 2. The x-axis shows agreement between the influence rankings produced by each configuration and the EK-FAC reference rankings, measured by NDCG@20 (left) or Spearman correlation (right). The y-axis shows LDS, which measures how well each configuration's influence estimates predict retraining outcomes. We report the Spearman correlations ( ) between the x-axis metric and LDS across configurations: 0.95 for NDCG@20 and 0.84 for overall ranking agreement. These positive correlations indicate that configurations whose rankings more closely match EK-FAC generally also better predict the retraining outcomes, providing empirical support for using EK-FAC ranking agreement as a proxy for attribution quality.
Results. Figure 4 shows substantial gains over the compression baselines across the evaluated model sizes, particularly at small storage budgets. Fidelity generally improves as more storage is allocated, and continues to increase at the largest tested budgets on the 32B model. The improvements appear in both the overall ranking and the top-ranked examples. These results are obtained at compression ratios of approximately , supporting the use of compact representations even when storing uncompressed gradients would require tens of gigabytes per example. In Appendix F, we additionally evaluate LoGra and GraSS with the same EK-FAC half-whitening and show that EOGP consistently outperforms both variants.
4.3 ABLATION STUDIES
We examine the effects of PCA basis correction ( ) and one-bit quantization ( ) on OLMo 2 7B SFT. We compare methods at matched per-example storage budgets (Figure 5, left) and matched numbers of stored coordinates (Figure 5, right). These comparisons assess performance under a fixed storage constraint and representation quality at a fixed dimension, respectively.
Comparison at matched storage budgets. At matched storage budgets, EOGP consistently achieves higher NDCG@20 than direct selection of EK-FAC basis directions (Figure 5, left). Both variants use one-bit quantization, demonstrating the benefit of refining the compression basis through PCA of the first-stage coordinates. For EOGP, one-bit representations also outperform FP16 representations by allowing more coordinates to be retained within the same storage budget. We

EOGP
LoGra
LoRIF
1-bit storage
w/o PCA corr.
GraSS
Random proj.
--fp16 storage
Figure 5: Component ablation of EOGP (left) and comparison of 16-bit and 1-bit storage at matched coordinate counts (right).
one-bit representations also outperform FP16 representations by allowing more coordinates to be retained within the same storage budget. We provide further evidence of EOGP's robustness to one-bit quantization and discuss a possible explanation in Appendix G.
Comparison at matched coordinate counts. At matched coordinate counts, EOGP achieves higher NDCG@20 than every baseline stored at the same precision, under both FP16 and one-bit storage (Figure 5, right). This advantage at fixed dimension supports the quality of the two-stage projection. Within EOGP, one-bit and FP16 representations achieve similar NDCG@20, indicating that one-bit quantization substantially reduces storage with little loss in ranking agreement.
4.4 STORAGE AND COMPUTATIONAL COSTS
Per-example storage. With coordinates in module , storing the compressed representation of one training example across all modules requires bytes, including packed sign bits and a two-byte scale per module. At , the 32B model requires approximately 115.6 KB per training example, compared with 62.4 GB for an uncompressed half-precision gradient.
Shared storage overhead. The Kronecker eigenbases, half-whitening weights, and PCA correction matrices are shared across all training examples and queries and are accounted for separately from the per-example payloads. For the 32B model, each module's PCA correction matrix requires approximately 1 GB when its first-stage and final output dimensions are and , respectively. These shared storage costs do not grow with the number of stored examples. Appendix E.1 provides formulas for per-example and shared storage.
Store-construction time. On a single NVIDIA B200, our implementation of EOGP achieves store-construction times comparable to LoGra. For the 32B model at approximately 2,048 output coordinates per module, the per-example time is 0.247 seconds for EOGP and 0.278 seconds for LoGra. These costs include gradient computation, projection, and disk I/O, including correction-matrix loading and transfer for EOGP. Fitting and saving the PCA correction matrices from cached first-stage coordinates takes an additional 18.4 minutes as a one-time preprocessing cost. Implementation optimizations and detailed timing protocols are provided in Appendix E.3.
5 RELATED WORK
Scalable influence estimation. Influence estimation in large neural networks relies on efficient approximations to inverse-curvature products (Koh & Liang, 2017; Guo et al., 2021; Kwon et al., 2024). Arnoldi iteration approximates a dominant Hessian eigenspace to compute influence in a reduced space (Schioppa et al., 2022). K-FAC and EK-FAC use structured curvature approximations (Martens & Grosse, 2015; George et al., 2018), with EK-FAC enabling influence analysis at LLM scale (Grosse et al., 2023).
Gradient compression for data attribution. TRAK scales attribution through random projections (Park et al., 2023), while LESS and its quantized extension QLESS select instruction data using projected gradient similarities rather than the inverse-curvature-based influence scores studied here (Xia et al., 2024; Ananta et al., 2025). For influence estimation, TrackStar (Chang et al., 2025) uses curvature-corrected gradients for influence retrieval at LLM scale. LoGra uses Kronecker-factored projections with random or PCA-based initialization (Choe et al., 2025). GraSS combines gradient sparsification with sparse random projection (Hu et al., 2025). LoRIF stores projected gradients as low-rank factors and approximates inverse curvature via truncated SVD (Li et al., 2026).
6 CONCLUSION
We present EOGP for building compact gradient stores for influence estimation across future queries. Under a normalized worst-case influence-error criterion, we show that PCA of half-whitened training gradients is optimal among fixed-dimensional linear representations. EOGP approximates this target through PCA correction within a retained EK-FAC subspace and uses scaled one-bit quantization to retain more coordinates within a fixed storage budget. Our results show that
EOGP preserves useful attribution information with substantially less storage than existing compression methods, making reusable gradient stores more practical at LLM scale.
REFERENCES
Moses Ananta, Muhammad Farid Adilazuarda, Zayd Muhammad Kawakibi Zuhri, Ayu Purwarianti, and Alham Fikri Aji. QLESS: A quantized approach for data valuation and selection in large language model fine-tuning. arXiv preprint arXiv:2502.01703, 2025.
Juhan Bae, Nathan Ng, Alston Lo, Marzyeh Ghassemi, and Roger B Grosse. If influence functions are the answer, then what is the question? Advances in Neural Information Processing Systems, 35:17953–17967, 2022.
Juhan Bae, Wu Lin, Jonathan Lorraine, and Roger Grosse. Training data attribution via approximate unrolling. Advances in Neural Information Processing Systems, 37:66647–66686, 2024.
Tyler Chang, Dheeraj Rajagopal, Tolga Bolukbasi, Lucas Dixon, and Ian Tenney. Scalable influence and fact tracing for large language model pretraining. In International Conference on Learning Representations, volume 2025, pp. 40976–40997, 2025.
Sirui Chen, Yunzhe Qi, Mengting Ai, Yifan Sun, Ruizhong Qiu, Jiaru Zou, and Jingrui He. Influence-preserving proxies for gradient-based data selection in LLM fine-tuning. In International Conference on Learning Representations, 2026.
Sang Choe, Hwijeen Ahn, Juhan Bae, Kewen Zhao, Youngseog Chung, Adithya Pratapa, Willie Neiswanger, Emma Strubell, Teruko Mitamura, Jeff Schneider, et al. What is your data worth to GPT? LLM-scale data valuation with influence functions. Advances in Neural Information Processing Systems, 38:145944–145985, 2025.
Zachary Coalson, Juhan Bae, Nicholas Carlini, and Sanghyun Hong. IF-Guide: Influence function-guided detoxification of LLMs. Advances in Neural Information Processing Systems, 38:78824–78856, 2025.
Carl Eckart and Gale Young. The approximation of one matrix by another of lower rank. Psychometrika, 1(3):211–218, 1936.
Thomas George, César Laurent, Xavier Bouthillier, Nicolas Ballas, and Pascal Vincent. Fast approximate natural gradient descent in a Kronecker factored eigenbasis. Advances in Neural Information Processing Systems, 31, 2018.
Roger Grosse, Juhan Bae, Cem Anil, Nelson Elhage, Alex Tamkin, Amirhossein Tajdini, Benoit Steiner, Dustin Li, Esin Durmus, Ethan Perez, et al. Studying large language model generalization with influence functions. arXiv preprint arXiv:2308.03296, 2023.
Han Guo, Nazneen Rajani, Peter Hase, Mohit Bansal, and Caiming Xiong. FastIF: Scalable influence functions for efficient model interpretation and debugging. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 10333–10350, 2021.
Jaeseung Heo, Kyeongheung Yun, Youngbin Choi, Sehyun Hwang, Jungseul Ok, and Dongwoo Kim. Interaction-aware influence functions for group attribution. arXiv preprint arXiv:2605.15675, 2026.
Pingbang Hu, Joseph Melkonian, Weijing Tang, Han Zhao, and Jiaqi Ma. GraSS: Scalable data attribution with gradient sparsification and sparse projection. Advances in Neural Information Processing Systems, 38:43880–43904, 2025.
Kalervo Järvelin and Jaana Kekäläinen. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems (TOIS), 20(4):422–446, 2002.
Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In International Conference on Machine Learning, pp. 1885–1894. PMLR, 2017.
Siqi Kou, Qingyuan Tian, Hanwen Xu, Zihao Zeng, and Zhijie Deng. Which data attributes stimulate math and code reasoning? An investigation via influence functions. Advances in Neural Information Processing Systems, 38:12302–12324, 2025.
Yongchan Kwon, Eric Wu, Kevin Wu, and James Y Zou. DataInf: Efficiently estimating data influence in LoRA-tuned LLMs and diffusion models. In International Conference on Learning Representations, volume 2024, pp. 21921–21942, 2024.
Nathan Lambert, Jacob Morrison, Valentina Pyatkin, Shengyi Huang, Hamish Ivison, Faeze Brahman, Lester James V Miranda, Alisa Liu, Nouha Dziri, Shane Lyu, et al. Tulu 3: Pushing frontiers in open language model post-training. arXiv preprint arXiv:2411.15124, 2024.
Shuangqi Li, Hieu Le, Jingyi Xu, and Mathieu Salzmann. LoRIF: Low-rank influence functions for scalable training data attribution. arXiv preprint arXiv:2601.21929, 2026.
James Martens. New insights and perspectives on the natural gradient method. Journal of Machine Learning Research, 21(146):1–76, 2020.
James Martens and Roger Grosse. Optimizing neural networks with Kronecker-factored approximate curvature. In International Conference on Machine Learning, pp. 2408–2417. PMLR, 2015.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
Team OLMo, Pete Walsh, Luca Soldaini, Dirk Groeneveld, Kyle Lo, Shane Arora, Akshita Bhagia, Yuling Gu, Shengyi Huang, Matt Jordan, et al. 2 OLMo 2 furious. arXiv preprint arXiv:2501.00656, 2024.
Sung Min Park, Kristian Georgiev, Andrew Ilyas, Guillaume Leclerc, and Aleksander Madry. TRAK: Attributing model behavior at scale. In International Conference on Machine Learning, 2023.
Garima Pruthi, Frederick Liu, Satyen Kale, and Mukund Sundararajan. Estimating training data influence by tracing gradient descent. Advances in Neural Information Processing Systems, 33:19920–19930, 2020.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. Technical report, OpenAI, 2019.
Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. XNOR-Net: ImageNet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016.
Laura Ruis, Maximilian Mozes, Juhan Bae, Siddhartha Rao Kamalakara, Dwarak Talupuru, Acyr Locatelli, Robert Kirk, Tim Rocktäschel, Edward Grefenstette, and Max Bartolo. Procedural knowledge in pretraining drives reasoning in large language models. In International Conference on Learning Representations, volume 2025, pp. 29367–29429, 2025.
Andrea Schioppa. Efficient sketches for training data attribution and studying the loss landscape. Advances in Neural Information Processing Systems, 37:37692–37735, 2024.
Andrea Schioppa, Polina Zablotskaia, David Vilar, and Artem Sokolov. Scaling up influence functions. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 8179–8186, 2022.
Joel A Tropp. Improved analysis of the subsampled randomized Hadamard transform. Advances in Adaptive Data Analysis, 3(01n02):115–126, 2011.
Mengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora, and Danqi Chen. LESS: Selecting influential data for targeted instruction tuning. In International Conference on Machine Learning, 2024.
Han Zhang, Zhuo Zhang, Yi Zhang, Yuanzhao Zhai, Hanyang Peng, Yu Lei, Yue Yu, Hui Wang, Bin Liang, Lin Gui, et al. Correcting large language model behavior via influence function. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 14477–14485, 2025.
Xinyu Zhou, Simin Fan, and Martin Jaggi. HyperINF: Unleashing the HyperPower of the Schulz's method for data influence estimation. arXiv preprint arXiv:2410.05090, 2024.
A THEORETICAL DETAILS
A.1 OPTIMALITY OF HALF-WHITENED PCA
We prove Proposition 1 for a fixed symmetric positive-definite matrix and half-whitened gradients satisfying . The supremum is over the full query-gradient ball in Equation (6).
Proof. Let , with eigenvalues , and let . We show that the minimum of Equation (7) is and that the proposed encoder-decoder pair attains it.
Reduction to low-rank reconstruction. For arbitrary , define
Write . Since and , the influence error satisfies
The change of variables between and is bijective and maps the normalized query-gradient ball to the Euclidean unit ball. Therefore,
The last equality follows from Cauchy–Schwarz, with equality for a unit query in the direction of whenever this residual is nonzero. If it is zero, both sides are zero. Conversely, every matrix of rank at most admits a factorization with , padding with zero columns when needed. Choosing and realizes this in Equation (15). Thus optimizing over is equivalent to optimizing Equation (17) over all rank-at-most- matrices .
Orthogonal projection suffices. Let , and let be the orthogonal projector onto . For each example, is orthogonal to , whereas belongs to . Consequently,
(18)
Taking expectations and using gives
The principal subspace attains the minimum. This PCA optimality step is a consequence of the classical Eckart–Young theorem (Eckart & Young, 1936). Write in an orthonormal eigenbasis. Set . Because is an orthogonal projector of rank at most , these weights satisfy and . It follows that
The first inequality uses for and the bound on the sum of the weights. The second uses for and . Combining Equations (19) and (20), every encoder–decoder pair satisfies
Now take and . Then , so
This pair therefore attains the global minimum. Its stored representation and influence estimate are precisely
This proves Proposition 1.
□
The result uses the uncentered second moment and remains valid when eigenvalues are repeated.
A.2 PROOF OF EIGENBASIS CORRECTION
We prove Proposition 2 within one module. Let have finite second moment, let have orthonormal columns, and set . Let contain orthonormal leading eigenvectors of , where .
Proof. Every -dimensional subspace of range has an orthonormal basis for some satisfying . Decomposing into components orthogonal to and within range yields
(25)
The first term is independent of W. By the PCA argument in Appendix A.1, the second is minimized by . Thus minimizes reconstruction error over all k-dimensional subspaces of range( ). The leading k retained EK-FAC axes are among these feasible choices, proving part (i).
For part (ii), suppose range( ) contains a globally optimal k-dimensional principal subspace of within the module. This subspace is feasible for the restricted problem, so the restricted minimum is at most the full-space minimum. It is also at least that minimum because the feasible set is restricted. The two errors therefore agree.
A.3 SCALED ONE-BIT QUANTIZATION
Optimal scale for a fixed sign vector. For projected coordinates with , let , allowing either sign for zero coordinates. For a scale , the identities and give
Thus, minimizes the squared reconstruction error for the sign vector , including when .
B ALGORITHMS AND PROJECTION IMPLEMENTATION
B.1 PROJECTION PATHS AND UNIFIED PROCEDURE
Both stages operate independently on the linear-layer modules defined in Section 3.2. Across all evaluated models, EOGP applies PCA to the first-stage coordinates, while EOGP-R replaces PCA with an SRHT. The model-specific module lists, dimensions, and storage-budget allocations are recorded with the experimental settings.
For module u, the first-stage map and the subsequent projection are
Here, contains the PCA directions, and is an implicitly applied SRHT. The Kronecker factors and retained-coordinate indices implement without materializing or . We write and for the training and query gradient blocks of module .
Algorithm 1 EOGP and EOGP-R fitting, storage, and querying
Require: Factorized EK-FAC bases , corrected eigenvalues , damping values , dimensions , method variant, and a PCA fitting set for EOGP Fitting shared projections
1: for each module do 2: Select , using the largest corrected eigenvalues 3: For EOGP-R, initialize the implicit SRHT 4: end for 5: if using EOGP then 6: for each do 7: Compute the training gradient once 8: for each module do 9: Compute and cache 10: end for 11: end for 12: For each , fit by uncentered PCA of 13: end if Storing one training example 14: Compute once 15: for each module do 16: 17: Store packed binary signs and 18: end for Scoring a query 19: Compute once 20: For each , compute the unquantized coordinates 21: return for each stored example
The batched implementation is described in Appendix E.3.
B.2 PCA FITTING AND RANDOM PROJECTION
PCA fitting. For EOGP, we form the first-stage coordinates using training-data labels and apply PCA without subtracting the sample mean. Let contain these coordinates as rows, where . The columns of are the top- right singular vectors of , equivalently the eigenvectors associated with the largest eigenvalues of . The nonzero principal directions can be recovered from the eigendecomposition of the Gram matrix , avoiding construction of an second-moment matrix. This is the PCA correction analyzed in Proposition 2.
Random projection. For EOGP-R, a subsampled randomized Hadamard transform (SRHT) (Tropp, 2011) maps the first-stage coordinates directly to dimensions,
Here, zero-pads the coordinates to width , is a diagonal matrix of independent random signs, is the orthonormal Walsh–Hadamard matrix, and selects rows uniformly without replacement. The same realized transform is used for gradient storage and query projection. This variant does not fit a PCA correction.
B.3 COMPUTATION AND COMPLEXITY
Query scoring. Using the unquantized query coordinates from Algorithm 1 and the stored signs and scales , the influence score is
The same query coordinates are reused to score all stored examples.
Projection cost. Applying the PCA correction in EOGP costs operations per module. The implicit SRHT in EOGP-R costs operations per module, where is the padded dimension in Equation (28).
Storage and scanning. Computing signs and scales from an already projected training representation costs operations. After projecting a query, scoring all examples costs
arithmetic operations. Storage in bytes and measured runtimes are reported in Appendices E.1 and E.3.
C EXPERIMENTAL CONFIGURATION
This section describes the configurations used in Section 4.
C.1 MODELS, DATA, AND GRADIENT COMPUTATION
We evaluate GPT-2 on WikiText-2 and released OLMo 2 SFT checkpoints on Tülu 3 data. The GPT-2 attribution checkpoint is fine-tuned using the protocol in Appendix D.1. Table 1 lists the source checkpoints and datasets.
Data preparation. We tokenize wikitext-2-raw-v1 from Salesforce/wikitext with the GPT-2 tokenizer and divide concatenated text into 512-token blocks. Training and validation blocks provide attribution candidates and queries, respectively. OLMo 2 1B and 32B use allenai/tulu-3-sft-olmo-2-mixture-0225, while 7B and 13B use allenai/tulu-3-sft-olmo-2-mixture. Each conversation is one example, with queries selected separately from attribution candidates. Evaluation protocols are given in Appendix D.
Loss and query measurement. Both training and query gradients use token-summed next-token cross entropy. GPT-2 includes all prediction positions, while OLMo 2 includes only assistant-response positions and their turn-ending tokens.
Attributed parameters. We attribute to the attention and MLP linear layers, including biases in GPT-2. Embeddings, the language-model output head, and normalization parameters are excluded. Attribution gradients are computed in evaluation mode.
Table 1: Source model checkpoints and datasets.
| Model | Source checkpoint | Dataset |
|---|---|---|
| GPT-2 | gpt2 | WikiText-2 |
| OLMo 2 1B | allenai/OLMo-2-0425-1B-SFT | Tülu 3 mixture |
| OLMo 2 7B | allenai/OLMo-2-1124-7B-SFT | Tülu 3 mixture |
| OLMo 2 13B | allenai/OLMo-2-1124-13B-SFT | Tülu 3 mixture |
| OLMo 2 32B | allenai/OLMo-2-0325-32B-SFT | Tülu 3 mixture |
C.2 CURVATURE FITTING AND PROJECTION DIMENSIONS
Fitting configuration. We estimate EK-FAC statistics using Kronfluence. Fisher statistics use labels sampled from the model's next-token distribution with input contexts fixed to the data. Factor statistics are averaged over non-padding tokens, and corrected eigenvalues over examples using sequence-level gradients.
For each module with attributed parameters, we use relative damping
where is the diagonal matrix containing the module's full set of corrected eigenvalues. The resulting half-whitening transformation is applied to both training and query gradients.
PCA fitting data. For OLMo 2, the PCA fitting set contains 10,000 conversations sampled from the same SFT mixture with a fixed random seed, after excluding all candidate, query, and curvature-fitting examples. Each conversation is truncated to at most 2,048 tokens.
Projection dimensions. EOGP applies PCA to the first-stage coordinates on all models. For OLMo 2, , and the final dimension is uniform across modules, ranging in powers of two from 256 to 8,192. EOGP-R uses the same first-stage width and between 256 and 32,768 SRHT output coordinates.
Storage budgets. Budgets count per-example coordinates and scales, with projection dimensions chosen to match storage across methods. In the main comparisons, EOGP and EOGP-R use one-bit coordinates with FP16 scales, while compressed baselines use FP16. Figure 5 compares both precisions; in its right panel, which fixes coordinate counts on OLMo 2 7B, the one-bit curves also form a matched-storage comparison, since equal coordinate counts imply equal one-bit storage, and EOGP outperforms all one-bit baselines. GPT-2 follows the nominal budget labels in Figure 2, and OLMo 2 reports payloads in decimal units. Shared artifacts are accounted for separately in Appendix E.1.
C.3 BASELINE CONFIGURATIONS
All methods share attributed modules, evaluation examples, queries, and loss definitions. For OLMo 2, EOGP, LoGra, GraSS, and LoRIF fit their curvature estimates on the same 10,000 conversations. Storage formats and budget matching follow Appendix C.2.
Compression baselines. Our LoGra implementation is based on LogIX , with random and PCA initialization on both GPT-2 and OLMo 2. LoGra uses the same relative damping coefficient (0.1) as in Appendix C.2. PCA initialization uses factor eigenvectors fitted with Kronfluence , and the factor rank a determines stored coordinates per module. Our GraSS implementation follows the official code, using factor-wise random masking and CountSketch with output dimensions matched to LoGra. Our LoRIF reimplementation uses randomly projected gradient matrices and a rank-256 inverse-curvature approximation.
https://github.com/logix-project/logix
https://github.com/pomonam/kronfluence
Uncompressed references. EK-FAC and K-FAC use Kronfluence with model-sampled labels and the damping in Appendix C.2. The TracIn reference is the unweighted gradient inner product at the final checkpoint.
Gaussian random projection. This control uses independent standard Gaussian factors to produce coordinates per module. Training gradients are projected directly, and query gradients are preconditioned by the full-space damped EK-FAC inverse before projection. Inner products are scaled by .
Randomization. LoGra and LoRIF use one projection realization per configuration. GraSS uses one on GPT-2 and averages over three seeds on OLMo 2. The Gaussian control averages over three independent draws, and EOGP-R over up to three disjoint blocks of a shared SRHT output. Retraining and uncertainty estimation follow Appendix D.1.
D EVALUATION PROTOCOLS
D.1 GPT-2 RETRAINING EVALUATION
We evaluate attribution on WikiText-2 using the linear datamodeling score (LDS) and counterfactual retraining.
Linear datamodeling score. We reuse the publicly released subset masks and retraining losses from Kronfluence for subsets, each retaining half of the training blocks. All methods and storage budgets use the same subsets and losses on the validation blocks. The query measurement is the token-summed next-token cross-entropy loss of a validation block.
Let denote the retained training subset and its released retraining loss for query . Under our removal-based influence convention, the predicted subset score is
For each query, we compute the Spearman correlation across subsets,
and report its mean over queries, excluding undefined correlations. We use average ranks for ties. We obtain 95% percentile confidence intervals from 1,000 bootstrap resamples of the subsets, recomputing the query-averaged LDS for each resample.
Counterfactual retraining. For each method and storage budget, we rank the training blocks by the sum of their signed influence scores over the first 50 validation blocks. We remove the examples with the largest scores, reusing the same ranking for removal counts from 50 to 300 in increments of 50.
Each retraining run starts from the pretrained GPT-2 weights and uses AdamW with a learning rate of , weight decay of 0.01, three epochs, and a training batch size of eight. We use a set S of five seeds, matched across methods. Perplexity is evaluated on the same 50 validation blocks used to construct the ranking by exponentiating their mean token-level cross-entropy loss.
Let denote the perplexity for seed after removing examples. We report
where the zero-removal runs are shared across methods. Error bars show the population standard deviation of the post-removal perplexities across seeds. For the random-removal control, each seed defines a random permutation of the training set, and the first b examples are removed.
D.2 FIDELITY TO EK-FAC INFLUENCE
We compare compressed influence scores with uncompressed EK-FAC scores on the same candidate training examples. OLMo 2 uses 1,000 candidates and 100 queries, while GPT-2 uses the training and validation blocks as candidates and queries, respectively. Module contributions are summed before evaluation, and both score vectors use signed scores under the same removal-based convention, without taking absolute values or clipping.
Spearman correlation. For query , let and denote the reference and compressed score vectors over the candidate examples. We compute
Ties receive average ranks. A correlation is undefined when either score vector is constant, and contains the queries with defined correlations.
NDCG@20. We use binary relevance based on membership in the reference top 20. Let contain the 20 examples with the largest signed EK-FAC scores, and let denote the example at position when compressed scores are sorted in descending order. Then
The denominator is the ideal discounted gain when all 20 relevant examples occupy the first 20 positions. We report the arithmetic mean of NDCG@20 over queries.
D.3 RELATIONSHIP BETWEEN FIDELITY AND RETRAINING
Figure 3 compares EK-FAC fidelity with LDS across the 25 compressed configurations and three reference methods in Figure 2. For each configuration, all metrics use the same attribution score matrix. We average each metric over queries before computing correlations across configurations.
Let J denote these 28 configurations, and let , , and denote their query-averaged LDS, NDCG@20, and Spearman fidelity. The resulting correlations are
(37)
E STORAGE AND RUNTIME ACCOUNTING
E.1 PER-EXAMPLE PAYLOAD AND SHARED ARTIFACTS
We account separately for per-example representations and artifacts shared across the gradient store. Let denote the attributed modules, and the first-stage and final output dimensions of module , respectively, and the number of stored examples. The attributed parameter set is specified in Appendix C.1.
Per-example payload. EOGP and EOGP-R store one sign bit per coordinate and one FP16 scale per module. With byte packing performed separately for each module, the payload is
For a uniform dimension , this becomes . Storing the coordinates directly in FP16 requires bytes, while an uncompressed FP16 gradient requires bytes, where is the number of attributed parameters.
Table 2: Per-example representation payloads at per module. Uncompressed gradients cover the attributed parameters, and one-bit representations include packed signs and FP16 scales. Shared artifacts are accounted for in Appendix E.1.
| Model | Uncompressed FP16 (GB/example) | One-bit representation (KB/example) |
|---|---|---|
| OLMo 2 1B | 2.147 | 28.896 |
| OLMo 2 7B | 12.952 | 57.792 |
| OLMo 2 13B | 25.376 | 72.240 |
| OLMo 2 32B | 62.411 | 115.584 |
Shared artifacts. The Kronecker eigenbases and half-whitening weights are shared across examples and queries. In EOGP, each module's PCA correction matrix is also shared and stored in FP16, requiring
For the 32B model with and , each FP16 correction matrix requires approximately 1.07 GB, totaling 481 GB across all 448 modules. This cost is independent of the number of stored examples, so its relative contribution decreases as the store grows. For stores containing 100 million or one billion examples, the correction matrices would occupy approximately 4.2% or 0.42% of the aggregate per-example payload, respectively. These estimates illustrate how the shared correction matrices can be amortized when constructing attribution stores for large pre-training or mid-training corpora.
When shared storage is constrained, reducing decreases the correction-matrix storage linearly. For example, keeping unchanged and reducing to 256 lowers the total correction-matrix storage to approximately 60.1 GB for the 32B model. As shown in Figure 4, EOGP maintains an advantage over the evaluated compression baselines at small per-example storage budgets.
Total storage. Including shared artifacts and file overhead, the total storage is
where counts shared curvature and projection artifacts, including for the PCA correction matrices in EOGP, and counts file metadata. Per-example budgets count representation payloads, with shared artifacts accounted for separately.
E.2 STORAGE ESTIMATES BY MODEL
Table 2 compares per-example storage for uncompressed FP16 gradients and one-bit representations at . Both EOGP and EOGP-R use bytes per module per example.
E.3 IMPLEMENTATION AND RUNTIME
Setup. Table 3 compares our implementation with LoGra's official LogIX implementation on a single NVIDIA B200. EOGP uses , , and FP16 correction matrices, while LoGra stores 2,025 FP16 coordinates per module. Curvature statistics are fitted beforehand, and timings exclude curvature fitting and model loading.
Implementation. First-stage coordinates are cached in FP16 using asynchronous disk writes. We then process modules sequentially, loading each correction matrix onto the GPU and applying it to a batch of coordinates before one-bit encoding and recording. Each loaded matrix is reused across the batch.
Timing protocol. Store construction includes gradient computation, projection, and disk I/O, including correction-matrix loading and transfer for EOGP. Coordinate generation is timed on 40 documents per model averaging approximately 500 tokens. Subsequent PCA projection and storage use batches of approximately 11,000 documents, over which matrix-loading costs are amortized.
Table 3: PCA fitting and store-construction times on one NVIDIA B200. Fitting starts from cached coordinates and includes saving the correction matrices. Store-construction totals combine separately timed stages, including disk I/O.
| Model | EOGP PCA fitting (min) | Store construction (s/example) | |
|---|---|---|---|
| EOGP | LoGra | ||
| OLMo 2 1B | 4.5 | 0.0563 | 0.0577 |
| OLMo 2 7B | 8.9 | 0.0999 | 0.1315 |
| OLMo 2 13B | 11.1 | 0.1474 | 0.1661 |
| OLMo 2 32B | 18.4 | 0.2470 | 0.2780 |


EOGP ▼ LoGra basis + EK-FAC whitening ✦ GraSS basis + EK-FAC whitening ♦ LoGra (Random) ◇ GraSS
Figure 6: Comparison of EOGP with LoGra and GraSS on OLMo 2 7B SFT, using either their original curvature treatment or EK-FAC half-whitening before projection. NDCG@20 (left) and Spearman correlation (right) measure agreement with EK-FAC influence at matched per-example storage budgets.
One-time PCA fitting. Fitting starts from cached first-stage coordinates of approximately 10,000 examples and follows Appendix B.2. Timings include reading the coordinates, computing the correction matrices, and saving them in FP16. This one-time cost is 18.4 minutes for the 32B model and is shared across examples and queries.
Batched query processing. For the 32B model with and , processing 100 queries against 1,000 stored examples takes 60.36 seconds on a single NVIDIA B200, starting from cached first-stage coordinates. This includes loading and transferring the FP16 correction matrices, applying the PCA projection, and scoring the stored examples. Each correction matrix is loaded once per batch, giving an amortized processing cost of 0.604 seconds per query.
F COMPARISON UNDER SHARED EK-FAC CURVATURE
To examine whether EOGP benefits primarily from using the same curvature approximation as the evaluation reference, we construct variants of LoGra and GraSS that apply our EK-FAC half-whitening before their respective projections. On OLMo 2 7B SFT, EOGP substantially outperforms both variants at matched per-example storage budgets, showing that matching the reference curvature alone does not explain its advantage.
The original LoGra and GraSS configurations also generally outperform their half-whitened variants, supporting the effectiveness of their post-projection curvature approximations in this setting. One possible explanation is that estimating curvature after projection accounts for the variances and correlations of the retained coordinates, whereas applying half-whitening before projection produces a different transformation. These results suggest that the effectiveness of a curvature approximation depends on how it is combined with gradient compression.
Table 4: Pearson correlation between FP16 and one-bit influence scores on GPT-2. We report the median of the query-wise correlations over 481 queries. Storage budgets refer to one-bit storage per training example. The highest correlation at each budget is shown in bold.
| Method | 12 KB | 24 KB | 96 KB |
|---|---|---|---|
| EOGP | 0.902 | 0.890 | 0.919 |
| LoGra (Random) | 0.604 | 0.447 | 0.086 |
| LoGra (PCA) | 0.750 | 0.570 | -0.355 |
| GraSS | 0.330 | 0.079 | -0.205 |
| LoRIF | 0.820 | 0.823 | 0.822 |

EOGP LoGra (PCA) LoGra (Random) GraSS LoRIF fp16 storage
Figure 7: LDS of compression methods under one-bit and FP16 storage on GPT-2 at matched per-example storage budgets. Horizontal lines denote uncompressed references. Curves end where the required projection dimension exceeds the method's supported dimension.
G EFFECT OF ONE-BIT QUANTIZATION ON ATTRIBUTION QUALITY
We further examine how one-bit storage affects different gradient representations using the GPT-2 setting in Section 4.1. We compare attribution quality at matched per-example storage budgets and separately measure how quantization changes influence scores while holding the projection dimension fixed.
Attribution quality under one-bit storage. Figure 7 compares one-bit and FP16 storage for the evaluated compression methods. For baselines that estimate curvature after projection, larger output dimensions increase the memory required for curvature estimation, so we evaluate their one-bit variants only up to the largest feasible storage budget. Under one-bit storage, EOGP achieves the highest LDS among the evaluated compression methods at each displayed budget, with performance improving as more storage is allocated. The one-bit variants of LoGra and GraSS exhibit a different trend, with LDS declining as the budget increases. LoRIF improves more gradually but remains below EOGP. At larger storage budgets, EOGP also outperforms the other compression baselines when all methods use FP16 storage, indicating that its advantage is not solely attributable to one-bit quantization. These results show that the effectiveness of one-bit storage depends on the representation being quantized, and that EOGP's advantage persists in a retraining-based evaluation.
Preservation of influence scores. To examine the effect of quantization directly, we compare influence scores obtained with FP16 and one-bit storage at the same projection dimension within each method. For each query, we compute the Pearson correlation between the two sets of scores across candidate training examples, then report the median correlation over queries in Table 4.
For EOGP, these correlations range from 0.890 to 0.919 across the evaluated configurations, indicating that the scores remain strongly correlated after quantization. LoGra and GraSS show substantially weaker agreement in several configurations. These correlations measure the preservation of score patterns rather than absolute score magnitudes, since Pearson correlation is unchanged by a positive rescaling or an additive shift. Together with the LDS results, they provide complementary evidence that EOGP preserves useful attribution information under one-bit storage.
A possible explanation. One possible explanation is that half-whitening makes the representation more compatible with scaled sign quantization. This quantization preserves coordinate signs but replaces their magnitudes with a common scale given by the mean absolute coordinate value. It therefore approximates vectors more accurately when their coordinate magnitudes are relatively uniform. By rescaling gradients using curvature information, half-whitening may reduce magnitude imbalances in the resulting coordinates and thereby lessen the distortion introduced by quantization. The relevant property is the relative variation in coordinate magnitudes, since uniformly rescaling a vector also rescales its quantization scale and leaves the relative reconstruction error unchanged.