SuperSONIC: Cloud-Native Infrastructure for ML Inferencing

Dmitry Kondratyev, Benedikt Riedel, Yuan-Tang Chou, Miles Cochran-Branson, Noah Paladino, David Schultz, Mia Liu, Javier M. Duarte, Philip Harris, Shih-Chieh HsuarXiv 2025

TL;DR

SuperSONIC is a cloud-native infrastructure that makes it easy to deploy and scale machine learning (ML) inference for scientific experiments. It decouples client applications from complex server-side GPU resources, enabling efficient and flexible use of accelerators across diverse scientific domains.

What Problem Does This Paper Address?

Modern scientific experiments, like those in high-energy physics (HEP) and multi-messenger astrophysics (MMA), are generating massive amounts of data and relying heavily on complex ML models for analysis. This creates a significant demand for computational resources, particularly GPUs, for ML inference (the process of using a trained model to make predictions). However, managing these resources efficiently is challenging due to:

  • Predicting resource needs: It's hard to know the exact CPU-to-GPU ratio or the number of GPUs required for a given ML model and workload, leading to either underutilization (wasted resources and cost) or overloads (high latency and poor performance).
  • Heterogeneous environments: Scientific experiments often operate across diverse computing infrastructures, from small clusters to large supercomputing centers, making it difficult to deploy ML inference consistently.
  • Dynamic workloads: The computational demands of scientific workflows can fluctuate significantly, requiring a system that can adapt quickly.
  • Complexity of deployment: Setting up and managing GPU-accelerated ML inference infrastructure is complex and requires specialized expertise.

The paper addresses the need for a standardized, scalable, and adaptable solution to deploy ML inference as a service, making it accessible to scientists without requiring them to be infrastructure experts.

Methods

The core of SuperSONIC is built upon the Services for Optimized Network Inference on Coprocessors (SONIC) approach, which treats ML inference as a service. This means client applications send their data to a remote server for inference, rather than performing it locally. SuperSONIC implements this concept using a cloud-native architecture, leveraging:

  • Kubernetes: For orchestrating and managing the deployment of inference services as microservices. This provides scalability, fault tolerance, and automated resource management.
  • NVIDIA Triton Inference Server: This is the workhorse for serving ML models. It's chosen for its robust performance, ability to serve multiple models and frameworks, and efficient GPU utilization.
  • Envoy Proxy: Acts as a gateway, handling crucial tasks like load balancing across multiple Triton instances, rate limiting to prevent server overload, and token-based authentication for security.
  • Kubernetes Event-Driven Autoscaling (KEDA): This is a key component for dynamic resource management. KEDA automatically scales the number of GPU-enabled Triton servers up or down based on metrics like request queue latency, ensuring optimal resource utilization and performance.
  • Prometheus and Grafana: Used for comprehensive monitoring of system health, performance metrics (like inference rate, latency, GPU utilization), and providing dashboards for visualization.

The architecture is designed to be portable and configurable, deployed using Helm charts for easy installation and version control.

Datasets

The paper does not explicitly mention specific datasets used for training ML models. Instead, it focuses on the deployment and testing of SuperSONIC with various ML models and scientific workflows. The evaluation is based on the performance and scalability of the SuperSONIC infrastructure itself when running these models.

Key Insights and Ideas

  • Inference-as-a-Service is crucial for science: Decoupling ML inference from client applications and offering it as a service is essential for scientific experiments that have diverse and fluctuating computational needs.
  • Cloud-native is the future for scientific computing: Leveraging technologies like Kubernetes and microservices allows for greater flexibility, scalability, and manageability of complex computational tasks.
  • Dynamic autoscaling is a game-changer: The ability to automatically adjust GPU resources based on real-time workload demand (rather than static allocation) significantly improves both performance (lower latency) and resource efficiency.
  • Standardization across experiments: Despite the unique client workflows of different scientific experiments (CMS, ATLAS, IceCube, LIGO), a common server-side inference infrastructure like SuperSONIC can effectively serve them all, reducing development and maintenance overhead.

Key Results

  • Successful deployment in major scientific experiments: SuperSONIC has been successfully deployed and tested for the CMS and ATLAS experiments at CERN, the IceCube Neutrino Observatory, and the LIGO experiment.
  • Versatility across ML models and workflows: The framework demonstrated its ability to handle various ML models, including graph neural networks (GNNs), convolutional neural networks (CNNs), and transformer architectures, across different scientific domains.
  • Significant performance improvements with autoscaling: Figure 3 shows that SuperSONIC with load-based autoscaling outperforms static GPU configurations by achieving lower average latency and higher GPU utilization for a varying inference workload. For instance, when the load increased from 1 to 10 clients, SuperSONIC dynamically scaled up GPU servers, preventing a drastic increase in latency that would occur with a fixed number of GPUs.
  • Scalability demonstrated: The system was tested on small Kubernetes clusters (e.g., within a GitHub Actions worker) and large-scale deployments on the National Research Platform (NRP) with up to 100 GPU-enabled Triton servers.
  • Portability: SuperSONIC was deployed with minimal differences across various computing environments, including Geddes, Anvil, NRP, and the ATLAS Analysis Facility at the University of Chicago.

Limitations and Future Work

  • NVIDIA GPU dependency: Currently, SuperSONIC primarily supports NVIDIA GPUs. The paper mentions plans to extend compatibility to other GPU vendors in the future through the integration of PyTriton.
  • Future work: The authors suggest that the framework's adaptability makes it suitable for a wide range of applications in science. Further exploration of its capabilities in diverse computing environments and with new ML model architectures is implied.

Summary updated

BibTeX
@misc{kondratyev2025supersonic,
  author = {Dmitry Kondratyev and Benedikt Riedel and Yuan-Tang Chou and Miles Cochran-Branson and Noah Paladino and David Schultz and Mia Liu and Javier M. Duarte and Philip Harris and Shih-Chieh Hsu},
  title = {{SuperSONIC: Cloud-Native Infrastructure for ML Inferencing}},
  year = {2025},
  eprint = {2506.20657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.20657},
}
Figure