paper-with-me

홈 › Papers

HyLRA: Hybrid Layer Reuse Attention for Efficient Long-Context Inference

2026-01-31 · Xuan Ai, Qingqing Yang, Peng Wang, Lei Deng, Lin Zhang, Renhai Chen, Gong Zhang arxiv

Long-context inference in Large Language Models (LLMs) is bottlenecked by the quadratic computation complexity of attention and the substantial memory footprint of Key-Value (KV) caches. While existing sparse attention mechanisms attempt to mitigate this by exploiting inherent sparsity, they often rely on rigid patterns or aggressive pruning, failing to achieve an optimal balance between efficiency and accuracy. In this paper, we introduce {\bf HyLRA} ({\bf Hy}brid {\bf L}ayer {\bf R}euse {\bf A}ttention), a novel framework driven by layer-wise sparsity profiling. Our empirical analysis uncovers a dual characteristic in attention mechanics: \textit{intra-layer sensitivity}, where specific layers necessitate full attention to prevent feature distortion, and \textit{inter-layer similarity}, where consecutive layers share substantial critical tokens. Based on these observations, HyLRA employs an offline dynamic programming approach to derive an optimal layer-wise policy. This hybrid strategy retains full attention for sensitive layers to ensure robustness, while enabling tolerant layers to bypass quadratic calculations by directly reusing top-$k$ indices from preceding layers. This approach allows LLMs to restrict computation to the most critical tokens, effectively overcoming the quadratic bottleneck of dense attention. Extensive evaluations demonstrate that HyLRA improves inference throughput by 6\%--46\% while maintaining comparable performance (with $<1\%$ accuracy degradation), consistently outperforming state-of-the-art sparse attention methods. HyLRA is open source at \href{https://anonymous.4open.science/r/unified-cache-management-CF80/}{\texttt{/r/unified-cache-management-CF80/}}

📄 PDF Abstract BibTeX arXiv:2602.00777

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Tail-Replay: Escaping the Curse of Linear Attention in Prefix Caching for Hybrid LLMs

2026-08-31 · Yirui Liu, Ruoling Qi, Xuaner Wu, Penghang Liu 외 arxiv

Hybrid large language models interleave full-attention layers with linear-attention layers to reduce the cost of long-context inference. This structure complicates prefix caching: full-attention key-value caches are toke…

HydraHead: From Head-Level Functional Heterogeneity to Specialized Attention Hybridization

2026-06-18 · Zhentao Tan, Wei Chen, Jingyi Shen, Yao Liu 외 arxiv

The quadratic complexity of attention poses a critical bottleneck for long-context processing, spurring interest in hybrid attention designs. Most open-source hybrid models adopt a layer-wise strategy. Yet, prior work ha…

Marconi: Prefix Caching for the Era of Hybrid LLMs

2024-11-28 · Rui Pan, Zhuang Wang, Zhen Jia, Can Karakus 외

Hybrid models that combine the language modeling capabilities of Attention layers with the efficiency of Recurrent layers (e.g., State Space Models) have gained traction in practically supporting long contexts in Large L…

Language ModelingLanguage ModellingLarge Language ModelState Space Models

Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference

2025-12-18 · Dhruv Deshmukh, Saurabh Goyal, Nipun Kwatra, Ramachandran Ramjee arxiv

Attention is the dominant source of latency during long-context LLM inference, an increasingly popular workload with reasoning models and RAG. We propose Kascade, a training-free sparse attention method that leverages kn…

HySparse: A Hybrid Sparse Attention Architecture with Oracle Token Selection and KV Cache Sharing

2026-02-03 · Yizhao Gao, Jianyu Wei, Qihao Zhang, Yu Cheng 외 arxiv

This work introduces Hybrid Sparse Attention (HySparse), a new architecture that interleaves each full attention layer with several sparse attention layers. While conceptually simple, HySparse strategically derives each …