arXiv Computation and Language

LongCat Recall Sparse Attention: Co-Designing Key Organization and Retrieval for Long-Context Inference

LongCat Recall Sparse Attention (LRSA) is a retrieval‑based sparse attention method that improves efficiency for long‑context inference. It partitions sequences into time buckets, indexes keys in capacity‑balanced directional groups, and uses fine‑grained representatives (centers) for page selection, followed by refinement to choose the final Top‑K positions. Integrated into SGLang, LRSA achieves a 4.70× speed‑up over DeepSeek Sparse Attention for key selection and a 35.60× speed‑up over full attention for combined selection and attention on a 1024K‑token context.

arXiv Machine Learning
Sep 11

HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention

HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention proposes a two-stage hierarchical indexer that replaces the flat token scan used in token-level sparse attention mechanisms like DeepSeek Sparse Attention. The method first performs block-level coarse filtering to discard irrelevant regions, then applies the original token-level indexer only within the retained candidate blocks, preserving the same top-sparse pattern for downstream attention. Benchmarks show HISA achieves significant speedups at 64K context and matches the quality of DeepSeek-V3.2 and GLM-5 without additional training.

By Yufei Xu, Fanxu Meng, Fan Jiang, Yuxuan Wang, Ruijie Zhou, Zhaohui Wang, Jiexi Wu, Zhixin Pan, Xiaojuan Tang, Wenjie Pei, Tongxuan Liu, Di Yin, Xing Sun, Muhan Zhang
arXiv Machine Learning
Oct 7

RAM-Net: Linear-Time Sequence Modeling with Sparsely Addressable State

RAM‑Net introduces a linear‑time sequence model that replaces dense access to a shared recurrent state with sparse, address‑based access. The model arranges the state as a fixed‑size array of independent slots and uses an Address Decoder to map each token’s key or query to a small subset of slots, thereby reducing inter‑token interference. Empirical results show that RAM‑Net outperforms strong recurrent baselines on fine‑grained long‑range retrieval, achieves the lowest perplexity in commonsense reasoning, and accesses far fewer state elements per step than competing models.

By Kaicheng Xiao, Haotian Li, Liran Dong, Guoliang Xing
arXiv AI
Nov 11

ADIndex: Layer-Adaptive Sparse Attention Indexing via Group-Level Distillation

ADIndex introduces a layer‑adaptive sparse attention indexing method that reduces the latency of token‑level selection in long‑context models. It combines a layer‑wise calibration strategy, a group‑level distillation scheme, and a low‑latency inference approach that shares token banks across query groups. Experiments on DeepSeek‑V3.2 and GLM‑5.1 show near‑lossless performance on LongBench, LongBench v2, and RULER while achieving up to 6.22× prefill speedups and 3.40× decoding speedups at 256K context length, and a 1.54× end‑to‑end serving speedup at 128K context length.

By Jin-Fei Qi, Yiduo Li, Jiang-Xin Shi, Kan Liu, Tao Lan, Hanlin Tang, Yu-Feng Li
arXiv AI
Oct 2

HHR: Hierarchical Hash Retrieval for Efficient LLM Generation

The paper introduces Hierarchical Hash Retrieval (HHR), a coarse‑to‑fine framework designed to improve hash‑based retrieval for large language models. HHR combines Geometry‑Aware Key Routing (GKR) to redistribute feature magnitudes and prune low‑logit keys, with Learned Hash Projection (LHP) to align Hamming distance with true query‑key relevance for fine‑grained retrieval. Experiments on diverse LLMs and benchmarks show that HHR outperforms existing methods, boosting LongBench scores by 1.10 points and achieving up to 3.30× decoding speedup at 128K context length for Llama‑3.1‑8B‑Instruct.

By Lianjun Liu, Tiantian Zheng, You Huang, Weiqi Yan, Mingte Qiu, Huazhong Liu, Xiaofeng Zhu, Yunshan Zhong