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

Browse Stanford's online courses in deep learning: https://stanford.io/4zhLWFN

How much does validation loss move between random seeds, and how long should learning rate warmup and decay last? In this Stanford CS312: Deep Learning Alchemy quiz review, PhD student Suhas Kotha walks through the answers to held-out experiments on the d8 language model, covering run-to-run variance, training loss jitter and batch size, warmup and WSD decay schedules, parameter and gradient norms under weight decay, and scaling-law extrapolation. Each answer comes with instructor sweeps, related papers, and the mental model updates it supports.

Key questions answered in this lecture:
Q: How much does validation loss vary between random seeds in LLM pretraining?
A: In this setup the run-to-run standard deviation is about 0.003 validation loss, and varying only the initialization seed or only the data seed gives nearly all of that variance. Differences near 0.003 are noise; something like 0.02 is likely a real improvement.

Q: How does training loss noise change with batch size?
A: Train-loss jitter scales roughly as 1 over the square root of batch size, because it is dominated by sampling variance of the batch, not the model; it barely changes with learning rate. Validation loss has far less jitter, so it is the cleaner measurement.

Q: How long should the decay phase of a WSD learning rate schedule be?
A: To get within 0.02 loss of the best schedule, the cooldown needed to be around 20% of training in this setting. Kotha notes these are not fixed constants and depend on what you train on.

Q: How does learning rate warmup affect the optimal learning rate?
A: Longer warmup raises the optimal learning rate and tolerance to high learning rates: about 1e-3 to 2e-3 with almost no warmup vs closer to 5e-3 with 30% warmup. The best warmup here was 20-30%, far above the 1% default, and it shrinks at longer token horizons, suggesting warmup should be a fixed number of steps.

Q: Why does parameter norm grow during transformer training and what stops it?
A: With layer norm the loss does not care about weight scale, so gradient updates are mostly orthogonal to the weights and the norm drifts upward. Lower learning rates slow the drift and weight decay pulls it back; only the combination of weight decay and a linear decay schedule made the norm start decreasing.

Q: Can small-model scaling laws predict which method wins at larger scale?
A: Fitting on D4 through D9 got the ranking right and predicted that dropout, worse at small sizes, would win at larger parameter counts. Kotha warns that a fit that looks good on all points is no guarantee for further extrapolation.

Chapters:
0:00 How the quiz review works: papers vs experiments
1:40 Q1: Run-to-run std across seeds (0.003)
4:48 Training loss jitter: train vs validation
7:30 Q2: Jitter scales as 1/sqrt(batch size)
10:01 Q3: Skipping warmup and activation norm spikes
11:48 Q4: How long the WSD decay phase must be
15:40 Q5: Warmup raises the optimal learning rate
19:57 Q6: Parameter and gradient norm trajectories
22:34 Why norms grow: layer norm and weight decay
24:50 Q7: Extrapolating scaling laws (dropout, LR)
26:45 QK norm and learning rate at depth 9
28:13 Q8: One-token perturbation and run variance
29:50 Assignment 2 preview: NQM and µP

About the speaker:
Suhas Kotha is a Computer Science PhD student at Stanford advised by Percy Liang and Tatsunori Hashimoto, researching language model pre-training, including how to train when compute is abundant relative to data. Suhas co-created CS312: Deep Learning Alchemy and previously studied at Carnegie Mellon University.

Course website: https://deep-learning-alchemy.github.io/
Watch the full CS312 playlist: https://www.youtube.com/playlist?list=PLXRTcAYPI4AU

Recorded September 29, 2026, in CS312: Deep Learning Alchemy, a Stanford University course taught by Tatsunori Hashimoto and Suhas Kotha.

#DeepLearning #LLM #Stanford Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to Predicting Seed Variance, Warmup & LR Decay | Stanford CS312 Quiz Review with Suhas Kotha

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.