How text-writing AI works, seen through a small AI that read 40 fairy tales. It gives every possible next character a percent, learns by comparing its guesses with the right answers and turning its dials, and writes by pulling a lever to pick one character at a time — in 22 ideas, in order.
Watch from the start in 3DA small AI that read fairy tales. It does just one thing: guess the next character.
A small AI that practiced writing by reading 40 fairy tales
View in 3D →This AI does just one thing: guess the next character
View in 3D →Instead of one answer, it gives every character a percent
View in 3D →Give it a quiz, compare its answer with the correct one, and fix it a little. Then do it thousands of times.
Before learning, all the slots are about the same width
View in 3D →With few dials, the reel cannot change with the characters before it
View in 3D →One sentence from a fairy tale becomes many practice quizzes
View in 3D →Hide the next character of a story, then compare the AI's answer with the correct one
View in 3D →Turn the dials a little, so the correct slot gets wider
View in 3D →Repeat the dial-turning with many quizzes
View in 3D →Spin the reel and pick one character by its percent. How you pick changes the text.
The character where the reel stops becomes the next character
View in 3D →Picking only the top character tends to repeat the same words
View in 3D →A setting a person chooses: flatter slots or sharper slots
View in 3D →Add the picked character, then guess again. Repeat, and you get a story.
Add the picked character, then guess again
View in 3D →Writing on, up to 60 characters
View in 3D →If the reel stops somewhere else, you get a different story
View in 3D →Where do the percents come from? We look inside the AI in four steps.
Computers do not know characters. They only work with numbers
View in 3D →Each character has a board of 48 dials: how the AI sees that character
View in 3D →The blank tile looks at the boards of the characters before it
View in 3D →Number tag, board, clues, then scores and percents
View in 3D →Chatbots write the same way. They are just much bigger.
Before and after chat practice: the same "Hello", a different reply
View in 3D →It only picks a likely next character. It never checks whether it is true
View in 3D →The same idea, at a much bigger size
View in 3D →More in the series
A small AI (a character-level language model with 62,652 dials) was really trained on 40 fairy tales and fables retold for this project (about 376,021 characters), and every number here was calculated by that AI. It is a tiny model for learning; real chatbots are far bigger.