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

Zichun Yu, Spandan Das, Chenyan Xiong · OpenReview

Abstract

Pretraining data selection is a critical lever for improving the efficiency of large language models (LLMs). While traditional methods rely on static rules or fixed reference models, they fail to account for the evolving data preferences of a model as it progresses through training. We present MATES (Model-Aware data selecTion with daTa influencE modelS), a framework that treats data selection as a dynamic, model-aware process. By training a small data influence model to approximate the "oracle" influence of data points on the current pretraining state, MATES selects the most beneficial data for each stage of training. Our experiments demonstrate that MATES significantly outperforms random selection and existing state-of-the-art methods, achieving target performance with 2.3x fewer FLOPs.

Introduction

The computational cost of pretraining LLMs is a major bottleneck in AI development. While massive web-scale corpora provide abundant training material, the quality and utility of individual data points vary significantly. Current selection strategies—ranging from heuristic filters to static scoring by larger "teacher" models—operate under the assumption that data quality is a fixed attribute.

However, a model's learning trajectory is dynamic. The data most useful for a model in its initial stages (e.g., basic linguistic structures) may differ from what it requires during later stages (e.g., complex reasoning or domain-specific knowledge). MATES addresses this by introducing a "model-aware" selection mechanism that adapts to the pretraining model's current state, ensuring that the data stream is always optimized for the model's immediate learning needs.

The MATES Framework

MATES implements a dynamic selection loop consisting of four primary components:

1. Local Probing (The Oracle)

To determine which data is currently most influential, the framework performs "local probing." For a small subset of the corpus, the pretraining model is briefly trained on a specific data point, and the resulting change in loss is measured against a reference task (such as LAMBADA). This "before-and-after" delta serves as the oracle influence score, representing the actual utility of that specific data point at that specific moment in time.

2. Influence Parameterization

Because probing every document in a multi-billion token corpus is computationally prohibitive, MATES uses a proxy. A small, efficient model (e.g., BERT-base) is fine-tuned on the oracle scores collected during the probing phase. This "influence model" learns to map document features to predicted influence scores.

3. Predictive Selection

The fine-tuned influence model is then used to score the entire pretraining corpus. MATES selects the documents with the highest predicted influence to form the training batch for the next stage of pretraining.

4. Dynamic Iteration

To maintain model-awareness, the influence model is periodically updated (e.g., every 10,000 steps). This ensures that as the pretraining model matures and its data preferences shift, the selection criteria shift accordingly.

Experimental Results

We evaluated MATES by pretraining 410M and 1B parameter models on the C4 dataset (25B tokens) and testing across nine diverse downstream tasks, including SciQ, ARC, and HellaSwag.

Efficiency and Performance

MATES demonstrated a substantial improvement in training efficiency. It reached the same downstream performance levels as random selection while requiring 2.3x fewer total FLOPs. On the 1B parameter model, MATES achieved an average accuracy improvement of 1.1% across all tasks, doubling the performance gains of previous state-of-the-art methods like QuRating.

Low Computational Overhead

A key concern with dynamic selection is the added cost of probing and proxy training. However, for the 1B model, the entire MATES overhead—including probing, influence model training, and inference—accounted for only 11.5% of the total compute budget. This small investment yields a massive return in overall training speedup.

Key Insights

  • Fluidity of Data Preferences: Analysis shows that the correlation between data influence at the beginning versus the end of training is low. This confirms that static data mixtures are inherently sub-optimal.
  • Proxy Effectiveness: A relatively small model (BERT-base) is capable of accurately predicting the preferences of a much larger (1B) model, making the framework scalable.
  • Steerability: By adjusting the reference task used during the probing phase (e.g., using logic-heavy tasks instead of general ones), researchers can steer the pretraining process toward specific capabilities without altering the underlying data pool.

Conclusion and Future Work

MATES represents a shift from static data filtering to dynamic, model-aware data curriculum. By aligning the data stream with the model's evolving needs, it significantly reduces the cost of reaching high-performance thresholds. Future research will focus on scaling this approach to models with tens of billions of parameters and exploring the "curriculum effects" of data ordering and combinations beyond the current independence assumption.

Summary updated

BibTeX
@inproceedings{yu2024mates,
  author = {Zichun Yu and Spandan Das and Chenyan Xiong},
  title = {{MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=6gzPSMUAz2},
}
Figure