Skip to main navigation Skip to search Skip to main content

SLAKE: Softmax-approximated training-free linear attention with KV-Cache eviction for long-sequence LLMs

  • Seoul National University of Science and Technology (SNUST)

Research output: Contribution to journal › Article › peer-review

Abstract

Recent advances in transformer-based large language models (LLMs) have enabled inference over contexts as long as 128 K tokens. However, the quadratic computational and memory costs of full self-attention remain a fundamental bottleneck at such scales. Prior efforts to mitigate this challenge largely fall into two camps: (i) structural approximations (e.g., linear attention) that reduce asymptotic complexity but typically require costly retraining, and (ii) KV-cache optimizations (e.g., eviction or merging) that are training-free yet inevitably discard information. We introduce Softmax-Approximated Training-Free Linear Attention with KV-Cache Eviction (SLAKE), a novel framework that unifies the complementary advantages of these two paradigms. At its core, SLAKE employs Partially Taylor-Approximated Attention (PTAA), which leverages a first-order Taylor expansion to selectively linearize the Softmax attention kernel. Tokens scored as low-importance are routed to the linear branch, while high-salience tokens retain exact Softmax computation. To further improve cache efficiency, we propose Value-Aware Budget Scoring (VABS), a new allocation strategy that incorporates value contributions and overcomes key limitations of previous eviction heuristics. Extensive experiments on Llama-3.1-8B demonstrate that SLAKE delivers up to 10× decoding speedup, or approximately 5.8× end-to-end, and 30.8% peak-memory reduction on 128 K-token sequences, while keeping the accuracy loss on the LongBench-16 average within 4 points of the Full-KV baseline at a cache budget of 256; the same bound does not hold in every configuration on Chinese LongBench or InfiniteBench, which we report separately. To our knowledge, SLAKE is the first training-free approach to jointly integrate linear attention with KV-cache eviction, and it attains the highest average accuracy among the training-free KV-cache compression methods compared at matched cache budgets in nine of the ten (model, budget) configurations tested on LongBench.

Original languageEnglish
Article number135275
JournalNeurocomputing
Volume709
DOIs
StatePublished - 14 Jan 2027

Keywords

  • KV-cache eviction
  • Linear attention approximation
  • Long-context LLM inference
  • Memory-efficient decoding
  • Training-free acceleration

Cite this