Towards Efficient Neural Networks On-a-chip: Joint Hardware-Algorithm Approaches

Yu Cao, Xiaocong Du, Gokul Krishnan, Abinash Mohanty, Zheng Li, Gouranga Charan, Yu Cao 0001arXiv 2019

Abstract

Deploying Deep Neural Networks (DNNs) on Network-on-Chip (NoC) architectures using emerging memory like RRAM faces significant challenges due to device variations and interconnection overheads. This paper proposes a three-pronged strategy: Random Sparse Adaptation (RSA) to handle hardware defects, Small-World pruning to optimize routing, and Continuous Growth and Pruning (CGaP) for efficient model scaling. Experimental results demonstrate 10-100x speedups in adaptation and massive model compression while maintaining baseline accuracy.

Introduction

The integration of DNNs into edge devices requires efficient hardware implementations. Resistive Random-Access Memory (RRAM) crossbar arrays offer high density and energy efficiency but are plagued by "stuck-at-faults" and write variations. Furthermore, the over-parameterization of DNNs leads to excessive memory and routing bottlenecks in NoC designs. This research addresses these hurdles through a co-design approach that bridges the gap between AI algorithms and physical hardware constraints.

Methodology

Random Sparse Adaptation (RSA)

To circumvent the slow process of perfectly programming every RRAM cell, RSA treats the bulk RRAM as read-only memory. A small subset of weights (<5%) is duplicated into a high-precision, on-chip Register File (RF) array. These "helper" cells are the only components updated during training to compensate for the inherent errors in the RRAM substrate.

RSA implementation using a compact array and a high-precision RF array for randomization and adaptation.

Small-World Based Pruning

Standard random pruning often results in irregular connectivity that is difficult to route on-chip. By pruning networks to follow a "Small-World" graph structure—characterized by high local clustering and short path lengths—the authors create models that are "locally dense and globally sparse," significantly reducing interconnection overhead.

Continuous Growth and Pruning (CGaP)

Rather than pruning a pre-trained large model, CGaP starts with a minimal "seed" network (as small as 0.1% of the baseline). It employs saliency-based growth to add neurons where they contribute most to performance, followed by pruning to maintain a compact form. This mimics biological structural plasticity, allowing the network to discover an optimal size tailored to the specific dataset complexity.

Key Results and Discussion

The proposed methods were evaluated on MNIST, CIFAR-10, and CIFAR-100 datasets.

RSA Performance and Speedup

RSA demonstrated a significant advantage over traditional Read-Verify-Write (R-V-W) methods. In a 9-layer CNN for CIFAR-10, the inclusion of 5% RSA cells improved accuracy by over 10% compared to uncompensated RRAM. Crucially, the adaptation process was 10x to 100x faster than traditional methods.

Inference accuracy vs. time for LeNet on MNIST and CNN on CIFAR-10, showing significant speedups using RSA.

Model Compression

Small-World pruning achieved 97.7% compression on LeNet-5 and 66% on VGG-16 without sacrificing accuracy. Meanwhile, CGaP successfully adapted network widths to match dataset complexity, proving its effectiveness in structural discovery.

Conclusion

This joint hardware-algorithm approach provides a robust framework for deploying DNNs on RRAM-based NoCs. By leveraging RSA for defect tolerance and Small-World/CGaP for structural efficiency, the system achieves high performance with minimal hardware overhead. Future work will explore the power-area trade-offs of the RF array and the scalability of these techniques to larger architectures like Transformers.

Summary updated

BibTeX
@misc{cao2019towards,
  author = {Yu Cao and Xiaocong Du and Gokul Krishnan and Abinash Mohanty and Zheng Li and Gouranga Charan and Yu Cao},
  title = {{Towards Efficient Neural Networks On-a-chip: Joint Hardware-Algorithm Approaches}},
  year = {2019},
  eprint = {1906.08866},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.08866},
}
Figure