Reproduce “LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Hyesung Jeon, Hyeongju Ha, Jae-Joon Kim

The LRAgent framework optimizes multi-LoRA LLM agents by decomposing Key-Value (KV) caches into shared base and low-rank adapter-dependent components, significantly reducing memory and computational overhead during inference. This approach achieves up to 2.46x throughput and 4.44x Time-to-First-Token reductions while maintaining agent accuracy within 1.5% of non-shared baselines.

Key insights

  • Differences in KV cache values across multi-LoRA agents primarily stem from the outputs of task-specific LoRA adapters, while shared backbone activations are highly similar.
  • The low-rank adapter contributions can be stored efficiently and reconstructed at runtime within the attention mechanism, avoiding full materialization and minimizing computational overhead.
  • A shared-A multi-LoRA architecture allows for even greater sharing by making the intermediate low-rank cache highly similar across agents, further reducing redundant computations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.