arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.04099cs.LGhep-exphysics.ins-det
收藏

用于快速机器学习推理的FPGA上的符号回归

Symbolic Regression on FPGAs for Fast Machine Learning Inference

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Princeton University(普林斯顿大学);Massachusetts Institute of Technology(麻省理工学院);Institute of Physics Belgrade(贝尔格莱德物理研究所);Flatiron Institute(弗拉蒂伦研究所);European Organization for Nuclear Research (CERN)(欧洲核子研究组织(CERN))

Ho Fung Tsoi, Adrian Alan Pol, Vladimir Loncar, Ekaterina Govorkova, Miles Cranmer, Sridhara Dasu, Peter Elmer, Philip Harris, Isobel Ojalvo, Maurizio Pierini

AI总结:

本研究提出一种基于符号回归的FPGA端到端推理流程,扩展hls4ml支持PySR生成的表达式,在LHC喷注多分类任务上实现比3层神经网络快13倍、精度超90%的低资源快速推理。

摘要:

高能物理界正在研究在现场可编程门阵列(Field-Programmable Gate Arrays,FPGAs)上部署基于机器学习的解决方案的潜力,以在满足数据处理时间约束的同时提升物理灵敏度。在本文中,我们提出了一种新颖的端到端流程,该流程利用一种名为符号回归(symbolic regression,SR)的机器学习技术。SR在方程空间中搜索,以发现可近似数据集的代数关系。我们使用PySR(一种基于进化算法挖掘这些表达式的软件),并扩展了hls4ml(一个用于FPGA中机器学习推理的工具包)的功能,以支持PySR生成的表达式适用于资源受限的生产环境。深度学习模型通常通过固定网络规模来优化核心指标,因为超参数空间过大,无法进行广泛的神经架构搜索。与之相反,SR会选择帕累托前沿上的一组模型,从而可以直接优化性能与资源的权衡。通过嵌入符号形式,我们的实现可以大幅减少执行关键任务所需的计算资源。我们在一个物理基准任务上验证了我们的方法:对欧洲核子研究组织(CERN)大型强子对撞机上模拟质子-质子碰撞产生的喷注进行多分类。我们表明,我们的方法可以使用一个推理模型来近似3层神经网络,该推理模型的执行时间最多可降低13倍,低至5纳秒,同时仍能保持90%以上的近似精度。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑