In-context KV-Cache Eviction for LLMs via Attention-Gate
원문 초록
The KV-Cache technique has become the standard for the inference of large language models (LLMs). Yet, it is widely criticized that KV-Cache can become a bottleneck of the LLM inference system. This paper enables a novel dynamic KV-Cache eviction policy by injecting a lightweight module called Attention-Gate to the model. It accepts the global context as input and yields eviction flags for each token. The self-attention modules in the model proceed according to the flags and cache only a subset of the KV states for next token prediction. The Attention-Gates can yield various flags for different heads and layers and be easily tuned on top of a pre-trained LLM via continual pre-training or supervised fine-tuning. The computational and memory overhead introduced by Attention-Gates can be minimal. We empirically evaluate the proposed approach across multiple scenarios, showing that effective eviction of redundant tokens can not only improve efficiency but also enhance performance.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
DeepRTE: Pre-trained Attention-based Neural Network for Radiative Tranfer
SMARTe: Slot-based Method for Accountable Relational Triple extraction
Reconciling Privacy and Explainability in High-Stakes: A Systematic Inquiry
LogicPro: Improving Complex Logical Reasoning via Program-Guided Learning
DSLO: Deep Sequence LiDAR Odometry Based on Inconsistent Spatio-temporal Propagation
When does word order matter and when doesn't it?
토론
이 논문과 연결된 포럼 글이 아직 없습니다.