← All Demos

The Reward Box

A model tries. A checker returns a score. Nothing else. Watch what that is enough for.

robert@barcik.training

1

Pick the checker

Every training loop needs someone to say “this attempt was better”. It can be a person, another model, or a program. This demo is about the third: an automatic checker. Training against one is called reinforcement learning from verifiable rewards (RLVR).

2

Run the training loop

The task

Round 0
1 · The model tries

Ten attempts

Each attempt follows one of the habits, picked by chance. Tap one to look at it under the checker.

Everything the model gets back:

No correct answer, no explanation, no “you forgot to divide”. Ten numbers.

2 · The checker scores

Inside the box. You can look, the model cannot.
3 · The model is nudged

The model's habits

How likely the model is to try each approach. It starts out mostly wrong. After each round it shifts towards the attempts that scored best.

Is it learning?

Score the checker would give the model now, on average
0%
3

What to notice

The score is the whole message

You could read every attempt and see what went wrong. The model could not. It only learned which of its attempts scored, and did more of that. Repeated often enough, this is enough to find the right method.

No person in the loop

A program grades at machine speed, so the model can practise millions of times. That is why this kind of training took off first in maths and code: there a program can tell right from wrong.

The checker does not have to know the answer

Checker A needs the answer stored inside. Checker C does not: it only knows which steps are allowed, so it accepts any proof whose steps hold. Two of the habits there are different, equally valid proofs. A proof checker can grade problems nobody has solved yet.

The model optimises the score, not what you meant

Switch checker B to the sloppy test suite and train. The checker reports a near-perfect score while the model has learned a shortcut that fails on other years. The checker is the definition of “good”, including its holes.

A simplification, on purpose. A real model does not have five or six named habits but billions of weights, and the nudge is a small gradient step, not “do more of the top-scoring attempts”. The loop is the same: try, get a score, shift towards what scored. Here the model also keeps a small chance of trying every approach, so that it can still stumble on a better one.

AI transparency

This demo is a scripted, self-contained browser simulation. Nothing you type is sent to an AI model and no live AI system runs behind it, even where it plays one. Its code and copy were built with generative AI (Anthropic’s Claude) and reviewed by Robert Barcik, who is responsible for what is published (LearningDoe s.r.o.). Disclosed in the spirit of Article 50 of the EU AI Act.