µP, Momentum & Weight Decay Predictions | Stanford CS312 Quiz Review with Tatsunori Hashimoto

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

How much loss do you lose by mistuning learning rate times weight decay, and when does momentum stop mattering? In this Stanford CS312: Deep Learning Alchemy quiz review, Assistant Professor Tatsunori Hashimoto walks through held-out optimization experiments and shows how many answers can be reasoned out. He covers depth µP vs. CompleteP, cosine decay and a rule of thumb for the learning rate and weight decay tradeoff, momentum at small and large batch sizes, Hyperball learning rate scaling with width, and why scaling weight decay beats scaling learning rate for large batches.

Key questions answered in this lecture:
Q: Depth µP vs CompleteP: which works better with shared parameter blocks?
A: CompleteP gave the lowest loss after five steps. Shared blocks are perfectly aligned, so contributions add up linearly and need 1/L scaling, which CompleteP provides, while depth µP corrects for the square root scaling of random weights.

Q: How much loss do you lose by mistuning learning rate times weight decay?
A: Loss is lowest along the diagonal where LR times WD is constant, and off the diagonal the penalty is roughly quadratic: take the log of how far off the product is, square it, and multiply by about 0.01. Hashimoto was surprised how close this rule of thumb landed.

Q: Does momentum matter at small batch sizes?
A: At batch size 8, loss is fairly insensitive to momentum, and removing it costs about 0.02, while at batch size 256 there is a sharp cup and removing momentum costs about 0.25, which Hashimoto calls catastrophic.

Q: How does Hyperball's optimal learning rate scale with model width?
A: Hyperball normalizes updates to the weight's Frobenius norm, which acts like a 1 over square root width step size, between Adam's 1/width scaling and µP's flat scaling. Seeded runs gave exponents around -0.38 to -0.55.

Q: When increasing batch size, should you scale learning rate or weight decay?
A: Scale weight decay. The optimal peak learning rate bends and stops growing with batch size, as the noisy quadratic model predicts, while the optimal weight decay keeps increasing.

Chapters:
0:00 Optimization quiz review: reasoning it out
0:28 Q1: Shared blocks, depth µP vs CompleteP
3:31 Q1b: Alignment and which loss is lowest
5:04 Q2: Cosine decay and LR times weight decay
6:08 Q2b: Quadratic penalty rule of thumb
7:53 Q3: Extrapolating Hyperball scaling trends
9:00 Q4: Momentum sweep at batch 8 vs 256
11:15 Q5: Almost µP and learning rate transfer
14:26 Q6: Hyperball learning rate scaling in width
17:12 Q7: Large batch: scale weight decay, not LR
20:01 Tutorials and bonus question logistics

About the speaker:
Tatsunori Hashimoto is an Assistant Professor of Computer Science at Stanford University and a faculty affiliate of the Stanford Institute for Human-Centered Artificial Intelligence (HAI). His research uses tools from statistics to make machine learning systems more robust and reliable, especially for language. He also teaches CS336: Language Modeling from Scratch. He was a postdoc at Stanford with John Duchi and Percy Liang, earned his PhD at MIT, and studied statistics and math at Harvard.

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

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

#DeepLearning #Optimization #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 µP, Momentum & Weight Decay Predictions | Stanford CS312 Quiz Review with Tatsunori Hashimoto

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.