The Persistent Rope: Position-Keyed Indexing for the LLM KV Cache

The KV cache is the bottleneck of long-context LLM inference.  Every modern serving system —  vLLM, SGLang, Mooncake  — is, at its core, a memory manager for the cache that grows one token at a time as the model decodes.  PagedAttention, RadixAttention , and the various  prefix caching  schemes each solve a piece of the problem, but none of them is  lock-free , none of them is  position-keyed , and none of them uses  structural sharing  to handle both beam-search branching and multi-tenant prefix sharing at the same time. This book introduces the  persistent rope  — a single data structure that does all of these things, derived from two pieces of prior art that were never combined before: the  persistent vector  (which gives the rope its branching semantics) and the  Bw-tree  (which gives the rope its lock-free properties). The book is a design document and API reference for the rope, written for engineers who build serving systems, GPU kernels, and lock-free data structures.  It is  not  a benchmark paper,  not  a tutorial, and  not  a complete serving system. The Python reference implementation is  correct but not lock-free ; the  lock-free Rust port is scaffolded in the repository  and described in detail in Chapter 22. The book covers the design (Ch 1–9), the Python reference (Ch 10–11), the verification (Ch 12–14), the public API (Ch 15–19), and the honest framing of what works, what doesn't, and what's left for future work (Ch 20–23). The appendices include a full  glossary, references, and index . Read it in order if you want to understand the design end-to-end; jump to Chapters 10–19 if you want to use the Python reference; read Chapter 22 if you're planning the Rust port.

Link
https://zenodo.org/records/23241292
Found by
Zenodo
Authors
Nelson Mc Kenzie, Gerald Enrique
Categories
benchmark
Published
2026-10-08
Last seen by the radar
2026-11-09
Downloads
0
Views
0
Radar score
34.32 / 100 (how it is scored)
Why it scored so
Matched: benchmark; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.23241292
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo