TL;DR
This paper introduces PolyLUT-Add, a novel technique for deploying deep neural networks (DNNs) on FPGAs. It addresses the scalability limitations of existing LUT-based methods by combining multiple smaller LUT neurons with an adder, achieving comparable accuracy with significantly reduced LUT usage and improved latency.
What Problem Does This Paper Address?
Deploying deep neural networks (DNNs) on edge devices, especially those requiring real-time inference, is a significant challenge. Field-Programmable Gate Arrays (FPGAs) offer a promising platform due to their efficiency and low latency. A specific approach, LUT-based networks (like PolyLUT), models neurons directly using Look-Up Tables (LUTs) on FPGAs. This method is highly efficient but suffers from a critical limitation: the number of LUT resources required grows exponentially with the number of inputs to a neuron. This restricts the complexity of neurons that can be implemented, hindering accuracy and the ability to model complex relationships. The paper aims to overcome this scalability bottleneck in LUT-based DNNs.
Methods
The core innovation is PolyLUT-Add. Instead of a single large LUT per neuron, PolyLUT-Add combines A smaller "PolyLUT sub-neurons" using an A-input adder. This architectural change allows for increased neuron connectivity without a proportional increase in LUT size. The process involves:
- Sub-neuron computation: Each sub-neuron performs a computation similar to the original PolyLUT, but with potentially fewer inputs or a lower polynomial degree.
- Addition: The outputs of these A sub-neurons are summed by an A-input adder.
- Batch Normalization and Quantization: These are applied after the accumulation, with an increased internal word length in the adder to prevent overflow.
The authors also propose a novel architecture to improve scalability and a system toolflow that integrates with existing PyTorch-based quantization-aware training frameworks. They also discuss two pipelining strategies for FPGA implementation to balance clock frequency and latency.
Datasets
The proposed PolyLUT-Add method was evaluated on three commonly used datasets for ultra-low latency inference:
- MNIST: A standard dataset for handwritten digit recognition (28x28 pixel images, 10 classes).
- Jet Substructure Classification (JSC): Used for real-time decision-making in physics experiments, with 16 input features and 5 output classes. The paper uses two variants: JSC-XL and JSC-M Lite.
- UNSW-NB15: A benchmark for network intrusion detection, with 49 input features and binary classification (normal/bad).
Key Insights and Ideas
- Decomposition for Scalability: The key insight is that a complex neuron function can be decomposed into the sum of simpler functions (implemented by smaller LUTs). This is a powerful strategy for overcoming the exponential LUT scaling problem.
- Accuracy vs. Resource Trade-off: PolyLUT-Add demonstrates that by using multiple smaller sub-neurons and an adder, comparable or even improved accuracy can be achieved with significantly fewer LUTs compared to a single, larger LUT-based neuron.
- Flexibility in Design: The approach allows for tuning parameters like the number of sub-neurons (A), polynomial degree (D), and fan-in (F) to balance accuracy, latency, and resource utilization for specific applications.
- FPGA Efficiency: The architecture is designed to leverage FPGA fabric efficiently, with the adder being a relatively resource-light component compared to large LUTs.
Key Results
- LUT Reduction: For similar accuracy, PolyLUT-Add achieved a significant LUT reduction of 2.0x to 13.9x across the tested benchmarks compared to the original PolyLUT.
- Latency Improvement: The method resulted in a 1.2x to 1.6x decrease in latency.
- Accuracy Gains: In some configurations (e.g., A=2), PolyLUT-Add achieved accuracy improvements of up to 2.7% over PolyLUT, albeit with a 2-3x increase in LUT size. However, by using a lower D and F, comparable accuracy was maintained with substantial LUT savings.
- Comparison to Prior Works: Table III shows PolyLUT-Add achieving competitive or superior accuracy with significantly fewer LUTs and often lower latency compared to other state-of-the-art FPGA-based DNN inference methods like PolyLUT, LogicNets, FINN, and hls4ml.
Limitations and Future Work
- Increased Area (for higher accuracy): While PolyLUT-Add significantly reduces LUTs for similar accuracy, achieving higher accuracy with A=2 did lead to a 2-3x increase in LUT size.
- Pipelining Strategy Choice: The paper notes that the choice between two pipelining strategies depends on specific system requirements, with one maximizing clock frequency and the other minimizing latency.
- Future Work: The authors suggest developing targeted optimization techniques to individually adjust parameters (F, A, β) within each layer or neuron to further boost accuracy, reduce latency, and optimize area efficiency. They also mention the possibility of using an adder tree for larger values of A.
Summary updated