[Paper Review] What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functions
This paper proposes LoGra, a low-rank gradient projection method that accelerates influence function-based data valuation for large language models (LLMs), reducing GPU memory by 5× and increasing throughput up to 6,500× compared to prior baselines. It enables scalable, accurate data valuation on Llama3-8B-Instruct using a 1B-token dataset, with minimal code changes via the Logix software framework.
Large language models (LLMs) are trained on a vast amount of human-written data, but data providers often remain uncredited. In response to this issue, data valuation (or data attribution), which quantifies the contribution or value of each data to the model output, has been discussed as a potential solution. Nevertheless, applying existing data valuation methods to recent LLMs and their vast training datasets has been largely limited by prohibitive compute and memory costs. In this work, we focus on influence functions, a popular gradient-based data valuation method, and significantly improve its scalability with an efficient gradient projection strategy called LoGra that leverages the gradient structure in backpropagation. We then provide a theoretical motivation of gradient projection approaches to influence functions to promote trust in the data valuation process. Lastly, we lower the barrier to implementing data valuation systems by introducing LogIX, a software package that can transform existing training code into data valuation code with minimal effort. In our data valuation experiments, LoGra achieves competitive accuracy against more expensive baselines while showing up to 6,500x improvement in throughput and 5x reduction in GPU memory usage when applied to Llama3-8B-Instruct and the 1B-token dataset.
Motivation & Objective
- Address the lack of mechanisms to credit or compensate data providers in LLM training, especially as legal and ethical tensions grow over data usage.
- Overcome the prohibitive computational and memory costs of applying data valuation methods—particularly influence functions—to modern LLMs and their massive training datasets.
- Develop a scalable, efficient, and theoretically grounded gradient projection method for influence functions that avoids full gradient computation and retraining.
- Lower the barrier to adopting data valuation in practice by introducing Logix, a software package that transforms standard training code into data valuation code with minimal effort.
Proposed method
- Introduce LoGra, a low-rank gradient projection algorithm that reduces the space and time complexity of gradient projection from O(nk) to O(√(nk)) by exploiting the structure of backpropagation gradients.
- Design LoGra to compute projected gradients directly without materializing full gradients, enabling low GPU memory usage and high GPU utilization.
- Theoretically justify gradient projection in influence functions by interpreting the damping term as a spectral gradient sparsification mechanism, supporting trust in the method.
- Propose a specialized PCA initialization scheme for LoGra based on the theoretical interpretation of the damping term.
- Develop Logix, a software package that enables seamless conversion of existing LLM training code into data valuation code, with compatibility for LLM ecosystem tools and extensibility for other interpretability methods.
- Apply LoGra to influence functions for pretraining and fine-tuning, enabling data valuation in both settings.

Experimental results
Research questions
- RQ1Can influence functions be scaled to billion-parameter LLMs and datasets with acceptable computational and memory costs?
- RQ2How can gradient projection in influence functions be made more efficient without sacrificing accuracy in data valuation?
- RQ3What theoretical foundations support the use of gradient projection in influence functions, and how can they be leveraged to improve method reliability?
- RQ4To what extent can data valuation systems be made practical and accessible to researchers and practitioners through software abstraction?
- RQ5How do the most influential training examples identified by LoGra compare to the queried model outputs in terms of qualitative similarity and utility?
Key findings
- LoGra achieves up to 6,500× higher throughput and 5× lower GPU memory usage compared to EKFAC influence, the only runnable baseline at scale, when applied to Llama3-8B-Instruct and a 1B-token dataset.
- LoGra maintains competitive accuracy in counterfactual evaluations, demonstrating that its influence estimates are reliable despite significant efficiency gains.
- The most valuable training examples identified by LoGra generally share qualitative similarities with the queried LLM outputs, supporting the method’s interpretability and relevance.
- LoGra’s theoretical justification via spectral gradient sparsification and PCA initialization enhances trust in the data valuation process.
- Logix enables easy integration of data valuation into existing training pipelines with minimal code changes, promoting adoption across the LLM community.
- Failure cases in data attribution are more common with lower-quality model outputs (e.g., Pythia-1.4B), suggesting model quality affects valuation reliability.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.