TL;DR
When a 70-billion-parameter language model says something brilliant—or catastrophic—how do you trace that output back to the exact training examples responsible? LoRIF (Low-Rank Influence Functions) breaks the storage and memory bottlenecks of existing data attribution methods, slashing disk usage and query times by up to 20×. By exploiting the natural low-rank geometry of neural network gradients, it makes forensic auditing of frontier-scale models practical without sacrificing accuracy.
What Problem Does This Paper Address?
Training Data Attribution (TDA) asks a simple counterfactual question: How would the model’s behavior on a test input change if we hadn't shown it a specific training example?
Mathematically, influence functions answer this using gradients and the inverse Hessian (a massive matrix capturing the curvature of the loss landscape). Because computing this in a multi-billion-parameter space is impossible, modern scalable methods like TRAK and LoGRA compress per-example gradients into a smaller dimension $D$ using random projections.
Yet a brutal tradeoff remains. To get accurate attributions, $D$ must be large. However, scaling up $D$ hits two walls:
- Storage and I/O: Saving $D$-dimensional gradients for millions of examples consumes terabytes, and simply loading them from disk accounts for ~96% of query latency.
- Curvature Memory: Forming and inverting the $D \times D$ Hessian approximation requires $O(D^2)$ memory, quickly blowing past GPU limits.
Methods
LoRIF builds on standard two-sided random projections (like LoGRA) but introduces two low-rank approximations targeting both bottlenecks simultaneously:
- Rank-$c$ Gradient Factorization (Solving I/O): Weight gradients in linear layers naturally have low effective rank. Instead of storing a full projected gradient matrix of size $d_2 \times d_1$ (where $D = d_1 d_2$), LoRIF uses block power iterations to factorize it into two skinny matrices of rank $c$ (often just $c=1$). Per-example, per-layer storage and disk I/O drop from $O(D)$ to $O(c\sqrt{D})$.
- Truncated SVD + Woodbury Identity (Solving Memory): Across examples, neural network Hessians exhibit a "spiked spectrum"—most curvature lives in a tiny handful of directions. LoRIF computes a randomized, rank-$r$ truncated SVD over the stored gradient factors without ever materializing the giant dense matrix in memory. Applying the Woodbury matrix identity lets LoRIF invert the curvature term inside a compact $r$-dimensional subspace, shrinking memory from $O(D^2)$ to $O(Dr)$.
Datasets
The authors do not introduce new benchmarks, instead evaluating across three progressively larger model-dataset pairs:
- WikiText-103 (with GPT2-small, 124M parameters; validation sequences used as queries).
- Dolci Think SFT (with OLMo-3-7B).
- Apertus Public SFT Data (with Apertus-70B, scaling up to 3.8M attribution examples).
- Nemotron Cascade SFT (1,000 sampled prompts used to generate assistant-response queries for the 7B and 70B models).
Key Insights and Ideas
- Querying is an I/O problem, not a compute problem: In baseline methods like LoGRA, GPUs spend almost the entire query time waiting on storage drives. Rank-1 factorization slashes I/O by ~40×, turning minutes of disk-reading into a few seconds.
- Projection dimension beats factorization fidelity: Suppose you have a fixed hard-drive budget. Should you keep $D$ small and store exact projected gradients, or make $D$ huge and aggressively compress them to rank $c=1$? The authors find that expanding the projection space $D$ yields far greater attribution quality than increasing rank $c$.
- Compression unlocks higher quality: Yes, rank-1 factors and truncated SVD introduce approximation errors. Why does LoRIF still beat exact-projection baselines? Because the massive memory and storage savings let you crank $D$ way past where baselines crash out of memory—and that wider projection space more than compensates for the low-rank approximations.
Key Results
- Efficiency at comparable quality: Across models from 124M to 70B parameters, LoRIF cuts gradient storage by 2.3–20× and reduces query latency by 1.3–20× compared to LoGRA. On OLMo-3-7B, it nearly matches LoGRA's causal "tail-patch" score using 20.3× less storage (80.9 GiB vs. 1638.6 GiB) and 22.0× lower latency (35.6s vs. 782.1s).
- Superior attribution at frontier scale: Spending some of those savings on a larger $D$ allows LoRIF to achieve 1.8× higher tail-patch scores on OLMo-3-7B and 1.5–2.2× higher scores on Apertus-70B—all while remaining smaller and faster than LoGRA.
- Human-aligned inspection: In a 1,000-query LLM-as-a-judge evaluation of top-1 retrieved training examples on Apertus-70B, LoRIF's retrievals were preferred 40.8% of the time over LoGRA's 9.1% (with 50.1% ties).
Limitations and Future Work
- Indexing overhead: While LoRIF makes storing and querying the attribution index cheap, building that index initially still requires a gradient pass over the entire dataset. Because modern LLMs train for only a few epochs, this one-time preprocessing pass remains expensive (currently mitigated by truncating sequence lengths).
- SFT vs. Pre-training: The 7B and 70B experiments attribute supervised fine-tuning (SFT) corpora (up to 3.8M examples) rather than trillions of raw pre-training tokens. Validating and scaling index construction to full pre-training runs remains an open frontier.
Summary updated