Abstract
Cloud-based AI inference often suffers from high costs due to GPU underutilization. This paper presents PERSEUS, a measurement framework designed to characterize the performance and cost trade-offs of multi-tenant serving for Convolutional Neural Network (CNN) models. By hosting multiple models on shared hardware, PERSEUS demonstrates that serving costs can be reduced by up to 12% while maintaining performance guarantees.
Introduction
Deploying deep learning models at scale typically involves expensive hardware accelerators like GPUs. Standard industry practice often allocates a single model to a dedicated server. However, dynamic or "bursty" real-world workloads frequently leave these resources under-capacity, leading to inflated operational costs.
The challenge lies in multi-tenant inference serving: allowing different models to share the same underlying hardware. This requires a deep understanding of the complex interactions between latency, throughput, and monetary cost when multiple models compete for resources.
The Perseus Framework
To address these challenges, the authors developed PERSEUS, a comprehensive measurement suite built upon the Nvidia TensorRT Inference Server.
The architecture utilizes Docker containers for reproducibility and includes benchmark clients to simulate realistic traffic patterns. It integrates cAdvisor and Node exporter for hardware utilization tracking, with data aggregated in Prometheus and visualized via Grafana. The framework enables a rigorous comparison between CPU-only, dedicated GPU, and multi-tenant GPU serving scenarios.
Experimental Methodology
Experiments were conducted on Google Cloud Platform using n1-standard-8 instances with Nvidia Tesla P4 and T4 GPUs.
- Workload: A subset of 6,908 images from the Open Images V3 Validation Dataset.
- Models: Two representative CNNs—Inception-V3 (TensorFlow) and ResNet50 (Caffe2)—were used to evaluate how different architectures and frameworks interact under shared resource conditions.
Performance Insights
The study revealed several critical insights into CNN serving:
- Static Specs vs. Runtime Reality: Model file size and parameter counts are unreliable predictors of actual runtime performance.
- The "Cold Start" Penalty: Loading a model from disk to GPU memory is 67x to 1168x slower than executing an inference on a cached model. This underscores the necessity of efficient model caching strategies.
- CPU vs. GPU Trade-offs: For single-request batches, Intel CPUs outperformed T4 GPUs by 3x for Inception-V3. However, GPUs dominate in throughput once batching is applied, achieving up to 12x higher peak performance.
- Workload Balance: Multi-tenancy is most effective when models have similar request rates. Dominant traffic from one model can cause overhead that negates the benefits of sharing.
Cost and Scalability Analysis
The primary goal of multi-tenancy is cost optimization. PERSEUS provides a detailed view of how throughput relates to the cost per request across different hardware configurations.
Key findings include:
- Cost Efficiency: Multi-tenant serving achieved up to a 12% cost reduction by mixing workloads on dual Nvidia P4 GPUs.
- Resource Amortization: Increasing the number of GPUs per server can actually lower the cost per million requests (by ~14%) by better amortizing the fixed costs of CPU and RAM.
- Framework Bottlenecks: Inefficiencies were noted in certain frameworks; for instance, Caffe2's CPU implementation struggled with batched requests, highlighting the importance of GPU-optimized paths.
Discussion and Future Directions
While PERSEUS successfully characterizes the benefits of multi-tenancy, it also identified scaling limits. At four GPUs, the server's gRPC endpoint became a bottleneck, rather than the GPUs themselves. Furthermore, the current study is limited to image classification CNNs.
Future work will focus on expanding model variety, including Large Language Models (LLMs), and developing dynamic orchestration systems that automatically balance model placement based on real-time traffic to maximize utilization and minimize cost.
Summary updated