TL;DR
This paper introduces Crossbar-Aware Dendritic Convolution (CADC), a novel method that injects a neuroscience-inspired nonlinear function into in-memory computing (IMC) crossbars. By zeroing out negative partial sums, CADC dramatically increases sparsity, leading to significant reductions in data transfer, buffering, and accumulation overheads, while maintaining high accuracy and achieving substantial speedups and energy efficiency improvements.
What Problem Does This Paper Address?
Convolutional Neural Networks (CNNs) are computationally demanding, and In-Memory Computing (IMC) using crossbars is a promising approach to accelerate them by performing computations directly where data is stored, thus avoiding costly data movement. However, large CNN layers often exceed the physical size of a single crossbar, necessitating partitioning. This partitioning generates a large number of intermediate results called "partial sums" (psums). These psums require significant buffering, transfer between different memory units, and complex accumulation, which collectively introduce substantial system-level overhead and energy consumption. Existing software-based solutions often degrade accuracy, while hardware solutions face manufacturing challenges.
Methods
The core innovation is Crossbar-Aware Dendritic Convolution (CADC). Inspired by biological dendrites that perform nonlinear processing on incoming signals, CADC embeds a nonlinear function, specifically one that clamps negative partial sums to zero, directly within the crossbar computation. This is achieved by modifying the Analog-to-Digital Converter (ADC) within the IMC architecture.
The key steps are:
- Dendritic Function (f()): A nonlinear function is applied to the psums generated by each crossbar. The primary function explored is ReLU (zeroing negative values), but others like sublinear (√x), supralinear (kx²), and tanh were also evaluated.
- Sparsity Induction: By zeroing negative psums, CADC dramatically increases the sparsity of these intermediate values.
- Zero-Compression and Zero-Skipping: The induced sparsity enables two crucial optimizations:
- Zero-compression: Sparse data can be represented more compactly using bitmasks, reducing buffer and transfer requirements.
- Zero-skipping: Accumulation circuits can skip computations involving zero psums, significantly reducing accumulation overhead.
- Hardware Integration: The dendritic function is implemented within the IMC macro, specifically by leveraging a modified ADC (IMA) that can perform nonlinear operations. This avoids the need for external processing units.
Datasets
The proposed CADC method was evaluated on the following standard datasets:
- MNIST: Used for evaluating LeNet-5.
- CIFAR-10: Used for evaluating ResNet-18.
- CIFAR-100: Used for evaluating VGG-16.
- DVS Gesture: Used for evaluating a Spiking Neural Network (SNN).
Key Insights and Ideas
- Neuroscience as a Hardware Design Blueprint: The paper effectively demonstrates how principles from biological neural processing (dendritic computation) can be directly translated into hardware optimizations for artificial neural networks, offering a powerful paradigm shift.
- Sparsity is Key to IMC Efficiency: The core insight is that by actively creating sparsity in intermediate computations (psums), significant system-level bottlenecks in IMC can be overcome. This is a proactive approach rather than relying on inherent sparsity in the network.
- Integrated Nonlinearity is Crucial: Embedding the dendritic function directly within the crossbar's ADC is critical. This avoids the overhead of off-chip processing and makes the optimization hardware-friendly.
- ADC Noise Mitigation: The induced sparsity not only reduces computational overhead but also makes the system more robust to ADC quantization noise, a common challenge in IMC.
Key Results
- Psum Reduction: CADC significantly reduces psums, achieving 80% reduction in LeNet-5, 54% in ResNet-18, 66% in VGG-16, and up to 88% in SNN.
- Overhead Reduction:
- Buffer and transfer overhead reduced by 29.3% due to zero-compression.
- Accumulation overhead reduced by 47.9% due to zero-skipping.
- Accuracy: CADC maintains high accuracy, with degradation typically less than 1% across various models and crossbar sizes. For example, accuracy changes were within +0.19% for LeNet-5, -0.27% for ResNet-18, +1.60% for VGG-16, and +1.32% for SNN.
- ADC Noise Robustness: Accuracy loss due to ADC quantization noise was minimal (e.g., 0.01% for LeNet-5, 0.1% for ResNet-18).
- Performance: A SRAM-based IMC implementation of CADC achieved 2.15 TOPS and 40.8 TOPS/W for ResNet-18, realizing a 11x-18x speedup and 1.9x-22.9x energy efficiency improvement compared to existing IMC accelerators.
Limitations and Future Work
- Function Selection: While ReLU was found to be optimal for ANNs and sublinear for SNNs, the paper suggests further exploration of other nonlinear functions and their impact on different network architectures.
- Hardware Overhead of f(): The paper mentions that implementing f() within the ADC adds some hardware complexity, though it's presented as manageable and beneficial overall. Future work could focus on minimizing this specific overhead.
- Generalizability: While tested on multiple models and datasets, further validation on larger, more complex models and diverse hardware platforms (e.g., RRAM) would be beneficial. The authors state the method is general and applicable to RRAM IMC accelerators.
- Process Variations: The hardware results demonstrate robustness to temperature and process variations, but further extensive testing across a wider range of conditions could be explored.
Summary updated