Skip to main content
QUICK REVIEW

[Paper Review] Implementation of a Binary Neural Network on a Passive Array of Magnetic Tunnel Junctions

Jonathan M. Goodwill, Nitin Prasad|arXiv (Cornell University)|Dec 16, 2021
Neural Networks and ApplicationsComputer Science67 references15 citations
TL;DR

This paper demonstrates high-accuracy inference of a binary neural network using a passive 15×15 array of magnetic tunnel junctions (MTJs), leveraging their inherent binary operation and low power. Despite device non-idealities such as variation and parasitic resistance, the authors achieve up to 95.3% classification accuracy on the Wine dataset through optimized network parameter tuning, proving the feasibility of robust hardware mapping for in-memory AI accelerators.

ABSTRACT

The increasing scale of neural networks and their growing application space have produced demand for more energy- and memory-efficient artificial-intelligence-specific hardware. Avenues to mitigate the main issue, the von Neumann bottleneck, include in-memory and near-memory architectures, as well as algorithmic approaches. Here we leverage the low-power and the inherently binary operation of magnetic tunnel junctions (MTJs) to demonstrate neural network hardware inference based on passive arrays of MTJs. In general, transferring a trained network model to hardware for inference is confronted by degradation in performance due to device-to-device variations, write errors, parasitic resistance, and nonidealities in the substrate. To quantify the effect of these hardware realities, we benchmark 300 unique weight matrix solutions of a 2-layer perceptron to classify the Wine dataset for both classification accuracy and write fidelity. Despite device imperfections, we achieve software-equivalent accuracy of up to 95.3 % with proper tuning of network parameters in 15 x 15 MTJ arrays having a range of device sizes. The success of this tuning process shows that new metrics are needed to characterize the performance and quality of networks reproduced in mixed signal hardware.

Motivation & Objective

  • To address the von Neumann bottleneck in AI hardware by implementing neural network inference directly in memory using passive MTJ arrays.
  • To quantify the impact of hardware non-idealities—such as device variation, write errors, parasitic resistance, and substrate nonidealities—on neural network performance.
  • To evaluate whether offline training with weight matrix variations can yield hardware-implementable models that maintain high inference accuracy despite physical imperfections.
  • To establish that new performance metrics are needed to characterize the quality of neural networks mapped onto mixed-signal hardware.

Proposed method

  • The authors trained 300 distinct weight matrix solutions for a 2-layer perceptron on the Wine dataset using different random initializations.
  • Each weight matrix was mapped to a 15×15 passive MTJ crossbar array, where synaptic weights were encoded as device conductance states.
  • The system performed vector-matrix multiplication (VMM) via analog current summation across bitlines, assuming linear superposition of MTJ currents under low-voltage operation.
  • The authors verified linear behavior of the MTJ array by comparing parallel and serial current measurements across input vectors, confirming <3% RMS deviation up to 0.5 V.
  • Network performance was evaluated using classification accuracy and RMS deviation between simulated and hardware-implemented weight matrices.
  • Optimal network parameters were determined by tuning the weight normalization constant to maximize experimental accuracy, independent of theoretical optimization.

Experimental results

Research questions

  • RQ1Can a passive MTJ array achieve software-equivalent inference accuracy for a binary neural network despite device non-idealities?
  • RQ2How do hardware imperfections such as device variation and parasitic resistance affect the performance of a mapped neural network?
  • RQ3Does offline training with multiple weight matrix solutions improve the likelihood of achieving high accuracy when mapped to physical hardware?
  • RQ4Is the weight normalization constant that minimizes RMS deviation between simulated and hardware weights also optimal for maximizing actual inference accuracy?
  • RQ5Can linear superposition be reliably assumed in a passive MTJ array for analog VMM computation?

Key findings

  • The authors achieved a maximum inference accuracy of 95.3% on the Wine dataset using a 15×15 passive MTJ array, matching software-level performance.
  • Despite device-to-device variations and parasitic resistances, the system maintained high accuracy through careful tuning of network parameters, particularly the weight normalization constant.
  • The median inference accuracy across 300 weight matrix solutions was 95.3%, demonstrating consistent performance across diverse hardware mappings.
  • The RMS deviation between simulated and hardware-implemented weight matrices was minimized by tuning the normalization constant, but this did not always maximize actual accuracy, indicating a disconnect between simulation fidelity and real-world performance.
  • Linear superposition of MTJ currents was validated experimentally, with relative RMS deviation below 3% and typically around 1% across applied voltages up to 0.5 V.
  • Measurement uncertainty from individual device current noise (≈10 nA, or ≈1%) contributed significantly to the total error, but did not degrade classification accuracy beyond 2%.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.