Pruning for Improved ADC Efficiency in Crossbar-based Analog In-memory Accelerators

Timur Ibrayev, Isha Garg, Indranil Chakraborty, Kaushik RoyarXiv 2024

Abstract

Deep learning has proved successful in many applications but suffers from high computational demands and requires custom accelerators for deployment. Crossbar-based analog in-memory architectures are attractive for acceleration of deep neural networks (DNN), due to their high data reuse and high efficiency enabled by combining storage and computation in memory. However, they require analog-to-digital converters (ADCs) to communicate crossbar outputs. ADCs consume a significant portion of energy and area of every crossbar processing unit, thus diminishing the potential efficiency benefits. Pruning is a well-studied technique to improve the efficiency of DNNs but requires modifications to be effective for crossbars. In this paper, we motivate crossbar-attuned pruning to target ADC-specific inefficiencies. This is achieved by identifying three key properties (dubbed D.U.B.) that induce sparsity that can be utilized to reduce ADC energy without sacrificing accuracy. The first property ensures that sparsity translates effectively to hardware efficiency by restricting sparsity levels to Discrete powers of 2. The other 2 properties encourage columns in the same crossbar to achieve both Unstructured and Balanced sparsity in order to amortize the accuracy drop. The desired D.U.B. sparsity is then achieved by regularizing the variance of $L_{0}$ norms of neighboring columns within the same crossbar. Our proposed implementation allows it to be directly used in end-to-end gradient-based training. We apply the proposed algorithm to convolutional layers of VGG11 and ResNet18 models, trained on CIFAR-10 and ImageNet datasets, and achieve up to 7.13x and 1.27x improvement, respectively, in ADC energy with less than 1% drop in accuracy.

Introduction

Analog In-Memory Computing (AiMC) using resistive crossbar arrays represents a promising frontier for accelerating Deep Neural Networks (DNNs). By performing Matrix-Vector Multiplication (MVM) directly within memory structures, these systems offer massive theoretical efficiency gains. However, a significant "analog tax" exists in the form of Analog-to-Digital Converters (ADCs). ADCs are necessary for inter-layer communication but are notoriously energy-intensive, often accounting for up to 80% of total energy and 70% of the area in such accelerators.

While pruning is a standard technique to reduce model size, traditional methods often fail to translate algorithmic sparsity into hardware energy savings for AiMC. Standard unstructured pruning ignores hardware structure, while rigid structured pruning often leads to significant accuracy loss. This work introduces a "crossbar-attuned" pruning strategy designed to align neural network sparsity with the specific hardware constraints of ADCs.

Methods: The D.U.B. Framework

The core of the proposed approach is the D.U.B. framework, which identifies three essential properties for efficient crossbar pruning:

  1. Discretized (D): ADC energy savings typically occur in discrete steps (e.g., a 50% reduction in sparsity allows for a 1-bit reduction in precision). The D.U.B. method restricts sparsity levels to these hardware-friendly thresholds (powers of 2) to ensure that pruning efforts directly translate to energy dividends.
  2. Unstructured (U): To maintain high accuracy, the method allows individual weights to be zeroed out flexibly within a column, rather than removing entire columns or rows.
  3. Balanced (B): In many architectures, multiple columns share a single ADC. The ADC's required precision is dictated by the Least Sparse Column (LSC). By balancing sparsity across all columns in a tile, the shared ADC can be downsized more effectively.
The D.U.B. pruning framework: Discretized (D) for hardware-friendly thresholds, Unstructured (U) for accuracy, and Balanced (B) for shared ADC efficiency.

To implement these properties during training, the authors utilize a differentiable approximation of sparsity (the Hoyer-Square metric) and gradient gating. A regularization force is applied to minimize the variance of sparsity across columns, pushing the network toward a state that optimizes ADC efficiency without sacrificing predictive performance.

Experimental Results

The D.U.B. method was evaluated using VGG11 on the CIFAR-10 dataset and ResNet18 on the ImageNet (2012) dataset. These benchmarks represent varying levels of complexity and architectural density.

For VGG11 on CIFAR-10, the method achieved between 4.00× and 7.13× improvement in ADC energy savings (varying by tile size) with a negligible accuracy drop of less than 0.6%. On the more challenging ImageNet dataset with ResNet18, the method achieved a 1.27× improvement in ADC energy. While more modest, this result is significant given the inherent difficulty of pruning compact architectures like ResNet18.

Experimental results for VGG11 on CIFAR-10 and ResNet18 on ImageNet, comparing the D.U.B. method against baselines and other pruning strategies.

The results demonstrate that the D.U.B. method consistently outperforms standard unstructured pruning and various structured pruning methods (column, row, and tile pruning) in terms of the accuracy-vs-energy trade-off.

Conclusion and Future Work

This research highlights that ADC precision is governed by the "weakest link"—the least sparse column in a shared hardware block. By focusing on balancing and discretizing sparsity, the D.U.B. method unlocks energy savings that traditional pruning misses.

Future work will focus on physical hardware implementation to validate these normalized energy models. Additionally, exploring how D.U.B. interacts with different weight-mapping schemes, such as bit-slicing, could further enhance the efficiency of analog in-memory accelerators.

Summary updated

BibTeX
@misc{ibrayev2024pruning,
  author = {Timur Ibrayev and Isha Garg and Indranil Chakraborty and Kaushik Roy},
  title = {{Pruning for Improved ADC Efficiency in Crossbar-based Analog In-memory Accelerators}},
  year = {2024},
  eprint = {2403.13082},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.13082},
}
Figure