arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.14917cs.CLcs.AI
收藏

MASS:基于技能图的数学数据选择方法用于大语言模型预训练

MASS: Mathematical Data Selection via Skill Graphs for Pretraining Large Language Models

University of Connecticut, USA(美国康涅狄格大学);University of Notre Dame, USA(美国诺丁汉大学)

Jiazheng Li, Lu Yu, Qing Cui, Zhiqiang Zhang, Jun Zhou, Yanfang Ye, Chuxu Zhang

AI总结:

本文提出MASS框架,通过构建数学技能图对预训练数据进行质量评分与子集选择,在减少50%-70%训练token的同时使模型性能提升3.3%-5.9%。

摘要:

高质量数据在大语言模型(LLMs)的预训练和微调中起着至关重要的作用,甚至在某种程度上决定了它们的性能上限。因此,研究者提出了众多数据选择方法,以识别能够有效且高效地提升模型性能的数据子集。然而,这些方法大多侧重于通用数据选择,往往忽视了领域相关数据的特定细微差别。在本文中,我们提出了MASS,一个基于技能图的数学数据选择框架,用于在数学推理领域预训练大语言模型。通过考虑数学和推理的独特特征,我们构建了一个技能图,从参考数据集中捕捉数学技能及其相互关系。该技能图指导我们为目标数据集分配质量分数,从而选出排名靠前的子集,并进一步用于预训练大语言模型。实验结果表明,MASS在不同模型规模(1B和7B)和预训练数据集(网络数据和合成数据)上均具有高效性和有效性。具体而言,在效率方面,使用MASS选出的子集训练的模型可以达到与使用原始数据集训练的模型相似的性能,同时训练所用的token数量显著减少——减少了50%到70%。在有效性方面,当使用相同数量的token进行训练时,使用MASS所选数据训练的模型比使用原始数据集训练的模型性能高出3.3%到5.9%。这些结果凸显了MASS在提升大语言模型预训练效率和有效性方面的潜力。

英文摘要:

High-quality data plays a critical role in the pretraining and fine-tuning of large language models (LLMs), even determining their performance ceiling to some degree. Consequently, numerous data selection methods have been proposed to identify subsets of data that can effectively and efficiently enhance model performance. However, most of these methods focus on general data selection and tend to overlook the specific nuances of domain-related data. In this paper, we introduce MASS, a \textbf{MA}thematical data \textbf{S}election framework using the \textbf{S}kill graph for pretraining LLMs in the mathematical reasoning domain. By taking into account the unique characteristics of mathematics and reasoning, we construct a skill graph that captures the mathematical skills and their interrelations from a reference dataset. This skill graph guides us in assigning quality scores to the target dataset, enabling us to select the top-ranked subset which is further used to pretrain LLMs. Experimental results demonstrate the efficiency and effectiveness of MASS across different model sizes (1B and 7B) and pretraining datasets (web data and synthetic data). Specifically, in terms of efficiency, models trained on subsets selected by MASS can achieve similar performance to models trained on the original datasets, with a significant reduction in the number of trained tokens - ranging from 50\% to 70\% fewer tokens. In terms of effectiveness, when trained on the same amount of tokens, models trained on the data selected by MASS outperform those trained on the original datasets by 3.3\% to 5.9\%. These results underscore the potential of MASS to improve both the efficiency and effectiveness of pretraining LLMs.

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

↑