Text Classification in Memristor-based Spiking Neural Networks

Jinqi Huang, Alex Serb, Spyros Stathopoulos, Themis Prodromakis
7/27/2022
cs.NE

Official code: hjq310/text-classification-in-memristorsnn (24 stars, Python, GPL-3.0, last commit 2023-01-14).

Abstract

Memristors, emerging non-volatile memory devices, have shown promising potential in neuromorphic hardware designs, especially in spiking neural network (SNN) hardware implementation. Memristor-based SNNs have been successfully applied in a wide range of various applications, including image classification and pattern recognition.

Show full abstract

However, implementing memristor-based SNNs in text classification is still under exploration. One of the main reasons is that training memristor-based SNNs for text classification is costly due to the lack of efficient learning rules and memristor non-idealities. To address these issues and accelerate the research of exploring memristor-based spiking neural networks in text classification applications, we develop a simulation framework with a virtual memristor array using an empirical memristor model. We use this framework to demonstrate a sentiment analysis task in the IMDB movie reviews dataset. We take two approaches to obtain trained spiking neural networks with memristor models: 1) by converting a pre-trained artificial neural network (ANN) to a memristor-based SNN, or 2) by training a memristor-based SNN directly. These two approaches can be applied in two scenarios: offline classification and online training. We achieve the classification accuracy of 85.88% by converting a pre-trained ANN to a memristor-based SNN and 84.86% by training the memristor-based SNN directly, given that the baseline training accuracy of the equivalent ANN is 86.02%. We conclude that it is possible to achieve similar classification accuracy in simulation from ANNs to SNNs and from non-memristive synapses to data-driven memristive synapses. We also investigate how global parameters such as spike train length, the read noise, and the weight updating stop conditions affect the neural networks in both approaches.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

This Pytorch-based framework demonstrates a sentiment analysis task in the IMDB movie reviews dataset using an SNN with a statistic memristor model

242PythonJul 2, 20223 years agoGPL-3.0

Similar Papers

Cite this paper

@article{huang2022text,
  title  = {Text Classification in Memristor-based Spiking Neural Networks},
  author = {Jinqi Huang and Alex Serb and Spyros Stathopoulos and Themis Prodromakis},
  year   = {2022},
  eprint = {2207.13729},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.13729}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.13729.svg)](https://codeofpaper.com/paper/2207.13729)

Discussion