AIght_
ToolsCompareLearnUniverseWorkflowsSignalHuman
Take the quiz
← All concepts

Concept

Training vs Testing

Why you never grade a model on questions it has seen.

Moon·Updated Jun 10, 2026
◈ Learn it interactively8 steps · ~5 min →

Where this idea lives

PREREQUISITESTraining vs TestingFeatures & LabelsFeatures & Labels — How the world gets turned into columns.Overfitting & UnderfittingOverfitting & Underfitting — Memorizing the textbook vs understanding the subject.EvalsEvals — How you measure whether a model is good at the thing you actually care about.Common misconception: High accuracy on the training data means the model works.Common misconception: Testing once is enough.
prereqsrelatedtoolsmisconceptions
You might think:High accuracy on the training data means the model works.Testing once is enough.

Common misconception

“High accuracy on the training data means the model works.”

A model can score 100% on data it trained on by doing the statistical equivalent of memorizing the answer key. Training accuracy measures how well it absorbed the examples. Only performance on unseen data measures whether it learned anything usable.

Imagine a student who gets a perfect score — on the exact problem set they studied from. Impressive? You have no idea. Maybe they understand calculus; maybe they memorized forty answers. To find out, you'd hand them problems they've never seen.

Machine learning institutionalizes this suspicion. Before training starts, the dataset is split — typically something like 80% for training and 20% held back for testing. The model learns only from the training portion. The test portion stays locked away until the end, then gets used exactly once to answer the only question that matters: how does this thing do on data it has never seen?

That number — test performance — is the model's real grade. Generalization, not memorization.

The cardinal sin: leakage

The whole scheme depends on the test set being genuinely unseen. When information from it sneaks into training — even indirectly — the grade inflates and means nothing. This is data leakage, and it's everywhere:

  • Duplicate records that land on both sides of the split.
  • Tuning the model repeatedly against the test set until it fits — memorization by a thousand peeks.
  • Splitting time-series data randomly, letting the model "train on Tuesday" to predict Monday.

Leakage is why a model that aced every internal benchmark can faceplant in production. The exam was compromised; the world isn't.

The version you already know

This is also the cleanest lens on language model benchmarks. When a model scores brilliantly on a famous test, the first question researchers ask is: was the test in the training data? The internet contains the benchmarks, so frontier labs go to real lengths to scrub them out — and skeptics go to equal lengths to check. Same student, same answer key, higher stakes.

What to read next

Training works by making wrongness measurable. Loss functions — the single number a model spends its whole life trying to shrink.

◈ Check yourself

You just read it — now see if it stuck. No score, no penalty for a wrong pick.

Question 1 of 3

Why hold out a separate test set the model never trains on?

Question 2 of 3

A student memorizes last year's exam answers, then aces a retake of that same exam. What did we learn about the student?

Question 3 of 3

What is "data leakage"?

← Prerequisite

Features & Labels

Next →

Loss Functions

by Moon · poet · engineer · third-year CS, Chandigarh University · Updated Jun 10, 2026

← Back to all conceptsBrowse tools →
beginner
Read time5 min read
UpdatedJun 2026
Sources2

Read next

  1. Overfitting & Underfitting →
  2. Evals →