PolyLUT: Learning Piecewise Polynomials for Ultra-Low Latency FPGA LUT-based Inference

Marta Andronic, George A. Constantinides
9/5/2023
60 citations
cs.LGcs.ARstat.ML

Official code: MartaAndronic/PolyLUT (60 stars, Python, Apache-2.0, last commit 2024-02-09).

Abstract

Field-programmable gate arrays (FPGAs) are widely used to implement deep learning inference. Standard deep neural network inference involves the computation of interleaved linear maps and nonlinear activation functions.

Show full abstract

Prior work for ultra-low latency implementations has hardcoded the combination of linear maps and nonlinear activations inside FPGA lookup tables (LUTs). Our work is motivated by the idea that the LUTs in an FPGA can be used to implement a much greater variety of functions than this. In this paper, we propose a novel approach to training neural networks for FPGA deployment using multivariate polynomials as the basic building block. Our method takes advantage of the flexibility offered by the soft logic, hiding the polynomial evaluation inside the LUTs with minimal overhead. We show that by using polynomial building blocks, we can achieve the same accuracy using considerably fewer layers of soft logic than by using linear functions, leading to significant latency and area improvements. We demonstrate the effectiveness of this approach in three tasks: network intrusion detection, jet identification at the CERN Large Hadron Collider, and handwritten digit recognition using the MNIST dataset.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

PolyLUT is the first quantized neural network training methodology that maps a neuron to a LUT while using multivariate polynomial function learning to exploit the flexibility of the FPGA soft logic.

608PythonAug 10, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{andronic2023polylut,
  title  = {PolyLUT: Learning Piecewise Polynomials for Ultra-Low Latency FPGA LUT-based Inference},
  author = {Marta Andronic and George A. Constantinides},
  year   = {2023},
  eprint = {2309.02334},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.02334v2}
}

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/2309.02334.svg)](https://codeofpaper.com/paper/2309.02334)

Discussion