An Empirical Study on Noisy Data and LLM Pretraining Loss Divergence
Qizhen Zhang, Ankush Garg, Jakob Foerster, Niladri Chatterji, Kshitiz Malik, Mike Lewis
TL;DR
This study systematically probes how noisy data affects LLM pretraining stability by injecting uniform random noise into a clean corpus across models from $480M$ to $5.2B$ parameters. It shows that noise can cause loss divergence, with probability depending on noise type, magnitude $\alpha$, and model depth, and introduces diagnostics to distinguish noisy-data divergences from high learning-rate failures. The authors Compare dense and MoE architectures, find similar sensitivity to noise, and demonstrate interventions such as data cleaning and $\text{QK-layernorm}$ that stabilize training. The work provides practical guidance for data curation and model design to enhance robustness in large-scale pretraining.
Abstract
Large-scale pretraining datasets drive the success of large language models (LLMs). However, these web-scale corpora inevitably contain large amounts of noisy data due to unregulated web content or randomness inherent in data. Although LLM pretrainers often speculate that such noise contributes to instabilities in large-scale LLM pretraining and, in the worst cases, loss divergence, this phenomenon remains poorly understood.In this work, we present a systematic empirical study of whether noisy data causes LLM pretraining divergences and how it does so. By injecting controlled synthetic uniformly random noise into otherwise clean datasets, we analyze training dynamics across model sizes ranging from 480M to 5.2B parameters. We show that noisy data indeed induces training loss divergence, and that the probability of divergence depends strongly on the noise type, amount of noise, and model scale. We further find that noise-induced divergences exhibit activation patterns distinct from those caused by high learning rates, and we provide diagnostics that differentiate these two failure modes. Together, these results provide a large-scale, controlled characterization of how noisy data affects loss divergence in LLM pretraining.
