Cloud Native System for LLM Inference Serving

Minxian Xu, Junhan Liao, Jingfeng Wu, Yiyuan He, Kejiang Ye, Chengzhong Xu · DOI

Abstract: Large Language Models (LLMs) are revolutionizing numerous industries, but their substantial computational demands create challenges for efficient deployment, particularly in cloud environments. Traditional approaches to inference serving often struggle with resource inefficiencies, leading to high operational costs, latency issues, and limited scalability. This article explores how Cloud Native technologies, such as containerization, microservices, and dynamic scheduling, can fundamentally improve LLM inference serving. By leveraging these technologies, we demonstrate how a Cloud Native system enables more efficient resource allocation, reduces latency, and enhances throughput in high-demand scenarios. Through real-world evaluations using Kubernetes-based autoscaling, we show that Cloud Native architectures can dynamically adapt to workload fluctuations, mitigating performance bottlenecks while optimizing LLM inference serving performance. This discussion provides a broader perspective on how Cloud Native frameworks could reshape the future of scalable LLM inference serving, offering key insights for researchers, practitioners, and industry leaders in cloud computing and artificial intelligence.

Introduction

This research proposes a Cloud Native framework that decomposes monolithic Large Language Models (LLMs) into fine-grained microservices—down to the level of individual Transformer layers. By leveraging Kubernetes-based autoscaling and dynamic resource orchestration, the system achieves a 23.5% reduction in latency and a 25.6% boost in throughput compared to traditional monolithic deployment strategies.

The Challenge of Monolithic Deployment

Deploying LLMs is increasingly expensive, with inference accounting for up to 90% of total machine learning expenditures in the cloud. Traditional deployment methods are often inefficient because they treat an LLM as a single, monolithic unit. This leads to "over-provisioning," where cloud providers allocate massive GPU clusters to handle peak loads, leaving up to 70% of those resources idle during off-peak hours.

The rapid growth in LLM parameter counts underscores the need for efficient deployment strategies to manage computational costs.

The core challenges identified include:

  • Inference Stage Imbalance: The "prefill" stage (compute-heavy) and the "decode" stage (memory-bound) require different optimization strategies that static setups cannot provide simultaneously.
  • Unpredictable Workloads: Highly variable output lengths make predicting system load difficult.
  • Rigid Orchestration: Traditional systems lack the fine-grained control needed to scale specific model components that cause bottlenecks.

Proposed Cloud Native Architecture

The proposed architecture moves away from the "one model, one container" paradigm toward a modular microservices approach.

  1. Fine-grained Modularization: The LLaMA-2-13B model is decomposed into separate microservices, where individual Transformer layers (or groups of layers) function as independent units.
  2. The Cloud Native Stack: The system utilizes Kubernetes for container orchestration, gRPC and Istio for inter-service communication, and Prometheus and Grafana for high-resolution monitoring of GPU utilization and per-layer latency.
  3. Cloud Native (CN) Autoscaling: Using the Kubernetes Horizontal Pod Autoscaler (HPA), the system sets custom triggers based on GPU utilization and latency thresholds to dynamically replicate bottlenecked layers.
Cloud Native architectures enable flexible orchestration across diverse cloud providers and hardware accelerators like GPUs and NPUs.

Key Insights and Results

The "Layer 27" Phenomenon

One of the most striking findings was that latency is not distributed evenly across a model. Tests revealed that Layer 27 exhibited a maximum latency more than 230 times that of Layer 30. This suggests that monolithic scaling is wasteful, as it scales all layers to address a bottleneck in just one. Treating layers as microservices allows for "surgical" scaling, adding resources only to specific bottlenecked components.

Performance Evaluation

Experiments conducted on NVIDIA A100-80GB GPUs demonstrated significant improvements with CN autoscaling enabled:

  • Latency Reduction: At a batch size of 62, inference latency of the bottleneck layer dropped from 15.23 seconds to 12.28 seconds (~23.5% improvement).
  • Throughput Increase: Overall system throughput increased from 4.07 Queries Per Second (QPS) to 5.05 QPS (~25.6% improvement).
  • Enhanced Stability: The system showed a marked reduction in "latency jitter," leading to more predictable response times even under high-concurrency scenarios.

Limitations and Future Work

While promising, the microservices approach introduces network overhead between containers. Managing a service mesh for dozens of microservices also increases operational complexity. Future work will explore predictive scaling using time-series models to preemptively scale resources before traffic spikes and advanced task migration techniques to move active inference tasks between GPUs transparently.

Summary updated

BibTeX
@misc{xu2025cloud,
  author = {Minxian Xu and Junhan Liao and Jingfeng Wu and Yiyuan He and Kejiang Ye and Chengzhong Xu},
  title = {{Cloud Native System for LLM Inference Serving}},
  year = {2025},
  eprint = {2507.18007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.18007},
}
Figure