Data Driven Optimizations for MTJ based Stochastic Computing

Ankit Mondal, Ankur SrivastavaarXiv 2018

Introduction

Stochastic Computing (SC) represents an alternative to traditional binary arithmetic by processing data as streams of random bits. In this paradigm, a value is encoded as the frequency of "1"s in a bitstream (e.g., 1011 represents 0.75). While SC enables extremely simple hardware implementations—such as performing multiplication with a single AND gate—the generation of these random bitstreams, known as Stochastic Number Generation (SNG), remains a significant energy bottleneck.

Traditional SNGs often rely on bulky Linear Feedback Shift Registers (LFSRs). Magnetic Tunnel Junctions (MTJs) have emerged as a promising alternative due to their inherent probabilistic switching behavior when pulsed. However, MTJs exhibit physical asymmetries: switching from Parallel to Anti-Parallel (0 to 1) is more energy-efficient than the reverse. Furthermore, standard designs waste energy by resetting the device every cycle. This paper introduces two data-driven hardware optimizations—Smart Reset and Biased MTJ-SNG—to address these inefficiencies.

Methods

The authors propose a low-power SNG design leveraging MTJ switching in the "precessional mode" (ultra-fast switching under 3ns). Two primary techniques are introduced:

  1. Smart Reset (SR): Standard SNGs reset the MTJ to a base state every cycle. The proposed SR technique uses a 2:1 multiplexer to determine if the MTJ switched in the previous cycle. If no switch occurred, the reset pulse is bypassed, significantly reducing energy waste.
  2. Biased MTJ-SNG (BMS): MTJ switching energy is lower for generating probabilities ($p$) greater than 0.5. The BMS technique exploits this by generating $1-p$ when $p < 0.5$ is required, then inverting the output bits to achieve the desired value more efficiently.
Hardware implementation of the proposed Biased MTJ-SNG and multiplier circuit.

The researchers also designed an optimized multiplier circuit that integrates these logic-level changes, utilizing multiplexers to select the most energy-efficient representation for input operands.

Experimental Setup

The design was evaluated using a technology-agnostic MTJ Spice Model (20 x 58 nm² dimensions) to simulate physical behavior. Numerical Simulations were conducted to calculate energy consumption across a wide probability range ($p = 0.01$ to $0.99$).

Key Insights

A central insight of this work is that physical energy asymmetry in MTJs can be leveraged as a feature. Since P->AP switching is cheaper (0.46 pJ) than AP->P (0.93 pJ), the system is designed to favor the more efficient path, correcting the output via logic gates. This results in "data-driven" power consumption, where the energy cost depends on the specific value being processed. By avoiding the high-energy regime near $p=0.5$ through the BMS technique, the system operates consistently at more efficient points.

Key Results

The integration of SR and BMS techniques yields substantial energy improvements over baseline MTJ-SNG designs.

Energy per bit comparison between the baseline and optimized SNG designs.
  • Energy Savings: The combined optimizations achieve average energy savings of 54% per bit. Savings range from 29% at $p=0.5$ to a peak of 83% at $p=0.99$.
  • Multiplier Efficiency: The stochastic multiplier design reduced average energy consumption by 46% (from 1.95 pJ to 1.06 pJ).
  • Performance Gains: Shorter pulse widths enabled by the Biased SNG resulted in a 14% reduction in computation time for the multiplier.
  • Scalability: Energy benefits were found to be consistent across various bit-precisions, from 8-bit to 12-bit.

Limitations and Future Work

While the proposed optimizations significantly reduce energy, they introduce a small amount of circuit overhead due to additional control logic and multiplexers. Future research could investigate the performance of these techniques in more complex SC architectures, such as deep neural networks. Additionally, addressing the thermal sensitivity of MTJ switching in real-world hardware implementations remains an important area for future exploration.

Summary updated

BibTeX
@misc{mondal2018data,
  author = {Ankit Mondal and Ankur Srivastava},
  title = {{Data Driven Optimizations for MTJ based Stochastic Computing}},
  year = {2018},
  eprint = {1804.03228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.03228},
}
Figure