paper-with-me

Papers

LongFlow: Efficient KV Cache Compression for Reasoning Models

2026-03-12 · Yi Su, Zhenxu Tian, Dan Qiao, Yuechi Zhou, Juntao Li, Min Zhang arxiv

Recent reasoning models such as OpenAI-o1 and DeepSeek-R1 have shown strong performance on complex tasks including mathematical reasoning and code generation. However, this performance gain comes with substantially longer output sequences, leading to significantly increased deployment costs. In particular, long outputs require large KV caches, resulting in high memory consumption and severe bandwidth pressure during attention computation. Most existing KV cache optimization methods are designed for long-input, short-output scenarios and are ineffective for the long-output setting of reasoning models. Moreover, importance estimation in prior work is computationally expensive and becomes prohibitive when continuous re-evaluation is required during long generation. To address these challenges, we propose LongFlow, a KV cache compression method with an efficient importance estimation metric derived from an intermediate result of attention computation using only the current query. This design introduces negligible computational overhead and requires no auxiliary storage. We further develop a custom kernel that fuses FlashAttention, importance estimation, and token eviction into a single optimized operator, improving system-level efficiency. Experiments show that LongFlow achieves up to an 11.8 times throughput improvement with 80% KV cache compression with minimal impact on model accuracy.

📄 PDF Abstract BibTeX arXiv:2603.11504

Code (0)

등록된 구현이 없습니다.

Tasks

Mathematical ReasoningCode Generation

Similar Papers 제목 키워드 기반

R-KV: Redundancy-aware KV Cache Compression for Training-Free Reasoning Models Acceleration

2025-05-30 · Zefan Cai, Wen Xiao, Hanshi Sun, Cheng Luo 외

Reasoning models have demonstrated impressive performance in self-reflection and chain-of-thought reasoning. However, they often produce excessively long outputs, leading to prohibitively large key-value (KV) caches duri…

Mathematical Reasoning

SideQuest: Model-Driven KV Cache Management for Long-Horizon Agentic Reasoning

2026-02-26 · Sanjay Kariyappa, G. Edward Suh arxiv

Long-running agentic tasks, such as deep research, require multi-hop reasoning over information distributed across multiple webpages and documents. In such tasks, the LLM context is dominated by tokens from external retr…

Which Heads Matter for Reasoning? RL-Guided KV Cache Compression

2025-10-09 · Wenjie Du, Li Jiang, Keda Tao, Xue Liu 외 arxiv

Reasoning large language models exhibit complex reasoning behaviors via extended chain-of-thought generation that are highly fragile to information loss during decoding, creating critical challenges for KV cache compress…

Reinforcement Learning

Breadcrumbs Reasoning: Memory-Efficient Reasoning with Compression Beacons

2025-10-15 · Giovanni Monea, Yair Feldman, Shankar Padmanabhan, Kianté Brantley 외 arxiv

The scalability of large language models for long-context reasoning is severely constrained by the linear growth of their Transformer key-value cache, which incurs significant memory and computational costs. We posit tha…

Reinforcement Learning

Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning

2024-10-25 · Yu Fu, Zefan Cai, Abedelkadir Asi, Wayne Xiong 외

Key-Value (KV) caching is a common technique to enhance the computational efficiency of Large Language Models (LLMs), but its memory overhead grows rapidly with input length. Prior work has shown that not all tokens are …

AllComputational EfficiencyQuestion AnsweringText Generation