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

利用多样性进行大语言模型预训练中的重要数据选择

Harnessing Diversity for Important Data Selection in Pretraining Large Language Models

Beijing Institute of Technology(北京理工大学);SenseTime Research(商汤科技研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);University of Arizona(亚利桑那大学);MIT(麻省理工学院);Renmin University of China(中国人民大学)

Chi Zhang, Huaping Zhong, Kuan Zhang, Chengliang Chai, Rui Wang, Xinlin Zhuang, Tianyi Bai, Jiantao Qiu, Lei Cao, Ju Fan, Ye Yuan, Guoren Wang, Conghui He

AI总结:

针对大模型预训练数据选择中现有方法耗时且多样性不足的问题,提出兼顾质量与多样性的Quad方法,通过适配注意力层加速iHVP计算评估数据影响力,结合多臂老虎机聚类选择实现质量与多样性的平衡,达成最优预训练效果。

摘要:

鉴于大规模可用训练语料库存在质量差异,数据选择在大语言模型预训练中具有重要意义。为实现这一目标,研究人员目前正在研究利用数据影响力来衡量数据实例的重要性,即高影响力得分表明将该实例加入训练集可能提升模型性能,据此他们选择得分最高的前k个实例。然而,这种方法存在若干局限性:(1)计算所有可用数据的影响力非常耗时;(2)所选数据实例的多样性不足,可能会损害预训练模型有效泛化到各类下游任务的能力。本文提出了\texttt{Quad},这是一种同时兼顾质量与多样性的数据选择方法,通过利用数据影响力实现最先进的预训练效果。具体而言,注意到注意力层能够捕捉丰富的语义细节,我们对适用于注意力层的加速iHVP计算方法进行了调整,提升了评估数据影响力(即数据质量)的能力。在多样性方面,\texttt{Quad}将数据集进行聚类,使得每个簇内的数据实例相似,而不同簇间的实例具有多样性。对于每个簇,如果我们决定从中选择数据,仅抽取部分样本评估其影响力,避免处理所有实例。为了确定要选择哪些簇,我们采用经典的多臂老虎机(Multi-Armed Bandit)方法,将每个簇视为一个臂。该方法会优先选择包含高影响力实例的簇(保证高质量)或被选择频率较低的簇(保证多样性),从而很好地平衡了质量与多样性。

英文摘要:

Data selection is of great significance in pre-training large language models, given the variation in quality within the large-scale available training corpora. To achieve this, researchers are currently investigating the use of data influence to measure the importance of data instances, $i.e.,$ a high influence score indicates that incorporating this instance to the training set is likely to enhance the model performance. Consequently, they select the top-$k$ instances with the highest scores. However, this approach has several limitations. (1) Computing the influence of all available data is time-consuming. (2) The selected data instances are not diverse enough, which may hinder the pre-trained model's ability to generalize effectively to various downstream tasks. In this paper, we introduce \texttt{Quad}, a data selection approach that considers both quality and diversity by using data influence to achieve state-of-the-art pre-training results. In particular, noting that attention layers capture extensive semantic details, we have adapted the accelerated $iHVP$ computation methods for attention layers, enhancing our ability to evaluate the influence of data, $i.e.,$ its quality. For the diversity, \texttt{Quad} clusters the dataset into similar data instances within each cluster and diverse instances across different clusters. For each cluster, if we opt to select data from it, we take some samples to evaluate the influence to prevent processing all instances. To determine which clusters to select, we utilize the classic Multi-Armed Bandit method, treating each cluster as an arm. This approach favors clusters with highly influential instances (ensuring high quality) or clusters that have been selected less frequently (ensuring diversity), thereby well balancing between quality and diversity.

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

↑