Persistent LLM agents eventually hit a wall: the skills they learn live in LoRA adapters, while the session KV cache was computed under older parameters. Swap in a new adapter and you either keep running a version-mixed cache, or replay the whole interaction history through prefill again. LiveLoRA takes a third path: migrate the KV cache in place, with no history replay at all.

Why swapping a LoRA gets expensive

The paper lays out the accounting plainly. A LoRA update replaces the trainable low-rank factors, which are exactly the parameters that produced the current KV cache. Continuing with the old cache mixes two model versions inside one session; restoring coherence requires full-history re-prefill, and that cost grows with context length and the number of active sessions. Paper-reported numbers: in the single-session study, median migration latency moves from 17.15 ms at 2K context to just 18.03 ms at 32.7K, while full re-prefill climbs from 40.78 ms to 919.21 ms. This pain is not invented by LiveLoRA: DroidSpeak selectively recomputes layers to share caches across fine-tuned or updated models, and a family of serving work (HCache, LOCAL) circles the same question of what happens to cached state when the model changes.

Three moves: freeze, rebuild, commit atomically

The design splits into three moves. First, LoRA adapters are placed only in the final decoder block: embeddings, blocks 1 to L-1, normalization layers, and the language-model head stay frozen, so each token's final-block input is invariant across adapter versions. Second, the K/V adapter down-projection matrices are fixed, a trick borrowed from LoRA-FA, where it saved training activation memory; here it becomes a set of version-invariant coordinates. At inference the runtime retains each token's base K/V projections and low-rank coordinates, so a version switch rebuilds historical K/V through batched matrix products over the immutable base plus the new up-projections, reusing all lower-block caches. Third, atomic commit: the reconstructed candidate K/V, the latest token re-evaluated through the new final block, and the adapter itself switch versions together; if a prefix changed, the prepared update is rejected, and a failure before commit rolls everything back.

The paper also proves continuation equivalence to full-history re-prefill in exact arithmetic, under a list of explicit assumptions: per-layer KV caches are the model's only cross-token hidden state, evaluation is deterministic, and the lower blocks and head are unchanged across versions. That is exact-arithmetic equivalence, not bitwise agreement between floating-point kernels.

Paper-reported numbers, and three buckets of cold water

The headline: Qwen2.5-3B-Instruct on a single NVIDIA H200, final-block Q/O/MLP adapters at rank 8 (alpha 16) and fixed-AA K/V adapters at rank 32 (scale 1). For 32 active sessions with 8K tokens each, the median paired speedup over full-history re-prefill reaches 68.98x (95% CI 67.08 to 71.39), with the within-run 5th percentile at 62.96x. Decoding overhead is about 4.8% versus native cached decoding (4.81%, 4.75%, and 4.88% at 2K, 8K, and 32K), and only 0.68% to 0.81% over equally guarded direct serving. On storage, compact retention cuts additional session state by 3.42x versus retained-boundary replay (9.48 MiB against 32.41 MiB at the initial 8K prefix), with total publication-plus-decoding costs within 0.60%. The paper also does the break-even math: at 8K, migration starts to pay off against full re-prefill at roughly 600 tokens between updates, and against boundary replay at around 30.

The cold water comes from the authors themselves. One: the evaluation uses Gaussian adapter updates and controlled histories, measuring migration fidelity and systems cost; task-level adaptation quality under the final-block and fixed down-projection restrictions remains unevaluated. Two: under BF16, migration and boundary replay agree on the tested greedy token selections but show nonzero differences in final-block K/V and logits. Three: the implementation covers contiguous sequences, standard RoPE, and process-local coordination only; paged caches and distributed serving are listed as future work.

So what

The thing worth remembering is not the 68.98x multiple but the reframing: publishing an adapter becomes a version-coherent primitive where parameters, KV cache, and next-token logits become visible together or not at all, much like an operating system swapping an executable for a running process. The paper lists five authors (Tianyi Huang, Samuel Xu, Ivy Gu, Nathan Huang, Siqi Zhang) from App-In Club. For anyone serving agent fleets, the takeaway is pragmatic: stop full-history re-prefill on hot adapter updates, but first check whether your update cadence and session lengths actually land in the profitable regime. How often does your agent swap a skill?