Zero training, five examples — watch accuracy climb
The task: reverse the word. Our little in-page learner has never been told this rule — it only sees whatever example pairs you put in the prompt, and must guess the pattern. Give it 0, 1, 3 or 5 examples and watch it grade itself on six fresh test words. The accuracy number is computed live from the learner's actual beliefs, not scripted.
Simulated Bayesian pattern-learner, not a real LLM — but the shape of the curve (useless → shaky → locked-in) is exactly what few-shot curves look like in GPT-class models.
Inside the guess — watch wrong theories die
How can examples "teach" a frozen model? Think of the model as holding many candidate theories at once — echo the word, uppercase it, reverse it, take the first letter… Each example you feed is evidence, and every theory that contradicts it gets killed. Pick a secret rule, feed examples one at a time, and watch the survivor emerge. Notice: ambiguous examples keep several theories alive; sharp ones massacre them.
The bars are the learner's live posterior: prior belief × consistency with every example so far. Struck-out theories have been contradicted by at least one example.
Same examples, messy handwriting — format is half the trick
Here are the exact same four demonstrations written two ways: a clean, consistent input → output layout, and a sloppy version with random separators and stray capitals. The information content is identical — but the learner can only use an example it can parse. Toggle between them and compare the expected accuracy (estimated live from 800 simulated readings of the prompt).
In the simulation each messy example is sometimes skipped and sometimes mis-read as evidence for the wrong rule (those stray CAPITALS whisper "uppercase!"). Real LLMs degrade the same way when demonstrations are inconsistently formatted.
Poison the well — contradictory examples kill the pattern
Five clean demonstrations of the reverse rule. Click any card to corrupt it — its output flips to UPPERCASE, a contradictory pattern. One bad example barely matters. Two make the learner wobble. Three, and it flips to the wrong rule entirely. All numbers below are recomputed live from the poisoned prompt.
The amnesia test — clear the chat, lose the skill
If the model really learned reversal, the skill should survive a new chat. Run the test: ask with the examples in context, then wipe the context and ask again. Watch the answer — and watch the weights checksum, a fingerprint of every parameter in the model, recomputed after each run.
The checksum is genuinely computed from the (frozen) weight array each time you click — it is identical before and after "learning" because nothing was ever written.