LLM System Design Interview, issue 37, Apr 30, 2026

The L2 Optimization Trap

Senior LLM Pre-training Engineer interview at Google DeepMind, and the interviewer asks:

We are setting up a single-epoch pre-training run on a 10-petabyte text corpus. A junior engineer removes the weight decay, arguing we can’t possibly overfit a dataset this large in one epoch. Do you merge their PR?

Don’t say: Yes, merge it. Weight decay is just L2 regularization designed to penalize complex weights and prevent overfitting. Since we are doing a single epoch over trillions of tokens, the model will never see the same data twice. Overfitting is mathematically impossible here, so weight decay just needlessly restricts the model’s capacity.

The hidden reason why single-epoch pre-training still desperately needs weight decay, or risk wasting millions in compute on a suboptimal loss landscape.

The full answer, with the mechanism and the arithmetic, is for paid subscribers on Substack.

Read it on Substack

Get the next one

Free on Substack. Unsubscribe in one click.