[论文解读] LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents
LRAgent 将 KV 缓存分解为一个共享基础组件和一个适配器特定的低秩组件,以实现跨多 LoRA LLM 代理的内存和计算高效 KV 缓存共享,并提供 Flash-LoRA-Attention 内核以加速运行时重建。
Role specialization in multi-LLM agent systems is often realized via multi-LoRA, where agents share a pretrained backbone and differ only through lightweight adapters. Despite sharing base model weights, each agent independently builds and stores its own KV cache for the same long, tool-augmented trajectories, incurring substantial memory and compute overhead. Existing KV cache sharing methods largely overlook this multi-LoRA setting. We observe that, across agents, cache differences are dominated by adapter outputs, while activations from the shared pretrained backbone remain highly similar. Based on this observation, we propose LRAgent, a KV cache sharing framework for multi-LoRA agents that decomposes the cache into a shared base component from the pretrained weights and an adapter-dependent component from LoRA weights. LRAgent reduces memory overhead by sharing the base component and storing the adapter component in its inherent low-rank form, and further reduces compute overhead, enabled by shared-$A$ multi-LoRA architectures, by also sharing the low-rank cache and avoiding redundant computations for contexts already processed by other agents. To efficiently reconstruct adapter contributions at runtime, we introduce Flash-LoRA-Attention, a kernel that reorders attention computation to avoid materializing the low-rank cache to full dimension. LRAgent achieves throughput and time-to-first-token latency close to fully shared caching, while preserving accuracy near the non-shared caching baseline across agentic question-answering benchmarks.
研究动机与目标
- Motivate memory and compute bottlenecks of per-agent KV caches in multi-LoRA agent systems.
- Propose a cache-sharing framework that decouples base and adapter contributions to KV caches.
- Show how shared-down projections enable memory reductions and faster inference in multi-agent settings.
提出的方法
- Decompose the full KV cache into a shared base cache from pretrained weights and an adapter-dependent LR cache from LoRA weights.
- Store adapter outputs in their low-rank form and reconstruct at runtime via up-projection matrices.
- Introduce BaseShared and BaseLRShared cache-sharing schemes to maximize memory and computation gains.
- Develop Flash-LoRA-Attention to reorder attention computations and avoid materializing low-rank caches to full dimension.
- Leverage shared-A multi-LoRA architectures to further share LR caches and reduce recomputation.

实验结果
研究问题
- RQ1Can KV caches be effectively shared across multiple LoRA-tuned agents without sacrificing accuracy?
- RQ2How much memory and compute can be saved by decoupling base and adapter contributions in multi-LoRA KV caches?
- RQ3Does a shared-down projection (shared-A) enable further reductions in memory and runtime?
- RQ4Can a runtime-reconstruction kernel (Flash-LoRA-Attention) mitigate LR-cache expansion overhead?
- RQ5How close do BaseShared and BaseLRShared come to fully shared caching in terms of throughput and latency?
主要发现
- BaseShared reduces KV cache memory to about 1/N of the non-shared scheme while preserving accuracy close to the non-shared baseline.
- BaseLRShared further reduces memory and eliminates LR-cache prefill overhead, achieving compute similar to fully shared caching.
- Flash-LoRA-Attention substantially speeds up runtime by reducing LR-cache expansion overhead, boosting throughput by up to 1.24–2.46x depending on configuration.
- Across HotpotQA and ScienceQA, BaseShared and BaseLRShared maintain accuracy with average drops of at most 0.7% and 1.5% respectively compared to Non-Shared, outperforming FullShared and DroidSpeak on average.
- BaseLRShared achieves TTFT reductions up to 4.44x and throughput gains approaching FullShared, while BaseShared achieves up to 1.63x TTFT reduction and notable throughput gains.
- Across evaluated models, LR caches exhibit high cosine similarity across agents, justifying shared- LR-cache strategies.

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。