# Cutouts get a glow-up

> A revamped cutouts variant of the Training and Generation lessons, with crisper print materials and a generation mechanic that does weighted sampling for free.

The cutouts variant of the [Training](https://www.llmsunplugged.org/modules/training/) and
[Generation](https://www.llmsunplugged.org/modules/generation/) lessons has had a serious refresh. If you
haven't tried this version with your students, now's a good time.

Instead of building the whiteboard frequency grid, you print the bigram model as
physical cards and scatter them face-up across a big table. Each card shows a
prefix (the word that came before) and a token (the word that follows). To
generate text: scan for a card whose prefix matches your last-written word,
write its token, then hunt for the next match. The chain grows like dominoes.

The trick is in the scanning. Every token has its own colour, repeated wherever
it appears: as a prefix box on one card, as a free-standing token on another. To
match a prefix against your last word, your eye hunts for that word's colour on
the right edge of a card. Verify the actual token before committing, since
colours sometimes collide.

This gives you [weighted random sampling](https://www.llmsunplugged.org/modules/generation/) for
free. If `eggs` follows `green` 40% of the time in the training text, then 40%
of the matching cards will say `eggs`. Whichever card your eye lands on, you've
sampled in proportion to the empirical distribution. There are no dice or probability
tables; the spread does the maths.

The cutouts skip the explicit
[weighted-sampling step](https://www.llmsunplugged.org/modules/generation/), which is the
conceptually heaviest moment in the unplugged sequence, so they're often easier to run than the
[grid version](https://www.llmsunplugged.org/modules/training/). They also parallelise
better: a class of thirty splits into seven groups around their own
table-spreads, where the grid bottlenecks at one teacher. The costs are a colour
printer (essential, since you match by colour), scissors, and
more table space than the grid needs. For primary-age students the cutouts are
the easier sell, and weighted sampling without the maths still lands
well with adults.

<Callout type="tip" title="From buckets to cutouts">

The earlier ancestor of these lessons was called _buckets_: students sorted
cut-up cards into piles by their prefix word before any text generation
happened. The sorting turned out to be the part nobody enjoyed, and it ate the
time we wanted to spend on the [Generation lesson](https://www.llmsunplugged.org/modules/generation/) itself.
The new design skips the sort and goes straight to the spread.

</Callout>

The [tools page](https://www.llmsunplugged.org/tools/#cutouts) has three ready-to-print PDFs:
[_Green Eggs and Ham_](https://pdf.llmsunplugged.org/cutouts/green-eggs-and-ham.pdf),
[_Where Is the Green Sheep?_](https://pdf.llmsunplugged.org/cutouts/where-is-the-green-sheep.pdf),
and
[_We're Going on a Bear Hunt_](https://pdf.llmsunplugged.org/cutouts/were-going-on-a-bear-hunt.pdf).
They're designed for A4 colour printing, pre-rotated for double-sided output so
the same cards appear on both faces of each sheet and students never have to
flip a face-down card. Each PDF includes an instructions page with a labelled
card and a domino chain showing how each token becomes the next card's rightmost
prefix. The same tools page lets you generate cutouts from any text you like.

Both bigram (n=2) and trigram (n=3) configurations work, and you can push to n=4
or beyond. The [More Context lesson](https://www.llmsunplugged.org/modules/more-context/) walks through the
trade-off: bigger n produces text that reads more like the source, at the cost
of a much bigger spread. With cutouts you can see this trade-off laid out on the table.

If you can't print colour, or your students prefer working on a board, use the
grid versions of [Training](https://www.llmsunplugged.org/modules/training/) and
[Generation](https://www.llmsunplugged.org/modules/generation/).

Source: <https://www.llmsunplugged.org/news/2026-05-07-cutouts-glow-up/>\
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
