Abstract
The state-of-the-art accelerators for Convolutional Neural Networks (CNNs) typically focus on accelerating only the convolutional layers, but do not prioritize the fully-connected layers much. Hence, they lack a synergistic optimization of the hardware architecture and diverse dataflows for the complete CNN design, which can provide a higher potential for performance/energy efficiency. Towards this, we propose a novel Massively-Parallel Neural Array (MPNA) accelerator that integrates two heterogeneous systolic arrays and respective highly-optimized dataflow patterns to jointly accelerate both the convolutional (CONV) and the fully-connected (FC) layers. Besides fully-exploiting the available off-chip memory bandwidth, these optimized dataflows enable high data-reuse of all the data types (i.e., weights, input and output activations), and thereby enable our MPNA to achieve high energy savings. We synthesized our MPNA architecture using the ASIC design flow for a 28nm technology, and performed functional and timing validation using multiple real-world complex CNNs. MPNA achieves 149.7GOPS/W at 280MHz and consumes 239mW. Experimental results show that our MPNA architecture provides 1.7x overall performance improvement compared to state-of-the-art accelerator, and 51% energy saving compared to the baseline architecture.
Introduction
Modern hardware accelerators, such as Google's TPU or MIT's Eyeriss, have revolutionized the efficiency of processing convolutional (CONV) layers in Convolutional Neural Networks (CNNs). These layers are characterized by high compute intensity and significant data reuse, making them ideal for standard systolic array architectures. However, a critical performance gap remains: the acceleration of fully-connected (FC) layers.
The Fully-Connected Layer Bottleneck
In many real-time inference scenarios where the batch size is one, FC layers exhibit a weight reuse factor of exactly one. This means every weight must be fetched from memory for a single multiply-accumulate (MAC) operation. Standard systolic arrays, designed for high reuse, struggle to feed data to processing elements (PEs) quickly enough, leading to severe underutilization.
As shown in Figure 1, while increasing the size of a standard systolic array provides substantial speed-up for CONV layers, the gains for FC layers are drastically reduced. This bottleneck limits the overall end-to-end performance of the CNN.
The MPNA Architecture
To address this, the Massively-Parallel Neural Array (MPNA) introduces a heterogeneous architecture featuring two specialized arrays:
- SA-CONV: A traditional systolic array optimized for the high data reuse patterns of CONV layers.
- SA-FC: A novel systolic array specifically for FC layers. It features dedicated connections from the weight buffer to each PE, allowing weight updates every clock cycle and bypassing standard shifting delays.
This specialization is remarkably efficient, with the SA-FC array adding only 2.1% area and 4.4% power overhead compared to the standard SA-CONV array.
Key Insights: Data Reuse and Workload Distribution
The necessity for heterogeneous arrays is underscored by the workload distribution in popular networks like AlexNet and VGG-16.
Figure 6 illustrates that while CONV layers dominate the total MAC operations, FC layers account for the vast majority of the network's weights. Furthermore, the data reuse factor for FC layers is orders of magnitude lower than for CONV layers. MPNA's dataflow controller dynamically selects between four memory routing strategies to minimize energy-intensive DRAM accesses based on these layer-specific characteristics.
Results and Performance
Synthesized in 28nm CMOS technology, MPNA demonstrates superior performance and efficiency:
- Performance: 149.7 GOPS/W at 280 MHz.
- Speedup: 8.1× speedup on FC layers specifically, leading to a 1.7× overall latency improvement over state-of-the-art accelerators like Eyeriss.
- Energy Efficiency: 51% energy savings compared to baseline architectures, driven by a 53% reduction in memory accesses compared to dataflow-optimized designs like FlexFlow.
Conclusion
MPNA demonstrates that synergistic optimization of hardware and dataflow for both CONV and FC layers is essential for high-performance CNN acceleration. By addressing the FC bottleneck with a specialized, low-overhead systolic array and intelligent data management, MPNA achieves significant gains in both speed and energy efficiency for real-world edge AI applications.
Summary updated