Parameterized Synthetic Text Generation with SimpleStories

Lennart Finke, Chandan Sreedhara, Thomas Dooms, Mat Allen, Juan Diego Rodriguez, Noa Nabeshima, Thomas Marshall, Dan Braun

TL;DR

This paper introduces SimpleStories, a large, open-source synthetic dataset of 2 million English and Japanese stories designed to improve the training and interpretability of small language models. By offering more diverse and less formulaic content than existing datasets like TinyStories, SimpleStories enables the development of more efficient and understandable models, pushing the boundaries of what the smallest language models can achieve.

What Problem Does This Paper Address?

The field of language modeling has seen tremendous progress with large language models (LLMs). However, understanding the inner workings of these complex models remains a significant challenge. The TinyStories dataset was a step towards this goal, using simple synthetic stories to train smaller, more interpretable "model organisms." Yet, TinyStories suffered from being overly formulaic (e.g., repetitive opening phrases) and lacked labels, hindering further analysis and fine-tuning. This paper addresses these limitations by creating a more diverse, labeled, and open-source synthetic dataset, SimpleStories, to facilitate deeper research into LLM interpretability and efficient training.

Methods

The authors generated SimpleStories using commercial LLMs (GPT-4o-mini) with parameterized prompts. They controlled story characteristics by varying prompts at multiple levels of abstraction, including specifying parts of speech for the first word, initial letter frequencies, and themes/narrative features. To enhance lexical diversity, they constrained story beginnings and used a reference corpus for letter frequencies. They also focused on creating a limited vocabulary for training interpretable models and prompted against the use of imaginary proper names. The dataset generation process was designed to be cost-effective and to produce diverse, grammatically correct, and age-appropriate content.

Datasets

The primary contribution is the SimpleStories dataset, a large synthetic dataset consisting of 2 million English and 2 million Japanese stories. This dataset is designed to be fully open-source, including the generation code, model training code, and the dataset itself. It aims to be more diverse and less formulaic than the existing TinyStories dataset, which served as a baseline for comparison.

Key Insights and Ideas

  • SimpleStories is significantly more diverse than TinyStories: This is evidenced by lower compression ratios, lower Self-BLEU homogenization scores, and higher n-gram diversity scores, indicating less repetitive and more varied text.
  • Parameterized prompting is effective for controlling story generation: By adjusting prompts at different levels, the authors could influence story characteristics like theme, topic, style, and narrative features, leading to a richer dataset.
  • A custom tokenizer significantly improves model efficiency: Using a WordPiece tokenizer tailored to the SimpleStories corpus, with a reduced vocabulary and morphological analysis, led to dramatic improvements in model coherence and quality compared to standard tokenizers.
  • Smaller models can achieve surprising grammatical competence: The SimpleStories dataset, combined with optimized training and tokenization, allows for the creation of models with fewer parameters that still output grammatical English, pushing the frontier for minimal language models.
  • Dataset diversity impacts model weights: Analysis of model bigram matrices revealed that the SimpleStories model's weights were more uniformly distributed, contrasting with TinyStories, which showed a strong reflection of its dataset's overrepresented phrases.

Key Results

  • SimpleStories contains 2 million English and 2 million Japanese stories, with a focus on simple language and diverse content.
  • Models trained on SimpleStories consistently outperformed TinyStories-33M across four evaluation metrics (originality, coherence, grammar, quality) despite having considerably fewer parameters. For example, SimpleStories-35M achieved higher scores than TinyStories-33M in all metrics.
  • The custom tokenizer for SimpleStories led to significant improvements, particularly in coherence (+26.7 points) and quality (+27.5 points) compared to using a standard GPT-2 tokenizer.
  • SimpleStories models demonstrated better label recovery accuracy in probe experiments, suggesting a higher-level understanding of the generated text.
  • The Flesch-Kincaid reading grade for SimpleStories was slightly higher (3.08 ± 1.24) than TinyStories (2.55 ± 1.49), indicating a slightly more complex, yet still simple, reading level.

Limitations and Future Work

The authors acknowledge that their focus was primarily on data and tokenization, and they did not extensively explore how model architectures affect output quality. They also note that a direct comparison with a BPE tokenizer was not performed. A key future direction is to find the absolute lower limit for model parameters that can still produce grammatical English, given the improved sample efficiency demonstrated by SimpleStories. They also suggest that while automated metrics for diversity are useful, manual comparison of random samples remains important for assessing subjective qualities like ease of use. Future work could also extend this approach to other languages and encourage the community to create similar synthetic datasets.

Summary updated

BibTeX
@inproceedings{finke2025parameterized,
  author = {Lennart Finke and Chandan Sreedhara and Thomas Dooms and Mat Allen and Juan Diego Rodriguez and Noa Nabeshima and Thomas Marshall and Dan Braun},
  title = {{Parameterized Synthetic Text Generation with SimpleStories}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=sVh3eQ642W},
}
Figure