arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.20644cs.LG
收藏

通过多样化文件选择对抗LLM预训练数据中的维度坍缩

Combatting Dimensional Collapse in LLM Pre-Training Data via Diversified File Selection

Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室);Fudan University(复旦大学);Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);Nanyang Technological University(南洋理工大学)

Ziqing Fan, Siyuan Du, Shengchao Hu, Pingjie Wang, Li Shen, Ya Zhang, Dacheng Tao, Yanfeng Wang

AI总结:

针对LLM预训练中基于领域相似性选数据导致的特征空间维度坍缩问题,提出多样化文件选择算法DiSF,通过贪心算法选取去相关文本以实现特征值均匀化,在节省98.5%数据的同时显著提升了模型整体性能与训练效率。

摘要:

为大型语言模型(LLMs)选择高质量的预训练数据,对于在有限计算预算下提升其整体性能、改善训练和样本效率至关重要。近期文件选择的进展主要依赖于使用现有的或训练好的代理模型来评估样本与目标领域的相似度,例如高质量来源BookCorpus和Wikipedia。然而,在重新审视这些方法时,领域相似性选择标准表现出一种多样性困境,即特征空间中的维度坍缩,这提升了领域相关任务的性能,却导致通用性能严重退化。为防止坍缩并增强多样性,我们提出了一种多样化文件选择算法,在特征空间中选择最不相关的文本文件。我们采用经典的贪心算法来实现所选文本特征协方差矩阵中更均匀的特征值,并分析了其在$γ$-弱次模优化问题表述下对最优解的近似。在实验上,我们建立了一个基准,并在TinyLlama架构上使用120M到1.1B参数的模型进行了广泛实验。通过Harness框架的九项任务评估,DiSF在整体性能上表现出显著提升。具体而言,DiSF在SlimPajama中节省了590M训练文件中的98.5%,在50B训练预算内优于全量数据预训练,并实现了约1.5倍的训练效率和5倍的数据效率。

英文摘要:

Selecting high-quality pre-training data for large language models (LLMs) is crucial for enhancing their overall performance under limited computation budget, improving both training and sample efficiency. Recent advancements in file selection primarily rely on using an existing or trained proxy model to assess the similarity of samples to a target domain, such as high quality sources BookCorpus and Wikipedia. However, upon revisiting these methods, the domain-similarity selection criteria demonstrates a diversity dilemma, i.e.dimensional collapse in the feature space, improving performance on the domain-related tasks but causing severe degradation on generic performance. To prevent collapse and enhance diversity, we propose a DiverSified File selection algorithm (DiSF), which selects the most decorrelated text files in the feature space. We approach this with a classical greedy algorithm to achieve more uniform eigenvalues in the feature covariance matrix of the selected texts, analyzing its approximation to the optimal solution under a formulation of $γ$-weakly submodular optimization problem. Empirically, we establish a benchmark and conduct extensive experiments on the TinyLlama architecture with models from 120M to 1.1B parameters. Evaluating across nine tasks from the Harness framework, DiSF demonstrates a significant improvement on overall performance. Specifically, DiSF saves 98.5% of 590M training files in SlimPajama, outperforming the full-data pre-training within a 50B training budget, and achieving about 1.5x training efficiency and 5x data efficiency.

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

↑