Stanford CS336 Lecture 10 traces LLM inference optimizations to memory-bound decoding
Overview
Meng Shao describes Stanford CS336 Lecture 10, taught by Percy Liang, which links LLM inference optimizations to one constraint: autoregressive decoding is memory-bound and cannot be parallelized along the sequence.
The lecture treats every optimization as a way to reduce the bytes moved per decoding step.
According to the post, the lecture groups these fixes into three areas: architecture changes that trade accuracy for speed (GQA, MLA, CLA, quantization, pruning), lossless speculative decoding, and systems techniques such as continuous batching and paged attention. The lecture's formulas are derived and checked symbolically with sympy in an executable-notes format.
Written by AI from the articles below · updated Oct 18, 9:03 AM ET
Check the sources:
Article timeline
The articles in this story. Times are ET.
meng shao@shao__mengXStanford CS336 lecture 10 maps LLM inference optimizations to memory-bound decodingAIStanford's CS336 lecture 10 on inference, taught by Percy Liang, traces LLM inference optimizations back to one constraint: autoregressive decoding is memory-bound and cannot be parallelized along the sequence. The lecture groups fixes into architecture changes that trade accuracy for speed (GQA, MLA, CLA, quantization, pruning), lossless speculative decoding, and systems techniques such as continuous batching and paged attention.

Heat Trend
Not enough continuous observations to show a trend yet.