Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration

Tianyi Bai, Ling Yang, Zhen Hao Wong, Fupeng Sun, Xinlin Zhuang, Jiahui Peng, Chi Zhang, Lijun Wu, Jiantao Qiu, Wentao Zhang, Binhang Yuan, Conghui He

Introduction

The pretraining of large language models (LLMs) is a resource-intensive process, making the selection of high-quality, informative data a critical challenge. While various heuristics exist—such as quality filtering, domain balancing, and influence-based selection—these metrics often conflict. For instance, data with high quality scores may lack diversity, or highly diverse data might have negligible impact on model weights at a specific training stage. This paper addresses these conflicts by introducing a dynamic, multi-actor collaborative framework designed to optimize data selection throughout the training process.

The Multi-Actor Collaborative Framework

The core of the proposed approach is a system of independent "Actors" managed by a central "Actor Console." This architecture allows the model to leverage multiple selection strategies simultaneously, adapting their relative influence as training progresses.

Actors and the Console

The framework utilizes three specialized actors:

  1. Quality Actor: Focuses on selecting data with high educational or linguistic value.
  2. Domain Actor: Balances data across different sources (e.g., web text vs. code).
  3. Topic Actor: Ensures a broad coverage of subject matter.

The process is divided into an offline labeling phase and an online update phase. During the offline phase, the dataset is pre-processed and labeled. In the online phase, each actor maintains a memory of weights for its respective categories. The Actor Console dynamically adjusts the collaborative weights of these actors based on the "rewards" (performance improvements) they provide at different training steps.

Overview of the multi-actor collaborative data selection framework, featuring offline labeling and online dynamic updates.

Experimental Results

The authors evaluated the framework using a 1.3B parameter LLaMA-2 architecture trained on the SlimPajama corpus. The model was tested across 10 diverse tasks covering problem-solving, commonsense reasoning, and reading comprehension.

Performance and Efficiency

The collaborative approach demonstrated significant improvements in both final performance and training efficiency. Notably, the model trained with the multi-actor framework using only 30 billion tokens outperformed a standard baseline trained on 60 billion tokens of randomly sampled data. This represents a substantial reduction in the computational resources required to reach a target performance level.

Comparison of average downstream accuracy across pretraining steps, demonstrating the superior efficiency and performance of the proposed method.

Compared to state-of-the-art baselines like QuRating and MATES, the proposed method achieved an average relative performance gain of 10.5%. Ablation studies further confirmed that the dynamic collaboration update is essential; models using multiple actors without the console's dynamic balancing performed significantly worse, highlighting that "good data" is a moving target that requires adaptive selection.

Conclusion

By treating data selection as a collaborative task between specialized actors, the proposed framework effectively navigates the trade-offs between quality, diversity, and influence. The result is a more efficient training process that achieves higher downstream accuracy with fewer tokens. Future work will explore scaling this approach to models with over 70 billion parameters and integrating additional actors for dimensions like factual density and bias.

Summary updated

BibTeX
@inproceedings{bai2025efficient,
  author = {Tianyi Bai and Ling Yang and Zhen Hao Wong and Fupeng Sun and Xinlin Zhuang and Jiahui Peng and Chi Zhang and Lijun Wu and Jiantao Qiu and Wentao Zhang and Binhang Yuan and Conghui He},
  title = {{Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure