# Why MLA and MTP Fight Each Other: Attention Through Arithmetic Intensity

> Hacker News story 49315836 · language: en · submitted 2026-08-16
> Web version: https://zeli.app/story/49315836
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 18 · by [jxmorris12](<https://news.ycombinator.com/user?id=jxmorris12>) · 💬 0
[original](<https://changyi.fun/posts/attention-arithmetic-intensity/>) · [HN discussion](<https://news.ycombinator.com/item?id=49315836>)

## Summary

A detailed derivation shows that for single-token decode, the arithmetic intensity of attention depends only on the ratio of query heads to KV heads, with context length and head dims canceling out. MLA's AI is roughly twice the number of query heads, pushing it near the roofline knee on current GPUs, making it unfriendly to MTP.

## Key quote

> MLA behaves during decoding like an MQA with head_dims=512+, and has already consumed most of the compute up front, so “MLA+MTP” tends to lose out.

---

## Cite

- Page: https://zeli.app/story/49315836
- Date: 2026-08-16
- Source: changyi.fun (https://changyi.fun/posts/attention-arithmetic-intensity/)
- Hacker News: https://news.ycombinator.com/item?id=49315836

## Other languages

- zh: https://zeli.app/zh/story/49315836 · markdown: https://zeli.app/zh/story/49315836.md
- ru: https://zeli.app/ru/story/49315836 · markdown: https://zeli.app/ru/story/49315836.md
