BERTtime Stories: Investigating the Role of Synthetic Story Data in Language pre-training

Nikitas Theodoropoulos, Giorgos Filandrianos, Vassilis Lyberatos, Maria Lymperaiou, Giorgos StamouarXiv 2024 · DOI

Introduction

Modern Large Language Models (LLMs) are notoriously data-hungry, often requiring trillions of tokens to achieve state-of-the-art performance. This stands in stark contrast to human language acquisition; a 13-year-old child has typically been exposed to only about 100 million words, yet possesses sophisticated linguistic capabilities. This discrepancy raises fundamental questions about the efficiency and cognitive plausibility of current AI training paradigms.

The BabyLM Challenge addresses this by tasking researchers to train models using only "human-scale" data (10M or 100M words). This paper investigates whether Small Language Models (SLMs) can generate high-quality synthetic data to augment these limited datasets and improve overall linguistic performance.

Methods

The researchers developed a multi-stage pipeline to evaluate the impact of synthetic story data:

  1. Decoder Training: A GPT-Neo (decoder-only) model was trained on subsets of the TinyStories dataset.
  2. Data Augmentation: This model generated alternate completions for existing stories by truncating them and predicting the remainder, creating a new synthetic dataset, $D_{gen}$.
  3. Encoder Training: An LTG-BERT (encoder-only) model was trained on a combined corpus of original synthetic stories ($D_{tiny}$), model-generated stories ($D_{gen}$), and real-world child-directed data ($D_{baby}$).
  4. Balanced Training: To avoid overfitting to the simplicity of synthetic text, a sampling strategy ensured batches contained an equal probability of real and synthetic sources.
The proposed data augmentation and training pipeline.

Datasets and Evaluation

The study utilized two primary data sources:

  • TinyStories: A synthetic dataset of short stories written in simple language (3-4-year-old level), originally generated by GPT-3.5 and GPT-4.
  • BabyLM Dataset: A developmentally plausible corpus including child-directed speech (CHILDES), children's books, dialogue, and Wikipedia articles.

Performance was measured across three key benchmarks: BLiMP (grammar and syntax), (Super)GLUE (general natural language understanding), and EWoK (world knowledge, such as social dynamics and spatial relationships).

Key Insights

The Syntax-Semantics Trade-off

The researchers identified a clear "sweet spot" for synthetic data. At the 100M word scale, models trained on synthetic stories achieved grammatical scores (BLiMP) comparable to models trained on significantly more data. Synthetic data effectively acts as a "grammar coach," teaching the structural rules of language.

However, this comes with a trade-off. Synthetic stories are inherently simplistic and repetitive, lacking the nuanced world knowledge found in real-world text. Over-reliance on synthetic data can lead to a model that is grammatically perfect but semantically shallow.

The Importance of Balanced Training

Simply merging synthetic and real data often resulted in performance degradation. The key finding was that Balanced Training—ensuring an equal mix of real and synthetic data in every training batch—stabilized the learning process and allowed for improvements in grammatical tasks without sacrificing too much general understanding.

Results

In the Strict-Small Track (10M words), the best-performing model utilized balanced training and nucleus sampling for data generation. As shown in the results table, this approach achieved a BLiMP score of 63.2, significantly outperforming the LTG-BERT baseline of 60.6.

Performance comparison of different training data mixtures on the 10M word track.

In the Strict Track (100M words), synthetic augmentation boosted BLiMP scores (66.6 vs. 64.0 baseline) but struggled to improve GLUE and EWoK scores, reinforcing the conclusion that synthetic stories primarily benefit syntactic acquisition rather than broad reasoning.

Conclusion and Future Work

This research demonstrates that synthetic story data can significantly enhance the grammatical proficiency of language models in data-constrained environments. While it does not fully replace the need for diverse real-world data to build world knowledge, it offers a powerful tool for improving linguistic efficiency. Future work will explore more diverse synthetic domains beyond simple stories and investigate methods to calibrate the complexity of generated data to better bridge the gap between simple syntax and complex reasoning.

Summary updated

BibTeX
@misc{theodoropoulos2024berttime,
  author = {Nikitas Theodoropoulos and Giorgos Filandrianos and Vassilis Lyberatos and Maria Lymperaiou and Giorgos Stamou},
  title = {{BERTtime Stories: Investigating the Role of Synthetic Story Data in Language pre-training}},
  year = {2024},
  eprint = {2410.15365},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15365},
}
Figure