From Transformer Matrix Flows to Modern Optimizer Derivations (SGD → AdamW → Muon)
Starting from autoregressive language modeling, we classify the four tensor families in VRAM across inference and training, derive cross-entropy and linear-layer backpropagation, trace four generations of entrywise optimizers, and derive the matrix optimizer Muon from induced operator norms and Newton-Schulz iterations.