Neural Architecture Codesign for Fast Physics Applications

Jason Weitz, Dmitri Demler, Luke McDermott, Nhan Tran, Javier Duarte
1/9/2025
cs.LGcond-mat.mtrl-scihep-ex

No official code found. Best implementation: fastmachinelearning/nac-opt (14 stars, Apache-2.0, last commit 2026-04-29).

Abstract

We develop a pipeline to streamline neural architecture codesign for physics applications to reduce the need for ML expertise when designing models for novel tasks. Our method employs neural architecture search and network compression in a two-stage approach to discover hardware efficient models. This approach consists of a global search stage that explores a wide range of architectures while considering hardware constraints, followed by a local search stage that fine-tunes and compresses the most promising candidates. We exceed performance on various tasks and show further speedup through model compression techniques such as quantization-aware-training and neural network pruning. We synthesize the optimal models to high level synthesis code for FPGA deployment with the hls4ml library. Additionally, our hierarchical search space provides greater flexibility in optimization, which can easily extend to other tasks and domains. We demonstrate this with two case studies: Bragg peak finding in materials science and jet classification in high energy physics, achieving models with improved accuracy, smaller latencies, or reduced resource utilization relative to the baseline models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Neural Architecture Codesign: A Model Optimization Toolkit for Physics

142Shell, PythonOct 17, 20235 months agoApache-2.0

Similar Papers

Cite this paper

@article{weitz2025neural,
  title  = {Neural Architecture Codesign for Fast Physics Applications},
  author = {Jason Weitz and Dmitri Demler and Luke McDermott and Nhan Tran and Javier Duarte},
  year   = {2025},
  eprint = {2501.05515},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.05515v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.05515.svg)](https://codeofpaper.com/paper/2501.05515)

Discussion