Dive into Deep Learning · §9
Optimization Algorithms: Geometry, Stochasticity, and Scaling
ill-conditioning · gradient noise · momentum · AdamW & Muon · schedules · critical batch size · μP
The Central Problem
Architectural Framework
Pedagogical Methodology
FashionCNN (421\text{K} params): Multi-epoch image classification (8.5 epochs in 2{,}000 steps at b = 256) with held-out test accuracy.TinyLM (471\text{K} / 3.3\text{M} params): Single-pass byte-level Transformer on WikiText-103 (40\times layer gradient spread).Chapter Map
Study Guide
TinyLM, its WikiText-103 byte loader, and its AdamW/schedule harness return in the chapters on Attention, Transformers, State Space Models, and Performance.Up next (§9.1 Landscapes and Gradient Descent): How directional curvature and the condition number \kappa = \lambda_{\max}/\lambda_{\min} determine the maximum stable step size and the edge of stability.