TL;DR
This paper introduces a novel hardware accelerator specifically designed for Deformable Convolutional Networks (DCNs). By addressing the irregular memory access patterns and the computationally intensive bilinear interpolation inherent in DCNs, their accelerator achieves significant performance and energy efficiency gains over existing architectures.
What Problem Does This Paper Address?
Deformable Convolutional Networks (DCNs) have shown great promise in computer vision tasks by allowing networks to adapt their receptive fields to geometric variations in input data. This is achieved by dynamically sampling input features at arbitrary locations, which are determined at runtime. However, this dynamic and irregular access to memory poses a significant challenge for conventional Neural Network Accelerators (NNAs), which are optimized for regular, predictable memory access patterns. Furthermore, the bilinear interpolation (BLI) required to obtain feature values at these arbitrary locations is not efficiently supported by standard NNAs. While general-purpose processors (GPPs) can handle these operations, they lack the parallel processing capabilities, leading to slow execution. This paper aims to bridge this gap by proposing an energy-efficient accelerator that can efficiently handle the unique demands of DCNs.
Methods
The core of the proposed solution is an accelerator built upon a conventional NNA architecture, augmented with specialized components for DCNs. Key innovations include:
- Tile Dependency Table (TDT): To manage the dynamic and irregular memory accesses, input and output features are divided into tiles. A TDT is constructed at runtime to track the dependencies between these tiles, essentially mapping which input tiles are needed for which output tiles.
- On-Chip Tile Scheduler: Leveraging the TDT, a tile scheduler is developed to optimize the order of output tile execution and input tile loading. This aims to maximize the reuse of data already in on-chip buffers and minimize accesses to external memory.
- Parallel BLI Mapping: The bilinear interpolation operation is re-formulated as multiple small vector-based dot products. This allows for parallel execution on the NNA's 2D computing array, significantly speeding up this critical step.
- Layer Fusion: To further reduce data movement, the BLI and subsequent convolution operations are fused. This enables intermediate results to be processed directly on-chip, avoiding costly transfers to and from external memory.
Datasets
The paper evaluates its proposed accelerator using standard neural network models and datasets commonly used in computer vision research. Specifically, they benchmark on:
- VGG19 and SegNet architectures, modified to incorporate deformable convolutions.
- The experiments utilize configurations where deformable convolutions replace the last few convolution layers (e.g., VGG19-3, VGG19-8) or all convolution layers (VGG19-F, SegNet-F).
- The paper mentions using the ImageNet dataset for memory access characterization.
Key Insights and Ideas
- Irregularity is the Bottleneck: The primary challenge for DCNs on hardware isn't just the computation, but the highly irregular and dynamic memory access patterns introduced by the learned sampling locations.
- Tiling and Dependency Tracking are Crucial: Breaking down the problem into tiles and meticulously tracking dependencies between them (via the TDT) is essential for managing this irregularity.
- BLI as Parallelizable Vector Operations: Reimagining BLI as a series of parallelizable vector operations unlocks significant speedups by leveraging the NNA's parallel processing capabilities.
- Fusion for Data Movement Reduction: Fusing consecutive operations like BLI and convolution is key to minimizing data movement, which is a major contributor to energy consumption.
- Hardware-Software Co-design for DCNs: The work highlights the necessity of specialized hardware solutions to efficiently run DCNs, as software-only approaches on general-purpose hardware are inherently limited by memory access patterns and parallelization capabilities.
Key Results
The proposed DCN accelerator demonstrates substantial improvements:
- Performance: Achieves 45x-546x performance speedup over ARM+TPU architectures and 3x speedup over GPUs on average.
- Energy Efficiency: Shows 18.6x energy reduction compared to GPUs.
- Chip Area: The added components for DCN acceleration incur only a 6.6% chip area penalty compared to a classic NNA.
- Tile Scheduling Impact: The proposed tile scheduling mechanism significantly reduces memory accesses (up to 40.7% reduction) and energy consumption, especially for models with more deformable convolution layers.
- Tile Size Optimization: Smaller tile sizes lead to more efficient DRAM energy consumption, suggesting a trade-off between granularity and efficiency.
Limitations and Future Work
- Limitations:
- The paper notes that for smaller DCN operations (e.g., VGG19/SegNet-3), the benefits of tile scheduling are marginal because the operations are small enough to be fully buffered, leaving little room for optimization.
- While the accelerator is efficient, the paper acknowledges that the irregular memory access patterns in DCNs still lead to lower memory access efficiency compared to standard convolutions, impacting DRAM energy consumption.
- Future Work:
- The paper implicitly suggests further exploration into optimizing tile sizing for different DCN configurations to maximize energy efficiency.
- While not explicitly stated as future work, the success of this specialized accelerator opens avenues for designing hardware for other complex and irregular neural network operations.
Summary updated