arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.06654cs.CLcs.AI
收藏

SoftDedup:一种用于加速语言模型预训练的高效数据重加权方法

SoftDedup: an Efficient Data Reweighting Method for Speeding Up Language Model Pre-training

Tencent AI Lab(腾讯AI实验室)

Nan He, Weichen Xiong, Hanwen Liu, Yi Liao, Lei Ding, Kai Zhang, Guohua Tang, Xiao Han, Wei Yang

AI总结:

针对大语言模型预训练数据重复导致效率受限的问题,提出基于数据共性的SoftDedup软去重重加权方法,在保数据集完整性的同时提升训练效率与下游性能,可补充现有去重方案。

摘要:

大语言模型(LLM)的有效性往往受其大规模预训练数据集中重复数据的制约。现有方法主要聚焦于检测并移除重复数据,这存在丢失有价值信息的风险,且忽略了重复程度的差异性。为解决该问题,我们提出一种软去重方法,在保持数据集完整性的同时,选择性降低高共性数据的采样权重。我们方法的核心是“数据共性”概念,这是我们引入的一项指标,通过使用n-gram模型测量样本的出现概率来量化重复程度。实证分析表明,该方法显著提升了训练效率,在达到相当困惑度分数的情况下,所需训练步数至少减少26%。此外,在相同训练时长下,该方法将下游少样本平均准确率提升了1.77%。重要的是,即使在经过严格去重的数据集上,该方法也能持续提升性能,表明其有潜力补充现有方法,成为LLM预训练的标准流程。

英文摘要:

The effectiveness of large language models (LLMs) is often hindered by duplicated data in their extensive pre-training datasets. Current approaches primarily focus on detecting and removing duplicates, which risks the loss of valuable information and neglects the varying degrees of duplication. To address this, we propose a soft deduplication method that maintains dataset integrity while selectively reducing the sampling weight of data with high commonness. Central to our approach is the concept of "data commonness", a metric we introduce to quantify the degree of duplication by measuring the occurrence probabilities of samples using an n-gram model. Empirical analysis shows that this method significantly improves training efficiency, achieving comparable perplexity scores with at least a 26% reduction in required training steps. Additionally, it enhances average few-shot downstream accuracy by 1.77% when trained for an equivalent duration. Importantly, this approach consistently improves performance, even on rigorously deduplicated datasets, indicating its potential to complement existing methods and become a standard pre-training process for LLMs.

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

↑