NeurIPS 2026QuestionsPapersAreasAboutMarkdown

EAT: Eviction-Aware Training for Long-Context LLM Inference on Edge Devices

Ke Chen, Xiaohui Song, Chi Xie, ZhiGuang Zhu, ZIXIAN LI, Hao-Yun Chen, Peng-Wen Chen, Chen Chen, Haonan Lu

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: LLM inference optimization, KV cache eviction, quantization-aware training, edge device deployment, attention score noise

Areas: Memory › Model Memory Optimization › KV Cache Optimization; Long Context › Long-context mechanisms › KV cache eviction

Summary

EAT is a training framework that jointly optimizes quantization and KV-cache eviction for long-context LLM inference on edge devices, preventing quantization noise from corrupting eviction decisions.

Explained to a 5-year-old

Large language models need to remember everything they have said to give good answers. When we make them smaller to run on phones, the numbers that store memories become blurry. The model decides which memories to keep by looking at how important each seems, but the blur can make it think important memories are not important and throw them away. Researchers created a way to train the model so it can still decide correctly even with blurry numbers. This helps the model stay smart while using less memory and running faster on small devices.

Explained to a 5-year-old, longer

Big computer programs called language models can answer questions and talk like people. They need to remember everything they have said or read to give good answers. When we want to use these programs on small devices like phones, we have to make them smaller to save memory. Making them smaller also makes the numbers that store the memories less precise, like blurry photos. The program decides which memories to keep by looking at how important each memory seems. Because the numbers are blurry, the program might think some important memories are not important and throw them away. This can make the program forget things it really needs to know, so its answers become worse. The researchers came up with a way to train the program so that even with blurry numbers, it can still decide which memories to keep correctly. They do this by teaching the program to use the blurry numbers to make a plan of what to remember. The program then follows that plan when it runs, keeping the right memories and discarding the less useful ones. This helps the program stay smart while using less memory and running faster on small devices. As a result, phones and other edge devices can have smarter chatbots without using a lot of power or space.

For a technical reader

Large language models need a lot of memory to store past interactions (the KV cache) during inference, which is a bottleneck on edge devices. Quantizing the model reduces memory but adds noise to the attention scores that are used to decide which cache entries to evict. This noise can cause the eviction policy to discard important tokens, hurting performance. The proposed training framework jointly optimizes quantization and eviction by computing eviction masks from quantized attention and using a straight-through estimator for gradients, requiring no changes to the model architecture. Evaluations on a mobile chip show significant speed-up and memory-traffic reduction while preserving accuracy compared to separate quantization and eviction.

Problem

Deploying large language models on resource-constrained edge devices is limited by computational cost and memory usage of the KV cache. Existing approaches that combine model quantization with KV-cache eviction can fail because quantization noise distorts the attention scores used to decide which tokens to evict, leading to loss of important context.

Method

The approach integrates discrete eviction decisions into quantization-aware training by computing eviction masks from quantized attention scores, applying them during the forward pass, and using a masked straight-through estimator for gradient propagation. This joint training aligns eviction behavior with the quantized model, requiring no architectural changes or extra inference parameters.

Results

The approach recovers performance under quantization and KV eviction, achieving a five-task average of 39.44 compared to 29.04 without joint training, and on the Dimensity 9500 it boosts decoding throughput by 64.1% and cuts memory traffic by 20.4% versus quantized full-KV inference.

Contributions

The paper identifies the conflict between quantization noise and KV-cache eviction, proposes a joint quantization-aware training framework that aligns eviction decisions with quantized attention, and demonstrates significant gains in both accuracy and efficiency on edge devices.

Practical relevance

The work enables efficient, high-quality LLM inference on edge hardware, allowing large language models to be deployed on mobile and embedded devices with limited memory and compute.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction