Introduction
Object detection serves as the "eyes" for autonomous systems, including unmanned aerial vehicles (UAVs) and underwater vehicles (AUVs). State-of-the-art models like YOLO (You Only Look Once) provide high accuracy but are computationally and memory-intensive, posing significant challenges for deployment on power-constrained embedded systems.
Existing model compression techniques, such as weight pruning or binarization (BNNs), often suffer from two primary drawbacks: substantial accuracy loss and hardware underutilization. For instance, extreme 1-bit quantization can severely degrade detection precision, while irregular pruning patterns hinder parallel processing. Furthermore, binarization often leaves an FPGA’s powerful Digital Signal Processing (DSP) blocks underutilized. REQ-YOLO addresses this gap by aligning high-level algorithmic compression with low-level hardware resource constraints.
Methodology
The REQ-YOLO framework introduces three core innovations to optimize YOLO for FPGA deployment:
Block-Circulant Matrix Compression
Instead of storing dense weight matrices, REQ-YOLO represents weights using block-circulant structures. This approach significantly reduces storage requirements and enables the use of Fast Fourier Transforms (FFT) for convolutions. By operating in the frequency domain, complex multiplications are transformed into simpler element-wise operations, enhancing computational efficiency.
Heterogeneous Weight Quantization
Recognizing that neural network layers vary in their sensitivity to precision loss, REQ-YOLO employs a "mix-and-match" quantization strategy:
- Equal-distance quantization: Standard fixed-point arithmetic is used for sensitive layers, effectively utilizing FPGA DSP blocks.
- Mixed powers-of-two quantization: Bit-shifting operations are used for less sensitive layers, offloading computation to Look-Up Tables (LUTs).
ADMM in the Frequency Domain
The framework utilizes the Alternating Direction Method of Multipliers (ADMM) to perform quantization directly on the FFT results of the weights. This optimization ensures high model accuracy even under heavy compression by maintaining precision in the frequency domain.
Custom Hardware Architecture
A specialized Processing Element (PE) was designed to support on-the-fly switching between quantization modes. This architecture maximizes the utilization of both DSPs and LUTs, balancing the hardware workload.
Evaluation and Results
The framework was benchmarked using the PASCAL VOC 2007+12 dataset and DataDJI, a specialized drone-captured dataset. Implementation on a Xilinx Virtex-7 FPGA yielded the following results:
- Performance: The system achieved a throughput of 314.2 FPS on the tiny-YOLO architecture.
- Energy Efficiency: At 15.0 FPS/W, REQ-YOLO is approximately 9.4x more energy-efficient than a Titan X GPU and 5.8x more efficient than an embedded Jetson TX2 GPU.
- Accuracy: Compression was nearly lossless, with a negligible drop in Mean Average Precision (mAP) ranging from 0.07% to 0.73%.
- Throughput: The design outperformed previous state-of-the-art FPGA implementations by over 10x.
Conclusion
REQ-YOLO demonstrates that combining structured matrix compression with resource-aware heterogeneous quantization can bridge the gap between deep learning models and embedded hardware. By balancing DSP and LUT usage and optimizing in the frequency domain, the framework achieves real-time performance with high energy efficiency. Future work will explore scaling these techniques to more complex architectures like YOLOv4/v7 and automating mode selection through advanced search algorithms.
Summary updated