arXiv:2608.01662v2 cs.AI

LongCat 희소 어텐션: 스트리밍 인식 계층적 교차 층 인덱싱을 통한 Lightning 제어

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

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

제출 2026-08-03

한국어 초록

DeepSeek 희소 어텐션(DSA)은 Lightning Indexer를 통해 효율적인 긴 문맥 모델링을 가능하게 합니다. 그러나 실제 배포 환경에서는 인덱서의 과도한 $O(L^2)$ 점수 계산 오버헤드와, 인덱서 출력으로 인해 발생하는 하드웨어 비효율적이고 불연속적인 메모리 접근 패턴으로 인해 제약을 받습니다. 이러한 시스템 수준의 병목 현상을 해결하기 위해, 본 논문에서는 상호 보완적이고 직교하는 세 가지 전략으로 구성된 하드웨어-알고리즘 공동 설계 프레임워크인 LongCat 희소 어텐션(LSA)을 소개합니다: (1) 흩어져 있는 KV 엔트리를 하드웨어에 정렬된 연속 레이아웃으로 선별 변환하여 통합(coalesced) HBM 접근을 가능하게 하는 스트리밍 인식 인덱싱(Streaming-Aware Indexing), (2) 층 간 지식 증류(distillation)를 기반으로 단일 층에서 생성된 결과를 연속된 층 전반에서 재사용하여 인덱싱 오버헤드를 분산(amortize)시키는 교차 층 인덱싱(Cross-Layer Indexing), (3) coarse-to-fine 점수 계산 방식을 채택하여 각 쿼리의 후보군을 점진적으로 좁힘으로써 인덱싱 연산을 대폭 줄이는 계층적 인덱싱(Hierarchical Indexing). 69B-A3B부터 560B-A27B 모델에 이르는 광범위한 스케일링 실험을 통해, LSA는 범용 및 긴 문맥 벤치마크 전반에서 완전 어텐션(full attention)과 동등한 성능을 일관되게 달성함을 입증합니다. 아울러 LSA는 최대 백만(1M) 토큰의 컨텍스트 길이에 대한 네이티브 학습을 지원하며 LongCat-2.0(1.6T-A48B) 개발의 기반이 됩니다. 후속 연구를 촉진하기 위해, LongCat-Flash-Lite에 LSA를 통합하고 업데이트된 긴 문맥 학습 말뭉치를 반영한 LongCat-Flash-Lite-Sparse(69B-A3B)를 함께 공개합니다.

원문 초록

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.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2608.01662v2제출 시각 미확인
  2. arXiv:2608.01662v1제출 시각 미확인

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.