LLM System Design Interview, issue 36, Apr 29, 2026

The Isomorphic MLP Trick

Senior AI Engineer interview at Meta, and the interviewer asks:

β€œYou are upgrading our legacy ReLU-based transformer to use modern SwiGLU activations. To keep the architecture consistent, you leave the feed-forward dimension up-projection ratio at the standard πŸ’ Γ— 𝐝_𝐦𝐨𝐝𝐞π₯. What subtle but massive architectural mistake have you just made regarding your parameter budget?”

Don’t say: β€œThere is no mistake. A 4x multiplier is the industry standard established by the original Transformer paper. SwiGLU just replaces the non-linearity function, so keeping the matrix dimensions exactly the same is the correct way to preserve the network’s width.”

Why the standard πŸ’ Γ— 𝐝_𝐦𝐨𝐝𝐞π₯ feed-forward ratio is a trap for modern LLMs, and how to correctly calculate intermediate dimensions to avoid massive memory overhead.

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.