Why is autoregressive decoding (generating one token at a time) fundamentally slower than a single forward pass over the same tokens?
- Each new token needs its own pass over all previous tokens
- The model reloads its weights from disk between every token
- Each token requires retraining the final layer once
- The softmax has to be recomputed over the full vocabulary twice
Why
Generation is sequential: token t+1 cannot start until token t is produced, so you pay one forward pass per token instead of processing them in parallel. Weights are not reloaded from disk, no retraining happens, and the softmax runs once per step.