# LongCat Sparse Attention: Taming the Lightning via Streaming-aware Hierarchical Cross-Layer Indexing

- **ID:** 452
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2608.01662
- **Authors:** Wen Zan, Jiaqi Zhang, Jianchao Tan, Hong Liu, Cunguang Wang, Xiang Li, Duyue Ma, Guanyu Wu, Yifan Lu, Fengcun Li, Yerui Sun, Peng Pei, Yuchen Xie, Xunliang Cai
- **Venue:** arXiv / Meituan LongCat
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** arXiv perpetual non-exclusive license 1.0
- **License family:** Other (auto-classified)
- **Tags:** sparse-attention, dsa, lightning-indexer, long-context, longcat, meituan, moe, mla
- **Topics:** sparse attention, long-context LLMs
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/452

## Summary

LongCat Sparse Attention (LSA) composes three indexer changes on DSA: Streaming-Aware Indexing (sink+sliding-window contiguous budget plus dynamic sparse tokens for coalesced HBM), Cross-Layer Indexing (N=2 owner/reuse with distillation; halves indexer passes), and training-free Hierarchical Indexing (coarse page recall then token refine; net win at >=256K). Matches full MLA on general/long-context benches at 69B-A3B and 560B-A27B, enables 1M-token native training, and underpins LongCat-2.0 (1.6T-A48B). Releases LongCat-Flash-Lite-Sparse (69B-A3B).

## Attributes

- **Purpose:** Fix DeepSeek Sparse Attention Lightning Indexer bottlenecks (O(L^2) scoring and scattered KV gathers) with a hardware-algorithm co-design
- **Scale:** LongCat-Flash-Lite 69B-A3B (28 attn layers); LongCat-Flash 560B-A27B; LongCat-2.0 1.6T-A48B; K=2048 (sink 16 + SWA 1024 + sparse); context to 1M tokens
- **Used for:** Unknown
- **Time period:** 2026-08-03 (arXiv 2608.01662 v1); last revised 2026-08-04 (v2)
- **Author type:** human

## From the source (fetched 2026-10-03)

- **Published:** Aug 3, 2026 (arXiv)
- **Last revised:** Aug 4, 2026 (arXiv)
- **arXiv categories:** cs.AI, cs.CL, cs.DC, cs.LG (arXiv)
- **Citations:** 2 (Semantic Scholar)
- **References:** 66 (Semantic Scholar)

## Abstract

DeepSeek Sparse Attention (DSA) enables efficient long-context modeling through its Lightning Indexer. However, practical deployment remains constrained by the indexer's expensive $O(L^2)$ scoring overhead and the hardware-inefficient, discontinuous memory-access patterns induced by its outputs. To address these system-level bottlenecks, we introduce LongCat Sparse Attention (LSA), a hardware-algorithm co-designed framework comprising three complementary and orthogonal strategies: (1) Streaming-Aware Indexing, which selectively converts scattered KV entries into hardware-aligned contiguous layouts to enable coalesced HBM access; (2) Cross-Layer Indexing, which amortizes indexing overhead by reusing the results produced by a single layer across consecutive layers, supported by cross-layer distillation; and (3) Hierarchical Indexing, which adopts a coarse-to-fine scoring scheme to progressively narrow the candidate set for each query, thereby substantially reducing indexing computation. Extensive scaling experiments, ranging from 69B-A3B to 560B-A27B models, demonstrate that LSA consistently achieves performance on par with full attention across both general-purpose and long-context benchmarks. Moreover, LSA supports native training with context lengths of up to one million tokens and underpins the development of LongCat-2.0 (1.6T-A48B). To facilitate further research, we also introduce and open-source LongCat-Flash-Lite-Sparse (69B-A3B), which integrates LSA into LongCat-Flash-Lite and incorporates an updated long-context training corpus.

## Research notes

- Primary: arxiv abs (default nonexclusive-distrib 1.0; cs.AI/CL/DC/LG). Corresponding zhangjiaqi39@meituan.com. Open model https://huggingface.co/meituan-longcat/LongCat-Flash-Lite-Sparse (MIT, 69B, 82 likes, 1.1k downloads). LongCat-2.0 also MIT. Discord posted AlphaXiv 2608.01662v1. Paper not a dataset; no datasets_local row.

## Cites, within this collection

- [GLM-5: from Vibe Coding to Agentic Engineering](https://papers.projxon.ai/entries/532) (paper 2026, #532)
- [MoBA: Mixture of Block Attention for Long-Context LLMs](https://papers.projxon.ai/entries/707) (paper 2025, #707)

## Cited by, within this collection

- [Block Sparse Attention with Log-Linear Complexity](https://papers.projxon.ai/entries/1086) (paper 2026, #1086)

## Related entries

- Discussed in: [Mixture-of-experts language models: where the work is (overview)](https://papers.projxon.ai/entries/1206) (note, #1206)
- Discussed in: [Long context: three bets and a weak spot in evaluation (overview)](https://papers.projxon.ai/entries/1208) (note, #1208)

## Similar entries

- [HySparse2: Hybrid Sparse Attention with Two-Level KV Sharing](https://papers.projxon.ai/entries/1031) (paper, #1031)
- [Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities](https://papers.projxon.ai/entries/1110) (paper, #1110)
- [Naive-N0.5-Flash: Building Frontier AI with AI](https://papers.projxon.ai/entries/1077) (model, #1077)
- [Kolibri-1: 78B Open-Weight MoE with 3.46B Active Parameters and Hybrid SWA](https://papers.projxon.ai/entries/1223) (model, #1223)
- [xLLM: Light-weight infrastructure for express LLM pre-training](https://papers.projxon.ai/entries/733) (code, #733)
- [K2 Horizon: six fully open models from 0.9B to 375B (IFM)](https://papers.projxon.ai/entries/761) (model, #761)
