dotbrainedOpen the lab

Fig. 1, training live in this tab

The colours on this page are a neural network learning.

ClickTap anywhere to add a dot and it has to change its mind. Dotbrained is a bench of small experiments like this one: train a network from random numbers, or take a trained one apart.

step
00000
loss
0.000
right
0%
weights
231

Fig. 1The decision field of a 2 → 12 → 12 → 3 network: 231 weights, started from random numbers when you opened this page. Dot size is how sure it is. Where two inks overprint, it is torn.

Twelve small experiments. One is open.

The rest are drawn up and waiting their turn. Each one fits in a browser tab and finishes in about the time it takes to make tea.

  • Train your own

    Sorting dots

    Paint dots in three colours and watch a tiny network work out where one colour ends and the next begins.

    trains in about 5 sOpen
  • Train your own

    Teach it your doodles

    Invent three symbols and draw each one ten times. A small network learns to tell them apart, then you try to fool it.

    30 drawings, 20 sOn the bench
  • Poke a trained one

    Layer by layer

    Type a sentence and watch a language model change its guess for the next word at every layer on the way up.

    logit lens, GPT-2On the bench
  • Train your own

    Raised on your texts

    Paste anything you have written and train a small language model on it. Gibberish slowly starts to sound like you.

    2 min on WebGPUOn the bench
  • Poke a trained one

    Five pixels

    Change as few pixels as you can until a vision model is sure your cat is a toaster.

    adversarial attackOn the bench
  • Train your own

    Reward designer

    Set three rewards for a snake, press go, and find out what you actually asked it to do.

    RL from scratchOn the bench
  • Poke a trained one

    Emoji algebra

    Every emoji placed on a map by meaning. Add two, subtract one and see where you land.

    embeddingsOn the bench
  • Train your own

    Memorise a photo

    A network learns one picture, pixel by pixel. Shrink the network and see what it chooses to keep.

    fits in 20k weightsOn the bench
  • Poke a trained one

    What this neuron wants

    Pick a single neuron in a vision model and grow the picture that excites it most.

    feature visualiserOn the bench
  • Train your own

    Beat the predictor

    Rock, paper, scissors against a model that learns your habits as you play. Try to be random. You can't.

    learns as you playOn the bench
  • Poke a trained one

    One-diet models

    Small language models that each read only one thing: cereal boxes, bird guides, train timetables. Talk to them.

    niche corporaOn the bench
  • Poke a trained one

    The canary

    A secret was planted in this model's training data. Get it to say the secret out loud.

    memorisationOn the bench

Train one from nothing.

Start with random numbers. Show it examples. Watch the loss fall until it gets the idea, usually in under a minute.

and watch both figures start again
Fig. 2The loss of the network at the top of this page, live. Lower means fewer mistakes. Go back up and drop a dot somewhere rude to see it jump.
  1. step 1not yet

  2. step 30not yet

  3. step 80not yet

  4. step 160not yet

  5. step 320not yet

  6. step 640not yet

Fig. 3The same network at six moments since its weights were last random. It starts with no opinions, a wash of all three inks, and ends with borders.

Fig. 4The same network, printed again. Move over it, or drag on a touch screen, to ask about any spot.

Or take one apart.

Open up a model that already knows something. Read its mind, turn its dials and find the spot where it falls over.

0%

sure this spot is blue

  • blue0%
  • pink0%
  • yellow0%

House rules.