Page 2 of 8~96 min topic

Overfitting playground

How a flexible model memorizes quirks

Practice set vs new quiz: flexibility can soak up noise when the scorer rewards every tiny practice win.

~12 min this pageMechanism

1Learn the idea

Read

Follow the mechanism

A flexible model has enough room — many knobs, deep trees, wiggly curves — to capture real signal and accidental noise. During fitting, the process keeps improving the practice score. If remembering a quirk lowers practice error, the process is rewarded for it.

A held-out validation set estimates “will this work on new questions?” because those labels did not steer the updates. That is why teachers use unseen quizzes: to check understanding, not photocopy memory.

Compact anchor: generalization gap ≈ training score − validation score. Example: 0.99 − 0.84 = 0.15. Units matter: say “15 percentage points on this spam/shot task,” not a mysterious floating 0.15 with no story.

Read

Practice set vs new quiz (school story)

You train a “will this free throw go in?” toy on 40 filmed shots from one gym. The flexible version notices the clock always showed 3:15 in makes — a quirk of when the team practiced. Practice accuracy soars. On a new gym at a different time, the clock cue vanishes and validation falls. The mechanism is not magic betrayal; it is rewarding quirk-fitting on the practice set.

Read

Constraining memorization

Simpler hypotheses, stopping early, stronger “keep it simple” pressure, and more varied examples all shrink the room available for quirks. They do not guarantee perfection; they change what the mechanism is allowed to cling to.

Read

Inspect state, not just the final percent

At each step ask: What entered? What got stored? What is still uncertain? A shiny final score can hide a model that only memorized today’s worksheet font.

Read

Causality over vocabulary

Trace cause and effect rather than collecting fancy words. First identify the state before fitting. Next identify what the update actually changes. Finally identify what reaches the next quiz and what remains uncertain. That separation prevents a category error: treating a convenient “accuracy: 99%” screen as proof the system understood spam, shots, or science ideas.

Ask which quantities were measured, which were estimated, and whether an average hides a subgroup (only one gym, only one phishing style). If the mechanism cannot explain a surprising validation drop, inspect boundary conditions — label noise, tiny n, leaked test rows — before twisting knobs at random. Write one sentence beginning “During fitting, the process is rewarded when…” and finish it without using the word magic.

Go deeper

Before you start

Why this matters

Sketch a path from “practice examples” to “guess on a new question.” Circle the step where the learner could start storing accidents (a typo that appeared twice, a lucky jersey number). Your sketch can be rough — its job is to make your current idea testable.

Check your understanding

Page assessment

Answer from memory. Completion is saved from this evidence, not from opening the next page.

1. Why does flexibility make quirk-fitting easier?
2. What makes a validation quiz different from practice?
3. What does a 15-point gap suggest?
4. Name one school quirk a model might memorize by accident.

All responses are required.