LLMs Unplugged

How AI writes stories

Acknowledgement of Country

EddieBenColeThomasHannahMaiaSungyeonSafiyaSuiLorennUshiniRob

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

Let’s ask one to write us a story

we need three words or ideas — hands up!

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

Predict the next word

we humans are good at spotting patterns

I’ll start a sentence — hands up if you know the next word

So how do we teach a model?

humans pick up patterns from listening, reading, watching

a language model has to learn them from text

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 model by finding patterns in text

training data — the text used to train a language model

Generation

This is a language model

the watches
the
magpie
red
fence
blue
postie
green
dog
yellow
to
the
red
blue
green
yellow
up
it
red
blue
green
yellow
watches
.
red
blue
green
yellow

one sheet of it: a word down the left, and beside it every word that came next

One row at a time

the watches
the
magpie
red
fence
blue
postie
green
dog
yellow
to
the
red
blue
green
yellow
up
it
red
blue
green
yellow
watches
.
red
blue
green
yellow

after the word the , this book said magpie five times, fence six times, and postie and dog four times each

Your group holds the whole model

! back
comes goes
Here on
postie Swoop
the watches

every sheet holds a run of words in alphabetical order — the header says which

to find a word, read the headers: who has it ?

The colours

the watches
the
magpie
red
fence
blue
postie
green
dog
yellow
to
the
red
blue
green
yellow
up
it
red
blue
green
yellow
watches
.
red
blue
green
yellow

every word in a row sits in a coloured box, and your counters come in those same four colours

a red counter means the word in the red box

Start after a full stop

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
empty

Fill the cup

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
7 counters, one per mark

Fill the cup

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
11 counters, one per mark

Fill the cup

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
14 counters, one per mark

Fill the cup

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
17 counters, one per mark

The cup is the row

your story
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
17 counters, one per mark

Draw one

your story it
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
red it

Fill the cup, draw one

your story itsits
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
red sits

Only one place to go

your story itsitsonthe
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow

Fill the cup, draw one

your story itsitsonthefence
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
blue fence

Only one place to go

your story itsitsonthefence.
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow

Unlikely isn’t impossible

your story itsitsonthefence.Here
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
blue Here

Only one place to go

your story itsitsonthefence.Herecomesthe
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow

The same row, a different word

your story itsitsonthefence.Herecomesthemagpie
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
red magpie

Fill the cup, draw one

your story itsitsonthefence.Herecomesthemagpie.
The magpie: the nine rows this story uses
.
it
red
Here
blue
Down
green
Swoop
yellow
comes
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
Here
comes
red
blue
green
yellow
it
sits
red
watches
blue
goes
green
is
yellow
magpie
is
red
.
blue
green
yellow
on
the
red
blue
green
yellow
sits
on
red
blue
green
yellow
the
magpie
red
fence
blue
postie
green
dog
yellow
blue .

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

a hint of the original, not a copy

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
12: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?

Start with a text

themagpieisback.itsitsonthefence.itwatches.
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

Read it two words at a time

themagpieisback.itsitsonthefence.itwatches.

the then magpie

one mark beside magpie in the row for the

the
magpie
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

Move along by one

themagpieisback.itsitsonthefence.itwatches.

magpie then is

one mark beside is in the row for magpie

the
magpie
red
blue
green
yellow
magpie
is
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

Move along by one

themagpieisback.itsitsonthefence.itwatches.

is then back

one mark beside back in the row for is

the
magpie
red
blue
green
yellow
magpie
is
red
blue
green
yellow
is
back
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

Move along by one

themagpieisback.itsitsonthefence.itwatches.

back then .

one mark beside . in the row for back

the
magpie
red
blue
green
yellow
magpie
is
red
blue
green
yellow
is
back
red
blue
green
yellow
back
.
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

A new word after the same word

themagpieisback.itsitsonthefence.itwatches.

the then fence

one mark beside fence in the row for the

the
magpie
red
fence
blue
green
yellow
magpie
is
red
blue
green
yellow
is
back
red
blue
green
yellow
back
.
red
blue
green
yellow
.
it
red
blue
green
yellow
it
sits
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
red
blue
green
yellow
red
blue
green
yellow

The same pair comes round again

themagpieisback.itsitsonthefence.itwatches.

. then it

one mark beside it in the row for .

the
magpie
red
fence
blue
green
yellow
magpie
is
red
blue
green
yellow
is
back
red
blue
green
yellow
back
.
red
blue
green
yellow
.
it
red
blue
green
yellow
it
sits
red
blue
green
yellow
sits
on
red
blue
green
yellow
on
the
red
blue
green
yellow
fence
.
red
blue
green
yellow
red
blue
green
yellow

Things that catch people out

. is a word: the row for . says how sentences start

a new word goes in the next empty box — don’t skip boxes, the colours go in order

one row per word, and say it out loud when you start one, or two people will keep counts of the same word

Your turn

read your new text two words at a time, and for each pair:

  1. find the row for the first word — no row yet? start one, and say the word out loud
  2. find the box for the second word — not there yet? write it in the next empty box
  3. add a mark in that box
  4. move along by one: the second word starts the next pair
12:00

One story, all together

Five texts, five models

each group trained on a different text, so each group’s row for the is different

together the class has a bigger model than any one group

The same word, five different rows

the
sand
red
water
blue
dog
green
sun
yellow
the
sky
red
tin
blue
dog
green
rain
yellow
the
kookaburra
red
gum
blue
cat
green
street
yellow
the
creek
red
rocks
blue
mud
green
yabby
yellow
the
track
red
hill
blue
sun
green
water
yellow

same word, five models, five different answers

How we’ll do it

I’ll call out the word we’re on

hands up if your sheets have a row for it — I’ll pick a group

that group reads out its colours and tallies, we fill the cup up here and draw: their word is the class’s next word

They call it out, we draw it

the
creek
red
rocks
blue
mud
green
yabby
yellow
yellow yabby

the class story grows by one word — and the new word is the next one we hunt for

One story, all together

10:00

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?