paper-with-me

홈 › Papers

Efficient Long-Decoding Inference with Reasoning-Aware Attention Sparsity

2025-02-16 · Junhao Hu, Wenrui Huang, Weidong Wang, Zhenwen Li, Tiancheng Hu, Zhixia Liu, Xusheng Chen, Tao Xie, Yizhou Shan

Large Language Models (LLMs) have demonstrated strong capabilities across various domains, with recent advancements in challenging reasoning tasks such as mathematics and programming. However, solving reasoning tasks often requires long decoding chains (of thoughts), which incur $O(N)$ time and memory consumption, where $N$ is the chain length. To mitigate $O(N)$ time and memory consumption, existing sparsity-based algorithms propose retaining only the most critical token's intermediate data (i.e., key-value cache) and discarding the rest. However, these existing algorithms struggle with the ``impossible trinity'' of accuracy, time, and memory. For example, the state-of-the-art algorithm, Quest, achieves high accuracy with $O(L)$ time but $O(N)$ memory ($L$ is the cache budget, $L \ll N$). To address this issue, in this paper, we identify a new attention pattern during the decode stage of reasoning tasks, where milestone tokens (analogous to lemmas in mathematical proofs) emerge, are utilized, and then become unimportant afterward. Based on this pattern, we propose a new algorithm named RaaS that identifies and retains milestone tokens only until they are no longer needed, achieving high accuracy with $O(L)$ time and $O(L)$ memory complexity.

📄 PDF Abstract BibTeX arXiv:2502.11147

Code (0)

등록된 구현이 없습니다.

Tasks

Mathematical Proofs

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Attention-aware Inference Optimizations for Large Vision-Language Models with Memory-efficient Decoding

2026-03-25 · Fatih Ilhan, Gaowen Liu, Ramana Rao Kompella, Selim Furkan Tekin 외 arxiv

Large Vision-Language Models (VLMs) have achieved remarkable success in multi-modal reasoning, but their inference time efficiency remains a significant challenge due to the memory overhead during decoding, especially wh…

Step-3 is Large yet Affordable: Model-system Co-design for Cost-effective Decoding

2025-07-25 · StepFun, :, Bin Wang, Bojun Wang 외 arxiv

Large language models (LLMs) face low hardware efficiency during decoding, especially for long-context reasoning tasks. This paper introduces Step-3, a 321B-parameter VLM with hardware-aware model-system co-design optimi…

LongSpec: Long-Context Speculative Decoding with Efficient Drafting and Verification

2025-02-24 · Penghui Yang, Cunxiao Du, Fengzhuo Zhang, Haonan Wang 외

Speculative decoding has become a promising technique to mitigate the high inference latency of autoregressive decoding in Large Language Models (LLMs). Despite its promise, the effective application of speculative decod…

Code Completion

Slow-Fast Inference: Training-Free Inference Acceleration via Within-Sentence Support Stability

2026-03-12 · Xingyu Xie, Zhaochen Yu, Yue Liao, Tao Wang 외 arxiv

Long-context autoregressive decoding remains expensive because each decoding step must repeatedly process a growing history. We observe a consistent pattern during decoding: within a sentence, and more generally within a…

Parallel Context-of-Experts Decoding for Retrieval Augmented Generation

2026-01-13 · Giulio Corallo, Paolo Papotti arxiv

Retrieval Augmented Generation faces a trade-off: concatenating documents in a long prompt enables multi-document reasoning but creates prefill bottlenecks, while encoding document KV caches separately offers speed but b…