Metraipolis › archive › dc_0713b585ac7e
Double KV Cache Optimization on Apple Silicon: Block-FP4, Radial Quantization, and Fused Metal Kernels — arXiv:2610.33076
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.33076
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-27T08:15:28.344Z
- SHA-256 of the archived text
898500e75e86706fc869f438eb6e94730f913ceee01586258fb0c9f2a966675b- Stable URL of this page
https://metraipolis.com/documento/dc_0713b585ac7e
How to cite
Double KV Cache Optimization on Apple Silicon: Block-FP4, Radial Quantization, and Fused Metal Kernels — arXiv:2610.33076 — arXiv (en), https://arxiv.org/abs/2610.33076 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0713b585ac7e (Metraipolis archive dc_0713b585ac7e, sha256 898500e75e86706fc869f438eb6e94730f913ceee01586258fb0c9f2a966675b)
BibTeX
@misc{dc0713b585ac7e,
title = {Double KV Cache Optimization on Apple Silicon: Block-FP4, Radial Quantization, and Fused Metal Kernels — arXiv:2610.33076},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.33076},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0713b585ac7e; sha256 898500e75e86706fc869f438eb6e94730f913ceee01586258fb0c9f2a966675b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.33076. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Key-value (KV) cache capacity and memory traffic are primary bottlenecks in long-context autoregressive inference. We evaluate five cache paths on an Apple Silicon M5 Max using MLX: a native bf16 baseline, block-scaled E2M1 FP4, a Python reference implementing radial quantization with a QJL-style residual, sequential FP4-to-Polar composition, and a fused Metal Polar kernel. On Apple Silicon M5 Max, fused Metal PolarQuant achieves 46.8 tok/s at 3,456 B/token - 3.64x compression versus the bf16 baseline and 1.84x faster than the Python Polar reference (25.4 tok/s), while slightly outperforming block-FP4 (41.5 tok/s at 3.62x compression). Sequential composition of FP4 and Polar (Double Optimization) yields no additive benefit: 4,241 B/token at 15.1 tok/s, worse than FP4 alone on both axes. The fused path establishes that radial coding can be competitive when packing, rotation, and reconstruction are placed in one device kernel, but this result does not extend to longer contexts. At 32K and above, all compressed variants collapse to 1.5-14 tok/s because the current attention path repeatedly reconstructs the full cache, retaining cumulative O(N^2) decode work. At 64K, the Metal variant runs out of memory when a 33.5 GB allocation exceeds MLX's 22.6 GB Metal buffer limit. Fused scaled dot-product attention operating directly on compressed KV, together with chunked pre-allocation, is required for long-context viability. These results separate representation-level compression from kernel and allocator effects and identify the conditions under which low-bit KV caching helps on unified memory hardware. Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.AR, nuovi lavori del giorno). Categorie arXiv: Hardware Architecture (cs.AR). Pagina del lavoro: https://arxiv.org/abs/2610.33076 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-27T07:56:30.113Z dalla pagina https://arxiv.org/list/cs.AR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).