Improving the Serving Performance of Multi-LoRA Large Language Models via Efficient LoRA and KV Cache Management

Hang Zhang, Jiuchen Shi, Yixiao Wang, Quan Chen, Yizhou Shan, Minyi GuoarXiv 2025 · DOI

Introduction

Serving Large Language Models (LLMs) efficiently is a critical challenge as demand for specialized tasks grows. Low-Rank Adaptation (LoRA) has emerged as a popular solution, allowing a single base model to support numerous specialized "adapters" (e.g., for different languages or personas) by swapping out small weight matrices. However, current serving systems struggle to manage these adapters alongside the memory-intensive Key-Value (KV) caches required for conversation context. This paper introduces FASTLIBRA, an inference caching system that treats LoRA adapters and KV caches as a unified memory pool, significantly reducing latency and improving throughput.

The Bottlenecks of Multi-LoRA Serving

Existing systems like vLLM and S-LoRA face two primary inefficiencies that limit their performance in multi-tenant environments:

  1. The "Static Wall": GPU memory (HBM) is typically partitioned into fixed, independent buckets for LoRA adapters and KV caches. This static allocation cannot adapt to fluctuating workloads. For instance, a surge in diverse tasks might overflow the LoRA bucket while the KV bucket remains underutilized, leading to unnecessary swaps and delays.
  2. Ignored Usage Dependencies: A query requires both its specific LoRA adapter and its historical KV cache. Current systems manage these resources independently, often swapping out a required LoRA adapter while retaining its associated KV cache. This results in "invalid" KV caches—memory is occupied by data that cannot be used without the missing adapter, forcing expensive "cold-start" reloads from CPU memory.
Architecture of HBM and main memory management showing usage dependencies between LoRAs and KV caches.

The authors found that in systems like vLLM, up to 46.5% of the KV cache in memory can be "invalid" due to these missing dependencies, representing a significant waste of high-bandwidth memory.

The FASTLIBRA Approach

FASTLIBRA addresses these issues through two core innovations: a Dependency-Aware Cache Manager and a Performance-Driven Cache Swapper.

Dependency-Aware Cache Manager

Instead of rigid buckets, FASTLIBRA implements a unified caching pool. It organizes memory using a tree-based structure (a trie) where each LoRA adapter serves as a parent node to its associated KV caches. This hierarchy ensures that the system prioritizes keeping a "parent" LoRA in memory if its "child" KV caches are retained. By maintaining these usage dependencies, FASTLIBRA eliminates the invalid KV cache problem and ensures that when a context is hit, its required adapter is also available.

Comparison of execution timelines with and without usage dependency maintenance, showing reduced queuing and swap-out overhead in FASTLIBRA.

Performance-Driven Cache Swapper

Moving beyond simple "Least Recently Used" (LRU) policies, FASTLIBRA employs a unified cost model to manage the unified pool. This model calculates the benefit of retaining specific items based on:

  • Transfer Cost: The time required to move data over the PCIe bus.
  • Visit Frequency: How often an adapter or context is requested.
  • Time Decay: A function that prioritizes recent interactions to capture temporal locality.
  • LoRA Quantity Estimation: A dynamic prediction of the number of adapters needed for the current batch to proactively prevent queuing.

Evaluation and Results

The researchers evaluated FASTLIBRA across three real-world scenarios: Chatbots (LMSYS-33k), Multi-language Translation (Opus-100), and Personal Agents (Google Taskmaster), using production arrival patterns from Microsoft Azure Functions.

The results demonstrate that FASTLIBRA significantly outperforms state-of-the-art baselines like vLLM and S-LoRA across Llama-7B, 13B, and 34B models:

  • TTFT Reduction: Time-To-First-Token was reduced by an average of 63.4%.
  • Throughput Boost: Peak serving throughput improved by 35.2%.
  • TPOT Improvement: Time-Per-Output-Token decreased by 40.1%.

The system maintained high efficiency even when scaling to 2,000 different LoRA adapters, proving its robustness for large-scale, multi-tenant deployments.

Conclusion and Future Work

FASTLIBRA effectively breaks the "static wall" of GPU memory management in multi-LoRA environments. By unifying the memory pool and respecting usage dependencies, it drastically reduces the latency penalties associated with "cold starts" and invalid caches.

While highly effective, future work could further optimize the system for specific high-speed interconnects like NVLink or adapt the cost model for diverse AI accelerators. Additionally, integrating advanced machine learning to predict future adapter demand could further minimize cold-start delays in even more massive multi-tenant environments.

Summary updated

BibTeX
@misc{zhang2025improving,
  author = {Hang Zhang and Jiuchen Shi and Yixiao Wang and Quan Chen and Yizhou Shan and Minyi Guo},
  title = {{Improving the Serving Performance of Multi-LoRA Large Language Models via Efficient LoRA and KV Cache Management}},
  year = {2025},
  eprint = {2505.03756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.03756},
}
Figure