Series · 17 posts
Training Hyperparameters, Dose by Dose
Seed noise, optimizers, schedules, EMA, early stopping, label smoothing, weight decay, warmup and clipping measured with paired seeds on a fixed CIFAR-10 budget.
It begins by measuring how much accuracy the random seed alone moves, and then holds every training knob to that standard: paired seeds, t-statistics, win counts, and where a knob has a dial, a dose-response curve rather than a single setting. Most of the folklore survives in a weaker form than it is usually stated.
- 1Same Seed, Different Model: PyTorch GPU NondeterminismAugust 18, 2026I Set Every Seed and Trained Twice. The Models Diverged at Step 1
torch.manual_seed is not reproducibility. How fast two identically seeded GPU runs diverge, why, and what bit-exact determinism costs: 16%.
- 2Seed Noise vs Real Improvements: Is +0.3% a Coin Flip?August 27, 2026Your +0.3% Improvement Is Probably a Coin Flip
15 runs with only the seed changed spanned 4.6 points. A single-seed comparison picked a real +0.35 improvement 59% of the time.
- 3Six Training Hyperparameters Ranked by Effect SizeAugust 28, 2026I Ranked Six Training Knobs by How Hard They Actually Hit
Six common hyperparameter changes measured in units of seed noise, three seeds each. The biggest free win was a knob I thought was already set.
- 4Batch 512 Textbook Fixes Measured: All Made It WorseAugust 31, 2026I Tried the Textbook Fixes for Big-Batch Training. All of Them Made It Worse
Linear LR scaling lost 28 points, warmup alone lost 6.6. What helped was refusing the rule, for a reason printed in the paper's fine print.
- 5EMA Weights Measured: The Default Decay Lost 3 PointsSeptember 10, 2026EMA's Popular Default Lost Me 3 Points, and the Control Group Dropped a Bombshell
Two EMA copies inside the same run against the raw weights, seed noise cancelled. Decay 0.999 lost 3 points in 15 of 15 runs; tuned earned +0.08.
- 6Early Stopping vs Last Epoch: 0 for 15 Across SeedsSeptember 15, 2026Early Stopping Went 0 for 15 Against 'Just Take the Last Epoch'
Fifteen seeds with per-epoch validation and test curves: the last epoch was the best in every run, and the held-out set cost more than it saved.
- 7Test-Time Augmentation Measured: One Flip Beat Every TrickSeptember 16, 2026One Horizontal Flip at Test Time Beat Every Training Trick I've Measured
Ten paired seeds, four view sets, clean GPU timings. Averaging with the mirror image gained +0.56 points, seven times what EMA earned.
- 8SGD vs Adam at a Fixed 10-Epoch Budget: Adam Wins by 0.7September 22, 2026The One Knob I Never Swept Was the Optimizer. Adam Beat My Tuned SGD by 0.7
A proper face-off with per-optimizer tuning: Adam beats tuned SGD by +0.71, runs quieter across seeds, and plain Adam beats a tuned AdamW.
- 9LR Schedule Face-Off: Constant, Step, Linear, CosineSeptember 23, 2026The LR Schedule Was Worth 5.7 Points. The Fancy Curve Was Worth 0.3
Having any decay is the largest effect measured on this blog, 5.7 points; the specific curve is worth 0.3. The schedule also set the noise floor.
- 10Stacking Adam, Label Smoothing, EMA and TTA: Do Wins Add?September 28, 2026I Stacked Every Win From This Month's Experiments. The Stack Held.
Three arms, five seeds, TTA on top. Nearly perfect additivity, one super-additive surprise, and a baseline up 1.9 points with no architecture change.
- 11Label Smoothing and Calibration: Better Accuracy, Worse ECESeptember 29, 2026Label Smoothing Made My Model Better and Its Probabilities Worse
Label smoothing 0.1 tripled calibration error, trading mild overconfidence for severe underconfidence while improving accuracy. ECE and NLL measured.
- 12Label Smoothing Dose-Response: Accuracy Saturates at 0.02September 30, 2026All of Label Smoothing's Accuracy Arrives at 0.02. Everything After That Is Damage
A five-point sweep: the accuracy gain arrives at the smallest dose, calibration gets monotonically worse after it, and 0.1 is the wrong default.
- 13Temperature Scaling Measured: One Scalar, 500 LabelsOctober 6, 2026One Scalar Fixed My Model's Overconfidence. It Needed 500 Labels to Find
Temperature scaling fitted on an overconfident model and a label-smoothed one: ECE cut to a third, accuracy untouched, 500 validation samples suffice.
- 14EMA Decay Dose-Response: A Plateau, a Cliff and a CraterOctober 12, 2026EMA's Decay Isn't a Dial. It's a Plateau, a Cliff, and a 10%-Accuracy Crater
Six EMA decay values tracked as parallel shadows in the same ten runs: a flat shelf worth +0.1, a cliff between 0.995 and 0.999, then coin-flip accuracy.
- 15Adam vs AdamW Weight Decay Dose-Response, 45 RunsOctober 16, 2026Weight Decay 0.05: Catastrophe in Adam, Optimum in AdamW
The same weight_decay is two different algorithms: 0.05 wrecks Adam by 24 points and is AdamW's optimum. Nine arms, forty-five runs.
- 16Learning Rate Warmup Measured: Insurance, Not a SpeedupOctober 19, 2026Warmup Did Nothing for My Learning Rate — Then It Fully Rescued the Wrong One
A 2x2 experiment at a 10-epoch CNN budget: warmup does nothing at the tuned LR and recovers all 2.9 lost points at triple the rate.
- 17Gradient Clipping Measured: It Multiplied My Weight DecayOctober 20, 2026My Gradient Clipping Was Never Clipping. It Was Secretly Multiplying My Weight Decay
Clipping taxed the tuned recipe and detonated 14 points at an aggressive threshold. It engaged on 100% of steps and rescaled Adam's coupled decay.