Foldable Maps Enable Expressive and Efficient Attention

Long-context inference is bound by the KV cache. Linear attention on its own struggles with precise recall while dense attention has higher precision but becomes extremely expensive for long sequences. Shared latent compression (MLA) improves decode bandwidth by reading once across all heads, but that leaves no benefit for sparse head access. In this paper we introduce Foldable Maps, a conditional linear map system which pairs a shared latent with per-expert latents that utilize a foldable workspace. The expert-level latent expands using 6 of 24 map projections per expert per token, which simplifies to one once selected. This enables the training-time workspace to fold with absorption, making per-expert costs independent of workspace and head width for inference. At 815M parameters with token-matched arms and a 4.57x KV compression ratio over its parent model, this format matches or exceeds both uncompressed baselines on NIAH retrieval averaged over 4k-100k contexts (+20% over parent) and more than doubles the score of the next best measured compression format at equal latent width. It also outperforms MLA with more than double the latent width on both perplexity and NIAH retrieval. The perplexity is the best of the measured compressed formats, but is still ∼5% worse than the uncompressed parent at this compression ratio. We also train a 24-byte per-token per-layer indexer which maintains the full NIAH retrieval edge (0.423 vs 0.426) with ∼12x less read traffic and a peak wall-clock speedup of over 5x compared to the parent model at 100k context length. This trained indexer and model pair achieved higher peak throughput and less perplexity dropoff than the 256-width MLA model graded with a better-than-oracle DSA-style indexer. Structural KV sparsity makes expert count a free axis for attention capacity, aligning the training and serving benefits of attention-side MoE.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-02
DOI
https://doi.org/10.5281/zenodo.24760932
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Foldable Maps Enable Expressive and Efficient Attention

Alden Bauman
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

Foldable Maps Enable Expressive and Efficient Attention

Alden Bauman
preprint en

Abstract

Long-context inference is bound by the KV cache. Linear attention on its own struggles with precise recall while dense attention has higher precision but becomes extremely expensive for long sequences. Shared latent compression (MLA) improves decode bandwidth by reading once across all heads, but that leaves no benefit for sparse head access. In this paper we introduce Foldable Maps, a conditional linear map system which pairs a shared latent with per-expert latents that utilize a foldable workspace. The expert-level latent expands using 6 of 24 map projections per expert per token, which simplifies to one once selected. This enables the training-time workspace to fold with absorption, making per-expert costs independent of workspace and head width for inference. At 815M parameters with token-matched arms and a 4.57x KV compression ratio over its parent model, this format matches or exceeds both uncompressed baselines on NIAH retrieval averaged over 4k-100k contexts (+20% over parent) and more than doubles the score of the next best measured compression format at equal latent width. It also outperforms MLA with more than double the latent width on both perplexity and NIAH retrieval. The perplexity is the best of the measured compressed formats, but is still ∼5% worse than the uncompressed parent at this compression ratio. We also train a 24-byte per-token per-layer indexer which maintains the full NIAH retrieval edge (0.423 vs 0.426) with ∼12x less read traffic and a peak wall-clock speedup of over 5x compared to the parent model at 100k context length. This trained indexer and model pair achieved higher peak throughput and less perplexity dropoff than the 256-width MLA model graded with a better-than-oracle DSA-style indexer. Structural KV sparsity makes expert count a free axis for attention capacity, aligning the training and serving benefits of attention-side MoE.

Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon