paper-with-me

홈 › Papers

StreamIndex: Memory-Bounded Compressed Sparse Attention via Streaming Top-k

2026-05-04 · Jaber Jaber, Osama Jaber arxiv

DeepSeek-V3.2 and V4 introduce Compressed Sparse Attention (CSA): a lightning indexer (a learned scoring projection over compressed keys) scores them, the top-k are selected per query, and a sparse attention kernel reads only those. Public CSA implementations materialize a [B, S, H_I, T] FP32 score tensor before the top-k reduction. With H_I=64 indexer heads and the V4-Flash compression ratio m=4, that intermediate is 256 GB at sequence length S=65,536, exceeding any single-GPU high-bandwidth-memory (HBM) budget. We present StreamIndex, a Triton implementation of the CSA pipeline whose central component is a chunked partition-merge top-k driver that never materializes the full intermediate. On synthetic-but-realistic V4-shaped inputs at the indexer-step (layer) level on a single NVIDIA H200, the materialize path runs out of memory (OOMs) at S=65,536 with V4-Flash dimensions; StreamIndex runs the same indexer to S=1,048,576 with 6.21 GB peak HBM, a 32x regime extension. Set-overlap recall against the materialize ground truth is bit-exact at small S where both fit; across three 5-point design-space sweeps (chunk size, key-tile size, top-k), mean recall rounds to 1.0000 with min recall at least 0.9980 in every cell. The chunked driver composes with TileLang's pipelined attention kernel: at S=262,144 with V4-Flash dimensions, the materialize indexer paired with TileLang attention OOMs while the chunked indexer paired with the same attention runs in 1.97 s at 18.56 GB peak. Our contribution targets the indexer step; we make no claim of a faster attention kernel or of real-checkpoint end-to-end behavior. Code: https://github.com/RightNow-AI/StreamIndex.

📄 PDF Abstract BibTeX arXiv:2605.02568

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

FrameVGGT: Coherence-Preserving Memory for Bounded Streaming Geometry

2026-03-08 · Zhisong Xu, Takeshi Oishi arxiv

Streaming Visual Geometry Transformers such as StreamVGGT enable strong online 3D perception, but their KV-cache grows unbounded over long streams, limiting practical deployment. We study bounded-memory streaming geometr…

Camera Pose Estimation3D ReconstructionDepth Estimation

Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference

2026-03-30 · Zifan He, Rui Ma, Yizhou Sun, Jason Cong arxiv

Modern large language models (LLMs) increasingly depends on efficient long-context processing and generation mechanisms, including sparse attention, retrieval-augmented generation (RAG), and compressed contextual memory,…

Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keys

2026-03-15 · Xu Yang, Jiapeng Zhang, Dongyang Zhao, Guo Chen 외 arxiv

The KV cache in self-attention has emerged as a major bottleneck in long-context and large-batch inference for LLMs. Existing approaches often treat sparsity prediction and compression as separate modules, relying on aux…

Memory-Managed Long-Context Attention: Bounded Editable Memory with a Hard Lifecycle and Calibrated Sparse Fallback

2026-06-27 · Junyi Zou, Avrova Donz arxiv

We study memory-managed long-context attention: explicit bounded memory with a learned query-independent writer, lifecycle control, query-aware reading, calibrated sparse fallback, and frozen-LLM generation from raw evid…

Entity Resolution

Trellis: Learning to Compress Key-Value Memory in Attention Models

2025-12-29 · Mahdi Karami, Ali Behrouz, Praneeth Kacham, Vahab Mirrokni arxiv

Transformers, while powerful, suffer from quadratic computational complexity and the ever-growing Key-Value (KV) cache of the attention mechanism. This paper introduces Trellis, a novel Transformer architecture with boun…