Stanford CS336 Language Modeling from Scratch | Spring 2026 | Lecture 11: Scaling Laws
TL;DR
This lecture explores practical implementations of scaling laws for language models, focusing on the MiniCPM paper's techniques for stabilizing training across scales, including Maximal Update Parameterization (MUP) for consistent learning rates and Warm-up Stable Decay (WSD) schedules for efficient training continuation.
🧮 Maximal Update Parameterization (MUP) 3 insights
Stabilize learning rates across model scales
MUP ensures the optimal learning rate remains constant (approximately 10^-2) regardless of model size by scaling embedding outputs, residual connections by the square root of layer count, and weight initializations by fan-out ratios.
Implement per-parameter learning rate scaling
Unlike standard training, MUP requires setting different learning rates for specific tensor types such as embeddings, LM heads, and matrix weights rather than using a single global rate.
Enable efficient scaling ladders
Stable hyperparameters allow researchers to train small proxy models and extrapolate directly to target sizes with 5x parameter gaps, eliminating the need to brute-force tune large models.
📊 Batch Size and Compute Optimization 2 insights
Optimal batch size scales with target loss
Following Kaplan's critical batch size analysis, experiments show optimal batch size follows a power law with respect to the loss target, where achieving lower loss requires proportionally larger batch sizes.
Derive batch size from loss targets
Researchers can precisely set batch sizes using scaling curves that map specific loss targets to their corresponding optimal batch sizes, balancing compute efficiency against sample efficiency.
⏱️ Warm-Up Stable Decay (WSD) Schedules 3 insights
Enable training extension without restart
The trapezoidal WSD schedule maintains a constant learning rate during a long stable phase comprising 80-90% of training, allowing researchers to rewind to any stable checkpoint and extend training rather than restarting from scratch.
Concentrate gains in rapid decay phase
The final 10-20% of training uses rapid decay to approximately 10% of the maximum learning rate, capturing significant loss improvements that match or exceed cosine schedule performance.
Simplify Chinchilla scaling analyses
WSD eliminates the quadratic cost of traditional Chinchilla isoflops experiments by allowing a single long run to serve multiple data scaling analyses through checkpoint rewinding and re-decay.
Bottom Line
Implement Maximal Update Parameterization (MUP) to fix your optimal learning rate across different model scales, and adopt Warm-up Stable Decay (WSD) schedules to enable efficient training extension and scaling law experiments without costly full retraining.
More from Stanford Online
View all
Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Applications, Coding AI
Vercel founder Guillermo Rauch explains how AI coding agents have expanded the software development market by 10-100x, driving a fundamental shift from traditional web services to 'agentic infrastructure' where tokens replace pixels as the primary commodity and deployment becomes the critical value creator.
Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Building AI Factories
Crusoe Energy CEO Chase Lockmiller explains how AI data centers represent history's second-largest infrastructure investment, driven by the economic potential of scalable 'digital labor.' He reveals Crusoe's strategy of building massive AI factories in stranded-power locations like Abilene, Texas, to overcome the industry's critical bottleneck: energized data center capacity.
AI in Healthcare Series: Inside the Rise of AI in Healthcare, Open Evidence and Cyber Risks
Former U.S. Chief Data Scientist DJ Patil warns that healthcare systems are dangerously unprepared for AI-enabled cyberattacks from nation states, while simultaneously seeing rapid democratization of medical knowledge through tools like Open Evidence that are fundamentally reshaping the doctor-patient relationship.
Stanford CS153 Frontier Systems | Scale, AGI, and the Future of Everything
Sam Altman explains how AI has fundamentally altered startup economics, enabling small teams to achieve unprecedented scale, while sharing OpenAI's journey from research lab to product company and arguing that pushing systems beyond conventional scaling limits often reveals emergent properties that consensus thinking misses.