LatentIndex cuts sparse-attention indexer cache by 61.1% on DeepSeek-V3.2
LatentIndex: Cross-Layer Sharing with Layer-Specific Selection for Sparse Attention
Sharing continuous latent representations instead of discrete token selections resolves the usual trade-off between cache reuse and per-layer accuracy in sparse attention. Engineering teams running long-context inference on DeepSeek-V3.2 or GLM-5 can apply the training-free calibration directly to cut indexer memory and speed up decoding. The 2.3-2.7 times decode speedups at 128K contexts make it especially relevant for local long-document and agent workloads.
LatentIndex extends the latent-sharing principle of Multi-head Latent Attention across sparse-attention indexer layers.
Each layer group builds a shared latent cache from its first layer's hidden states, while layer-specific scoring keeps token selection independent per layer.
On DeepSeek-V3.2, four-layer sharing reduces logical indexer-cache storage by 61.
1%.Training-free LatentIndex improves head-wise attention-mass recall over IndexCache by up to 3.
28 percentage points on DeepSeek-V3.2 and GLM-5, with RULER and LongBench results close to native DSA.
A hierarchical selection variant achieves 2.30-2.
72 times decode indexer speedups over DSA across 8K-128K contexts.
LatentIndex: Cross-Layer Sharing with Layer-Specific Selection for Sparse Attention
Sparse attention reduces core-attention computation, but its indexers still incur repeated selection work and per-layer key-cache storage. Reusing selected indices across layers reduces this overhead but constrains multiple layers to the same token set. We introduce LatentIndex, which extends the latent-sharing principle of Multi-head Latent Attention across indexer layers. Each layer group constructs a shared latent cache from its first layer's hidden states, while layer-specific scoring enables independent token selection. Absorbing key decoders into queries enables direct scoring of the shared cache without reconstructing historical per-layer keys. We develop training-free calibration and investigate a training-aware instantiation of this principle. To balance quality and computation, a hierarchical selection (HS) variant lets followers independently refine a shared candidate set proposed by the anchor. With four-layer sharing, LatentIndex reduces logical indexer-cache storage by 61.1% on DeepSeek-V3.2. Across DeepSeek-V3.2 and GLM-5, training-free LatentIndex improves head-wise attention-mass recall over IndexCache by up to 3.28 percentage points while maintaining RULER and LongBench performance close to native DSA. HS further achieves 2.30-2.72 times decode indexer speedups over DSA across 8K-128K contexts, retaining most of LatentIndex's recall. LatentIndex offers a new perspective on cross-layer indexing: sharing continuous representations rather than discrete selections enables efficient reuse while preserving layer-specific token selection.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include DeepSeek-V3.2, GLM-5, sparse attention, MLA.
Primary source verification: published directly by arXiv: DeepSeek with first-party authority.