Heuristic & Expert-Guided Buffer Sizing for Neural Network Inference Applications on FPGAs

Lukas Stasytis, Felix Jentzsch, Nachiket Kapre, Yaman Umuroglu, Jakoba Petri-Koenig, Zsolt István2025

Abstract

A crucial step in implementing neural network engines on FPGAs is the sizing of intermediate buffers between the pipeline stages. Undersizing buffers can lead to throughput degradation or deadlocks, oversizing wastes valuable device resources. Typically, buffer sizing is performed using simulation, employing solvers or implementing a search algorithm. With neu-ral networks rapidly growing in size, these approaches become time consuming and negatively impact design iteration times. In this work, we show that, in the domain of neural network inference on FPGAs, it is possible to avoid costly simulations or solvers for buffer sizing and use instead a method that relies on analytic modeling and heuristics. We incorporate our method into the FINN compiler and deliver up to three orders of magnitude faster buffer sizing. At the same time, the resulting buffer sizes are up to 9x smaller for a wide range of example neural networks such as MobileNet-V1 and ResNet-50 with negligible degradation in throughput.
BibTeX
@misc{stasytis2025heuristic,
  author = {Lukas Stasytis and Felix Jentzsch and Nachiket Kapre and Yaman Umuroglu and Jakoba Petri-Koenig and Zsolt István},
  title = {{Heuristic \& Expert-Guided Buffer Sizing for Neural Network Inference Applications on FPGAs}},
  year = {2025},
  doi = {10.1109/icfpt67023.2025.00032},
}

Loading related content...

Figure