LLMs Unplugged

How AI writes stories

Acknowledgement of Country

EddieBenColeThomasHannahMaiaSungyeonSafiyaSuiLorennUshiniRob

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

Generation

This is a language model

spring → watches
spring
.
red
blue
green
yellow
swoops
the
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
watches
.
red
blue
green
yellow

One row at a time

spring → watches
spring
.
red
blue
green
yellow
swoops
the
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
watches
.
red
blue
green
yellow

Your group holds the whole model

! → comes
dog → here
is → off
on → sits
spring → watches

The colours

spring → watches
spring
.
red
blue
green
yellow
swoops
the
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
watches
.
red
blue
green
yellow

Worked example

your story it
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story it
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story it
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
1 counters, one per mark
your story it
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
5 counters, one per mark
your story it
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
7 counters, one per mark
your story itsits
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
blue
your story itsitson
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
your story itsitsonthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
your story itsitsonthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story itsitsonthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
18 counters, one per mark
your story itsitsonthefence
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
red
your story itsitsonthefence.
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
your story itsitsonthefence.
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story itsitsonthefence.
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
15 counters, one per mark
your story itsitsonthefence.here
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
blue
your story itsitsonthefence.herecomes
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
your story itsitsonthefence.herecomesthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
your story itsitsonthefence.herecomesthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story itsitsonthefence.herecomesthe
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
18 counters, one per mark
your story itsitsonthefence.herecomesthemagpie
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
green
your story itsitsonthefence.herecomesthemagpie
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
empty
your story itsitsonthefence.herecomesthemagpie
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
6 counters, one per mark
your story itsitsonthefence.herecomesthemagpie.
The magpie: the nine rows this story uses
.
it
red
here
blue
down
green
back
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
here
comes
red
blue
green
yellow
it
is
red
sits
blue
watches
green
yellow
magpie
!
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
fence
red
postie
blue
magpie
green
dog
yellow
blue

“It sits on the fence. Here comes the magpie.”

the book said “Here comes the postie.” and “Back goes the magpie.”

Your turn

write down a starting word, then repeat:

  1. find the row for the last word you wrote
  2. fill the cup: one counter for every tally mark, each in its word’s colour
  3. draw one without looking — its colour tells you the next word
  4. write it down, tip the cup back into the tub, and pass the job to whoever has that word’s row
10:00

Shareback

No two stories the same

two groups with the same book: why aren’t your stories the same?

could any group’s model write a story about a crocodile?

Where did the marks come from?

Itisspring.Itsitsonthefence.Itwatches.
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
blue
green
yellow
is
spring
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
the
fence
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
the
fence
red
blue
green
yellow
fence
.
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
the
fence
red
blue
green
yellow
fence
.
red
blue
green
yellow
itisspring.itsitsonthefence.itwatches.
it
is
red
sits
blue
watches
green
yellow
is
spring
red
blue
green
yellow
spring
.
red
blue
green
yellow
.
it
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
the
fence
red
blue
green
yellow
fence
.
red
blue
green
yellow

Listen for the word “the”

the
fence
red
postie
blue
magpie
green
dog
yellow

It is spring. It sits on the fence. It watches. Here comes the postie. Down swoops the magpie! Off runs the postie. Back goes the magpie. It sits on the fence. Here comes the dog. Down swoops the magpie! Off runs the dog. Back goes the magpie. It sits on the fence. Here comes the postie and the dog. Down swoops the magpie! Off run the dog and the postie. Back goes the magpie. It sits on the fence. It watches.

Check the sheet

the
fence
red
postie
blue
magpie
green
dog
yellow

It is spring. It sits on the fence. It watches. Here comes the postie. Down swoops the magpie! Off runs the postie. Back goes the magpie. It sits on the fence. Here comes the dog. Down swoops the magpie! Off runs the dog. Back goes the magpie. It sits on the fence. Here comes the postie and the dog. Down swoops the magpie! Off run the dog and the postie. Back goes the magpie. It sits on the fence. It watches.

About your stories

if you started with the same starting word, would you generate the same story again?

what would help our paper language models write better stories?

what is different about the way you write a story and the way a language model does?

Questions?