← Latest papers
💬 NLP

ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs

ParisKV is a drift-robust, GPU-native KV-cache retrieval framework that leverages collision-based candidate selection and quantized reranking to achieve state-of-the-art decoding efficiency and scalability for million-token contexts, significantly outperforming existing baselines in both speed and memory capacity.

Original authors: Yanlin Qi, Xinhang Chen, Huiqiang Jiang, Qitong Wang, Botao Peng, Themis Palpanas

Published 2026-06-01
📖 5 min read🧠 Deep dive

Original authors: Yanlin Qi, Xinhang Chen, Huiqiang Jiang, Qitong Wang, Botao Peng, Themis Palpanas

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 tell a story based on a book that has grown to be one million pages long. Every time you write a new sentence, you need to look back at the entire book to find the most relevant previous sentences to make your new sentence make sense.

In the world of AI (Large Language Models), this "book" is called the KV-Cache. As the conversation gets longer, this book becomes so huge that:

  1. It takes up too much memory (like trying to carry a library in your backpack).
  2. It takes too long to search (like trying to find a specific needle in a haystack that keeps growing).

Existing methods try to solve this by throwing away old pages (which can make the AI forget important details) or by using a slow, clumsy search method that gets confused as the story gets longer.

ParisKV is a new system designed to solve these problems. Here is how it works, using simple analogies:

1. The "Drift" Problem: The Moving Target

Imagine you are trying to find a friend in a crowd. At the start of the day, you have a clear photo of them (the "centroid"). But as the day goes on, the crowd moves, the lighting changes, and your friend puts on a hat. If you keep looking for the person in the photo you took at 9:00 AM, you might miss them by 5:00 PM. This is called "drift."

Old AI methods build their search map based on the beginning of the story. As the story gets longer, that map becomes outdated, and the AI starts picking the wrong "important" sentences, leading to bad answers.

ParisKV's Solution: Instead of taking a photo of the friend, ParisKV puts everyone in the room on a perfectly round, invisible sphere. It then spins the whole room randomly. Because the room is spinning and everyone is on a sphere, the "map" of where people are stays perfectly stable, no matter how long the story gets. It doesn't matter if the story is 10 pages or 1 million pages; the map never gets "stale."

2. The Two-Step Search: The "Rough Sketch" and the "Fine Tune"

Searching a million-page book is slow. ParisKV does it in two super-fast steps, all happening inside the computer's brain (the GPU) without needing to ask the slow, external hard drive (the CPU) for help.

  • Step 1: The Rough Sketch (Collision Counting)
    Imagine you have a million index cards. Instead of reading every word on every card, ParisKV quickly glances at the first few letters. It asks: "Which cards have the same starting letters as my question?"
    It uses a clever trick called collision counting. If a card's "starting letters" match the question's, it gets a "vote." Cards that get the most votes are kept. This instantly throws away 90% of the useless cards.
  • Step 2: The Fine Tune (Reranking)
    Now you only have a small pile of "likely" cards. ParisKV looks at these more closely using a compressed, low-resolution version of the text (like a thumbnail image). It calculates exactly how relevant they are without needing to load the full, high-definition text yet.
    Only the very best few cards are then fetched from the slow external hard drive to be used in the final answer.

3. The "Magic Elevator" (UVA)

Usually, when the AI needs to grab data from the slow external hard drive (CPU memory) to the fast brain (GPU), it has to stop, pack the data, and move it manually. This is like a delivery driver having to stop at every house to pick up a package.

ParisKV uses a technology called Unified Virtual Addressing (UVA). Think of this as a magic elevator that connects the brain and the storage directly. The AI can point to a specific page in the million-page book, and the elevator instantly fetches only that page without any manual packing or stopping. This makes the process incredibly fast.

The Results: Why It Matters

The paper claims that ParisKV is a massive upgrade:

  • Speed: It is up to 44 times faster than previous top methods when dealing with million-token contexts.
  • Accuracy: It doesn't just get faster; it gets smarter. It maintains high accuracy even when the story is incredibly long, whereas other methods start making mistakes (forgetting things) as the story grows.
  • Capacity: It can handle stories so long (millions of tokens) that other methods literally run out of memory and crash.

In short, ParisKV is like giving the AI a perfect, unchanging map of a library that never gets messy, a super-fast scanner that only looks at the most promising books, and a magic elevator to grab the exact pages it needs instantly. This allows the AI to think clearly and quickly, even when reading a book the size of a small city.

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 →