An Area and Energy Efficient Design of Domain-Wall Memory-Based Deep Convolutional Neural Networks using Stochastic Computing

Xiaolong Ma, Yipeng Zhang, Geng Yuan, Ao Ren, Zhe Li, Jie Han, Jingtong Hu, Yanzhi Wang

Introduction

Deep Convolutional Neural Networks (DCNNs) have become the gold standard for artificial intelligence tasks, yet their deployment on "edge" devices—such as wearables and IoT sensors—remains constrained by significant memory and power requirements. These devices typically operate with limited battery life and minimal physical space, making the "memory-hungry" nature of traditional DCNN architectures a major bottleneck. This paper introduces DW-CNN, a hardware framework that synergistically combines Stochastic Computing (SC) with Domain-Wall Memory (DWM) to achieve ultra-efficient, non-volatile deep learning hardware.

The Memory Bottleneck in Edge AI

Traditional hardware designs for DCNNs rely on SRAM or DRAM for weight storage. While effective, these technologies are bulky and "leaky," consuming power even when idle. Furthermore, they are volatile, meaning data is lost when the device is powered off—a significant drawback for IoT devices that frequently enter deep-sleep modes to conserve energy.

Comparison of key factors of different memory technologies, highlighting DWM's low cell size and idle power.

As shown in Figure 1, Domain-Wall Memory (DWM) offers a compelling alternative. It is an emerging spintronic technology where bits are stored in ferromagnetic nanowires, providing a density roughly 40× higher than SRAM. Crucially, DWM is non-volatile and exhibits extremely low idle power, making it ideal for the "instant-on" functionality required in edge computing.

Methods: The DW-CNN Framework

The authors propose a three-pillared approach to optimize DCNNs for hardware efficiency:

1. Stochastic Computing (SC) Logic

Instead of traditional binary arithmetic, DW-CNN utilizes Stochastic Computing, which represents numbers as streams of random bits. This shift radically simplifies mathematical operations: complex multipliers are replaced by simple XNOR gates, and addition is handled by Approximate Parallel Counters (APC).

Stochastic computing logic components including inner product, pooling, and activation functions.

2. Domain-Wall Memory Integration

A key insight of this work is the "natural fit" between DWM and SC. DWM reads data sequentially as bits "shift" along a nanowire, a behavior that perfectly matches the serial nature of stochastic bitstreams. By storing weights directly as stochastic streams in DWM, the researchers eliminated the need for area-heavy binary-to-stochastic conversion circuitry (RNGs and comparators).

3. Optimization and Resource Sharing

To further enhance efficiency, the framework employs:

  • Precision Optimization: Simulations identified 7-bit precision as the optimal balance between accuracy and storage requirements.
  • Hardware Multiplexing: A novel resource-sharing scheme for fully-connected layers allows multiple neurons to share the same APC hardware, significantly reducing the total silicon area.

Key Results and Evaluation

The framework was evaluated using the MNIST handwritten digit dataset on a LeNet-5 architecture. The results demonstrate that the efficiency gains do not come at the cost of performance:

  • Area Efficiency: For a 128-bit stochastic number, DWM-based storage required only 0.15 mm², a massive reduction compared to the 3.64 mm² required by SRAM.
  • Power Savings: The resource-sharing scheme in fully-connected layers reduced power consumption by up to 17.35× (from 473.31 mW to 69.02 mW for 1024-bit streams).
  • Accuracy: The system maintained an application-level accuracy of ~99% on the MNIST dataset, proving the feasibility of this approximate computing approach.

Conclusion and Future Work

DW-CNN demonstrates that the integration of DWM and SC can overcome the primary hurdles of deploying AI at the edge. While DWM is still an emerging technology and further research is needed to scale these designs for more complex datasets like ImageNet, this work provides a rigorous foundation for the next generation of non-volatile, energy-efficient AI hardware.

Summary updated

BibTeX
@inproceedings{ma2018area,
  author = {Xiaolong Ma and Yipeng Zhang and Geng Yuan and Ao Ren and Zhe Li and Jie Han and Jingtong Hu and Yanzhi Wang},
  title = {{An Area and Energy Efficient Design of Domain-Wall Memory-Based Deep Convolutional Neural Networks using Stochastic Computing}},
  booktitle = {ISQED},
  year = {2018},
  doi = {10.1109/isqed.2018.8357306},
}
Figure