TSB: Tiny Shared Block for Efficient DNN Deployment on NVCIM Accelerators

Yifan Qin, Zheyu Yan, Zixuan Pan, Wujie Wen, Xiaobo Sharon Hu, Yiyu Shi · DOI

Introduction

Deep Neural Networks (DNNs) are increasingly constrained by the "memory wall," where the energy cost of moving data between processors and memory dwarfs the cost of computation. Non-volatile computing-in-memory (NVCIM) accelerators, utilizing devices like RRAM or FeFETs, offer a promising solution by performing computations directly within memory arrays. However, these hardware platforms suffer from significant device variation—manufacturing non-idealities and stochastic fluctuations that introduce "noise" into programmed weights. This noise leads to severe accuracy degradation when deploying pre-trained models.

Existing mitigation strategies, such as noise-injection training or per-chip retraining, are often computationally prohibitive or slow. High-precision "write-verify" programming can eliminate noise but is too energy-intensive for large-scale models. This paper introduces the Tiny Shared Block (TSB), a lightweight architectural "patch" designed to efficiently compensate for hardware noise.

Methodology: The Tiny Shared Block

The core innovation is the insertion of a TSB—a simple 1x1 convolution layer—after convolutional layers in the DNN. The TSB acts as a universal denoiser by learning to decouple and suppress feature errors caused by the underlying hardware noise.

Overview of the TSB deployment flow and architectural tensor operations.

Massive Weight Sharing

To minimize overhead, the TSB employs massive weight sharing. A single set of weights is shared across all layers and all channels within the network. For a ResNet-18 model, this reduces the additional parameter count to a negligible 0.15% of the total weights. This extreme sharing allows the TSB to capture common statistical errors introduced by the hardware without requiring layer-specific parameters.

Two-Stage Training and Deployment

The deployment process follows a two-stage approach:

  1. Early-Stop Backbone Training: The primary model (backbone) is trained until it reaches a stable performance level, then training is halted early to save time.
  2. TSB Fine-Tuning: The backbone is deployed to the noisy NVCIM crossbars. Once programmed, the device noise becomes a fixed, deterministic "signature." The TSB is then trained for a few epochs (typically <10) to learn a transformation that compensates for this specific hardware signature.
The TSB training phase uses the fixed, noisy backbone weights to learn compensation parameters in just 10 epochs.

Selective Write-Verify

By focusing on the TSB, the system avoids the need for expensive high-precision programming for the entire model. Only the tiny fraction of weights belonging to the TSB undergo the slow "write-verify" process, while the millions of backbone weights are programmed quickly, accepting their inherent noise.

Experimental Results

The TSB method was evaluated on LeNet-3 (MNIST), VGG-8 (CIFAR-10), and ResNet-18 (Tiny ImageNet).

  • Accuracy Recovery: TSB achieved a 20x improvement in accuracy gap recovery for LeNet and VGG, and a 6.2x improvement for ResNet-18 compared to standard noise-injection baselines.
  • Efficiency: The total training time was reduced by 5x due to the early-stopping of the backbone and the rapid convergence of the TSB.
  • Deployment Speed: Since less than 0.4% of weights require verification, the hardware mapping process is significantly accelerated.
  • Hardware Overhead: Simulations using NeuroSim indicate that the Energy-Delay Product (EDP) overhead remains low, ranging from 0.07x to 0.86x depending on the specific hardware configuration.

Conclusion

The Tiny Shared Block provides a highly efficient "denoising" mechanism for NVCIM accelerators. By treating hardware noise as a deterministic feature transformation and utilizing massive weight sharing, TSB enables high-accuracy deployment with minimal training and hardware overhead. This approach effectively bridges the gap between ideal software models and noisy physical hardware, paving the way for more robust and energy-efficient AI edge devices.

Summary updated

BibTeX
@inproceedings{qin2024tsb,
  author = {Yifan Qin and Zheyu Yan and Zixuan Pan and Wujie Wen and Xiaobo Sharon Hu and Yiyu Shi},
  title = {{TSB: Tiny Shared Block for Efficient DNN Deployment on NVCIM Accelerators}},
  booktitle = {ICCAD},
  year = {2024},
  doi = {10.1145/3676536.3676820},
}
Figure