KV-Fold: Unlocking Transformer Long Context
KV-Fold enables training-free, stable long-context inference up to 128K tokens with 100% retrieval accuracy, overcoming prior limitations.

Visual TL;DR
training demands high resources or architectural changes for extended context
From the articleKV-Fold provides a path to maintaining long-range retrieval capabilities through a series of tractable forward passes, making KV-Fold long context inference a compelling development.
From the article 4 mentionsA recent arXiv preprint introduces KV-Fold, a novel, training-free approach to long-context inference that ingeniously repurposes the key-value (KV) cache.
KV cache treated as accumulator in left fold across sequence chunks
From the articleThis simple, one-step update mirrors the behavior of `foldl` in functional programming, establishing a stable, chunk-to-chunk recurrence.
chunk-to-chunk updates mirror foldl, per-step drift quickly saturates
From the article 2 mentionsThis simple, one-step update mirrors the behavior of `foldl` in functional programming, establishing a stable, chunk-to-chunk recurrence.
From the articleThe researchers observed that per-step drift quickly saturates and remains stable, demonstrating robustness across numerical precision, chunk sizes, and model families.
enables long-range retrieval with 100% accuracy
From the article 2 mentionsOn a needle-in-a-haystack benchmark, the method achieved 100% exact-match retrieval across numerous trials, spanning contexts from 16K to 128K tokens.
achieves stable inference up to 128,000 tokens
From the articleOn a needle-in-a-haystack benchmark, the method achieved 100% exact-match retrieval across numerous trials, spanning contexts from 16K to 128K tokens.
© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Watch
The videos behind the news, one flip at a time
The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.
Written by
Daniel SingerEditor, StartupHub.ai
Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.


