Symbolic Regression on FPGAs for Fast Machine Learning Inference

05/06/2023
by   Ho Fung Tsoi, et al.
0

The high-energy physics community is investigating the feasibility of deploying machine-learning-based solutions on Field-Programmable Gate Arrays (FPGAs) to improve physics sensitivity while meeting data processing latency limitations. In this contribution, we introduce a novel end-to-end procedure that utilizes a machine learning technique called symbolic regression (SR). It searches equation space to discover algebraic relations approximating a dataset. We use PySR (software for uncovering these expressions based on 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 optimise the top metric by pinning the network size because vast hyperparameter space prevents extensive neural architecture search. Conversely, SR selects a set of models on the Pareto front, which allows for optimising the performance-resource tradeoff directly. By embedding symbolic forms, our implementation can dramatically reduce the computational resources needed to perform critical tasks. We validate our procedure on a physics benchmark: multiclass classification of jets produced in simulated proton-proton collisions at the CERN Large Hadron Collider, and show that we approximate a 3-layer neural network with an inference model that has as low as 5 ns execution time (a reduction by a factor of 13) and over 90 accuracy.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/16/2018

Fast inference of deep neural networks in FPGAs for particle physics

Recent results at the Large Hadron Collider (LHC) have pointed to enhanc...
research
07/01/2022

Deep Learning and Symbolic Regression for Discovering Parametric Equations

Symbolic regression is a machine learning technique that can learn the g...
research
09/13/2022

A computational framework for physics-informed symbolic regression with straightforward integration of domain knowledge

Discovering a meaningful symbolic expression that explains experimental ...
research
03/13/2023

Symbolic Regression for PDEs using Pruned Differentiable Programs

Physics-informed Neural Networks (PINNs) have been widely used to obtain...
research
05/02/2023

Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl

PySR is an open-source library for practical symbolic regression, a type...
research
06/27/2023

Generating Elementary Integrable Expressions

There has been an increasing number of applications of machine learning ...
research
12/12/2020

Learning Symbolic Expressions via Gumbel-Max Equation Learner Network

Although modern machine learning, in particular deep learning, has achie...

Please sign up or login with your details

Forgot password? Click here to reset