LiveLoRA: Exact KV Cache Migration Across LoRA Updates for LLM Agents

Tianyi Huang, Samuel Xu, Ivy Gu, Nathan Huang, Siqi Zhang
11/23/2026
cs.AI
lora-peft-merging

No confident code implementation found for this paper.

Abstract

Updating an LLM adapter should not require replaying the full interaction history of every active session. Yet reusing key-value (KV) cache entries computed under an earlier version mixes model versions, while full-history re-prefill becomes increasingly costly as histories and session fleets grow.

Show full abstract

We introduce LiveLora, a model-runtime co-design for exact final-block KV cache migration. Frozen lower decoder blocks and fixed K/V adapter down-projections preserve each token's base projections and low-rank coordinates across adapter versions. The runtime reconstructs candidate K/V, reevaluates the latest token through the final block, and commits the adapter, cache, and next-token logits together. We prove continuation equivalence to full-history re-prefill in exact arithmetic under the stated model assumptions. On Qwen2.5-3B-Instruct, median paired publication speedups over full-history re-prefill average $68.98\times$ across five runs for 32 active sessions with 8K tokens each. Serving benchmarks show approximately 4.8% decoding overhead relative to native cached decoding. Compared with retained-boundary replay, compact retention gives a $3.42\times$ reduction in additional session storage at 8K, with similar measured publication-plus-decoding cost. LiveLora allows persistent LLM agents to adopt new adapter versions without replaying their full interaction histories.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026livelora,
  title  = {LiveLoRA: Exact KV Cache Migration Across LoRA Updates for LLM Agents},
  author = {Tianyi Huang and Samuel Xu and Ivy Gu and Nathan Huang and Siqi Zhang},
  year   = {2026},
  eprint = {2611.31105},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.31105v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.31105.svg)](https://codeofpaper.com/paper/2611.31105)

Discussion