QK-Normed MLA: QK normalization without full key caching

Yizhou Han, Yao Zhao, Jun Zhou, Longfei Li, Ruoyu Sun
6/15/2026
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Query-key (QK) normalization stabilizes attention by controlling the scale of queries and keys before the dot product, but is not immediately compatible with Multi-head Latent Attention (MLA). MLA achieves efficient decoding by caching low-dimensional latent states instead of full keys, whereas post-projection QK RMSNorm appears to require the fully projected key for every cached token. We show this apparent incompatibility is an implementation artifact, not an architectural constraint. RMSNorm decomposes into a static affine weight and a dynamic scalar RMS statistic. The static key-side weight can be absorbed into the MLA query-side projection; the dynamic key statistic reduces to one inverse-RMS scalar per token and KV group. The resulting formulation is exactly equivalent to explicit post-projection QK RMSNorm in exact arithmetic and preserves MLA's latent decode path. In our 400M runs trained for up to 100B tokens, QK-Normed MLA achieves lower training loss and better downstream accuracy than QK clipping, while H800 decode benchmarks show less than 2% latency overhead up to 256k context. These results make QK normalization a practical stabilization option for MLA models without requiring full-key caching.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{han2026qknormed,
  title  = {QK-Normed MLA: QK normalization without full key caching},
  author = {Yizhou Han and Yao Zhao and Jun Zhou and Longfei Li and Ruoyu Sun},
  year   = {2026},
  eprint = {2606.16310},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.16310v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.16310.svg)](https://codeofpaper.com/paper/2606.16310)

Discussion