# Synthetic Data

> Run a relay round the room. Each table trains a fresh model on nothing but the twenty words the last table wrote, then passes on twenty of its own. Count the different words each round, then let a widget run the chain to its end.

export const MAGPIE =
  "It is morning. The magpie sings. It flies to the tree. It sits in the nest. Here comes the cat. Down swoops the magpie! Off runs the cat. The magpie warbles. It flies back to the nest. Here comes the rain. It hides in the nest. The rain stops. The magpie sings. It flies to the tree. The magpie eats a worm. The sun sets. It sleeps in the nest. It is morning. The magpie sings.";

<Callout type="info" title="Running the two-chain version?">

The version of this activity with replace and accumulate chains side by side is [still here](https://www.llmsunplugged.org/modules/synthetic-data-two-chains/).

</Callout>

This is the telephone game, played with language models. Every table writes twenty words from a model of the same story and passes them on. The next table trains a brand-new model on those twenty words and nothing else, writes twenty of its own, and passes those on. Count the different words each round and you'll watch <GlossaryTerm id="model-collapse">model collapse</GlossaryTerm> happen. Then a widget runs the chain much further, and shows what stops it.

![](../../assets/images/hero-synthetic-data.avif)

## You will need

- for each table, a copy of the model of _The magpie's nest_: the table in [Rewards](https://www.llmsunplugged.org/modules/rewards/#the-magpies-nest), or a grid the table trained on the story in [Training](https://www.llmsunplugged.org/modules/training/)
- blank [grid templates](https://pdf.llmsunplugged.org/worksheets/grid.pdf) or grid paper: one per table for every round after the first
- slips of paper
- a d20 and a d6 per table, and pens
- a whiteboard for the counts
- a screen for the widget (one on the projector will do)

A table is two to four people, and all the tables work at once. Two tables are enough: they swap slips each round.

## Your goal

Pass a story down a chain of models and see what's left at the far end. Stretch goal: work out which words went first, and why those ones.

## Key idea

A model can only write words it was trained on, and twenty words from a model leave most of its words out. Train the next model on those twenty alone and the missing words are gone, because nothing further down the chain has ever seen them. Words that appeared once in the story are the likeliest to be missed, so the rare words go first.

## Running the relay

**Round 1.** Every table starts from its copy of the magpie's model.

1. **Write a slip.** Put a `.` on a slip of paper and generate from it, as in [Generation](https://www.llmsunplugged.org/modules/generation/), until the slip has twenty words on it. Every `.` and `!` counts as a word.
2. **Count the different words** on the slip and write the number on the board.
3. **Pass the slip** to the next table round the room.

**Every round after that.** A slip arrives from the table before you.

1. **Train a fresh model** on it, as in [Training](https://www.llmsunplugged.org/modules/training/): start a new <GlossaryTerm id="grid">grid</GlossaryTerm> and tally the slip's pairs into it. The slip is all this model knows.
2. **Write a new slip** of twenty words from your new grid, starting from a `.` as before.
3. **Count the different words** on it and write the number on the board.
4. **Pass on the new slip alone.** The grid and the old slip stay behind.

If you land on a word with nothing in its row, write `.` and carry on from there. A row with one option needs no roll. Otherwise roll the d6 for a row that adds up to six or less and the d20 for a bigger one, and roll again if it comes up higher than the row total.

## The board

Give the board a column for each round, and write every table's count under the round it has just finished. Put 32 on the left: that's how many different words the magpie's model can write.

Typical numbers, averaged over many simulated chains (yours will wobble around them):

| round             | different words |
| ----------------- | --------------- |
| the story's model | 32              |
| 1                 | 12              |
| 2                 | 9               |
| 3                 | 8               |
| 4                 | 7               |

Three things to point at:

- the biggest drop is the first: a twenty-word slip from a 32-word model leaves out almost two-thirds of them
- a word missing from one slip can't turn up on a later one
- the words that went first, like `worm`, `sun` and `warbles`, appeared once in the story

Finish by reading aloud. Each table reads out the last slip it wrote, then someone reads the story.

## Keep going on the widget

Three or four rounds is all a lesson has time for by hand. The widget runs the same relay from the same model, so the room can see where its chains were heading. Press **Next round** a few times, then **Run ten rounds**. After ten rounds a chain is typically down to five or six different words, and many chains end up writing the same sentence or two over and over.

Then press **Keep the story** and run it again. Each slip is now tallied onto the same sheet as the story, and the next round generates from all of it. However long that chain runs, a slip still has eleven or twelve different words on it, and every one of the story's 32 stays on the sheet.

<RelayWidget client:visible text={MAGPIE} />

## Instructor notes

### Timing

A round takes about ten minutes: tally a slip into a fresh grid, then roll a new one. Round 1 is quicker, because there's no grid to train. Three rounds, the board and the reading aloud fit in about 35 minutes, which leaves ten for the widget. It goes faster if everyone at a table rolls a sentence from `.` at the same time and writes them onto the slip one after another.

One table can run a chain alone, training on its own slip each round.

### Discussion questions

- which words went first? What did they have in common?
- once a word was gone from a chain, could any later table get it back?
- if you only saw a chain's last slip, could you guess the story?
- on the widget, what did keeping the story change? Why did that one change matter so much?
- with the story kept, the sheet kept growing. What happened to the story's share of it?
- real models are now trained on a web that contains a lot of model output. Which chain is that more like?

### Classroom variations

**Keep the story by hand.** One table runs the widget's second mode on paper, passing on its sheet instead of a slip. Each table that gets the sheet writes a slip from it as it stands, tallies the slip into the same sheet, and passes the sheet on. The sheet's `.` and `the` rows pass 20 after a round or two. For a row that big, roll the d6 with the d20: on 1 or 2 add nothing, on 3 or 4 add 20, on 5 or 6 add 40.

**Filter before you pass on.** In one chain, each table only passes on sentences that contain `magpie`, the rule card from [Rewards](https://www.llmsunplugged.org/modules/rewards/). It's the way much synthetic data is made now: generate a lot, keep what passes a check. What does the filter keep, and what does it throw away?

**Joker mode.** One table starts its chain from a grid it invents (made-up words, tallies anywhere) instead of the magpie's model. That chain narrows the same way as the others, because the narrowing comes from the sampling, whatever the source.

**Start from a booklet.** Run a chain from a [pre-trained booklet](https://www.llmsunplugged.org/modules/pretrained-generation/) instead of the magpie's model. The bigger vocabulary means a bigger first drop, and the chain takes longer to bottom out.

### Connection to current LLMs

The relay is a hand-run version of the experiment in [Shumailov et al. (2024)](https://www.nature.com/articles/s41586-024-07566-y). They trained language models on their own output, over and over, and found what the board shows: each generation narrows, and the rare things go first, because a finite sample is likeliest to miss them. Once they're gone no later generation can bring them back.

The widget's **Keep the story** mode is the follow-up. [Gerstgrasser et al. (2024)](https://arxiv.org/abs/2404.01413) kept the original data and added each generation's output to it instead of replacing it, and the collapse stopped: the models' quality levelled off instead of falling. Replacing all the real data with model output is the worst case, and it isn't how anyone trains a model on purpose.

<GlossaryTerm id="synthetic-data">Synthetic data</GlossaryTerm> is now a normal
part of training, used carefully:

- **<GlossaryTerm id="distillation">distillation</GlossaryTerm>**: a large model writes training text for a smaller one. [DeepSeek-R1](https://arxiv.org/abs/2501.12948)'s worked solutions were used to train much smaller open models, which then reasoned far better than models their size usually do. The data comes from a stronger model, so the chain doesn't close on itself
- **generate and filter**: produce a lot of attempts and keep only those a checker, a verifier or a person accepts, as in the filter variation above
- **written to order**: [TinyStories](https://arxiv.org/abs/2305.07759) is a corpus of simple stories written by a larger model, and small models trained on it write fluent English at sizes where models trained on web text don't. There's a TinyStories volume in the [Library of Babble](https://www.llmsunplugged.org/library/), so you can roll dice against a model trained on synthetic data

A growing share of the text on the web is unlabelled model output, so anyone training on scraped text today trains on some of it whether they mean to or not. Training pipelines do what the **Keep the story** chain does: they track provenance and keep human-written text in the mix.

<Callout type="info" title="How this differs from a neural model">

Your grid can only write a word it has literally seen, so a word lost from a chain is lost completely. A <GlossaryTerm id="neural-network">neural model</GlossaryTerm> spreads what it learns across shared <GlossaryTerm id="parameters">parameters</GlossaryTerm>, so it can still produce a word in a context it never saw; real collapse moves in the same direction, but is gentler and takes more generations.

</Callout>

Source: <https://www.llmsunplugged.org/modules/synthetic-data/>\
Licence: [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)\
Cite as: Swift, B. (2026). _LLMs Unplugged: Understand how AI language models work by building one yourself._ https://doi.org/10.5281/zenodo.17403824
