Skip to content

Stage-Replay Divergence Follows the KV Cache: Fixed-Prefix Precision Controls and Bidirectional Cache Transplantation

Jul 2026 · arXiv.org · Vol abs/2607.28495 · 1 citation · 18 references
Computer Science

TL;DR

Exact-token replay can be repeatable without preserving live-state fidelity, and on the tested states, boundary K/V cache is a causally sufficient carrier of the divergent trajectory, while numerical precision moderates its behavioral expression.

Abstract

Stage-replay diagnostics reconstruct intermediate token prefixes and treat fresh-prefill continuation as continuation from the decoder state that originally reached the prefix. We audit that assumption at a whole reasoning-stage boundary in a Qwen2.5-derived system. A matched 200-item experiment compares retained live cache with one-shot prefill of identical integer tokens and places an exact replica on both sides. In BF16, replicas remain exact while the constructions differ on 166 suffixes and 20 correctness labels; the accuracy difference is only one point (paired 95% CI [-3.5, +5.5]). A fixed-prefix 2x2 holds all 200 token states constant while crossing construction and precision. The BF16 disagreements recur, whereas FP32 produces no decoded disagreement (95% Wilson upper bound 1.88%). A prospective bridge makes token-by-token incremental and retained live caches bit-exact on 12/12 rows; an all-200 saved-ledger audit reproduces every retained trajectory and comparison fingerprint. Bidirectional transplantation of all 48 key/value layers makes every tested divergent continuation follow its cache donor, both on a selected set at the primary checkpoint (24/24) and an outcome-blind replication at a later checkpoint (43/43). Exact-token replay can therefore be repeatable without preserving live-state fidelity. On the tested states, boundary K/V cache is a causally sufficient carrier of the divergent trajectory, while numerical precision moderates its behavioral expression.

View source

Similar papers

Preprint Aug 2026

Memory-Sovereign Inference: Output-Exact Execution Beyond Full Residency

A falsifiable certificate is presented separating representation, semantic demand, scheduler requests, and traffic while naming resource authorities, exactness horizons, and tested reuse transitions while naming resource authorities, exactness horizons, and tested reuse transitions.

L. Štěpánek · 0 citations
#artificial intelligence Preprint Sep 2026

Validating Hybrid-State Cache Recovery for GLM-5.3-Flash with vLLM and LMCache

The contribution is an experimentally validated integration repair applying an existing checkpoint-alignment principle, confined to one model revision and controlled configuration; it does not establish general determinism, task-quality equivalence, concurrent-serving gains, or capacity beyond GPU memory.

Frank Li · 0 citations
#machine learning Preprint Sep 2026

CacheReforge: Bounded Recovery for Stale KV Caches under Evolving Adapters

CacheReforge, which represents stale KV caches as layerwise mixed-version objects, combines per-layer adapter anchors, calibrated sensitivity, accumulated drift, and executable restart boundaries to select direct reuse, bounded recomputation, or complete affected-suffix recovery.

Yu-Hang Cao, Yan-Zhou Mu, Chun-Rong Fang et al. · 0 citations
Book Open access Sep 2026

Repeated-Token Diagnostics for Transformer Cache Traces

Results show that repeated tokens expose context-conditioned, slice-local similarity in Transformer cache traces, providing an empirical foundation for future repeated-token-aware KV-cache optimization and clarifying representation constraints for such optimizations.

Mu-Lin Li, Chen Wang · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.