Stanford Online

Predicting Seed Variance, Warmup & LR Decay | Stanford CS312 Quiz Review with Suhas Kotha: summary

YouTube summary7 sectionsWatch on YouTube ↗

This is an AI-generated summary of the YouTube video "Predicting Seed Variance, Warmup & LR Decay | Stanford CS312 Quiz Review with Suhas Kotha" (Stanford Online), made with Samuraize and published by Samuraize. It condenses the YouTube video into 7 titled sections you can read in a couple of minutes, each linking to the moment in the video it covers.

1
Filed under💻 Technology0 comments🍱 Add to trayReport
Study this

Predicting Seed Variance, Warmup & LR Decay | Stanford CS312 Quiz Review with Suhas Kotha

Stanford Online

切

Seed variance and jitter 0:05

The run-to-run standard deviation from changing both seeds is about 0.003. Changing only initialization or only data gives nearly the same spread, so one source of randomness captures most of the variance. The train jitter is around 0.04, while validation loss is much steadier. A useful rule here is that a loss change near 0.003 is small, while a change near 0.02 is more likely to matter.

切

Batch size and warmup 7:30

Jitter scales with batch size about as 1 over the square root of V, so larger batches have less jitter. It changes little with learning rate. Skipping warmup hurts loss by about 0.052 to 0.14, and the main change shows up in activation norm rather than parameter or gradient norm. For decay trimming, the lowest cool-down period with 0.02 loss tolerance is around 20 percent.

切

Warmup and decay 13:01

The learning-rate curves suggest a valley shape, with high rates bouncing near the top and low rates settling lower. The WSD schedule has a sharp annealing period, so you need enough decay time to get the full gain. In this setting, the best decay was around 20 percent of training, not 10 percent. The speaker notes that warmup and long decay mattered more here than they often do in larger runs.

切

Warmup and norms 16:01

A dense sweep shows that warmup raises the best learning rate. With little warmup, the best rate is around 1e-3 or 2e-3, while 30 percent warmup pushes it closer to 5e-3. The best warmup was not the 1 percent default, but nearer 20 to 30 percent. Parameter norms grow less under linear schedules than under constant ones, and weight decay slows that growth further.

切

Scaling laws and QK norm 26:30

Different hyperparameter choices change scaling, and extrapolation is hard to trust without extra runs. The D9 setup hurts compared with D4 when the learning rate is too high. QK norm matters most for stability in high learning-rate, high-variance settings, so the prediction is that D9 would improve if the learning rate were tuned without QK norm.

切

Seed variance results 28:30

Across five seeds, the peak training-loss gap averaged about 0.09, which matches the middle quiz choice. Most train gap appears early, then fades by the end. Final-loss variation is modest, between 0.2 sigma and 5 sigma, and changing one starting token can explain a large share of the run-to-run variance.

切

Next assignment and logistics 30:00

The next assignment will focus on hyperparameter invariance, along with two toy models: the noisy quadratic model and MuP. Instructor sweeps will be shared for the first questions so you can save compute. The request is to launch experiments early, since concurrency is still limited, and email the staff if you need more computer access.

AI-generated summary. It can be wrong or incomplete - check anything that matters against the original.

Summarize your own YouTube video

Paste a YouTube link, article, PDF, ebook or slide deck and get a summary like this in seconds. Free to try, no sign-up needed.

⚔️ Try the YouTube summarizer

Discussion

Sign in to join the discussion. Sign in

More from the Bento Box

Browse the Bento Box →

With your OK, Microsoft Clarity and Google Analytics set cookies (data goes to the US) so we can see what breaks. Cookie details