Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 1 of 9 in this unit

Build AI Systems · SOURCE LESSON 17

Build a trustworthy practice loop.

Generate examples, filter them with a verifier, train a candidate, and protect earlier skills before promotion.

By the end: Separate generation from verification, explain a curriculum, and design a promotion gate with independent evaluation.

Start with the exampleJump to the experimentRead the explanation
Prerequisites and path options

Why learn this? Build practice loops that reward correct results instead of letting a weak checker reinforce mistakes.

01 · TRY

Start with something concrete.

A practice sheet can contain both useful questions and wrong answers. Completing more sheets only helps if the feedback is trustworthy and the questions teach something you have not already mastered.

Try the interactive model
02 · PREDICT
Before you experiment

A generated answer has the right format. What does that establish?

A generated answer has the right format. What does that establish?
03 · EXPERIMENT

Change one thing. Watch what follows.

Loading this browser experiment…

04 · UNDERSTAND
READ & CONNECT

Understand what changed.

Back to the experiment

A shorter explanation, with the original worked examples available below. Both explain the same experiment and its limits.

Same learning goal in both modes: Separate generation from verification, explain a curriculum, and design a promotion gate with independent evaluation.

The idea in everyday terms

A generator proposes an answer; a verifier checks specified properties. For some tasks, such as arithmetic or legal game moves, exact rules can provide strong feedback. A checker that only recognizes the right-looking format can accept a wrong answer.

What to watch in the experiment

Compare the exact checker with the weaker checker. Inspect what enters practice and what the later promotion check accepts. Keep evaluation separate from the feedback used to train the candidate so the learner cannot be judged only by its own practice signal.

What this does not establish

Even a correct verifier covers only the properties it checks. Passing visible examples or software tests does not prove correctness on every task or general intelligence.

Open the full worked examples, calculations and limitations

This is the same reference used in Technical mode. Expand it whenever you need the exact numbers, assumptions or further explanation.

A proposal is not a verdict

A generator proposes an answer or action sequence. A verifier checks specified properties. These jobs are different even when one system contains both components.

A Sudoku solution or legal game sequence can be checked against exact rules. Arithmetic can be checked by a separate exact calculation. Passing a collection of software unit tests is useful evidence, but tests can omit important cases; passing them is not proof of complete program correctness.

Our generator deliberately uses an imperfect carry threshold and sometimes flips its label. The exact checker recomputes whether a + b ≥ 10. The weak checker accepts any 0/1 label, including a wrong one. The table shows precisely what each check accepted.

Correct labels are necessary, but coverage matters too

Filtering incorrect proposals can produce trustworthy labels for the retained examples. It does not guarantee useful diversity. A generator that rarely solves a difficult class can leave that class underrepresented after filtering. Easy-only practice can also neglect the boundary where a model still makes mistakes.

A curriculum chooses which tasks to practice. It can move from easier to harder examples or adapt to current performance. Our adaptive rule chooses the first difficulty band below 85% validation accuracy, then samples training pairs from that band. When all bands pass, it practices the hardest band. This is a transparent programmed rule, not a learned curriculum controller.

The model’s inputs are the two digits divided by nine. Its sigmoid output estimates the carry label, with a 0.5 decision threshold. Training uses cross-entropy and actual gradient updates on accepted proposed labels. Initial weights are hand-set for the teaching example; they were not learned through a hidden pretraining run.

Three ways to use verified experience

Filtered supervised fine-tuning trains a model to imitate retained successful examples. The carry lab demonstrates this pattern with a small classifier, rather than fine-tuning a language model.

Reinforcement learning can learn from graded rewards over sampled trajectories. Feedback may concern a complete outcome rather than a desired action at every step. The earlier self-play lesson supplies an example.

Search distillation uses a stronger or more expensive search process to generate targets for a cheaper model. A searched solution can become training data after verification. A teacher’s limitations, biased coverage, and verification gaps can still enter the student. These approaches solve different feedback problems; none guarantees improvement simply by generating more data.

Promotion should protect what already works

The lab keeps the current model separate from a candidate. The candidate learns from a batch, then a gate checks validation results. It must improve hard-case loss by more than 0.001 and keep easy accuracy above the larger of 90% or the current accuracy minus five percentage points.

This explicit gate can reject a candidate that improves one measure while damaging another. Its thresholds are teaching choices, not universal quality standards. Other tasks may need checks for reliability, efficiency, calibration, or particular failure types. The final reserved pairs are excluded from training, curriculum selection, and the gate. Once their results guide further choices, reuse becomes practice rather than untouched testing.

Extend the idea to puzzles and code

The source’s Sokoban loop uses an exact simulator, solution verification, increasingly difficult layouts, training on successful searches, and transfer checks on reserved puzzles. Valid solutions alone do not prove that generated layouts are diverse or that a policy can solve unseen puzzles.

For the source exercise, define a promotion gate for a coding agent before viewing this example.

Example: protect earlier coding skills

Reserve new bug-fixing tasks and an earlier regression suite outside training. Require improvement on the new suite while keeping protected prior tasks above stated thresholds. Check that patches actually pass relevant tests, include adversarial or boundary cases, and respect a consistent tool/time budget. Inspect representative failures and compare multiple runs where behavior is stochastic.

Do not promote solely because the agent says its patch is correct. Passing these finite checks is evidence within their coverage, not a proof of correctness for all programs. Preserve the previous model so a later regression can be rolled back.

05 · APPLY
Check your understanding

A candidate improves hard-case loss but drops protected easy accuracy from 100% to 75%. The gate requires at least 95% easy accuracy. What should happen?

A candidate improves hard-case loss but drops protected easy accuracy from 100% to 75%. The gate requires at least 95% easy accuracy. What should happen?
06 · CONTINUE

Take this idea with you.

Reliable improvement needs useful examples, feedback that checks the right property, and a gate that measures both gains and regressions. More generated data is not automatically better.

My Learning
Explore related topics and the topic map

How this topic connects

Explore this topic on the interactive map

Use these connections to review a foundation or choose where to go next. You can open any topic without completing the others.

What it builds on

  • Verified self-play

    Evaluate learning from an opponent without mistaking repeated wins in practice for general skill.

  • Validation and testing

    Avoid choosing a model that memorizes examples but fails on new ones.

You are hereBuild a trustworthy practice loop

Generate examples, filter them with a verifier, train a candidate, and protect earlier skills before promotion.

What it enables

Show 1 more connections