Yann Isola
Today, we open the hood: how does an AI really “read” your messages?
(Discuss 2 minutes with your neighbor)
« Bonjour ! » → [ 14085 , 0 ] → calculs → [ 3992, 618, … ] → « Salut ! … »
Illustrative numbers — each model has its own
*ASCII = American Standard Code for Information Interchange: an old standard which gives a number to each letter.
Metaphor of the day: AI is a tourist with a number dictionary and an awesome calculator.
chat
intelli
gence
aujourd
'
hui
The exact cut varies depending on the model.
re
faire
dé
mont
er
Fun fact: French often costs more tokens than English (the models mostly read English)
ordinateur
incroyablement
parapluie
chatbot
refaire
In pairs, 5 minutes. There is no ONE right answer — each model has its own breakdown!
A number says nothing of meaning.
How does the machine know that cat looks like dog but not in wheelbarrow ?
Like Paris and Lyon on a map of France… but the map represents MEANING, not geography.
Words close in meaning = neighboring points on the map
roi • • reine homme • • femme chien • • chat • hamster • pizza • sushi
The direction “masculine → feminine” is an arrow on the map!
It's up to you to guess:
Intuition from old word models (word2vec, 2013). Modern AIs are more complex, but the idea remains: direction = position.
Demo: the interactive word map → webpage/index.html
webpage/index.html
Question to ponder: How many things can you remember at once?
You do your homework on a small table: 10 sheets maximum. An 11th sheet is arriving? An ancient grave.
Consequence: very long conversation → the AI may forget the beginning!
Tips when the AI loses track:
Figures that change very quickly!
Hallucination = false or invented information, presented as true:
“AI is a machine for producing plausible, not real. Often the two coincide. Not always.”
“The sky is…”
Consumer chatbots often don't allow you to adjust the temperature... but you can imitate it: "answer in a very classic way" vs. "be bold!"
Restitution: your favorite discovery in one sentence!
Now that we know how the machine reads… …we're going to learn how to talk to him to get exactly what we want!
Applied AI — Yann Isola