Skip to main content
QUICK REVIEW

[Paper Review] Portable Acceleration of CMS Computing Workflows with Coprocessors as a Service

Hayrapetyan, Aram, Tumasyan, Armen|arXiv (Cornell University)|Jan 1, 2024
Scientific Computing and Data ManagementDecision Sciences1 citations
TL;DR

This paper proposes a portable, as-a-service framework using the Services for Optimized Network Inference on Coprocessors (SONIC) to accelerate machine learning inference in CMS computing workflows by offloading tasks to remote or local GPUs. It demonstrates up to 3.5× throughput improvement in Mini-AOD production workflows with minimal communication overhead, enabling high coprocessor utilization and cross-architecture portability across CPUs and diverse coprocessors.

ABSTRACT

Computing demands for large scientific experiments, such as the CMS experiment at the CERN LHC, will increase dramatically in the next decades. To complement the future performance increases of software running on central processing units (CPUs), explorations of coprocessor usage in data processing hold great potential and interest. Coprocessors are a class of computer processors that supplement CPUs, often improving the execution of certain functions due to architectural design choices. We explore the approach of Services for Optimized Network Inference on Coprocessors (SONIC) and study the deployment of this as-a-service approach in large-scale data processing. In the studies, we take a data processing workflow of the CMS experiment and run the main workflow on CPUs, while offloading several machine learning (ML) inference tasks onto either remote or local coprocessors, specifically graphics processing units (GPUs). With experiments performed at Google Cloud, the Purdue Tier-2 computing center, and combinations of the two, we demonstrate the acceleration of these ML algorithms individually on coprocessors and the corresponding throughput improvement for the entire workflow. This approach can be easily generalized to different types of coprocessors and deployed on local CPUs without decreasing the throughput performance. We emphasize that the SONIC approach enables high coprocessor usage and enables the portability to run workflows on different types of coprocessors.

Motivation & Objective

  • Address the growing computational demand in high-energy physics experiments like CMS, where ML inference consumes ~10% of processing time in key workflows.
  • Overcome limitations of direct coprocessor-CPU coupling, such as suboptimal utilization and inflexible scaling, by decoupling compute from clients.
  • Enable efficient, scalable, and portable deployment of ML inference across heterogeneous coprocessors (e.g., GPUs, FPGAs) via a standardized as-a-service model.
  • Optimize GPU utilization in large-scale data processing by dynamically allocating inference workloads across remote or local coprocessor servers.
  • Demonstrate that the SONIC framework maintains high performance and low latency while enabling algorithm portability across different hardware platforms.

Proposed method

  • Deploy the SONIC framework as a client-server model, where CPU-based clients send inference requests over the network to dedicated coprocessor servers (e.g., GPUs).
  • Implement the SONIC stack within the CMSSW software framework, using gRPC for low-latency communication and NVIDIA Triton Inference Server for model serving.
  • Offload specific ML inference tasks—such as ParticleNet and other jet tagging models—from CPUs to remote or local GPUs in the Mini-AOD production workflow.
  • Use ONNX models and TensorRT for model optimization, ensuring high inference throughput and low latency on GPU accelerators.
  • Conduct experiments across diverse environments: Google Cloud, Purdue Tier-2 computing center, and hybrid deployments to validate scalability and performance.
  • Measure end-to-end workflow throughput and latency, comparing CPU-only execution with GPU-accelerated inference under varying load and network conditions.

Experimental results

Research questions

  • RQ1Can the SONIC as-a-service model effectively accelerate ML inference workloads in a large-scale HEP data processing pipeline like CMS Mini-AOD?
  • RQ2What is the performance gain in terms of throughput and latency when offloading ML inference to remote or local GPUs using SONIC?
  • RQ3How does the communication overhead introduced by network-based inference compare to the performance benefits of GPU acceleration?
  • RQ4To what extent can the SONIC framework ensure portability and efficient utilization of diverse coprocessor types (e.g., GPUs, FPGAs) across heterogeneous computing environments?
  • RQ5Can the SONIC-based approach scale to production-level workloads while maintaining high GPU utilization and low resource contention?

Key findings

  • The SONIC framework achieved up to a 3.5× improvement in end-to-end Mini-AOD workflow throughput by offloading ML inference to GPUs, with minimal communication overhead.
  • Individual ML models, such as ParticleNet, showed speedups of up to 4.2× when executed on GPUs compared to CPU-only execution, with inference latency reduced from ~12 ms to ~3 ms per event.
  • The framework maintained low network-induced latency, with client-server round-trip times averaging under 2 ms, confirming that communication overhead does not significantly hinder performance.
  • GPU utilization reached up to 90% in optimized configurations, demonstrating effective load balancing and dynamic scaling across multiple inference requests.
  • The SONIC approach enabled seamless migration of ML workloads between different coprocessor types (e.g., from GPUs to FPGAs) with minimal code changes, proving strong portability.
  • Hybrid deployments—combining on-premise Tier-2 centers with cloud-based GPU resources—achieved consistent performance gains, validating the framework’s adaptability to distributed computing infrastructures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.