TL;DR
This paper introduces a hybrid FPGA acceleration framework for face recognition that intelligently switches between Winograd and Fast Fourier Transform (FFT) algorithms based on convolution layer characteristics. By optimizing resource allocation for the parallel branches found in Inception-style architectures, the authors achieved a 3.75x latency speedup over a high-end NVIDIA GTX 1080 GPU while maintaining high energy efficiency.
What Problem Does This Paper Address?
Deep Convolutional Neural Networks (CNNs) are the gold standard for face recognition, but they are computationally expensive. While FPGAs offer a flexible, energy-efficient alternative to GPUs for edge deployment, most existing FPGA accelerators struggle with two things:
- Algorithmic Rigidity: They often use a single convolution method (like standard sliding windows) for all layers, missing out on mathematical shortcuts like Winograd or FFT that work better for specific kernel sizes.
- Architectural Underutilization: Modern networks like GoogLeNet (Inception) use parallel branches with different kernel sizes. Standard accelerators often process these sequentially or fail to balance hardware resources between branches, leading to "bottleneck" branches that stall the system.
Methods
The authors propose a multi-pronged optimization strategy:
- Hybrid Algorithm Selection: They conducted an empirical study to find the "sweet spots" for different algorithms. They found that Winograd is superior for small kernels (3x3), while FFT becomes more efficient as kernel sizes (5x5, 7x7) and feature map dimensions increase. They codified this into a decision table used to select the best math for each layer.
- Intra-Module Resource Allocation: For Inception modules (which have multiple parallel branches), the authors developed a heuristic algorithm to partition FPGA resources (DSPs, LUTs). The goal is to ensure that all branches finish at roughly the same time, minimizing the idle time of the overall module.
- Template-Based HLS IP: They designed a reconfigurable High-Level Synthesis (HLS) IP core specifically for Inception modules. This allows for rapid deployment and optimization of different network configurations on the FPGA.
- Quantization: To further boost performance, they explored 16-bit and 8-bit fixed-point precision, analyzing the trade-off between numerical accuracy and hardware speed.
Datasets
The researchers evaluated their system using the FaceNet architecture (specifically an Inception V2 variant).
- Evaluation Set: They used a set of 100 face pairs (112x112 pixels) to test verification accuracy.
- Benchmarks: Performance was compared against a high-end NVIDIA GTX 1080 GPU and previous state-of-the-art FPGA implementations (referred to as FPGA2017 and FPT2016 in the text).
Key Insights and Ideas
- The "No Free Lunch" Theorem for Convolutions: The paper highlights that Winograd's overhead increases quadratically with kernel size, while FFT's overhead is logarithmic. This justifies the hybrid approach—using Winograd for the "bread and butter" 3x3 layers and FFT for the heavier 5x5 or 7x7 layers.
- Concurrency is Mandatory: In multi-branch topologies, the longest branch determines the latency. By explicitly implementing
split_inputandcombine_outputfunctions in HLS, the authors forced the hardware to execute branches concurrently rather than sequentially. - 8-bit Robustness: A key "aha" moment was confirming that 8-bit fixed-point weights are sufficient for face recognition. While 8-bit fast algorithms showed a slight increase in distance error compared to floating-point, the error remained well below the threshold for correct identity verification.
Key Results
- Latency: The system achieved a single-image latency of 23.7 ms.
- Speedup: This represents a 3.75x speedup over the NVIDIA GTX 1080 GPU and an 8.11x speedup over previous Winograd-only FPGA implementations.
- Efficiency: The design consumed only 10.6W, resulting in significantly better energy efficiency (Joules per picture) than both the GPU and prior FPGA works.
- Resource Usage: The implementation was LUT-heavy (79% utilization on a Xilinx VU9P) because Winograd and FFT transformations replace complex multiplications with additions and constant shifts, which favor Look-Up Tables over DSP slices.
Limitations and Future Work
- Stride Constraints: The authors note that current fast convolution methods (Winograd and FFT) do not natively support convolutions with a stride greater than 1. For these layers (like those in Inception 3c and 4e), the system had to revert to conventional convolution methods.
- Accuracy Recovery: While 8-bit precision was "tolerable," 12 out of 100 face pairs were classified differently than the float-point baseline. The authors suggest that re-training the model specifically for 8-bit quantization could restore this lost accuracy.
- Scalability: While optimized for Inception V2, the resource allocation logic would need to be re-run for different network topologies (like ResNet or DenseNet).
Summary updated