Learn · CERN

Talk24 min

Distributed Arithmetic for Real-time Neural Networks on FPGAs

Chang Sun · CERN

Watch At CERN

About

Neural networks with a latency requirement at the order of $\mu$s, like the ones used at the CERN Large Hadron Colliders, are typically deployed on FPGAs fully unrolled. A bottleneck for deployment of such neural networks is area utilization, which is directly related to the constant matrix-vector multiplications (CMVM) performed in the networks. In this work, we implement an algorithm that optimizes the area consumption for such neural networks on FPGAs by performing the CMVMs with distributed arithmetic (DA) and integrate with the hls4ml library, a FOSS library for running real-time neural network inference on FPGAs. The optimized resource usage and latency are compared with the ones from the original hls4ml implementation on different networks. The results show that the proposed optimization can achieve a reduction of on-chip resource by up to a half in realistic quantized neural networks, while reducing the latency by up to 40\%, all while maintaining bit-accurate output values..

0:00:00 Slide 1

0:01:17 Slide 2

0:02:51 Slide 3

0:04:49 Slide 4

0:06:06 Slide 5

0:08:03 Slide 6

0:09:19 Slide 7

0:11:58 Slide 8

0:13:29 Slide 9

0:14:49 Slide 10

0:19:05 Slide 11

The talk

  1. Distributed Arithmetic for Real-time Neural Networks on FPGAs 2025-05-21 · 24 min · CERN's player

Credits and licence

Institution
CERN
Department
FPGA Developers' Forum (FDF)
Speaker
Chang Sun
Year
2025
Language
English
Subjects
Mathematics
Source
CERN
Licence
CERN, as CERN states it. CERN's terms
Attribution
© CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
Who can watch
CERN gives no rating. Invisible Network shows it to Tweens profiles and older, judged from what the source says about it. How courses are placed