← Latest papers
🤖 machine learning

MomentKV: Closing the Directional Gap in KV Cache Eviction for Long-Context Inference

MomentKV addresses the directional mismatch bottleneck in long-context KV cache eviction by maintaining compact moment statistics to ensure geometric regularity of evicted tokens and providing a closed-form correction for their attention contribution, thereby significantly outperforming existing methods across various benchmarks and compression levels.

Original authors: Yu Li, Binxu Li, Tian Lan

Published 2026-06-02
📖 4 min read☕ Coffee break read

Original authors: Yu Li, Binxu Li, Tian Lan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to remember a very long story so you can continue writing it. To do this, your brain keeps a "scratchpad" (the KV Cache) of everything you've read so far. The problem is, as the story gets longer, this scratchpad gets huge, eventually filling up your entire desk and making it impossible to work.

To fix this, current methods use a "trash can" strategy: they look at the story, pick the most important sentences to keep on the desk, and throw the rest away. They assume that if they keep the "best" sentences, they can just ignore the trash.

The Paper's Big Discovery: The "Direction" Problem
The authors of this paper, MOMENTKV, realized there's a hidden flaw in this "trash can" approach.

Imagine you are trying to guess the direction of a wind based on a few leaves you kept on your desk.

  • The Old Way: You keep the leaves that are blowing the hardest (the most "important" ones) and throw the rest in the trash. You then try to guess the wind direction using only the leaves on your desk.
  • The Problem: The leaves you threw away might be blowing in a completely different direction (perpendicular to the ones you kept). Even if you threw away 90% of the leaves, if the remaining 10% are pointing North and the trash is pointing East, your guess will be wildly wrong. You can't just "renormalize" (re-calculate) the North leaves to fix the missing East wind. The error isn't about how much you threw away; it's about the direction you lost.

The Solution: MOMENTKV
Instead of just throwing the trash away and hoping for the best, MOMENTKV keeps a tiny, ultra-compact "summary note" about the trash before it goes into the bin.

Think of it like this:

  1. The Summary Note (Moment Statistics): Before throwing a sentence away, the system quickly calculates a few simple numbers about it: "What was the average meaning?" and "How does this meaning usually change with the next word?" It doesn't store the whole sentence, just these few "moments" (like a statistical fingerprint).
  2. Smarter Throwing: When deciding what to throw away, the system asks: "Is this sentence already well-represented by my summary notes?" If yes, it's safe to throw away. If no (it has a unique direction the summary doesn't capture), it keeps it. This keeps the "trash" geometrically regular and predictable.
  3. The Magic Correction: When the model needs to write the next word, it doesn't just look at the sentences on the desk. It uses those tiny "summary notes" from the trash to mathematically reconstruct what the missing sentences would have contributed. It essentially says, "I know I threw these away, but based on my notes, I can guess they were pushing the story in this specific direction, so I'll add that back in."

Why It Works
The paper tested this on two famous AI models (LLaMA and Qwen) using two different benchmarks (LongBench and RULER).

  • The Results: MOMENTKV consistently outperformed all other methods, especially when the "desk space" was very small (aggressive compression).
  • The Analogy: It's like having a librarian who doesn't just keep the most popular books on the shelf but also keeps a tiny index card for every book in the basement. When you ask a question, the librarian can use those index cards to instantly recall the essence of the books in the basement, giving you a much better answer than if they just ignored the basement entirely.

In Short
Current AI methods throw away old context and hope the remaining pieces are enough. MOMENTKV realizes that the direction of the thrown-away pieces matters just as much as the pieces themselves. By keeping a tiny, smart summary of the "trash" and using it to mathematically fix the AI's memory, it allows the model to handle much longer stories without losing its place or making mistakes.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →