Prism: Cost-Efficient Multi-LLM Serving via GPU Memory Ballooning

Shan Yu, Yifan Qiao, Mingyuan Ma, Yangmin Li, Shuo Yang, Xinyuan Tong, Yang Wang, Zhiqiang Xie, Yuwei An, Shiyi Cao, Ke Bao, Deepak Vij, Xiaoning Ding, Yichen Wang, Qingda Lu, Zhong Wang, Gao Gao, Harry Xu, Junyi Shu, Jiarong Xing, Ying ShengarXiv 2025

TL;DR

Prism is a memory-centric multi-LLM serving framework that unifies spatial and temporal GPU sharing through a novel "memory ballooning" mechanism. By dynamically reclaiming and reallocating physical GPU memory across models via its open-source driver kvcached, Prism achieves up to 3.3× higher SLO attainment and over 2× cost reduction compared to state-of-the-art baselines.

What Problem Does This Paper Address?

Hosting thousands of Large Language Models (LLMs)—especially low-volume, "long-tail" models that are essential but rarely active—is incredibly expensive for cloud providers. To guarantee strict Service Level Objectives (SLOs), industry practice often statically allocates dedicated GPU groups to each model. This ensures immediate responsiveness but leads to massive under-utilization, with GPU duty cycles frequently dropping below 30%.

Existing GPU-sharing techniques fail to handle real-world multi-LLM traffic patterns efficiently:

  • Space-sharing (statically partitioning a GPU among multiple models) creates severe memory fragmentation and starves active models of KV cache during sudden traffic bursts.
  • Time-sharing (swapping models in and out of GPU memory) suffers from severe "thrashing" and multi-second latency overheads when multiple models receive interleaved requests simultaneously.
Figure 2: Performance of pure time- (a) and space-sharing (b) for the trace in Figure 1(c). Pure time sharing in (a) causes model switching when both models have requests, while pure space sharing in (b) causes queuing delay during requests spike.

Methods

Prism unifies space- and time-sharing by treating GPU memory as an elastic, dynamically reallocatable resource.

Figure 3: The system architecture and design overview of Prism.

The framework introduces three core components:

  1. GPU Memory Ballooning (kvcached): Operating at the GPU runtime level, this balloon driver decouples virtual and physical memory. Serving engines reserve a large virtual address space during initialization, but physical memory pages (at a 2MB granularity) are allocated and mapped strictly on demand. This allows Prism to transparently shrink an idle model's KV cache reservation to free up physical memory for another model's weights or active cache.
  2. Load-Aware Model Placement: A cluster-level scheduler that distributes models across GPUs based on a metric called the KV Pressure Ratio (KVPR). This ensures that complementary models (e.g., a high-demand model and a low-demand model) are colocated, maximizing the headroom available for memory ballooning.
  3. Slack-Aware Request Arbitration: A GPU-level scheduler that uses a shared per-GPU queue to prioritize requests based on their exact time slack (the buffer between a request's deadline and its required execution time) using the Moore-Hodgson algorithm.

Additionally, Prism accelerates model swap times through reusable engine pools (decoupling the engine's lifecycle from the model's lifecycle) and parallelized weight loading across multiple GPUs via high-speed NVLink interconnects.

Datasets

The authors comprehensively evaluated Prism using extensive real-world production traces:

  • Hyperbolic: 24 models monitored over 4 months.
  • Novita AI: 16 models monitored over 1 month.
  • Chatbot Arena (Arena-Battle & Arena-Chat): Up to 129 models spanning up to 16 months of traffic.

For evaluation benchmarks, the system was tested on clusters of up to 32 NVIDIA H100 GPUs serving 58 representative LLMs of varying architectures and sizes (ranging from 1B to 70B parameters).

Key Insights and Ideas

  • The Bursty-Group Phenomenon: Real-world multi-LLM traffic is highly volatile and characterized by "bursty groups"—subsets of models that activate together and shift rapidly over time. This behavior is driven by modern compound AI systems and agentic pipelines, where a central reasoning LLM frequently invokes specialized fine-tuned or LoRA models for specific sub-tasks.
  • Memory as the Unifying Bottleneck: Time-sharing focuses on swapping model weights, while space-sharing focuses on scaling KV cache capacity. By managing both types of allocations under a single runtime-level memory abstraction, a system can fluidly transition between space- and time-sharing dynamically.
  • Runtime-Level Memory Harvesting: Traditional serving engines (like vLLM or SGLang) manage memory at the application layer using static pre-allocations, which prevents cross-model sharing. Pushing memory management down to the GPU runtime level allows transparent memory redistribution across model boundaries with zero code changes to attention kernels.

Key Results

  • SLO Attainment: Given the same hardware resources, Prism achieves up to 3.3× higher Time-To-First-Token (TTFT) and 2× higher Time-Per-Output-Token (TPOT) SLO attainment compared to state-of-the-art baselines like MuxServe++ and QLM.
  • Cost and Throughput: Prism delivers up to a 2× cost reduction (requiring half the number of GPUs to meet a 99% SLO target) or handles up to 3.5× more requests under identical hardware constraints.
  • Production Deployment: Prism has been deployed in production environments across more than 10,000 GPUs. In shadow-workload replay tests, it improved per-GPU token throughput by 3.89× for an internal corporate cluster and increased revenue per GPU by 2.86× for a commercial inference provider by converting idle capacity into billable tokens.

Limitations and Future Work

While Prism significantly reduces memory-induced overheads, its parallel weight-loading optimizations rely heavily on high-speed interconnects like NVLink to achieve millisecond-level model migrations. In environments without NVLink, the system must fall back to standard eviction and reactivation, which can introduce a few seconds of latency for massive (>70B) models. Furthermore, Prism primarily targets memory-bound multi-LLM serving scenarios; future work could explore tighter integration with compute-centric hardware sharing mechanisms (like NVIDIA MIG) when clusters face simultaneous compute and memory saturation.

Summary updated

BibTeX
@misc{yu2025prism,
  author = {Shan Yu and Yifan Qiao and Mingyuan Ma and Yangmin Li and Shuo Yang and Xinyuan Tong and Yang Wang and Zhiqiang Xie and Yuwei An and Shiyi Cao and Ke Bao and Deepak Vij and Xiaoning Ding and Yichen Wang and Qingda Lu and Zhong Wang and Gao Gao and Harry Xu and Junyi Shu and Jiarong Xing and Ying Sheng},
  title = {{Prism: Cost-Efficient Multi-LLM Serving via GPU Memory Ballooning}},
  year = {2025},
  eprint = {2505.04021},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.04021},
}
Figure