Multi-Head Latent Attention

Instead of choosing how many heads share keys and values, compress them. Store one small latent vector per token and let every head expand its own keys and values from it. The cache shrinks like multi-query's, yet head diversity survives — the best of both worlds.

Large Language Models: From Transformers to Frontier Models

Sign up free to read the rest of this lesson