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

我们真的必须过滤掉语言模型预训练数据中的随机噪声吗?

Do we really have to filter out random noise in pre-training data for language models?

School of Electronic and Computer Engineering, Peking University(北京理工大学电子与计算机工程学院);University of Electronic Science and Technology of China(电子科技大学);Hong Kong University of Science and Technology(香港理工大学);Sichuan University(四川大学)

Jinghan Ru, Yuxin Xie, Xianwei Zhuang, Yuguo Yin, Zhihui Guo, Zhiming Liu, Qianli Ren, Yuexian Zou

AI总结:

该研究首次系统探究预训练数据中随机噪声对大语言模型的影响,解释了NTP损失增幅低于噪声占比的现象,提出即插即用的局部梯度匹配损失以缓解噪声对下游任务的负面影响,经多基准验证有效。

摘要:

网络规模的预训练数据集是大语言模型(LLMs)成功的基石。然而,从互联网上整理的文本数据不可避免地包含由解码错误或不受监管的网络内容导致的随机噪声。与以往聚焦于低质量或合成数据的研究不同,本研究通过一个连贯的“是什么-为什么-怎么做”框架,首次对此类随机噪声展开了系统性研究。令人意外的是,我们观察到,即使模型规模扩展至27亿参数,随机噪声导致的下一词元预测(NTP)损失的增幅也远低于随机噪声的占比。我们为这一现象提供了理论解释,该理论也阐明了多语言模型的成功原理,且可应用于多模态模型。另一方面,实验表明模型在下游任务中的表现并非仅取决于NTP损失,这意味着随机噪声可能会导致下游性能下降。为应对这一潜在负面影响,我们提出了一种新颖的即插即用的局部梯度匹配损失,它通过对齐正常特征与扰动特征的梯度,显式增强下游任务头的去噪能力,且无需知晓模型参数。在8个语言基准和14个视觉基准上开展的额外实验进一步验证了该方法的有效性。

英文摘要:

Web-scale pre-training datasets are the cornerstone of LLMs' success. However, text data curated from the Internet inevitably contains random noise caused by decoding errors or unregulated web content. In contrast to previous works that focus on low quality or synthetic data, our study \textbf{provides the first systematic investigation of such random noise through a cohesive ``What-Why-How'' framework.} Surprisingly, we observed that the resulting increase in the loss of next-token prediction (NTP) was significantly lower than the proportion of random noise even when the model was scaled up to 2.7B. We provide a theoretical justification for this phenomenon, which also elucidates the success of multilingual models and can be applied to multimodal models. On the other hand, experiments show that the model's performance in downstream tasks is not based solely on the NTP loss, which means that random noise may result in degraded downstream performance. To address the potential adverse effects, we introduce a novel plug-and-play Local Gradient Matching loss, which explicitly enhances the denoising capability of the downstream task head by aligning the gradient of normal and perturbed features without requiring knowledge of the model's parameters. Additional experiments on 8 language and 14 vision benchmarks further validate its effectiveness.

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

↑