Large language models can only use the text that fits in their context window, and every time a prompt is sent they recompute the internal key-value (KV) state for that prompt. A new arXiv preprint proposes a memory layer to get around this limitation.

The paper tests a public package called galahad-kv as that memory layer. According to the abstract, it enables a 50-million-token window and does so faster and cheaper than recomputing the KV state from scratch.

The available abstract does not include implementation details or benchmark numbers, so the claims should be read as preliminary. Still, the direction—separating memory from the model's fixed context—is a common approach to scaling what a model can remember.