arXiv:2502.06604cs.CL2025-02被引 13

发现预训练数据中的随机噪声对模型影响远小于预期,但可能损害下游性能。

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

  • 首次系统研究互联网文本中的随机噪声问题
  • 2.7B模型下噪声导致的损失增长远低于噪声比例
  • 提出可插拔的梯度匹配损失,提升下游任务抗噪能力

大规模网络文本是大语言模型成功的基础,但其内容不可避免地包含由解码错误或无序网页产生的随机噪声。与以往关注低质量或合成数据的研究不同,本文首次通过完整的「是什么-为什么-怎么做」框架,系统性研究此类随机噪声。令人惊讶的是,即使模型规模扩大至2.7B,在下一个词预测(NTP)损失上的增加也显著低于噪声占比。我们提供了理论解释,该机制同样能说明多语言模型的成功,并可拓展至多模态模型。另一方面,实验表明下游任务表现不完全依赖于NTP损失,意味着随机噪声可能导致性能下降。为此,我们提出一种新型即插即用的局部梯度匹配损失,通过对齐正常与扰动特征的梯度,增强下游任务头的去噪能力,无需了解模型参数。在8种语言和14个视觉基准上的额外实验进一步验证了其有效性。

原文摘要 · Abstract (English)

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.

语言模型噪声处理去噪机制预训练

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。