LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents
Abstract
Lay Summary
Modern AI systems often use multiple LLM agents that work together to solve complex tasks. For example, one agent plans, another uses external tools like web search, and a third reviews the answer. To specialize each agent cheaply, developers add small LoRA adapter modules on top of one shared base model. However, each agent still keeps its own memory of the conversation so far, even though most of that memory comes from the shared base model and should be nearly identical across agents. This wastes a lot of GPU memory and forces the same text to be reprocessed multiple times, making the system slow. We noticed that the memory each agent builds can be split into two parts: a large shared part from the base model, and a tiny adapter-specific part. Our method, LRAgent, stores the shared part only once and keeps the adapter-specific part in a highly compressed form. We also designed a custom GPU kernel that uses this compressed form directly, avoiding wasteful expansion. This makes multi-agent AI systems much faster and lighter on memory without sacrificing answer quality, enabling longer, more capable agent interactions on the same hardware.