paper-with-me

홈 › Papers

Self-Indexing KVCache: Predicting Sparse Attention from Compressed Keys

2026-03-15 · Xu Yang, Jiapeng Zhang, Dongyang Zhao, Guo Chen, Zhuo Tang 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 auxiliary index structures to select relevant tokens, and on complex quantization schemes to reduce memory usage. This fragmented design introduces redundant overhead and limits scalability. In this paper, we propose a novel paradigm: treating the compressed key representation not merely as storage, but as a self-indexing structure that directly enables efficient sparse attention. By designing a sign-based 1-bit vector quantization (VQ) scheme, our method unifies compression and retrieval in a single, hardware-friendly format. This approach eliminates the need for external indices or learning-based predictors, offering a lightweight yet robust solution for memory-constrained inference. All components are designed to be hardware-efficient and easy to implement. By implementing custom CUDA kernels, our method integrates seamlessly with FlashAttention, minimizing additional runtime and memory overhead. Experimental results demonstrate that our approach delivers both effectiveness and efficiency.

📄 PDF Abstract BibTeX arXiv:2603.14224

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

PQCache: Product Quantization-based KVCache for Long Context LLM Inference

2024-07-01 · Hailin Zhang, Xiaodong Ji, Yilin Chen, Fangcheng Fu 외

As the field of Large Language Models (LLMs) continues to evolve, the context length in inference is steadily growing. Key-Value Cache (KVCache), the intermediate representations of tokens within LLM inference, has now b…

GPUQuantizationRetrieval

Pyramid Forcing: Head-Aware Pyramid KV Cache Policy for High-Quality Long Video Generation

2026-05-13 · Jiayu Chen, Junbei Tang, Wenbiao Zhao, Maoliang Li 외 arxiv

Autoregressive video generation enables streaming and open-ended long video synthesis, but still suffers from long-term degradation caused by accumulated errors. Existing KVCache strategies usually apply unified historic…

Video Generation

DynaKV: Enabling Accurate and Efficient Long-Sequence LLM Decoding on Smartphones

2025-10-20 · Tuowei Wang, Minxing Huang, Fengzu Li, Ligeng Chen 외 arxiv

As the demand for human-like reasoning, multi-turn dialogues, and long-form responses grows, large language models (LLMs) are increasingly expected to support efficient and effective long-sequence decoding. However, due …

LiteCache: A Query Similarity-Driven, GPU-Centric KVCache Subsystem for Efficient LLM Inference

2025-11-18 · Jiawei Yi, Ping Gong, Youhui Bai, Zewen Jin 외 arxiv

During LLM inference, KVCache memory usage grows linearly with sequence length and batch size and often exceeds GPU capacity. Recent proposals offload KV states to host memory and reduce transfers using top-k attention. …

Inference-time sparse attention with asymmetric indexing

2025-02-12 · Pierre-Emmanuel Mazaré, Gergely Szilvasy, Maria Lomeli, Francisco Massa 외

Self-attention in transformer models is an incremental associative memory that maps key vectors to value vectors. One way to speed up self-attention is to employ GPU-compliant vector search algorithms, yet the standard p…

GPU