Portable acceleration of CMS computing workflows with coprocessors as a service

Gaia Grosso, Cms CollaborationarXiv 2024 · DOI

The CMS Collaboration at CERN has introduced a significant advancement in large-scale scientific computing by adopting an "Inference as a Service" (IaaS) model. This approach, implemented through the SONIC (Services for Optimized Network Inference on Coprocessors) framework, allows complex particle physics workflows to leverage remote specialized hardware like GPUs and IPUs without requiring local hardware upgrades across the global computing grid.

The Computing Challenge at the LHC

The Large Hadron Collider (LHC) generates massive volumes of data, and computing demands are set to grow exponentially in the High-Luminosity LHC era. While Machine Learning (ML) offers sophisticated methods for physics event reconstruction, running these models on traditional Central Processing Units (CPUs) is increasingly inefficient. Equipping every server in a global grid with a GPU is logistically and financially prohibitive. Furthermore, local GPUs often suffer from under-utilization during non-ML processing tasks.

The SONIC Framework

To address these challenges, the researchers developed SONIC, which decouples ML inference from the primary physics software (CMSSW).

Conceptual overview of the Inference as a Service (IaaS) model showing multiple CPU clients offloading tasks to specialized coprocessor servers.

The framework operates on a client-server model with several key technical features:

  • Communication: The CMSSW client sends input data to a dedicated inference server via gRPC.
  • Server Backend: The system utilizes the NVIDIA Triton Inference Server, which can host models in multiple formats such as PyTorch, ONNX, and TensorFlow.
  • Asynchronicity: CPU threads use non-blocking calls, allowing them to continue other processing tasks while waiting for the remote inference result.
  • Dynamic Batching: The server aggregates requests from various CPU threads into larger batches, maximizing the parallel processing efficiency of the coprocessor.
Technical architecture of the SONIC client-server communication, highlighting the asynchronous gRPC connection and the Triton Inference Server cluster.

Experimental Results and Scalability

The framework was tested using a simulated Run 2 dataset of $t\bar{t}$ (top quark-antiquark) events, focusing on three compute-intensive models: ParticleNet (jet tagging), DeepMET (missing transverse energy), and DeepTau (tau lepton identification).

Key findings include:

  • High Throughput: In a scale-out test involving 10,000 CPU cores and 100 GPUs on Google Cloud, the SONIC-enabled workflow achieved a 13% increase in overall throughput compared to CPU-only baselines.
  • Resource Efficiency: A single NVIDIA T4 GPU was found to support between 90 and 520 simultaneous CPU threads, depending on the specific model.
  • Network Resilience: Cross-site tests (CPUs in Indiana, GPUs in Iowa) demonstrated that network latency had a negligible impact on performance. The system also includes a fallback mechanism to local CPU inference if the remote server is unavailable.
  • Hardware Portability: Beyond NVIDIA GPUs, the system was successfully demonstrated on Graphcore IPUs, proving its flexibility across different hardware architectures.

Future Directions

While current results are promising, the collaboration aims to expand the scope of SONIC. Future work will focus on porting legacy algorithms (such as track reconstruction) to ML to capture more of the total processing time. Additionally, researchers are exploring "ragged batching" to handle variable input sizes more efficiently and investigating the long-term sustainability and cost-benefits of specialized hardware clusters.

Summary updated

BibTeX
@misc{grosso2024portable,
  author = {Gaia Grosso and CMS Collaboration},
  title = {{Portable acceleration of CMS computing workflows with coprocessors as a service}},
  year = {2024},
  eprint = {2402.15366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.15366},
}
Figure