Papers › MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Models

MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Models

10 Jun 2024arXiv:2406.06046archive 2025-07-28

Zichun Yu, Spandan Das, Chenyan Xiong

Pretraining data selection has the potential to improve language model pretraining efficiency by utilizing higher-quality data from massive web data corpora. Current data selection methods, which rely on either hand-crafted rules or larger reference models, are conducted statically and do not capture the evolving data preferences during pretraining. In this paper, we introduce model-aware data selection with data influence models (MATES), where a data influence model continuously adapts to the evolving data preferences of the pretraining model and then selects the data most effective for the current pretraining progress. Specifically, we collect oracle data influence by locally probing the pretraining model and fine-tune a small data influence model to approximate it accurately. The data influence model then predicts data influence over the whole pretraining corpus and selects the most influential data for the next pretraining stage. Experiments of pretraining 410M and 1B models on the C4 dataset demonstrate that MATES significantly outperforms random data selection on extensive downstream tasks. It doubles the gains achieved by the state-of-the-art data selection approach that leverages larger reference models and reduces the total FLOPs required to reach certain performances by half. Further analyses validate the effectiveness of the locally probed oracle data influence and the approximation with data influence models. Our code is open-sourced at https://github.com/cxcscmu/MATES.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.06046")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 8 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cxcscmu/mates officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 11 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
8ran
1unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from cxcscmu/MATES. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_rope cxcscmu/MATES/src/lit_gpt/model.py official repository ran · violated contract fingerprinted MIT (permissive) · aa32c6faaa562b69 · report
build_mask_cache cxcscmu/MATES/src/lit_gpt/model.py official repository ran · violated contract fingerprinted MIT (permissive) · 7ee1c3ba71156110 · report
code cxcscmu/MATES/src/lit_gpt/packed_dataset.py official repository ran MIT (permissive) · fa298642043e1282 · report
find_multiple cxcscmu/MATES/src/lit_gpt/utils.py official repository ran fingerprinted MIT (permissive) · f5d9c92914e0ccfa · report
get_cosine_lr cxcscmu/MATES/src/pretrain/pretrain.py official repository ran fingerprinted MIT (permissive) · 22407bf0c87de445 · report
gptq_quantization cxcscmu/MATES/src/lit_gpt/utils.py official repository ran MIT (permissive) · 8e4d4ed2214edc9b · report
load_datasets cxcscmu/MATES/src/pretrain/pretrain.py official repository ran MIT (permissive) · 3b5b9d1620b5eb91 · report
multinomial_num_samples_1 cxcscmu/MATES/src/lit_gpt/gen.py official repository ran fingerprinted MIT (permissive) · bd2356fd43fa1a5e · report
num_parameters cxcscmu/MATES/src/lit_gpt/utils.py official repository ran MIT (permissive) · cfb725c11fe2d2f7 · report
sample cxcscmu/MATES/src/lit_gpt/gen.py official repository ran MIT (permissive) · 668c17707928a3d7 · report
select cxcscmu/mates/src/select_data/select_data.py official repository ran · honoured contract MIT (permissive) · 1c40f8ad438abf7a · report
build_rope_cache cxcscmu/MATES/src/lit_gpt/model.py official repository unverified MIT (permissive) · c0cabd60c81402a5 · report

Tasks

Language Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Pythia

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections