Symbolic Regression on FPGAs for Fast Machine Learning Inference

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tsoi, Ho Fung, Pol, Adrian Alan, Loncar, Vladimir, Govorkova, Ekaterina, Cranmer, Miles, Dasu, Sridhara, Elmer, Peter, Harris, Philip, Ojalvo, Isobel, Pierini, Maurizio
Format: Preprint
Veröffentlicht: 2023
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916249792937984
author Tsoi, Ho Fung
Pol, Adrian Alan
Loncar, Vladimir
Govorkova, Ekaterina
Cranmer, Miles
Dasu, Sridhara
Elmer, Peter
Harris, Philip
Ojalvo, Isobel
Pierini, Maurizio
author_facet Tsoi, Ho Fung
Pol, Adrian Alan
Loncar, Vladimir
Govorkova, Ekaterina
Cranmer, Miles
Dasu, Sridhara
Elmer, Peter
Harris, Philip
Ojalvo, Isobel
Pierini, Maurizio
contents The high-energy physics community is investigating the potential of deploying machine-learning-based solutions on Field-Programmable Gate Arrays (FPGAs) to enhance physics sensitivity while still meeting data processing time constraints. In this contribution, we introduce a novel end-to-end procedure that utilizes a machine learning technique called symbolic regression (SR). It searches the equation space to discover algebraic relations approximating a dataset. We use PySR (a software to uncover these expressions based on an evolutionary algorithm) and extend the functionality of hls4ml (a package for machine learning inference in FPGAs) to support PySR-generated expressions for resource-constrained production environments. Deep learning models often optimize the top metric by pinning the network size because the vast hyperparameter space prevents an extensive search for neural architecture. Conversely, SR selects a set of models on the Pareto front, which allows for optimizing the performance-resource trade-off directly. By embedding symbolic forms, our implementation can dramatically reduce the computational resources needed to perform critical tasks. We validate our method on a physics benchmark: the multiclass classification of jets produced in simulated proton-proton collisions at the CERN Large Hadron Collider. We show that our approach can approximate a 3-layer neural network using an inference model that achieves up to a 13-fold decrease in execution time, down to 5 ns, while still preserving more than 90% approximation accuracy.
format Preprint
id arxiv_https___arxiv_org_abs_2305_04099
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Symbolic Regression on FPGAs for Fast Machine Learning Inference
Tsoi, Ho Fung
Pol, Adrian Alan
Loncar, Vladimir
Govorkova, Ekaterina
Cranmer, Miles
Dasu, Sridhara
Elmer, Peter
Harris, Philip
Ojalvo, Isobel
Pierini, Maurizio
Machine Learning
High Energy Physics - Experiment
Instrumentation and Detectors
The high-energy physics community is investigating the potential of deploying machine-learning-based solutions on Field-Programmable Gate Arrays (FPGAs) to enhance physics sensitivity while still meeting data processing time constraints. In this contribution, we introduce a novel end-to-end procedure that utilizes a machine learning technique called symbolic regression (SR). It searches the equation space to discover algebraic relations approximating a dataset. We use PySR (a software to uncover these expressions based on an evolutionary algorithm) and extend the functionality of hls4ml (a package for machine learning inference in FPGAs) to support PySR-generated expressions for resource-constrained production environments. Deep learning models often optimize the top metric by pinning the network size because the vast hyperparameter space prevents an extensive search for neural architecture. Conversely, SR selects a set of models on the Pareto front, which allows for optimizing the performance-resource trade-off directly. By embedding symbolic forms, our implementation can dramatically reduce the computational resources needed to perform critical tasks. We validate our method on a physics benchmark: the multiclass classification of jets produced in simulated proton-proton collisions at the CERN Large Hadron Collider. We show that our approach can approximate a 3-layer neural network using an inference model that achieves up to a 13-fold decrease in execution time, down to 5 ns, while still preserving more than 90% approximation accuracy.
title Symbolic Regression on FPGAs for Fast Machine Learning Inference
topic Machine Learning
High Energy Physics - Experiment
Instrumentation and Detectors
url https://arxiv.org/abs/2305.04099