๐ค AI Summary
To address the computationally expensive trial-and-error training required for optimizing data mixing ratios in language model pretraining, this paper proposes a training-free, zero-shot data mixture optimization method. The core innovation introduces the concept of โmeta-domainsโ and domain vectors, grounded in the Distribution Alignment Assumption (DAยฒ). Leveraging classifier-driven domain decomposition, meta-domain vocabulary construction, and zero-shot data vectorization, the method enables pre-training distribution alignment modeling without any model training. It is plug-and-play and fully compatible with existing pretraining pipelines. On the Pile-CC dataset, our method achieves the same validation loss as uniform mixing using only 51.5% of the computational budget; under equal compute constraints, it yields an average 2.83% improvement across downstream tasks.
๐ Abstract
We introduce~ extsc{Domain2Vec}, a novel approach that decomposes any dataset into a linear combination of several emph{meta-domains}, a new concept designed to capture the key underlying features of datasets. extsc{Domain2Vec} maintains a vocabulary of meta-domains and uses a classifier to decompose any given dataset into a domain vector that corresponds to a distribution over this vocabulary. These domain vectors enable the identification of the optimal data mixture for language model (LM) pretraining in a training-free manner under the emph{ extbf{D}istribution extbf{A}lignment extbf{A}ssumption} (DA$^{2}$), which suggests that when the data distributions of the training set and the validation set are better aligned, a lower validation loss is achieved. Moreover, extsc{Domain2vec} can be seamlessly integrated into previous works to model the relationship between domain vectors and LM performance, greatly enhancing the efficiency and scalability of previous methods. Extensive experiments demonstrate that extsc{Domain2Vec} helps find the data mixture that enhances downstream task performance with minimal computational overhead. Specifically, extsc{Domain2Vec} achieves the same validation loss on Pile-CC using only $51.5%$ of the computation required when training on the original mixture of The Pile dataset. Under equivalent compute budget, extsc{Domain2Vec} improves downstream performance by an average of $2.83%$.