Javascript must be enabled to continue!
Quantized artificial neural networks implemented with spintronic stochastic computing
View through CrossRef
Abstract
An artificial neural network (ANN) inference involves matrix vector multiplications that require a very large number of multiply and accumulate operations, resulting in high energy cost and large device footprint. Stochastic computing (SC) offers a less resource-intensive ANN implementation with minimal accuracy loss. Random number generators (RNG) are required to implement SC in hardware. These can be realized through stochastic-magnetic tunnel junctions (s-MTJ), where the energy barrier to switch between the ‘up’ and ‘down’ states is designed to be small, enabling thermal noise to generate a random bit stream. While s-MTJs have previously been used to implement SC-ANNs, these studies have been limited to architectures with continuously varying (i.e., analog) weights. In this work, we study the use of SC for matrix vector multiplication with quantized synaptic weights and quantized outputs. We show that a quantized SC-ANN, implemented by using experimentally obtained s-MTJ bitstreams and a limited number of discrete quantized states for both weights and hidden layer nodes in an ANN, can effectively reduce time (latency) and energy consumption in SC compared to an analog implementation, while largely preserving accuracy. We implemented quantization with 5 and 11 quantized states, along with SC configured with stochastic bitstream lengths of 100, 200, 300, 400, and 500 on neural networks with one hidden layer and three hidden layers. Inference was performed on the MNIST dataset for both training with SC and without SC. Training with SC provided better accuracy for all cases. For the shortest bitstream of 100 bits, the highest accuracies were 92% for one hidden layer and over 96% for three hidden layers. The overall system attained its peak accuracy of 96.82% using a 400 bit stochastic bitstream with three hidden layers. Our investigations demonstrate 9× improvement in latency and 2.6× improvement in energy consumption using the quantized SC approach compared to a similar s-MTJ based ANN architecture without quantization.
Title: Quantized artificial neural networks implemented with spintronic stochastic computing
Description:
Abstract
An artificial neural network (ANN) inference involves matrix vector multiplications that require a very large number of multiply and accumulate operations, resulting in high energy cost and large device footprint.
Stochastic computing (SC) offers a less resource-intensive ANN implementation with minimal accuracy loss.
Random number generators (RNG) are required to implement SC in hardware.
These can be realized through stochastic-magnetic tunnel junctions (s-MTJ), where the energy barrier to switch between the ‘up’ and ‘down’ states is designed to be small, enabling thermal noise to generate a random bit stream.
While s-MTJs have previously been used to implement SC-ANNs, these studies have been limited to architectures with continuously varying (i.
e.
, analog) weights.
In this work, we study the use of SC for matrix vector multiplication with quantized synaptic weights and quantized outputs.
We show that a quantized SC-ANN, implemented by using experimentally obtained s-MTJ bitstreams and a limited number of discrete quantized states for both weights and hidden layer nodes in an ANN, can effectively reduce time (latency) and energy consumption in SC compared to an analog implementation, while largely preserving accuracy.
We implemented quantization with 5 and 11 quantized states, along with SC configured with stochastic bitstream lengths of 100, 200, 300, 400, and 500 on neural networks with one hidden layer and three hidden layers.
Inference was performed on the MNIST dataset for both training with SC and without SC.
Training with SC provided better accuracy for all cases.
For the shortest bitstream of 100 bits, the highest accuracies were 92% for one hidden layer and over 96% for three hidden layers.
The overall system attained its peak accuracy of 96.
82% using a 400 bit stochastic bitstream with three hidden layers.
Our investigations demonstrate 9× improvement in latency and 2.
6× improvement in energy consumption using the quantized SC approach compared to a similar s-MTJ based ANN architecture without quantization.
Related Results
Spintronic Materials and Devices for Artificial Intelligence Applications
Spintronic Materials and Devices for Artificial Intelligence Applications
ABSTRACT
The core of spintronic technologies lies in the use of electrons’ intrinsic spin states, along with their electric charge, for information storage and pr...
Fuzzy Chaotic Neural Networks
Fuzzy Chaotic Neural Networks
An understanding of the human brain’s local function has improved in recent years. But the cognition of human brain’s working process as a whole is still obscure. Both fuzzy logic ...
La luz: de herramienta a lenguaje. Una nueva metodología de iluminación artificial en el proyecto arquitectónico.
La luz: de herramienta a lenguaje. Una nueva metodología de iluminación artificial en el proyecto arquitectónico.
The constant development of artificial lighting throughout the twentieth century helped to
develop architecture to the current situation in which a new methodology is needed for
...
On the role of network dynamics for information processing in artificial and biological neural networks
On the role of network dynamics for information processing in artificial and biological neural networks
Understanding how interactions in complex systems give rise to various collective behaviours has been of interest for researchers across a wide range of fields. However, despite ma...
The Artificial
The Artificial
Orvell noted that despite the evolution of society, imitation and authenticity function as “compass points” that guide meaning-making and retain potency as humans continue to negot...
NEURAL NETWORKS AND DEEP LEARNING: THEORITICAL INSIGHTS AND FRAMEWORKS
NEURAL NETWORKS AND DEEP LEARNING: THEORITICAL INSIGHTS AND FRAMEWORKS
“NEURAL NETWORKS AND DEEP LEARNING: THEORITICAL INSIGHTS AND FRAMEWORKS” is a comprehensive guide that dives deep into the world of neural networks and their applications in modern...
Neural Networks In Mining Sciences – General Overview And Some Representative Examples
Neural Networks In Mining Sciences – General Overview And Some Representative Examples
Abstract
The many difficult problems that must now be addressed in mining sciences make us search for ever newer and more efficient computer tools that can be used to solve those p...
Stochastic Imaging for Reservoir Characterization
Stochastic Imaging for Reservoir Characterization
Abstract
One of the key problems in Reservoir Characterization involves the description and visualization of reservoir heterogeneities (as represented by the spatial...

