NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Synthetic continued pretraining

Zitong Yang, Neil Band, Shuangping Li, Emmanuel Candes, Tatsunori Hashimoto

Large Language Models (LLMs) are world-class generalists, but they notoriously struggle with "tail knowledge"—niche information found in small, private datasets or specialized textbooks. Standard pretraining relies on seeing facts repeated across the internet; if a fact appears only once in a small corpus, a model performing standard continued pretraining is likely to overlook it.

This paper introduces a novel approach to bridge this data-efficiency gap: Synthetic Continued Pretraining (CPT). By expanding a tiny, domain-specific corpus into a massive synthetic one, researchers demonstrate that models can internalize facts they would otherwise ignore or forget.

The Diversity Ceiling in Standard Approaches

Humans can often learn a concept from reading a textbook once, but LLMs require massive redundancy. Previous attempts to force models to learn from small datasets via simple paraphrasing (rewriting the text) hit a "diversity ceiling." The model quickly stops learning new things from the repetitive synthetic data, and directly training on the raw text can even decrease performance due to overfitting on a narrow distribution.

Methodology: The EntiGraph Algorithm

Instead of training on the raw source documents, the authors propose using a teacher model to generate a much larger, highly diverse synthetic corpus, and then training the student model on that synthetic data.

The core of their approach is EntiGraph, a two-step data augmentation algorithm:

  1. Entity Extraction: A prompted LLM (like GPT-4) identifies all salient entities (people, places, concepts) within a source document.
  2. Relation Analysis: The LLM is then prompted to describe the relationships between arbitrary pairs or triplets of these extracted entities, strictly within the context of the original document.
EntiGraph Methodology

By focusing on the combinatorial relationships between entities, EntiGraph effectively "externalizes" the underlying knowledge graph of the text. This creates a massive volume of diverse training data that describes the same facts from many different angles—providing the exact redundancy the next-token prediction objective needs to successfully internalize a fact. Furthermore, by forcing the model to describe relations from multiple perspectives (e.g., A to B, and B to A), the method naturally bypasses the "reversal curse."

The primary testbed for this method was the QuALITY dataset, consisting of 265 books and long-form articles (~1.3M tokens), evaluated via multiple-choice questions. They also utilized a Coursera Exam QA dataset to test generalization to technical domains, and a subset of RedPajama for "replay" during training to prevent catastrophic forgetting.

Key Insights and Results

The results of Synthetic CPT using EntiGraph demonstrate significant improvements over standard baselines.

  • Massive Accuracy Gains: Using Llama 3 8B as the base model, EntiGraph CPT improved closed-book QA accuracy on the QuALITY dataset from 39.5% to 56.2%. In contrast, directly training on the raw text (Raw CPT) actually decreased performance to 38.1%.
  • Log-Linear Scaling: One of the most striking findings is that model accuracy scales linearly with the log of the synthetic token count. The researchers successfully scaled a 1.3M token raw corpus into a 455M token synthetic corpus without hitting a performance plateau.
QA Accuracy vs Synthetic Tokens
  • Complementary to RAG: While Retrieval-Augmented Generation (RAG) provides "open-book" access to data, EntiGraph provides "parametric" (internalized) knowledge. The authors show that using an EntiGraph-pretrained model within a RAG pipeline yields better results than using a base model with RAG. Remarkably, EntiGraph CPT alone achieved 80% of the performance gain of a full RAG system without requiring any document access at inference time.

Limitations and Future Directions

While highly effective, the approach has limitations. It assumes the "teacher" model generating the synthetic data is capable and faithful; if the teacher hallucinates relations, the student will learn them as facts. Additionally, generating hundreds of millions of tokens via high-end APIs is computationally expensive, though smaller teacher models (like Llama 3.1 8B) remain viable alternatives.

Ultimately, Synthetic CPT presents a compelling alternative to ultra-long context windows for proprietary datasets, offering a way to permanently "bake" niche knowledge directly into model weights.

Summary updated

BibTeX
@inproceedings{yang2025synthetic,
  author = {Zitong Yang and Neil Band and Shuangping Li and Emmanuel Candes and Tatsunori Hashimoto},
  title = {{Synthetic continued pretraining}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=07yvxWDSla},
}
Figure