← All projects
Project record1 mention
Originally shared on Hacker News

LLM KV cache eviction research

This project trains a model to predict how long each token should stay in a transformer's KV cache using only its key vectors, enabling selective cache eviction that can be added after the fact without retraining the core model.

Last shared
01 / The problem

What it addresses

Most tokens in a sequence are irrelevant to attention outside a very small window, yet current approaches either keep all cache values forever or dump them all once they hit a certain age.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. LLM KV cache eviction research

    This project trains a model to predict how long each token should stay in a transformer's KV cache using only its key vectors, enabling selective cache eviction that can be added after the fact without retraining the core model.

    Problem: Most tokens in a sequence are irrelevant to attention outside a very small window, yet current approaches either keep all cache values forever or dump them all once they hit a certain age.

    Posted by @enjeyw · Original source ↗

    Source text · @enjeyw · · Source ↗

    Overly specific LLM research into KV cache eviction.