Domain2Vec: Vectorizing Datasets to Find the Optimal Data Mixture without Training
Abstract
Domain2Vec decomposes datasets into meta-domains to optimize language model pretraining and downstream performance with reduced computational cost.
We introduce~Domain2Vec, a novel approach that decomposes any dataset into a linear combination of several meta-domains, a new concept designed to capture the key underlying features of datasets. 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 \textbf{Distribution Alignment Assumption} (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, 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 Domain2Vec helps find the data mixture that enhances downstream task performance with minimal computational overhead. Specifically, 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, Domain2Vec improves downstream performance by an average of 2.83%.
Community
We present Domain2Vec, a method to vectorize datasets to get the representation over constructed meta-domains. Based on that, we present two ways
- Domain Alignment Assumption: finding better data mixture without training
- Applying Domain2Vec into prior data mixture works (e.g., RegMix) but much less computational cost and higher scalability.
Welcome any comment, feedback, and discussion!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Chameleon: A Flexible Data-mixing Framework for Language Model Pretraining and Finetuning (2025)
- CLIMB: CLustering-based Iterative Data Mixture Bootstrapping for Language Model Pre-training (2025)
- DIDS: Domain Impact-aware Data Sampling for Large Language Model Training (2025)
- Meta-rater: A Multi-dimensional Data Selection Method for Pre-training Language Models (2025)
- Rethinking Data Mixture for Large Language Models: A Comprehensive Survey and New Perspectives (2025)
- AttentionInfluence: Adopting Attention Head Influence for Weak-to-Strong Pretraining Data Selection (2025)
- DataRater: Meta-Learned Dataset Curation (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper