RED: A ReRAM-based Deconvolution Accelerator

Zichen Fan, Ziru Li, Bing Li, Yiran Chen, Hai Helen LiDATE 2019

Introduction

Deconvolutional layers are fundamental to modern generative models, such as Generative Adversarial Networks (GANs) and Fully Convolutional Networks (FCNs). These layers are responsible for up-sampling low-resolution feature maps into high-resolution outputs. While Processing-In-Memory (PIM) architectures based on Resistive RAM (ReRAM) have shown great promise for standard convolution, they face significant inefficiencies when handling deconvolution. RED (ReRAM-based Deconvolution) is a specialized hardware accelerator designed to address these inefficiencies through novel mapping and data flow strategies.

The Challenge of Deconvolution on ReRAM

The primary hurdle in implementing deconvolution on ReRAM is the handling of up-sampling. Traditional methods typically employ one of two strategies:

  1. Zero-padding Deconvolution: This method inserts zeros between input pixels to increase resolution before applying a standard convolution. On ReRAM crossbars, this results in massive redundancy, as 86% to 99% of operations involve multiplying by zero, leading to wasted energy and cycles.
  2. Padding-free Deconvolution: This approach avoids zero-insertion but requires complex post-processing, including cropping and overlapping additions. These steps necessitate high hardware overhead and power-hungry peripheral circuitry.
Comparison of zero-padding and padding-free deconvolution algorithms.

RED aims to bridge this gap by providing an architecture that maintains the simplicity of convolution while achieving the efficiency of a zero-aware system.

The RED Architecture

RED introduces two core architectural innovations to optimize deconvolution on ReRAM:

1. Pixel-wise Mapping

Instead of mapping a large kernel to a single ReRAM crossbar, RED decomposes the kernel into $K_H \times K_W$ smaller "sub-crossbars." This mapping ensures that only the weights intended to multiply with non-zero input pixels are stored and activated. By pre-filtering the structured sparsity inherent in deconvolution, RED avoids the "multiplication by zero" bottleneck.

2. Zero-skipping Data Flow

RED bypasses inserted zeros entirely, feeding only original, non-zero input pixels into the sub-crossbars. A key insight of the RED design is leveraging the ReRAM crossbar's physical properties: partial results from sub-crossbars are summed vertically using the native bitline structure. This "physics-as-logic" approach eliminates the need for the external digital adders typically required for the "overlap-and-add" stage in deconvolution.

ReRAM crossbar structure, kernel mapping, and the overall PIM core architecture.

To manage hardware resources, RED also incorporates an area-parallelism trade-off strategy. For exceptionally large kernels, operations can be folded into multiple cycles, saving physical chip area at the expense of some latency.

Evaluation and Key Results

The RED accelerator was evaluated using a modified version of NeuroSim+, a standard benchmark for ReRAM-based neural network accelerators at the 65nm node. The researchers tested the design against several models, including DCGAN, Improved GAN, SNGAN, and voc-fcn8s.

Compared to state-of-the-art ReRAM designs, RED demonstrated significant improvements:

  • Performance: Achieved a speedup ranging from 3.69× to 31.15×.
  • Energy Efficiency: Reduced energy consumption by 8% to 88.36%.
  • Area Overhead: These gains come with a 22.14% increase in area, primarily due to the more complex peripheral drivers required for the sub-crossbar architecture.

Discussion and Insights

A central takeaway from the RED project is that structured sparsity is a feature. Unlike random weight pruning, the zeros in deconvolution are mathematically predictable based on the stride. RED exploits this predictability to reorganize hardware layout rather than relying on complex dynamic controllers.

Furthermore, the "Quadratic Stride Penalty" observed in traditional designs—where redundancy grows quadratically with the stride—is mitigated by RED. In fact, RED’s relative speedup improves as the up-sampling task becomes more demanding, making it highly scalable for future high-resolution generative AI applications.

Limitations and Future Work

Despite its performance, the 22% area increase may be a constraint for edge or mobile devices. While the area-efficient folding mode offers a mitigation strategy, it involves a trade-off with performance. Additionally, as kernel sizes grow extremely large, the routing complexity between sub-crossbars may present physical design challenges. Future research will focus on optimizing the balance between sub-array count and total throughput for various classes of generative models.

Summary updated

BibTeX
@inproceedings{fan2019red,
  author = {Zichen Fan and Ziru Li and Bing Li and Yiran Chen and Hai Helen Li},
  title = {{RED: A ReRAM-based Deconvolution Accelerator}},
  booktitle = {DATE},
  year = {2019},
  doi = {10.23919/date.2019.8715103},
}
Figure