NeurIPS 2026QuestionsPapersAreasAboutMarkdown

LAPrune: Logits-Aligned Scoring Proxy for KV Pruning via Vector Quantization

Mingyang Yu, Rong-Cheng Tu, Yifu Ding, Hanqing Zhao, Yongcheng Jing, Xiao Luo, Dacheng Tao

NeurIPS page · Open on the map

Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: KV cache pruning, vector quantization, attention logits, long-context inference, speedup

Areas: Long Context › Long-context mechanisms › KV cache eviction

Summary

LAPrune proposes an attention-logit-aligned KV pruning framework based on additive vector quantization that replaces high-dimensional dot products with lightweight scalar lookups, delivering up to 2.73× decoding speedup and 4.83× end-to-end speedup at 128K context.

Explained to a 5-year-old

When a big computer (like a language model) reads a long story, it needs to remember many words. Remembering everything is slow. So we make a shortcut that picks the most important words to remember. The shortcut works by breaking each remembered word into small pieces and using those pieces to guess which words are important. This helps the computer think faster.

Explained to a 5-year-old, longer

A big computer that talks like a person needs to keep a lot of words in its memory while it talks. Keeping all those words takes a lot of time and makes the computer slower. To make it faster, we only keep the words that are most useful for answering the next question. The computer decides which words are useful by looking at how important they are for the current question. Old ways of picking words either ignore the question or use a method that doesn't match how the computer actually uses the words. The new idea uses a special way of splitting words into tiny pieces called codewords. Each word in memory is represented as a sum of these codewords. When the computer needs to know which words matter, it looks up simple numbers for each codeword and adds them together. This makes the calculation much easier than multiplying big vectors. The method works without having to retrain the whole computer model. It can be added to the existing computer code with just a few changes. As a result, the computer can answer questions faster, especially when it has to remember a very long story.

For a technical reader

LAPrune is a KV cache pruning framework that aligns the pruning proxy with attention logits using additive vector quantization. It represents each cached key as a sum of learned codewords and computes query-key dot products via lookup-and-add operations over query-codeword inner products. This reduces high-dimensional matrix multiplications to lightweight scalar lookups, requiring no model fine-tuning and integrating seamlessly into existing decoding pipelines. The result is up to 2.73× faster decoding and 4.83× end-to-end speedup at 128K context.

Problem

Pruning the KV cache for long-context LLM inference is challenging because the proxy used to select tokens must recover the tokens with the largest attention logits under the current query, but existing proxies either ignore the query or rank candidates in a space misaligned with attention scores.

Method

The approach uses additive vector quantization to represent each cached key as a sum of learned codewords and decomposes the query-key dot product into lookup-and-add operations over query-codeword inner products, enabling lightweight scalar lookups while preserving attention ranking fidelity. It requires no base-model fine-tuning and can be integrated into decoding with minimal changes.

Results

The approach improves exact-logit Top-k recovery and perplexity over hashing-based pruning proxies, achieving up to 2.73× decoding speedup over FlashAttention-2 and 4.83× end-to-end speedup over the vanilla baseline at 128K context.

Contributions

It introduces an attention-logit-aligned KV pruning framework that uses additive vector quantization to replace high-dimensional dot products with lightweight scalar lookups, requires no base-model fine-tuning, and can be integrated into existing decoding pipelines.

Practical relevance

The method enables faster long-context LLM inference on existing hardware by reducing KV cache size and computation, making it practical for applications requiring long contexts.

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