Synthetic continued pretraining

Zitong Yang, Neil Band, Shuangping Li, Emmanuel Candès, Tatsunori Hashimoto
9/11/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: ZitongYang/Synthetic_Continued_Pretraining (162 stars, Apache-2.0, last commit 2025-01-06).

Abstract

Pretraining on large-scale, unstructured internet text enables language models to acquire a significant amount of world knowledge. However, this knowledge acquisition is data-inefficient--to learn a given fact, models must be trained on hundreds to thousands of diverse representations of it. This poses a challenge when adapting a pretrained model to a small corpus of domain-specific documents, where each fact may appear rarely or only once. We propose to bridge this gap with synthetic continued pretraining: using the small domain-specific corpus to synthesize a large corpus more amenable to learning, and then performing continued pretraining on the synthesized corpus. We instantiate this proposal with EntiGraph, a synthetic data augmentation algorithm that extracts salient entities from the source documents and then generates diverse text by drawing connections between the sampled entities. Synthetic continued pretraining with EntiGraph enables a language model to answer questions and follow generic instructions related to the source documents without access to them. If, instead, the source documents are available at inference time, we show that the knowledge acquired through our approach compounds with retrieval-augmented generation. To better understand these results, we build a simple mathematical model of EntiGraph, and show how synthetic data augmentation can "rearrange" knowledge to enable more data-efficient learning.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code implementation of synthetic continued pretraining

16220Shell, PythonSep 10, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2024synthetic,
  title  = {Synthetic continued pretraining},
  author = {Zitong Yang and Neil Band and Shuangping Li and Emmanuel Candès and Tatsunori Hashimoto},
  year   = {2024},
  eprint = {2409.07431},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.07431v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.07431.svg)](https://codeofpaper.com/paper/2409.07431)

Discussion