An Energy-Efficient GeMM-Based Convolution Accelerator With On-the-Fly im2col

Jordi Fornt, Pau Fontova-Musté, Martí Caro, Jaume Abella, Francesc Moll, Josep Altet, Christoph StuderIEEE TVLSI 2023

Abstract

This paper presents a custom ASIC accelerator designed to mitigate the memory overhead associated with General Matrix-Matrix Multiplication (GeMM)-based convolution. By implementing an "on-the-fly" im2col transformation through a novel Data Feeder module, the design eliminates the need for redundant data storage and reduces off-chip memory traffic by over 50%. Fabricated in 22nm technology, the accelerator achieves an energy efficiency of 1.10 TFLOP/sW and a peak throughput of 284 GFLOP/s, while providing native support for complex operations such as dilated convolutions.

Introduction

Deep Learning accelerators, particularly those employing systolic arrays, are optimized for GeMM operations. However, standard convolutions involve 3D tensors, necessitating a transformation known as im2col (image-to-column) to "unroll" input data into 2D matrices. Traditional software-based or pre-processing approaches to im2col result in significant data inflation due to overlapping kernel windows, leading to excessive memory bandwidth consumption and energy waste. While some hardware solutions attempt on-chip transformation, they often suffer from large buffer requirements or limited support for dilated convolutions.

System Architecture

The proposed architecture centers on a 16x16 Output Stationary (OS) systolic array integrated with a specialized Data Feeder module that manages data movement between SRAM and the processing elements.

System architecture overview showing the Data Feeder, Systolic Array, and SRAM components.

On-the-Fly im2col and Data Feeding

Instead of storing an inflated matrix, the system maintains the original 3D tensor in SRAM. The Data Feeder performs real-time selection of required pixels for each array row using Index Counters and Feed Lanes. This "selection over transformation" approach bypasses intermediate buffers. To support dilated convolutions, the feeder utilizes configurable Kernel Pattern bit-vectors, allowing the hardware to mask and select non-contiguous elements from the memory bus without pipeline stalls.

Processing Element Design

The Processing Elements (PEs) are designed for efficiency, featuring "Zero Gating" circuitry. This logic detects zero-valued inputs and prevents multiplier switching, thereby reducing power consumption during the processing of sparse data. The entire design was implemented as a physical ASIC in 22nm technology to ensure accurate performance characterization, with the Data Feeder adding only 4% to the total area.

Evaluation and Results

The accelerator was evaluated using four diverse CNN architectures: ARPN (heavy dilation), ResNet-50, VGG-16, and YOLOv3. The design achieved a peak throughput of 284 GFLOP/s at 555 MHz with an energy efficiency of 1.10 TFLOP/sW using FP16 arithmetic.

Bandwidth Reduction

A primary advantage of the on-the-fly im2col mechanism is the reduction in memory traffic. Compared to explicit software-based im2col, the Data Feeder reduces required bandwidth by more than 2x across all tested models.

Comparison of memory bandwidth requirements (bytes/op) between explicit im2col and the proposed Data Feeder across various CNN models.

In practical application, such as YOLOv3 inference, this reduction in memory stalls translates to a nearly 20% improvement in overall throughput and significant system-level energy savings, approximately 236 mJ per inference.

Conclusion and Future Work

The proposed accelerator demonstrates that integrating intelligent data selection logic directly into the hardware path can significantly alleviate the memory bottlenecks of GeMM-based convolution. While the current design is optimized for dense tensors and FP16 precision, future work may explore native sparsity support within the Data Feeder and mixed-precision implementations to further enhance efficiency in the era of large-scale transformer models.

Summary updated

BibTeX
@article{fornt2023energy,
  author = {Jordi Fornt and Pau Fontova-Musté and Martí Caro and Jaume Abella and Francesc Moll and Josep Altet and Christoph Studer},
  title = {{An Energy-Efficient GeMM-Based Convolution Accelerator With On-the-Fly im2col}},
  journal = {IEEE Trans. Very Large Scale Integr. Syst.},
  year = {2023},
  doi = {10.1109/tvlsi.2023.3286122},
}
Figure