Real Long-Term Memory for AI: A 50-Million-Token Window That Is Faster and Cheaper Than Recompute
Summary
Corbenic AI's Sietse Schelpe reports a serving-side "long-term memory" layer for frozen LLMs: the public package galahad-kv, loaded into vLLM 0.31.0 via a KV-transfer plug-in, writes each ~16,000-token block's KV state to encrypted local NVMe (MRLNCRY1 format, AES-256-GCM) on first processing and later restores it byte-exact with zero recompute; only one block is ever resident, so GPU memory stays flat. On 50,000,000 tokens of real public text (3,125 blocks; WildChat/code/arXiv/FineWeb-Edu mix, mutated against pretraining contamination) served on a single NVIDIA H100: all 100 probed blocks restored from the encrypted store with no recompute at every depth from 0 to ~49.5M tokens, on both Gemma 4 12B (bf16) and Gemma 4 31B (FP8). A restore is 2.8×/4.3× faster than recomputing the same block (0.266s vs 0.760s; 0.347s vs 1.475s) and uses 8.8×/12.3× less GPU energy, with restore latency depth-independent. On facts planted millions of tokens earlier (with same-format decoys), the 12B model answered 82/100 and the 31B 98/100, with zero hallucinations and zero fabrications on 20 negative controls. Store: 1.86 TB (12B, 36.4 KiB/token) and 6.25 TB (31B FP8, 134 KiB/token) — the small footprint leans partly on Gemma 4's mostly sliding-window attention, which the paper notes it benefits from rather than introduces. The evaluation follows a cheat-resistant protocol (blind ingest, per-block needles, decoys, encrypted-store audit, separate engine-vs-model metrics). Limitations are explicit: this is KV reuse at any depth, not a wider attention window — one block is resident and restored on demand, never attended jointly; there is no learned retrieval; writing is a one-time cost measured at 20,839/10,700 tok/s deposit throughput; the store must be local NVMe.
- Venue
- arXiv:2610.10845 (cs.CL)
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Oct 14, 2026
- Verified
- Oct 14, 2026
- Found via
- #fly51fly
Research notes
- Discovery: @fly51fly X post 2026-10-13 ~5:05 PM ET (status 2110114680119378196) — a new entry from this account for once (its prior four shares all enriched existing catalog entries). Full text verified against arXiv HTML v1. Relevance: (1) KV-cache/long-context — serving-infra answer to his context-memory bottleneck: terabytes of local NVMe + exact restore-graft vs the architecture-side compression of MSAR (queued #11) and shared-memory looped transformers (queued #3/1563) — complementary, not competing. (2) The 50M claim is real deposited-and-restored context (100/100 probes, audited stores) but retrieval-window accounting: only one 16k block is ever attended; record this explicitly as the limit, per the paper itself. (3) Pretraining: none — frozen weights, pure serving layer; the paper frames this as "what changes is the set of facts the model can act on," not the model itself. (4) Prior chain: fourth Galahad report (arXiv:2609.39358, 2607.23806, 2607.14431) — earlier scales 97k → 6M → 50M. (5) vs catalog ID 583 (Infini-attention): orthogonal approaches to far-past context — in-weights compressive memory vs serving-side durable KV persistence; the paper does not cite Infini-attention. Caveats: single-author commercial-product paper (Corbenic AI product, patent pending, free-license package) — all figures author-reported on their own fleet, no independent reproduction at catalog time; the byte-exact logit-level gate is in the companion Taliesin paper, not re-established here; NVML energy figures near counter resolution (ratios reliable, absolute joules wider band). Cluster: KV-cache/long-context, inference serving/economics, long-term memory.
- License: CC BY 4.0 (arXiv). Package galahad-kv is public on PyPI with a free license noted in the paper; repo URL not stated in the paper; patent pending noted in the colophon.
Similar entries
- Paper Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
- Paper How Much Is an AI Token Worth? Scaling Laws for Wild AI-Generated Web Text
- Paper HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models
- Paper TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
- Paper The AI Index 2025 Annual Report
- Model Naive-N0.5-Flash: Building Frontier AI with AI