Skip to main content
QUICK REVIEW

[Paper Review] Towards Energy-Efficient, Low-Latency and Accurate Spiking LSTMs

Gourav Datta, Haoqin Deng|arXiv (Cornell University)|Oct 23, 2022
Advanced Memory and Neural ComputingEngineering10 citations
TL;DR

This paper proposes a novel ANN-to-SNN conversion framework for spiking LSTMs that enables high-accuracy, low-latency, and energy-efficient inference. By introducing clipped activation functions, optimizing IF/LIF conversions with bias shifts, and employing pipelined parallel processing, the method achieves 4× to 105.7× lower latency and 2.8× to 13.2× lower energy than prior works, with only a <0.3% accuracy drop on speech and sensor datasets.

ABSTRACT

Spiking Neural Networks (SNNs) have emerged as an attractive spatio-temporal computing paradigm for complex vision tasks. However, most existing works yield models that require many time steps and do not leverage the inherent temporal dynamics of spiking neural networks, even for sequential tasks. Motivated by this observation, we propose an ev{optimized spiking long short-term memory networks (LSTM) training framework that involves a novel ANN-to-SNN conversion framework, followed by SNN training}. In particular, we propose novel activation functions in the source LSTM architecture and judiciously select a subset of them for conversion to integrate-and-fire (IF) activations with optimal bias shifts. Additionally, we derive the leaky-integrate-and-fire (LIF) activation functions converted from their non-spiking LSTM counterparts which justifies the need to jointly optimize the weights, threshold, and leak parameter. We also propose a pipelined parallel processing scheme which hides the SNN time steps, significantly improving system latency, especially for long sequences. The resulting SNNs have high activation sparsity and require only accumulate operations (AC), in contrast to expensive multiply-and-accumulates (MAC) needed for ANNs, except for the input layer when using direct encoding, yielding significant improvements in energy efficiency. We evaluate our framework on sequential learning tasks including temporal MNIST, Google Speech Commands (GSC), and UCI Smartphone datasets on different LSTM architectures. We obtain test accuracy of 94.75% with only 2 time steps with direct encoding on the GSC dataset with 4.1x lower energy than an iso-architecture standard LSTM.

Motivation & Objective

  • Address the high latency and energy inefficiency of existing spiking LSTMs for sequential tasks by leveraging SNNs' temporal and sparse dynamics.
  • Overcome the limitations of prior SNN conversion methods that require many time steps and expensive MAC operations.
  • Develop a joint optimization framework for threshold and leak parameters in LIF neurons to minimize post-conversion error.
  • Enable real-time, on-device inference for streaming applications like speech and action recognition using low-power neuromorphic hardware.
  • Achieve near-state-of-the-art accuracy while drastically reducing energy consumption and inference latency in spiking LSTM models.

Proposed method

  • Introduce clipped versions of standard LSTM activation functions (sigmoid and tanh) in the source network to reduce conversion error to spiking neurons.
  • Selectively convert only a subset of these activations to integrate-and-fire (IF) neurons with optimal bias shifts to eliminate MAC operations in SNN inference.
  • Derive a closed-form expression for the leaky-integrate-and-fire (LIF) activation function that accounts for the leak term, enabling analytical error analysis under non-uniform input distributions.
  • Jointly optimize the threshold and leak parameters during SNN fine-tuning using surrogate gradient learning to minimize conversion error.
  • Implement a pipelined, parallel processing scheme that hides SNN time steps, enabling concurrent processing of multiple input elements and reducing system latency.
  • Use accumulate-only operations (AC) throughout the SNN, except for the input layer when using direct encoding, to maximize energy efficiency on neuromorphic hardware.

Experimental results

Research questions

  • RQ1Can we reduce the number of time steps required for accurate spiking LSTM inference while maintaining high accuracy?
  • RQ2How can we minimize conversion error when transforming non-spiking LSTMs to spiking LSTMs with IF and LIF neurons?
  • RQ3What is the impact of jointly optimizing threshold and leak parameters in LIF neurons on inference accuracy and energy efficiency?
  • RQ4Can pipelined parallel processing significantly reduce the end-to-end latency of spiking LSTMs for long sequences?
  • RQ5To what extent can accumulate-only operations in SNNs reduce energy consumption compared to MAC-based ANNs, especially on neuromorphic hardware?

Key findings

  • The proposed framework achieves 94.75% test accuracy on the Google Speech Commands dataset using only 2 time steps with direct encoding, matching state-of-the-art performance.
  • The method reduces energy consumption by up to 13.2× compared to state-of-the-art spiking LSTM implementations, with 2.8× to 5.1× lower energy than standard non-spiking LSTMs.
  • Latency is reduced by up to 105.7× compared to the SOTA spiking LSTM due to fewer time steps and pipelined processing, with a 4× improvement over non-spiking LSTMs.
  • The use of accumulate-only operations in SNNs, except for the input layer, enables significant energy savings by avoiding multiplier-heavy computations.
  • The closed-form LIF activation function enables analytical error reduction through joint optimization of threshold and leak parameters, improving accuracy-latency trade-offs.
  • The framework maintains near-SOTA accuracy (<0.3% drop) across diverse datasets including temporal MNIST, Google Speech Commands, and UCI Smartphone, demonstrating generalization across sequential tasks.

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.