SWANN: Shuffling Weights in Crossbar Arrays for Enhanced DNN Accuracy in Deeply Scaled Technologies

Jeffry Victor, Dong Eun Kim, Chunguang Wang, Kaushik Roy, Sumeet GuptaarXiv 2024 · DOI

Abstract

Deep neural network (DNN) accelerators employing crossbar arrays capable of in-memory computing (IMC) are highly promising for neural computing platforms. However, in deeply scaled technologies, interconnect resistance severely impairs IMC robustness, leading to a drop in the system accuracy. To address this problem, we propose SWANN - a technique based on shuffling weights in crossbar arrays which alleviates the detrimental effect of wire resistance on IMC. For 8T-SRAM-based 128x128 crossbar arrays in 7nm technology, SWANN enhances the accuracy from 47.78% to 83.5% for ResNet-20/CIFAR-10. We also show that SWANN can be used synergistically with Partial-Word-LineActivation, further boosting the accuracy. Moreover, we evaluate the implications of SWANN for compact ferroelectric-transistorbased crossbar arrays. SWANN incurs minimal hardware overhead, with less than a 1% increase in energy consumption. Additionally, the latency and area overheads of SWANN are ~1% and ~16%, respectively when 1 ADC is utilized per crossbar array.

Introduction

In-memory computing (IMC) using crossbar arrays is a transformative approach to overcoming the "von Neumann bottleneck" by performing matrix-vector multiplications (MVM) directly within the memory hierarchy. However, as semiconductor technology scales down to 7nm and beyond, the physical limitations of interconnects become a dominant factor in system performance and reliability. This paper introduces SWANN, a training-free technique designed to rescue the accuracy of IMC accelerators at deeply scaled technology nodes.

The Challenge of Interconnect Resistance

As technology nodes shrink, copper interconnects become increasingly thin and resistive. This rise in interconnect resistance is not linear; at deeply scaled nodes like 7nm, effects such as sidewall scattering significantly amplify the resistance per unit length.

Normalized line resistance per unit length across technology nodes, showing the sharp increase at 7nm.

This interconnect resistance ($R_W$) causes significant voltage drops (IR drops) across the crossbar array. In an ideal IMC system, the output current of a column would be a perfect sum of weights multiplied by inputs. However, in 7nm implementations, cells located further from the sensing peripherals (ADCs or Sense Amplifiers) suffer from "source degeneration." This phenomenon, particularly damaging for SRAM and FeFET cells, reduces both $V_{GS}$ and $V_{DS}$, meaning distant cells contribute less current than intended. This hardware non-ideality leads to computational errors that cause DNN inference accuracy to plummet as array sizes increase.

The SWANN Methodology

To mitigate these hardware non-idealities without the need for computationally expensive hardware-aware retraining, we propose SWANN. The core principle of SWANN is to strategically re-map weights based on their physical location relative to the sensing peripherals.

Crossbar array architectures illustrating the parasitic resistances ($R_D, R_S, R_W$) that contribute to IR drops and source degeneration.

The SWANN methodology involves two primary steps:

  1. Weight Shuffling: The system calculates the "row-sum" (the total number of active bits) for every row in a weight matrix. Rows with the highest conductance (the "heaviest" rows) are sorted and mapped to the physical rows closest to the sensing peripherals. By placing the most active bits near the output, the cumulative impact of wire resistance is minimized.
  2. Input Re-mapping: Since the weights are shuffled, the input activations must be dynamically re-routed to their corresponding new row positions at runtime. This is handled by a hardware Input Re-mapping Unit (IRU) consisting of Look-Up Tables (LUTs) and buffers.

Synergy with Distributed PWA

Standard Partial Word-Line Activation (PWA), which activates only a subset of rows to manage power and precision, can be counterproductive with SWANN if all "heavy" rows are activated simultaneously, potentially overwhelming the ADC. To address this, we introduce Distributed PWA (DPWA). DPWA interleaves heavy and light rows across different cycles, balancing the current load and further enhancing accuracy.

Experimental Results

We evaluated SWANN using a ResNet-20 architecture on the CIFAR-10 dataset. For a 128x128 8T-SRAM crossbar at 7nm, the baseline accuracy was a mere 47.78% due to interconnect resistance. Applying SWANN boosted this accuracy to 83.5%. When combined with DPWA, the accuracy reached 88.83%, nearing the software-ideal baseline of 92.8%.

SWANN also proved effective for compact ferroelectric-transistor (FeFET) based arrays, improving accuracy from 84.85% to 87.53%. Crucially, these gains come with minimal overhead:

  • Energy: Less than 1% increase in total consumption.
  • Latency: Approximately 1.2% overhead when using 1 ADC per crossbar.
  • Area: About 16% overhead for the re-mapping logic when 1 ADC is used, a percentage that drops significantly as the number of ADCs increases.

Conclusion

SWANN provides a robust, training-free solution to the accuracy degradation caused by interconnect resistance in deeply scaled IMC accelerators. By leveraging physical bit-cell location and intelligent weight mapping, SWANN enables high-accuracy DNN inference even at the 7nm node with negligible power and latency costs.

Summary updated

BibTeX
@misc{victor2024swann,
  author = {Jeffry Victor and Dong Eun Kim and Chunguang Wang and Kaushik Roy and Sumeet Gupta},
  title = {{SWANN: Shuffling Weights in Crossbar Arrays for Enhanced DNN Accuracy in Deeply Scaled Technologies}},
  year = {2024},
  eprint = {2406.14706},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14706},
}
Figure