TL;DR
Introducing a lightweight "pre-pre-training" (PPT) stage using synthetic data generated by random Recurrent Neural Networks (RNNs) drastically improves a language model's resistance to dirty, noisy data during main pre-training. For a 1B-parameter model, just 65 million tokens of this synthetic training allows the model to match baseline performance while using up to 49% fewer natural-text tokens under noisy conditions.
What Problem Does This Paper Address?
Large Language Models (LLMs) are hungry for data, usually consuming web-scale text corpora. However, the web is a messy place filled with boilerplate text, formatting errors, and machine-generated gibberish. This "noise" harms training stability, reduces the model's knowledge capacity, and degrades downstream performance.
While data curation and filtering help, they are computationally expensive and introduce a nasty trade-off: aggressive filtering often accidentally throws away rare but highly valuable "tail" knowledge.
Instead of trying to perfectly clean the data, the authors ask a different question: Can we make the model intrinsically robust to noise before main training even begins?
Methods
The authors propose a simple, two-stage training pipeline:
- Synthetic Pre-Pre-Training (PPT): Before exposing the model to real-world text, it undergoes a brief warm-up phase on purely synthetic sequences.
- Standard Pre-Training (PT): The model is then trained normally on natural language corpora, which may contain varying levels of noise.
The secret sauce lies in how the synthetic data is generated. Rather than using unstructured random tokens or rigid formal languages (like bracket-matching Dyck languages), the authors use an ensemble of $M=1000$ randomly initialized, fixed (untrained) RNNs.
Because these RNNs are recurrent systems, the sequences they output possess a hidden temporal structure and long-range dependencies, even though they look like random noise on the surface. Aggregating outputs from a massive ensemble of these generators exposes the model to a rich, diverse set of abstract structural patterns without introducing any specific linguistic bias.
Datasets
The approach was evaluated using several setups:
- C4 (Colossal Clean Crawled Corpus): Used as the primary clean baseline, with controlled noise artificially injected at different rates (0%, 10%, 30%, 50%) and types (sample-level corruption, token permutation, and span corruption).
- FineWeb: Used to validate the approach on real-world data. The authors used an external reference model to split FineWeb into "clean" and "noisy" subsets based on perplexity scores.
- LAMBADA and PIQA: Used as downstream evaluation benchmarks to ensure that noise robustness translates to actual language understanding capabilities.
Key Insights and Ideas
- Structure, Not Just Warm-Up, Matters: Training on completely random i.i.d. tokens during PPT yields zero robustness gains. The model requires data with sequential structure (like RNN outputs) to build a helpful structural prior.
- Inhibiting "Noise Self-Modeling": Why does this work? Models trained from scratch suffer from noise self-modeling—they mistakenly learn to treat corrupted, noisy tokens as predictive signals for subsequent tokens. Mechanistic analysis reveals that RNN-PPT alters the model's optimization trajectory. It doesn't immediately block out noise; instead, it guides the model to gradually downweight attention between corrupted tokens during main pre-training.
- The Complexity Sweet Spot: For the synthetic data to be effective, it must be learnable but not trivial. The authors found a sweet spot using RNNs with a moderate hidden size ($H=64$). If the generators are too complex (e.g., hidden sizes of 512 or 1024), the downstream robustness benefits disappear.
Key Results
- Massive Token Savings: At the 1B-parameter scale with 15% data noise, a model initialized with RNN-PPT matched the final validation loss of the standard baseline while requiring 49% fewer natural-text pre-training tokens.
- Consistent Gains Across Noise Types: The approach consistently outperformed both the baseline (no PPT) and formal-language alternatives (Dyck PPT) across all tested noise intensities and corruption types (sample, span, and permutation).
- Real-World Validation: When tested on naturally noisy web data from FineWeb, the RNN-PPT model achieved significantly lower validation loss on both the clean and noisy splits, with the largest relative improvements occurring on the noisier data.
Limitations and Future Work
While promising, the authors note a few areas for improvement:
- Pipeline Overhead for Exploration: Currently, evaluating whether a new synthetic data source works requires running the entire PPT-to-PT pipeline, which is computationally expensive. Finding early statistical predictors of downstream robustness would accelerate research.
- Scaling Laws: Due to compute constraints, the experiments maxed out at a 1B-parameter model and 25K pre-training steps. Verifying these scaling laws at 7B+ parameters remains an open task.
- Alternative Architectures: The study restricted its synthetic generators to basic RNNs. Future work could explore using LSTMs, State-Space Models (SSMs), or small Transformers as the synthetic data generators.
Summary updated