Reproduce “FitKV: Fitting the KV Cache Budget to Each Input for Long Context Inference” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Paul Trust
FitKV adapts the key-value cache budget for each long-context question-answering input. It measures disagreement among attention from the prompt’s final queries, then uses that signal to set a budget and select cache blocks. On Qwen2.5-3B, its six-task mean is 25.9 versus 19.1 for Ada-KV at a 128-token-per-layer minimum. This compares accuracy at the same minimum, not equal average cache size.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.