λScale: Enabling Fast Scaling for Serverless Large Language Model Inference

Minchen Yu, Rui Yang, Chaobo Jia, Zhaoyuan Su, Sheng Yao, Tingfeng Lan, Yuchen Yang, Yue Cheng, Wei Wang, Ao Wang, Ruichuan Chen · OpenReview

TL;DR

This paper introduces λScale, a novel serverless inference system designed to tackle the significant model startup overhead for large language models (LLMs). By leveraging high-speed RDMA networks for fast model multicast and enabling "execute-while-load" for distributed inference during model transmission, λScale achieves up to 5x tail-latency improvement and 31.3% cost reduction compared to existing solutions.

What Problem Does This Paper Address?

Modern LLMs are massive, leading to substantial model startup times (cold starts) on serverless inference platforms. This delay, often measured in minutes, makes it impossible to meet the millisecond-to-second latency requirements of real-time inference services, especially when dealing with highly dynamic and bursty workloads. Existing solutions like caching models in host memory or on SSDs face limitations in scalability and incur high resource costs due to the need for constant overprovisioning or slow data transfers. The core challenge is to enable rapid, cost-effective scaling of LLM inference services in a serverless environment without compromising latency.

Methods

λScale introduces several key innovations to address the cold-start problem:

  • λPipe (Adaptive Model Multicast & Pipelined Inference Execution): This is the core scaling scheme.
  • Adaptive Model Multicast: It utilizes a binomial pipeline multicast algorithm, optimized for fast model distribution across GPU nodes. This approach leverages high-speed RDMA networks to efficiently transfer model blocks.
  • Pipelined Inference Execution: Crucially, λScale enables "execute-while-load," meaning inference can begin on partially loaded models. It dynamically constructs execution pipelines across nodes, allowing collaborative, distributed inference even as the model is being transferred. This significantly reduces the time to first token.
  • Mode Switching: Once a full model replica is loaded, nodes seamlessly switch to local execution, eliminating cross-node overhead.
  • Locality-driven Model Startup: λScale intelligently manages model loading from different storage tiers (GPU, host memory, or remote) to optimize startup time based on model availability.
  • Efficient Memory Management: Techniques like tensor packing and GPU memory pre-allocation are used to optimize data transfer and reduce memory allocation overhead.

Datasets

The paper evaluates λScale using real-world LLM inference traces. Specifically, it mentions:

  • Alibaba Cloud and Azure OpenAI GPT service traces: Used to demonstrate the bursty nature of LLM workloads.
  • BurstGPT dataset: A real-world workload trace collected from regional Azure OpenAI GPT services, used for evaluating performance under dynamic conditions.
  • Llama-2 LLM models (7B, 13B, and 70B parameters): Used for evaluating model transfer latency, throughput, and TTFT performance.

No new benchmarks were introduced; instead, the paper focuses on evaluating its system against existing benchmarks and real-world traces.

Key Insights and Ideas

  • "Execute-while-load" is a game-changer: The ability to start inference during model loading, rather than waiting for the entire model to be present, dramatically reduces latency and improves scaling efficiency.
  • RDMA networks are underutilized for scaling: High-speed RDMA interconnects, common in modern GPU clusters, offer significant potential for rapid model multicast, a capability not fully exploited by existing solutions.
  • Dynamic pipeline construction is key: Unlike static distributed inference setups, λScale's ability to dynamically form execution pipelines across nodes as models load is critical for handling bursty, unpredictable workloads.
  • Model partitioning and transfer order matter: Optimizing how models are split into blocks and the order in which they are transferred significantly impacts the speed of assembling complete model instances.

Key Results

  • Latency Improvement: λScale achieves up to 5x tail-latency improvement compared to state-of-the-art solutions.
  • Cost Reduction: It offers up to 31.3% cost reduction by enabling more efficient GPU utilization and avoiding overprovisioning.
  • Fast Model Transfer: λScale completes the scaling of Llama-13B across 8 nodes in less than 1 second, outperforming NCCL by up to 1.5x.
  • Throughput Scaling: Consistently outperforms baselines in achieving peak throughput faster, with a significant reduction in ramp-up time when using k-way transmission.
  • Cold-start Performance: Outperforms ServerlessLLM by 3.75x to 11.4x in cold-start throughput scenarios.

Limitations and Future Work

  • Model Size Limitations: Current Scale supports models that fit within the GPU capacity of a single multi-GPU node (e.g., up to 640 GB of collective GPU memory for an 8-A100 node). Support for larger models spanning multiple nodes is left for future work.
  • Performance Plateau: The paper notes a staircase-shaped performance plateau in throughput scaling when k ≥ 2, which is attributed to implementation overhead and is an area for future optimization.
  • Tensor Parallelism: While λScale can inherently support Tensor Parallelism (TP) by extending its model partitioning strategies, coordinating inference tasks under TP-based partitioning is left for future work.
  • Support for New Models: The system can be extended to support new models, but the focus has been on LLMs, image classification, and vision transformers.

Summary updated

BibTeX
@misc{yu2025scale,
  author = {Minchen Yu and Rui Yang and Chaobo Jia and Zhaoyuan Su and Sheng Yao and Tingfeng Lan and Yuchen Yang and Yue Cheng and Wei Wang and Ao Wang and Ruichuan Chen},
  title = {{λScale: Enabling Fast Scaling for Serverless Large Language Model Inference}},
  year = {2025},
  eprint = {2502.09922},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.09922},
}
Figure