ARLGMLFeb 29, 2024

NeuraLUT: Hiding Neural Network Density in Boolean Synthesizable Functions

arXiv:2403.00849v223 citationsh-index: 41FPL
AI Analysis

This work addresses latency-critical deep neural network inference for FPGA accelerators, offering a novel hardware-inspired method that is incremental in improving existing LUT-based approaches.

The paper tackled the problem of reducing latency in FPGA-accelerated neural network inference by mapping entire sub-networks to single lookup tables (LUTs) instead of individual neurons, using fully connected layers with floating-point precision inside partitions and sparsity between them. This approach achieved up to 4.3× lower latency for the same accuracy on tasks like jet substructure tagging and MNIST digit classification.

Field-Programmable Gate Array (FPGA) accelerators have proven successful in handling latency- and resource-critical deep neural network (DNN) inference tasks. Among the most computationally intensive operations in a neural network (NN) is the dot product between the feature and weight vectors. Thus, some previous FPGA acceleration works have proposed mapping neurons with quantized inputs and outputs directly to lookup tables (LUTs) for hardware implementation. In these works, the boundaries of the neurons coincide with the boundaries of the LUTs. We propose relaxing these boundaries and mapping entire sub-networks to a single LUT. As the sub-networks are absorbed within the LUT, the NN topology and precision within a partition do not affect the size of the lookup tables generated. Therefore, we utilize fully connected layers with floating-point precision inside each partition, which benefit from being universal function approximators, but with rigid sparsity and quantization enforced between partitions, where the NN topology becomes exposed to the circuit topology. Although cheap to implement, this approach can lead to very deep NNs, and so to tackle challenges like vanishing gradients, we also introduce skip connections inside the partitions. The resulting methodology can be seen as training DNNs with a specific FPGA hardware-inspired sparsity pattern that allows them to be mapped to much shallower circuit-level networks, thereby significantly improving latency. We validate our proposed method on a known latency-critical task, jet substructure tagging, and on the classical computer vision task, digit classification using MNIST. Our approach allows for greater function expressivity within the LUTs compared to existing work, leading to up to $4.3\times$ lower latency NNs for the same accuracy.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes