SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.13954 · 2024

What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functions

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
logix-project/logix canonical 3 of 4
FunctionStatusWhere it lives
cross_dot_product Ran logix-project/logix/logix/analysis/influence_function_utils.py
code served (permissive licence) · get_code("6048bc83e834e377")
get_rank Ran logix-project/logix/logix/utils.py
code served (permissive licence) · get_code("d3e53200c9f0c7cb")
to_numpy Ran logix-project/logix/logix/utils.py
code served (permissive licence) · get_code("96b9c8cb4aa4b385")
get_repr_dim Not yet run logix-project/logix/logix/utils.py
code served (permissive licence) · get_code("fa24fec8e4cbb089")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.13954")
get_code_for_paper("2405.13954")
have("2405.13954")

Connect an agent — have() is free.