# LLMs Unplugged — How AI writes stories with cutouts

> A 90-minute primary-school workshop (years 5-6) using paper cutout language models to discover how AI writes stories

# LLMs Unplugged

## How AI writes stories

> **notes:** Open warm: today we'll find out how AI writes stories, and build our own with paper, without computers.

---

## Acknowledgement of Country

> **notes:** Acknowledge the Traditional Custodians of the land you're meeting on, and pay respects to Elders past and present. Keep it brief and sincere; say it in your own words.

---

> **notes:** Quick intros: who's in the room and why you're here. A sentence each; don't let it run.

---

# What is AI?

---

## Think → share

when you hear the words **artificial intelligence**, what comes to mind?

think on your own, then share with the person next to you

> **notes:** Form their workshop groups as they turn to each other; they'll stay in those groups for the rest of the session (2 min). Then take a few answers from the room: does anyone know what AI stands for? What have you talked about in class? Has anyone tried using it, and what for?

---

## Let's ask one to write us a story

we need **three words or ideas** --- hands up!

> **notes:** Collect three words from the class (hands up, choose a few) and write them on the board so everyone can see.
>
> Type your name, the year level and the three words into the boxes on this slide, hit "Copy prompt", then alt-tab to ChatGPT and paste.
>
> Read the result back dramatically.

---

# That was a **language model**

---

## What just happened?

no person on the other side wrote that story for us

the **language model** learned patterns from huge amounts of text, then copied
those patterns to make something new

today we'll build our own language models --- **without a computer**

> **notes:** Reinforce: whether or not you use AI, understanding how it works helps you make better choices about when to use it.

---

## Predict the next word

I'll start a sentence --- hands up if you know the next word

you learned those patterns by listening and reading; a language model has to
learn them from **text**

> **notes:** Do a few of these live on the whiteboard, pausing for hands before the last word:
>
> - "be respectful, be responsible, be \_\_\_\_\_\_" (swap in this school's actual values if known)
> - "yer a wizard, \_\_\_\_\_\_!"
> - "I don't eat chocolate, so at Easter I go hunting for \_\_\_\_\_\_"
>
> Ask how they knew the missing word: they've heard those patterns before. A language model learns its patterns from text, and the next slides show how.

---

## Some words we'll use

artificial intelligence (AI) — technology that mimics some human abilities, like writing stories or answering questions
language model — a system that predicts what word comes next, using patterns it learned from text
training — building a language model by finding patterns in text (its training data)
generation — using a language model to write new text, one word at a time

> **notes:** Four words we'll use throughout the workshop. Reveal them one at a time and tie each back to what they've already seen: AI wrote our story; a language model predicted the next word; we'll train ours by spotting patterns in the kids' book (our training data), then use it to generate a story of our own.

---

# Training

---

## Start with a text

> And I will eat them here and there. Say! I will eat them anywhere!
>
> I do so like green eggs and ham!

\--- Dr Seuss, _Green Eggs and Ham_

---

## Tidy up the text

lowercase everything, and note that we've separated `.` and `!` from the word
they're next to

---

## A pair of words is a cutout

---

## Every pair becomes a cutout

> **notes:** Three static slides walk through tokenising and pairing: the tokens, one pair
> highlighted as a cutout, then every pair as a cutout. The cutouts show the
> overlap directly, since each cutout ends with the word the next cutout starts
> with.

---

## Now they're just a pile

---

## Now they're just a pile

---

## Now they're just a pile

---

## Now they're just a pile

---

## Now they're just a pile

> **notes:** The "every pair becomes a cutout" (flow) slide before these also carries the pile
> directive, so the shuffle begins there as each cutout glides from its reading-order
> slot into the first scattered pile. Five "scatter" frames of the _same_ cutouts
> follow with different seeds. All carry `{/* _animate: pile */}`, so Reveal.js
> auto-animate glides each cutout (matched by its data-id="cut-N") from one
> arrangement to the next; each click reshuffles the pile while the heading stays
> put. Talk across them: the model is an unordered bag you rummage through, so
> word order in the original text stops mattering once the cutouts are separated.
> Add or remove `{/* _animate: pile */}` + `<CutoutsOverview mode="scatter" seed={N}/>`
> slides (any seed) to lengthen or shorten the shuffle.

---

## Train your model

with your group you'll need **printed cutouts**, **scissors**, and a **clear
table**

cut out the cutouts for your text and spread them on the table; each cutout
pairs a **next word** with its **previous word**:

the spread _is_ your trained **language model**

> **notes:** Once the loose-on-table flow makes sense, groups can optionally sort their cutouts into piles by previous word; it makes hunting for matches faster in the next section.

---

# Training

> **notes:** Click the dial to start/pause; use -1 / +1 to adjust on the fly. Circulate and help anyone stuck on cutting or on what "previous / next word" means.

---

# Generation

---

## Your goal

generate new text by chaining cutouts together: write a word, find a cutout
whose previous-word box matches, write its next word, then hunt for the next
match:

the chain grows (like dominoes)

---

## Choose a starting cutout

---

## Choose a starting cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

---

## Find the next cutout

> **notes:** The generation loop runs as one auto-animate sequence (id "hunt") on the
> seeded overview pile, with the running output ("your page") growing above it. It
> opens on the full pile, then dims everything except the chosen starting cutout
> (will eat), which gives the first two words before the hunt begins. From there
> we follow the chain four picks deep: each pick's next word becomes the word we
> match next, so the page builds will eat → them → here → and → ham. Each step
> lights the whole pile, narrows by colour, and picks one cutout whose next word
> lands on the page in gold to seed the next step. Where two words share a colour,
> an extra exact-word frame sits between the colour scan and the pick ("them"
> shares a colour with "do", and "and" shares with "there", whereas colour alone
> isolates "eat" and "here"). Colour is a quick filter; confirm by the word when
> two words share a colour. The finished chain "will eat them here and ham"
> recombines two parts of the book: the original runs "...here and there", while
> the model rolls "and ham" after "eat them here and". Adjust the
> pages/targets/picks or the seed to vary the demo.

---

_"will eat them here and ham"_

a hint of the original, not a copy

---

## You will need

**with your group**

your trained cutouts spread (already on the table)

pen and paper to write down the generated text

---

## Activity

generate as much text as you can from your spread: keep chaining words until
you run out of time

> **notes:** Groups chain words from their spread; the more text the better. 10 min, circulate and unstick anyone who can't find a match.

---

# Generation

---

# Shareback

---

## How did it go?

did your stories always make sense? why or why not?

can any of your models write a story about a **crocodile**?

> **notes:** Both questions probe the same limit: a paper model can only use the words and pairs it saw in training. Neither book contains "crocodile", so that word cannot appear.

---

# One story, all together

> **notes:** Optional section: drop if running short on time.

---

## Everyone is a word hunter

we'll pick **one starting word** for the whole class

everyone hunts for it in their own cutouts

if you find a match, **raise your hand** --- we'll pick one and read out the next word, and that becomes the new word to hunt for

> **notes:** Pre-write the starting word on the butchers paper. Choose something common across the books (e.g. "we're", "the", "a"). Keep going for a few sentences.

---

# One story, all together

---

## About your stories

who wrote your story: you, the model, or the book's author?

our models can't say crocodile — what might a chatbot be missing?

does a chatbot know what it's saying?

> **notes:** Let the class answer these; none of them has a single right answer:
>
> - the words came from the book, the choices came from the cup, and the group chose where to start and stop, so whose story is it?
> - each group's model only has the words from its book, and a chatbot only has what was in its training data: what might it have missed or read too much of, and how would you tell?
> - back to the story from the start: their paper model doesn't know what a magpie is, it only picks a likely next word. A chatbot does the same thing at a much larger scale, so does it know what it's saying? Leave that question open.

---

# Questions?

---

(qr: <https://anu.au1.qualtrics.com/jfe/form/SV_cA2ioVFWoQRj0KW>)

> **notes:** Feedback QR: give them a moment to scan before you wrap up.

Source: <https://www.llmsunplugged.org/decks/how-ai-writes-stories-cutouts/>\
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
