BLISS: 一种用于语言模型预训练数据选择的轻量级双层影响评分方法
BLISS: A Lightweight Bilevel Influence Scoring Method for Data Selection in Language Model Pretraining
AI总结:
提出一种无需外部预训练模型的轻量级数据选择方法BLISS,通过双层优化和代理模型估计训练样本的长期影响,实现高效数据筛选,在C4数据集上预训练多种规模模型,显著加速收敛并提升下游任务性能。
摘要:
有效的数据选择对于预训练大型语言模型(LLM)至关重要,可以提高效率并增强对下游任务的泛化能力。然而,现有方法通常需要利用外部预训练模型,使得难以将数据选择的效果与外部预训练模型的效果分开。此外,如果模型训练至收敛,它们通常忽略所选数据的长期影响,这主要是由于全规模LLM预训练的过高成本。在本文中,我们介绍了BLISS(用于数据选择的轻量级双层影响评分方法):一种轻量级数据选择方法,完全从头开始操作,不依赖任何外部预训练预言模型,同时明确考虑所选数据的长期影响。BLISS利用一个小型代理模型作为LLM的替代,并采用一个评分模型来估计如果代理模型训练至收敛时训练样本的长期影响。我们将数据选择形式化为一个双层优化问题,其中上层目标优化评分模型以分配重要性权重给训练样本,确保最小化下层目标(即在加权训练损失上训练代理模型直至收敛)导致最佳验证性能。一旦优化完成,训练好的评分模型预测数据集的影响分数,从而能够高效选择高质量样本用于LLM预训练。我们通过在C4数据集的选择子集上预训练410M/1B/2.8B Pythia和LLaMA-0.5B模型来验证BLISS。值得注意的是,在1B模型设置下,BLISS在达到与最先进方法相同性能时实现了1.7倍的加速,展示了在多个下游任务上的优越性能。
英文摘要:
Effective data selection is essential for pretraining large language models (LLMs), enhancing efficiency and improving generalization to downstream tasks. However, existing approaches often require leveraging external pretrained models, making it difficult to disentangle the effects of data selection from those of the external pretrained models. In addition, they often overlook the long-term impact of selected data if the model is trained to convergence, primarily due to the prohibitive cost of full-scale LLM pretraining. In this paper, we introduce BLISS (\textbf{B}ileve\textbf{L} \textbf{I}nfluence \textbf{S}coring method for data \textbf{S}election): a lightweight data selection method that operates entirely \emph{from scratch}, without relying on any external pretrained oracle models, while explicitly accounting for the long-term impact of selected data. BLISS leverages a small proxy model as a surrogate for the LLM and employs a score model to estimate the long-term influence of training samples if the proxy model is trained to convergence. We formulate data selection as a bilevel optimization problem, where the upper-level objective optimizes the score model to assign importance weights to training samples, ensuring that minimizing the lower-level objective (i.e., training the proxy model over the weighted training loss until convergence) leads to best validation performance. Once optimized, the trained score model predicts influence scores for the dataset, enabling efficient selection of high-quality samples for LLM pretraining. We validate BLISS by pretraining 410M/1B/2.8B Pythia and LLaMA-0.5B models on selected subsets of the C4 dataset. Notably, under the 1B model setting, BLISS achieves $1.7\times$ speedup in reaching the same performance as the state-of-the-art method, demonstrating superior performance across multiple downstream tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。