HN On Hacker News ↗
[Tech] Why MLA and MTP Fight Each Other: Attention Through Arithmetic Intensity
Pangram verdict · v3.3
We believe this text is mainly AI, with some AI-assisted and human-written content.
87 %
AI likelihood · overall
AI 5% human-written
93% AI-generated
Analyzed
Aug 21
backend: pangram/v3.3
Segments scanned
2 windows
avg 48 words each
Distribution
5 / 93%
human / AI fraction
Verdict
AI
Pangram v3.3
Article text · 96 words · 2 segments analyzed
Human
AI-generated
§1 Mixed · 30%
I was reading this post by Su Jianlin when one sentence stopped me: Besides the KV cache, decoding now has another variable — MTP, or speculative decoding, whose idea is to trade compute for speed.
§2 Mixed · 54%
But 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. My first reaction was: what does that mean? Why would MLA “consume compute up front” during decode? And why should it conflict with MTP that its decode FLOPs come out equivalent to a head-dim-512+ MHA?