# TesseraKV keeps AI agents accurate while reading a small slice of their memory

A preprint from Imperial College London and MediaTek Research groups an AI model's stored working memory by what tends to be needed together. On agent tasks, it keeps far more accuracy than earlier methods when only a small slice of that memory is read at each step.

- Category: Efficiency
- Readiness level: II (Benchmarked) on Science Underway's four-step scale, as proposed
- Published: 2026-12-02
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/tesserakv-keeps-ai-agents-accurate-while-reading-a-small-slice-of-their-memory

## The study

TesseraKV: KV Paging via Co-retrieval (preprint, not peer reviewed). arXiv 2611.38220. https://arxiv.org/abs/2611.38220

## At a glance

- What it shows: When an AI agent reads only a small part of its stored context at each step, choosing which parts to group together matters a great deal. With this method, the model solved about 70% of agent tasks at a tight memory budget, against about 43% for the best earlier method and 77% when reading everything.
- What it does not show: It does not show use in any real product. The paper gives no link to code, and the agent results come from a single model on one benchmark.
- Why it matters: Agents pile up long contexts from tools and files, and reading all of that memory slows every reply. Reading less without losing accuracy could make long agent sessions cheaper and faster to serve.

## What the study shows

Large language models keep a running store of past text, called the KV cache, so they do not recompute it. In agent work this store grows fast, because tool outputs and files add far more text than the model writes. The authors report that on one coding benchmark an agent reads over 200 stored tokens for every token it produces. Reading that whole store at each step becomes the main cost of generating text.

One fix is retrieval: keep the whole store, but read only the pieces that matter for the next word. Stored items are grouped into pages, and a quick score decides which pages to fetch. Earlier methods grouped items by their position in the text or by how similar they look. The authors instead group items by whether the model's questions to its memory, called queries, tend to pick them out together. They call this co-retrieval. They also adjust each page's score for how varied its contents are.

Because the model's future queries are not known in advance, the method estimates their pattern from queries seen while reading the input, mixed with queries from the instruction. The authors find that the right mix depends on the task: synthetic lookup tasks lean on the instruction, while reading real prose leans on the document.

On CLAW-Eval, a benchmark of 155 text-based agent tasks, the method reached a 70% success rate when reading 128 items per attention head per step. The best earlier retrieval method, LouisKV, reached 43%, and full reading reached 77%. At an even tighter budget of 64 items, the gap widened to 56% against 21%. At 512 items, the methods were close.

On RULER, a long-context test, the method beat earlier retrieval methods on three models in most settings. On one NVIDIA B200 GPU, decoding throughput was about a quarter to a third higher than reading the full cache, at contexts from 32,000 to 256,000 tokens. The study is a preprint and has not been peer reviewed.

## Our reading

In our reading, the main point is simple. Grouping memory by how it will be used beats grouping it by where it sits or what it looks like. The benefit is largest exactly where it matters for cost: when the memory budget is tight. At generous budgets the methods converge, so the gain is about doing more with less, not about a higher ceiling.

The agent result is the headline, and it is striking. But it rests on one model, one benchmark and text tasks only. A task counted as solved only if all three tries passed, which is strict and may magnify differences between methods. We would treat the size of the gap as promising rather than settled.

On our readiness scale, we rate this level II, Benchmarked. Results are reported on public benchmarks against named baselines at matched budgets. The paper describes an implementation in SGLang, a popular serving framework, but gives no link to code, so level III is not yet met.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/tesserakv-keeps-ai-agents-accurate-while-reading-a-small-slice-of-their-memory

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
