arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.10952cs.CLcs.AIcs.LG
收藏

Domain2Vec:向量化数据集以无需训练即可找到最优数据混合

Domain2Vec: Vectorizing Datasets to Find the Optimal Data Mixture without Training

School of Computer Science, Fudan University, Shanghai, China(复旦大学计算机学院,上海,中国)

Mozhi Zhang, Howe Tissue, Lu Wang, Xipeng Qiu

AI总结:

本研究提出Domain2Vec方法,通过将数据集分解为元域线性组合得到域向量,在分布对齐假设下无需训练即可找到语言模型预训练的最优数据混合,大幅降低计算开销并提升下游性能。

摘要:

我们提出了\textsc{Domain2Vec},这是一种将任意数据集分解为若干元域(meta-domains,用于捕捉数据集核心潜在特征的新概念)线性组合的新方法。\textsc{Domain2Vec}维护一个元域词表,并使用分类器将任意给定数据集分解为一个域向量,该向量对应该词表上的分布。在分布对齐假设(Distribution Alignment Assumption,DA²,即训练集与验证集的数据分布对齐度越高,验证损失越低)下,这些域向量能够以无需训练的方式确定语言模型(LM)预训练的最优数据混合。此外,\textsc{Domain2Vec}可无缝集成到现有工作中,用于建模域向量与语言模型性能的关系,大幅提升了现有方法的效率与可扩展性。大量实验表明,\textsc{Domain2Vec}能以极低的计算开销找到可提升下游任务性能的数据混合。具体而言,在Pile-CC数据集上,\textsc{Domain2Vec}仅使用The Pile数据集原始混合训练所需计算量的51.5%,就达到了相同的验证损失。在同等计算预算下,\textsc{Domain2Vec}将下游性能平均提升了2.83%。

英文摘要:

We introduce~\textsc{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. \textsc{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{\textbf{D}istribution \textbf{A}lignment \textbf{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, \textsc{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 \textsc{Domain2Vec} helps find the data mixture that enhances downstream task performance with minimal computational overhead. Specifically, \textsc{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, \textsc{Domain2Vec} improves downstream performance by an average of $2.83\%$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑