The film
About 7:02, hosted by Rerun. It asks you one question and waits for your answer before it shows you. The guide's voice is not recorded yet, so for now the film plays with captions; the full words are also below.
Nothing loads until you press play.
The lab: the bucket
Resample the model's held-out rows or single words and watch the interval form; or draw fresh rows from the rules again and again and count how often the interval holds the true average. In the film, 93.1% of 1,000 row intervals at 64 rows held it.
Everything is computed on your computer, in this page. Nothing is sent anywhere.
Everything the film says
Error bars
Error bars. How sure is the number.
Every lesson so far has quoted numbers, a loss here, a share of right answers there. Each came from one set of test rows. Tonight Rerun asks how much those numbers would move if the rows had been different.
One number
Score the attention model on 1,024 held-out rows: a loss of 0.6676 and 73 percent of next words right.
Those rows were drawn at random. Another draw of the same size would give a slightly different loss. The question is how different.
Drawing again from what you have
Bradley Efron's answer, in 1979, was the bootstrap. You cannot draw more rows from the world, so draw from the rows you have: pick as many as you have, at random, allowing repeats, and score that pile. Do it thousands of times.
The scores spread out. We take the middle 95 percent of them as the interval.
With 64 rows the loss is 0.7000, and the interval runs from 0.6723 to 0.7282.
Four times as many rows. How much narrower does the interval get? (the film pauses here)
More rows, narrower bars
Its width is 0.0838 with 16 rows, 0.0559 with 64, 0.0311 with 256 and 0.0161 with 1,024.
From 16 to 64 rows it narrows by a third; after that, by nearly half each time. Averaged over a thousand fresh draws, 0.1014, 0.0523 and 0.0264, each fourfold step halves it, as the square root of the number of rows says it should. Four times the rows buys an interval half as wide.
Does it work?
An interval is only worth something if it catches the truth as often as it claims. Usually nobody knows the truth. Here we do: the rules that write the guides' sentences give an exact average loss for their own guesses, 0.6361.
So draw 1,000 fresh sets of 64 rows from the rules, score the rules' own guesses on each, build an interval, and count how many contain 0.6361. The answer: 93.1 percent. With 256 rows, 95.3. Close to the 95 promised, a little short when rows are few.
What to draw again
One choice matters more than it looks: what counts as one draw. Evan Miller's 2024 paper on error bars for evaluations warns that questions which come in clusters must be counted as clusters when the error is worked out, or the interval comes out too narrow.
Our rows are clusters too, but of a kind that steadies the score. Each holds one word at every position, so a row is a balanced sample of easy and hard places. Resampling single words instead gives intervals that are too wide here: they caught the truth 100 percent of the time.
Now make real clusters: 1,000 test sets of 16 rows, each row copied four times. Treated as 64 separate rows, the interval catches the truth only 66.9 percent of the time. Resampling the 16 distinct rows brings it back to 93.3.
Two models, same rows
In the distillation lesson, one student learned from the text and one from the teacher's odds. Score both on the same 1,024 rows. The student taught by the text has the lower loss, by 0.0045.
Resample the rows once for both models, keeping each row's two scores together, and the interval for the difference runs from -0.0081 to -0.0011: it leaves out zero. Resample each model on its own and the interval is 3.27 times as wide, and it contains zero.
Keeping the pairs cancels the rows that are hard for both. Shuffle the pairing and the advantage disappears.
The spread the rows cannot see
But that difference came from one training run of each student. Train each with five seeds, the run we just scored and four more, and score them all on the same rows.
For one student, the spread of loss across seeds is about 12 times the spread the bootstrap found from rows; for the other, about 10. Some runs never learned to look back, and those runs make most of it. Seed by seed, the difference between the two students was -0.0045, 0.0845, -0.0049, 0.0007 and 0.0064.
The first seed's interval was honest about its rows. It said nothing about the next seed.
Goodnight
A number without its spread is half a number. Ask what was drawn at random, the rows, the seeds or both, and draw again from that. Everything tonight came from one small model and a handful of runs; the method carries over, the numbers do not.
Next under the prism: what happens when training pushes a model toward the measure instead of the goal. Goodnight.
Sources
Every claim in the film, with where it comes from and what that source does not prove. The numbers about the model are computed from its weights, which you can load and check: facts.json.
Night School's error-bar measurements, computed for this film. media/school/errorbars/facts.json, written by tools/school/fill_errorbars.mjs from system/school/errorbars.mjs and errorbars-truth.mjs: the attention model scored on 1,024 held-out rows; percentile and normal bootstrap intervals by row and by word at 16, 64, 256 and 1,024 rows; the generator's exact expected loss and 1,000-trial coverage checks; a duplicated-row control; a paired comparison of two S17 students; five seeds per student. https://github.com/HarperZ9/HarperZ9.github.io/tree/main/media/school/errorbars
Used for: Loss 0.6676 and accuracy 0.7332 on 1,024 rows; row-bootstrap widths 0.0838, 0.0559, 0.0311, 0.0161 at 16, 64, 256, 1,024 rows. Exact truth 0.6361; row percentile coverage 0.934, 0.931, 0.953 at 16, 64, 256 rows; word-level 0.998 to 1; 16 rows copied four times 0.669, by distinct row 0.933. Paired difference -0.0045 [-0.0081, -0.0011], unpaired 3.27 times as wide; seed spread 11.8 times the row standard error.
Does not prove: Anything about large models or other test sets; the rows here are balanced by position, which is why word-level intervals came out too wide.
Efron 1979, Bootstrap Methods: Another Look at the Jackknife. Efron, B. (1979). Bootstrap Methods: Another Look at the Jackknife. The Annals of Statistics 7(1), 1-26. https://projecteuclid.org/journals/annals-of-statistics/volume-7/issue-1/Bootstrap-Methods-Another-Look-at-the-Jackknife/10.1214/aos/1176344552.full
Used for: Introduces the bootstrap: estimate the sampling distribution of a statistic by resampling the observed data with replacement.
Does not prove: Anything about this model.
Miller 2024, Adding Error Bars to Evals. Miller, E. (2024). Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations. arXiv:2411.00640. https://arxiv.org/abs/2411.00640
Used for: Evaluation questions that come in related groups need clustered standard errors, which can be much larger than the naive ones; paired differences reduce variance when two models answer the same questions.
Does not prove: Anything about this model.
What this lesson leaves out
One small model and its own test rows: the method carries over, the numbers do not.
Our rows hold one word at every position, which is why single-word intervals came out too wide here; with real clusters of questions, they come out too narrow.
Coverage at 16 and 64 rows ran about 2 standard errors under 95%; percentile intervals are a little short when rows are few.
Before this: The held-out set (F6). Next under the prism: When the check can be fooled (E24).