Skip to main content
QUICK REVIEW

[Paper Review] Autoencoders on FPGAs for real-time, unsupervised new physics detection at 40 MHz at the Large Hadron Collider

Ekaterina Govorkova, Ema Puljak|OSTI OAI (U.S. Department of Energy Office of Scientific and Technical Information)|Aug 9, 2021
Particle physics theoretical and experimental studiesPhysics and Astronomy46 references5 citations
TL;DR

This paper proposes deploying quantized and pruned deep autoencoders (AEs) and variational autoencoders (VAEs) on FPGAs in the LHC's Level-1 Trigger (L1T) for real-time, unsupervised anomaly detection. By using hls4ml with quantization-aware training and latency-optimized, encoder-only inference, the authors achieve 80 ns latency using less than 3% of a Xilinx Virtex VU9P FPGA's logic resources, enhancing new physics signatures by three orders of magnitude while meeting strict L1T constraints.

ABSTRACT

In this paper, we show how to adapt and deploy anomaly detection algorithms based on deep autoencoders, for the unsupervised detection of new physics signatures in the extremely challenging environment of a real-time event selection system at the Large Hadron Collider (LHC). We demonstrate that new physics signatures can be enhanced by three orders of magnitude, while staying within the strict latency and resource constraints of a typical LHC event filtering system. This would allow for collecting datasets potentially enriched with high-purity contributions from new physics processes. Through per-layer, highly parallel implementations of network layers, support for autoencoder-specific losses on FPGAs and latent space based inference, we demonstrate that anomaly detection can be performed in as little as $80\,$ns using less than 3% of the logic resources in the Xilinx Virtex VU9P FPGA. Opening the way to real-life applications of this idea during the next data-taking campaign of the LHC.

Motivation & Objective

  • To enable real-time, unsupervised anomaly detection in the LHC's Level-1 Trigger using deep learning, overcoming the limitations of theory-motivated selection.
  • To adapt autoencoder-based anomaly detection for deployment on resource-constrained FPGAs within the L1T's 1 μs latency and 150 ns initiation interval constraints.
  • To reduce model complexity via pruning, quantization, and architecture optimization while preserving detection accuracy for rare new physics signatures.
  • To demonstrate that latent-space-based inference using only the encoder avoids costly decoding, significantly reducing FPGA resource usage.
  • To validate the feasibility of deploying (V)AEs in the L1T for Run 3 of the LHC, enabling signal-model-independent data collection.

Proposed method

  • Utilized the hls4ml library to map trained neural networks to FPGA firmware, enabling high-level synthesis of DNN and CNN autoencoders.
  • Applied quantization-aware training (QAT) and post-training quantization (PTQ) to reduce precision from full-precision to 8-bit or 4-bit, minimizing FPGA resource usage.
  • Employed model pruning and removal of redundant operations to further compress the network architecture without significant accuracy loss.
  • Implemented a latency-optimized, encoder-only inference strategy for VAEs, eliminating the need for decoder computation and Gaussian sampling in the trigger path.
  • Used a latent space reconstruction error as the anomaly score, enabling deterministic trigger decisions without stochastic components.
  • Validated designs using HLS C simulation and Vivado HLS, with final integration into the emp-fwk firmware stack on a Xilinx VCU118 board with a VU9P FPGA.

Experimental results

Research questions

  • RQ1Can autoencoder-based anomaly detection be deployed in the LHC's Level-1 Trigger with sub-microsecond latency and minimal FPGA resource usage?
  • RQ2How does the performance of fully-connected and convolutional autoencoder architectures compare under L1T resource and timing constraints?
  • RQ3To what extent can quantization and pruning preserve anomaly detection accuracy while reducing model size for FPGA deployment?
  • RQ4Can the use of only the encoder in a VAE architecture significantly reduce resource consumption without sacrificing anomaly detection capability?
  • RQ5Is it feasible to achieve three-orders-of-magnitude enhancement in new physics signature detection using only the encoder of a VAE in the L1T?

Key findings

  • The DNN VAE with 8-bit quantization achieved a latency of 80 ns and used only 1% DSP, 3% LUT, 0.5% FF, and 0.3% BRAM on a Xilinx Virtex VU9P FPGA.
  • The CNN AE model required 8% DSP and 47% LUT, exceeding the practical resource budget and was therefore excluded from further deployment.
  • The encoder-only VAE inference reduced latency by a factor of two compared to full VAE, with comparable anomaly detection performance.
  • All models, except the CNN AE, met the 150 ns initiation interval requirement, with the DNN VAE achieving the lowest resource usage and fastest latency.
  • The DNN VAE model was successfully integrated into the emp-fwk firmware stack and validated via simulation and hardware testing at 240 MHz.
  • Resource estimates for the Xilinx V7-690 FPGA show the DNN VAE uses 3% DSP, 9% LUT, 3% FF, and 0.4% BRAM, with 205 ns latency, confirming viability for current CMS trigger hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.