An Efficient Accelerator Design Methodology for Deformable Convolutional Networks

Saehyun Ahn, Jung-Woo Chang, Suk-Ju Kang

Introduction

Deformable Convolutional Networks (DCNs) have emerged as a powerful tool for computer vision, offering superior accuracy by adapting their sampling grid to the geometric variations of objects. Unlike standard convolutional layers that operate on a fixed grid, Deformable Convolutional Layers (DCLs) learn dynamic "offsets" that allow the kernel to sample data from irregular locations. However, this flexibility introduces a significant "irregularity" in memory access patterns, making DCNs notoriously difficult to accelerate on hardware like FPGAs.

The Challenge of Irregularity

The primary hurdle in deploying DCNs on specialized hardware is the unpredictable nature of sampling locations. Because offsets are generated on the fly, memory access becomes spatially scattered and non-sequential. This leads to three major issues:

  1. Irregular DRAM Access: Frequent, non-sequential reads increase energy consumption and latency.
  2. Pipeline Stalls: Processing elements (PEs) often sit idle waiting for data that isn't in the local cache (cache misses).
  3. Massive Buffer Requirements: To mitigate stalls, traditional designs require enormous on-chip buffers to store a wide receptive field, which is often impractical for resource-constrained FPGAs.

Hardware-Aware Regularization

To address these challenges, the authors propose a hardware-aware training methodology. By introducing a novel regularization term into the loss function, the training process penalizes excessively large offsets. This "tethers" the sampling points closer to the center of the kernel. By adjusting a hyperparameter ($\lambda$), the network can be tuned to maintain high accuracy while significantly reducing the required receptive field size—by as much as 12.68 times.

Optimized FPGA Architecture

Complementing the training-side optimization is a custom-designed FPGA accelerator. The architecture is centered around a high-performance systolic array and a specialized sampling controller.

Figure 5: The proposed FPGA architecture featuring a dedicated Sampling Controller and a Systolic Array Computation Engine.

The Sampling Controller handles the calculation of sampling positions and performs on-chip bilinear interpolation, preventing these operations from bottlenecking the main computation. The Systolic Array of PEs is optimized for high data reuse, minimizing external memory traffic. Furthermore, the design employs a "roofline model" to optimize loop tiling, ensuring that feature map tiles fit perfectly within the FPGA's limited on-chip memory.

Performance Evaluation

The methodology was rigorously tested using the MS-COCO 2017 dataset on a Faster R-CNN model with a ResNet-50 backbone. The results demonstrate a dramatic improvement in hardware efficiency.

Figure 3: Efficiency comparison between the baseline and the proposed hardware-aware model across different input buffer sizes.

As shown in Figure 3, the proposed regularization allows the system to reach 100% efficiency with a significantly smaller input buffer compared to the baseline. Key results include:

  • Throughput: A speedup of 5.28x to 17.25x over existing state-of-the-art systolic array designs.
  • Energy Efficiency: A 1.39x improvement due to reduced DRAM traffic and higher data reuse.
  • Accuracy Preservation: Only a negligible drop in Mean Average Precision (from 39.9% to 39.3% AP) was observed despite the massive reduction in memory footprint.

Conclusion

This work highlights the importance of hardware-software co-design. By making the DCN model "hardware-aware" during training and pairing it with a specialized FPGA architecture, the researchers successfully bridged the gap between the algorithmic flexibility of deformable convolutions and the rigid efficiency requirements of hardware accelerators. This methodology paves the way for deploying high-accuracy, dynamic neural networks in real-time edge computing applications.

Summary updated

BibTeX
@inproceedings{ahn2020efficient,
  author = {Saehyun Ahn and Jung-Woo Chang and Suk-Ju Kang},
  title = {{An Efficient Accelerator Design Methodology for Deformable Convolutional Networks}},
  booktitle = {ICIP},
  year = {2020},
  doi = {10.1109/icip40778.2020.9191028},
}
Figure