SampleMix: A Sample-wise Pre-training Data Mixing Strategey by Coordinating Data Quality and Diversity

Xiangyu Xi, Deyang Kong, Jian Yang, Jiawei Yang, Zhengyu Chen +5 more
3/3/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Existing pretraining data mixing methods for large language models (LLMs) typically follow a domain-wise methodology, a top-down process that first determines domain weights and then performs uniform data sampling across each domain. However, these approaches neglect significant inter-domain overlaps and commonalities, failing to control the global diversity of the constructed training dataset. Further, uniform sampling within domains ignores fine-grained sample-specific features, potentially leading to suboptimal data distribution. To address these shortcomings, we propose a novel sample-wise data mixture approach based on a bottom-up paradigm. This method performs global cross-domain sampling by systematically evaluating the quality and diversity of each sample, thereby dynamically determining the optimal domain distribution. Comprehensive experiments across multiple downstream tasks and perplexity assessments demonstrate that SampleMix surpasses existing domain-based methods. Meanwhile, SampleMix requires 1.4x to 2.1x training steps to achieves the baselines' performance, highlighting the substantial potential of SampleMix to optimize pre-training data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xi2025samplemix,
  title  = {SampleMix: A Sample-wise Pre-training Data Mixing Strategey by Coordinating Data Quality and Diversity},
  author = {Xiangyu Xi and Deyang Kong and Jian Yang and Jiawei Yang and Zhengyu Chen and Wei Wang and Jingang Wang and Xunliang Cai and Shikun Zhang and Wei Ye},
  year   = {2025},
  eprint = {2503.01506},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.01506v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.01506.svg)](https://codeofpaper.com/paper/2503.01506)

Discussion