paper-with-me

Papers

Retrospective Sparse Attention for Efficient Long-Context Generation

2025-08-12 · Seonghwan Choi, Beomseok Kang, Dongwon Jo, Jae-Joon Kim arxiv

Large Language Models (LLMs) are increasingly deployed in long-context tasks such as reasoning, code generation, and multi-turn dialogue. However, inference over extended contexts is bottlenecked by the Key-Value (KV) cache, whose memory footprint grows linearly with sequence length and dominates latency at each decoding step. While recent KV cache compression methods identify and load important few tokens, they focus predominantly on input contexts and fail to address the cumulative attention errors that arise during long decoding. In this paper, we introduce RetroAttention, a novel KV cache update technique that retrospectively revises past attention outputs using newly arrived KV entries from subsequent decoding steps. By maintaining a lightweight output cache, RetroAttention enables past queries to be efficiently supplemented with more contexts, while incurring minimal latency overhead. This breaks the fixed-attention-output paradigm and allows continual correction of prior approximations. Extensive experiments on long-generation benchmarks show that RetroAttention consistently outperforms state-of-the-art (SOTA) KV compression methods, increasing effective KV exposure by up to 1.6$\times$ and accuracy by up to 21.9\%.

📄 PDF Abstract BibTeX arXiv:2508.09001

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

ERNIE-Doc: A Retrospective Long-Document Modeling Transformer

2020-12-31 · ACL 2021 5 · Siyu Ding, Junyuan Shang, Shuohuan Wang, Yu Sun 외

Transformers are not suited for processing long documents, due to their quadratically increasing memory and time consumption. Simply truncating a long document or applying the sparse attention mechanism will incur the co…

Language ModelingLanguage ModellingQuestion AnsweringSentiment Analysis+1

Efficient Context Scaling with LongCat ZigZag Attention

2025-12-30 · Chen Zhang, Yang Bai, Jiahuan Li, Anchun Gui 외 arxiv

We introduce LongCat ZigZag Attention (LoZA), which is a sparse attention scheme designed to transform any existing full-attention models into sparse versions with rather limited compute budget. In long-context scenarios…

VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inference

2026-03-31 · Anmin Liu, Ruixuan Yang, Huiqiang Jiang, Bin Lin 외 arxiv

Long-context video understanding and generation pose a significant computational challenge for Transformer-based video models due to the quadratic complexity of self-attention. While existing sparse attention methods emp…

MoE-DiffuSeq: Enhancing Long-Document Diffusion Models with Sparse Attention and Mixture of Experts

2025-12-23 · Alexandros Christoforos, Chadbourne Davis arxiv

We propose \textbf{MoE-DiffuSeq}, a diffusion-based framework for efficient long-form text generation that integrates sparse attention with a Mixture-of-Experts (MoE) architecture. Existing sequence diffusion models suff…

Text Generation

LCG: Long-Context Consistent Image Generation with Sparse Relational Attention

2026-06-24 · Zihao Wang, Yijia Xu, Haoze Zheng, Xuran Ma 외 arxiv

Recent image generation models achieve impressive quality in single-image synthesis, but often fail to maintain consistency across sequential outputs, as required in comics, storyboards, and visual narratives. We propose…

Text-to-Image Generation