Machine Learning (ML) will play a significant role in the success of the upcoming High-Luminosity LHC (HL-LHC) program at CERN. An unprecedented amount of data at the exascale will be collected by LHC experiments in the next decade, and this effort will require novel approaches to train and use ML models. In this paper, we discuss a Machine Learning as a Service pipeline for HEP (MLaaS4HEP) which provides three independent layers: a data streaming layer to read High-Energy Physics (HEP) data in their native ROOT data format; a data training layer to train ML models using distributed ROOT files; a data inference layer to serve predictions using pre-trained ML models via HTTP protocol. Such modular design opens up the possibility to train data at large scale by reading ROOT files from remote storage facilities, e.g., World-Wide LHC Computing Grid (WLCG) infrastructure, and feed the data to the user’s favorite ML framework. The inference layer implemented as TensorFlow as a Service (TFaaS) may provide an easy access to pre-trained ML models in existing infrastructure and applications inside or outside of the HEP domain. In particular, we demonstrate the usage of the MLaaS4HEP architecture for a physics use-case, namely, the $$t{\bar{t}}$$ t t ¯ Higgs analysis in CMS originally performed using custom made Ntuples. We provide details on the training of the ML model using distributed ROOT files, discuss the performance of the MLaaS and TFaaS approaches for the selected physics analysis, and compare the results with traditional methods.
[1]
Eli Upfal,et al.
Machine Learning in High Energy Physics Community White Paper
,
2018,
Journal of Physics: Conference Series.
[2]
Ben Y. Zhao,et al.
Complexity vs. performance: empirical analysis of machine learning as a service
,
2017,
Internet Measurement Conference.
[3]
Giacinto Donvito,et al.
Using DODAS as deployment manager for smart caching of CMS data management system
,
2020,
Journal of Physics: Conference Series.
[4]
Yi Wang,et al.
A deep neural network to search for new long-lived particles decaying to jets
,
2019
.
[5]
Ryszard S. Romaniuk,et al.
Observation of a new boson at a mass of 125 GeV with the CMS experiment at the LHC
,
2012
.
[6]
F. Tegenfeldt,et al.
TMVA - Toolkit for multivariate data analysis
,
2012
.
[7]
Javier Duarte,et al.
FPGA-Accelerated Machine Learning Inference as a Service for Particle Physics Computing
,
2019,
Computing and Software for Big Science.
[8]
Torsten Hoefler,et al.
Demystifying Parallel and Distributed Deep Learning
,
2018,
ACM Comput. Surv..
[9]
Maria Spiropulu,et al.
An MPI-Based Python Framework for Distributed Training with Keras
,
2017,
ArXiv.
[10]
Torsten Hoefler,et al.
Demystifying Parallel and Distributed Deep Learning: An In-Depth Concurrency Analysis.
,
2018
.
[12]
CMS Collaboration.
A deep neural network to search for new long-lived particles decaying to jets
,
2020,
Mach. Learn. Sci. Technol..