A Data-driven ML Approach for Maximizing Performance in LLM-Adapter Serving

Ferran Agullo, Joan Oliveras Torra, Chen Wang, Alberto Gutierrez-Torre, Olivier Tardieu, Alaa Youssef, Jordi Torres, Josep Lluis BerralMLForSys @ NeurIPS 2025

TL;DR

This paper introduces a data-driven machine learning approach to optimize the serving of LLM adapters, aiming to maximize GPU throughput while preventing request starvation. They achieve this by developing the first "Digital Twin" of an LLM-adapter serving system to generate realistic training data for interpretable ML models that predict optimal configurations.

What Problem Does This Paper Address?

Large Language Models (LLMs) are becoming increasingly specialized using "adapters," which are lightweight additions to the base model. This allows serving hundreds or thousands of these specialized adapters on a single GPU, boosting efficiency through request aggregation. However, serving too many adapters concurrently can exhaust GPU memory, leading to "request starvation" where requests can't be processed in time. The challenge is to find the sweet spot: the optimal number of concurrent and parallel adapters to serve to maximize throughput without causing starvation, especially when dealing with a mix of adapters with varying sizes, request lengths, and arrival rates. This is known as the "adapter caching problem."

Methods

The core of the paper's contribution lies in a two-pronged approach:

  1. Digital Twin (DT): The authors developed the first "Digital Twin" of an LLM-adapter serving system, specifically emulating the vLLM framework. This DT acts as a highly accurate simulator that can reproduce the system's behavior, including scheduling, memory allocation, and model forward passes, over a simulated timeline. This is crucial for generating realistic training data for their ML models, as real-world benchmarking is time- and resource-intensive. The DT uses predictive performance models for various system components.
  2. Data-driven ML Approach: They leverage interpretable ML models (linear regression, Bayesian Ridge, PLSRegression, Random Forest, RuleFit, FIGSRegressor) to predict the optimal joint configuration of concurrent and parallel adapters. The DT is used to generate ground truth data for training these models. The goal is to find configurations that maximize throughput without starvation. They also focus on making the ML models interpretable, aiming for simple decision rules.

Datasets

The paper uses the following datasets:

  • ShareGPT dataset: A cleaned version is used to generate synthetic datasets with varying request lengths (small, medium, large) for experiments.
  • HuggingFace adapters: Publicly available LoRA adapters are used for Llama-2-7B and Llama-2-13B models, as well as for Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct.

No new benchmarks are explicitly introduced, but the Digital Twin effectively creates a synthetic benchmark environment that closely mimics real-world heterogeneous workloads.

Key Insights and Ideas

  • The "Adapter Caching Problem" is complex: Throughput doesn't simply increase with more adapters. There's a critical threshold beyond which performance degrades due to memory limitations and starvation.
  • Digital Twins are powerful for LLM serving research: Creating an accurate DT of an LLM serving system is a significant step, enabling efficient generation of training data and performance evaluation without costly real-world experiments.
  • Interpretable ML is key for practical deployment: While complex models might achieve high accuracy, interpretable models (like simplified decision trees) are crucial for understanding why a configuration is optimal and for easy integration into production systems.
  • Heterogeneity matters: The optimal configuration is highly dependent on the mix of adapter sizes, request lengths, and arrival rates, making a one-size-fits-all approach ineffective.

Key Results

  • Digital Twin Accuracy: The DT closely reproduces real-system behavior, achieving a maximum error of 5.1% for throughput and 9.6% for Inter-Token Latency (ITL).
  • ML Model Performance: The interpretable ML models predict optimal numbers of concurrent and parallel adapters with a maximum average error of 1.0% for concurrent adapters and 7.2% for adapter slots under heterogeneous workloads.
  • Inference Speed: The best-performing ML models achieve an average inference time of at most 0.15 ms, making them suitable for real-time production deployment.
  • Interpretability: A simplified decision tree model, derived from the best-performing Random Forest, provides a highly interpretable set of rules (fewer than 30) for decision-making.

Limitations and Future Work

  • Single-GPU Focus: The current approach and experiments are limited to single-GPU configurations.
  • Future Work: The authors plan to explore multi-device and multi-node extensions to evaluate performance in more realistic production settings and compare their method with existing approaches like dLoRA.
  • Adapter Allocation: The current approach predicts the number of concurrent and parallel adapters, not the specific allocation of adapters. This might lead to suboptimal performance in scenarios with very few adapters that have highly diverse characteristics.

Summary updated

BibTeX
@inproceedings{agullo2025data,
  author = {Ferran Agullo and Joan Oliveras Torra and Chen Wang and Alberto Gutierrez-Torre and Olivier Tardieu and Alaa Youssef and Jordi Torres and Josep Lluis Berral},
  title = {{A Data-driven ML Approach for Maximizing Performance in LLM-Adapter Serving}},
  booktitle = {MLForSys @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=ok9Y1cKNFy},
}

Loading related content...

Figure