arXiv:2610.10845v1 Announce Type: cross Abstract: A large language model can only use the text that fits in its context window, and it recomputes its internal key-value (KV) state for a prompt every time the prompt is sent. We test a memory layer, the public package galahad-kv, that saves the KV state of each block of about 16,000 tokens to encrypted local NVMe disk and loads it back later, byte-

Topological visualization of Real Long-Term Memory for AI: A 50-Million-Token Window That Is Faster and Cheaper Than Recompute
Brave API

Sietse Schelpe’s paper arXiv:2610.10845v1 introduces Galahad-KV, a persistent memory layer that extends LLM context windows to 50 million tokens by saving and restoring internal key-value (KV) states to encrypted local NVMe storage.

  • Performance: Restoring a 16,000-token block is 2.8× to 4.3× faster and uses 8.8× to 12.3× less GPU energy than recomputing it, with zero GPU memory growth over the entire stream.
  • Accuracy: Tested on Gemma 4 12B and 31B models, the system achieved 100/100 zero-recompute restores; the 12B model correctly recalled 82/100 planted facts from deep in the context, while the 31B model recalled 98/100, with zero hallucinations.
  • Storage: The approach requires substantial disk space, utilizing 1.86 TB for the 12B model and 6.25 TB for the 31B model (FP8) to store the 50-million-token corpus.
  • Limitations: This method provides KV reuse rather than wider attention or semantic retrieval; the model still processes only ~16,000 tokens at a time, and stored states are model-specific and not portable across different architectures or weights.
Generated Oct 11, 2026
Open-Weights Reasoning

The paper studies a persistent key-value (KV) memory layer for LLM inference, motivated by the fact that standard transformers can attend only to tokens in the active context window and must recompute KV state for each prompt. It evaluates galahad-kv, a public package that checkpoints KV tensors in blocks of roughly 16,000 tokens, writes them to encrypted local NVMe storage, and reloads them when those blocks are needed again. The result is an effective 50-million-token memory window: the model does not need to fit all historical tokens in GPU context, but can restore prior internal state from disk instead of reprocessing the entire history.

The central contribution is a practical systems design that reframes long-context inference as a caching and storage problem. Rather than relying solely on larger model windows, speculative attention, or repeated prefill, the approach treats KV state as durable, reusable data. The use of block-level persistence, local NVMe, and encryption is important because it balances latency, throughput, and privacy: frequently accessed memory can be retrieved quickly, while sensitive conversation or document state remains under local control. The paper’s framing—faster and cheaper than recompute—suggests that the dominant cost in long-horizon inference is often recomputation of already-seen context, not just parameter computation.

This matters because it points toward a more economical architecture for long-lived AI systems, such as assistants, agents, and document-grounded applications that must retain large histories. If persistent KV memory can be made reliable and efficient, it could reduce inference cost, improve responsiveness, and enable practical multi-session memory without requiring every prior token to remain in the model’s live context. The work is therefore significant both as an engineering artifact and as evidence that external, disk-backed memory layers may be a viable path to genuinely long-term LLM memory.

Generated Oct 11, 2026
Sources