Back to AI News
arxiv

LiveLoRA Enables Exact KV Cache Migration Across LoRA Adapter Updates

LiveLoRA is a model-runtime co-design that migrates final-block KV cache entries when an LLM's LoRA adapter is updated, avoiding full interaction-history re-prefill for active agent sessions. It preserves base projections and low-rank coordinates through frozen lower decoder blocks and fixed K/V down-projections, then reconstructs candidate K/V and commits the adapter, cache, and next-token logits together. The authors prove continuation equivalence to full-history re-prefill under stated assumptions. On Qwen2.5-3B-Instruct, they report median publication speedups averaging 68.98x over full-history re-prefill across five runs for 32 active sessions with 8K tokens each, with about 4.8% decoding overhead versus native cached decoding.

AI Brief

It offers a concrete method for persistent LLM agents to adopt new LoRA adapters without costly replay of long session histories, with reported serving and storage benefits.

arXiv:2611.31105v1 Announce Type: new 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. 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!