Skip to main content
QUICK REVIEW

[Paper Review] Towards Lossless ANN-SNN Conversion under Ultra-Low Latency with Dual-Phase Optimization

Ziming Wang, Shuang Lian|arXiv (Cornell University)|May 16, 2022
Advanced Memory and Neural ComputingEngineering64 references11 citations
TL;DR

This paper proposes a dual-phase optimization method for lossless ANN-SNN conversion under ultra-low latency by explicitly addressing quantization, clipping, and residual membrane potential representation errors. By introducing a trainable QC-ANN and BPTT-based calibration, the method achieves state-of-the-art accuracy with up to 15.7× energy reduction, reaching 73.20% top-1 accuracy on CIFAR-100 in just 2 time steps.

ABSTRACT

Spiking neural networks (SNNs) operating with asynchronous discrete events show higher energy efficiency with sparse computation. A popular approach for implementing deep SNNs is ANN-SNN conversion combining both efficient training of ANNs and efficient inference of SNNs. However, the accuracy loss is usually non-negligible, especially under a few time steps, which restricts the applications of SNN on latency-sensitive edge devices greatly. In this paper, we first identify that such performance degradation stems from the misrepresentation of the negative or overflow residual membrane potential in SNNs. Inspired by this, we decompose the conversion error into three parts: quantization error, clipping error, and residual membrane potential representation error. With such insights, we propose a two-stage conversion algorithm to minimize those errors respectively. Besides, We show each stage achieves significant performance gains in a complementary manner. By evaluating on challenging datasets including CIFAR-10, CIFAR- 100 and ImageNet, the proposed method demonstrates the state-of-the-art performance in terms of accuracy, latency and energy preservation. Furthermore, our method is evaluated using a more challenging object detection task, revealing notable gains in regression performance under ultra-low latency when compared to existing spike-based detection algorithms. Codes are available at https://github.com/Windere/snn-cvt-dual-phase.

Motivation & Objective

  • Address the critical gap in ANN-SNN conversion accuracy under ultra-low latency, particularly due to residual membrane potential misrepresentation.
  • Identify and decompose conversion errors into three distinct components: quantization, clipping, and residual potential representation errors.
  • Develop a dual-phase optimization framework that systematically minimizes each error type to enable lossless conversion at minimal inference delay.
  • Achieve state-of-the-art accuracy-latency-energy tradeoffs on CIFAR-100, CIFAR-10, and ImageNet datasets under extreme time-step constraints.

Proposed method

  • Introduce a QC-ANN (Quantization-Clipping Artificial Neural Network) as an intermediate model to explicitly separate and optimize quantization and clipping errors.
  • Apply trainable thresholds and quantization noise in the first phase to fine-tune ANNs for better SNN conversion fidelity.
  • Use backpropagation through time (BPTT) for layer-wise calibration of weights and initial membrane potentials to minimize residual potential representation error.
  • Decompose the conversion error into three components: quantization error (from activation quantization), clipping error (from spike rate clipping), and residual potential representation error (from misrepresentation of non-zero membrane potential).
  • Optimize the three error types in a complementary dual-phase manner: phase one focuses on quantization and clipping; phase two focuses on residual potential.
  • Leverage spike rate as the primary conversion criterion, minimizing the L2 distance between ANN activations and SNN spike rates across layers.

Experimental results

Research questions

  • RQ1What are the primary sources of accuracy degradation in ANN-SNN conversion under ultra-low latency?
  • RQ2How do residual membrane potential misrepresentation, quantization, and clipping errors contribute to conversion error in SNNs?
  • RQ3Can a dual-phase optimization strategy that separately minimizes these three error components achieve lossless conversion at minimal time steps?
  • RQ4To what extent can the proposed method improve the accuracy-latency-energy tradeoff compared to existing state-of-the-art conversion methods?
  • RQ5How effective is BPTT-based calibration in capturing temporal dynamics and reducing residual potential representation error in low-latency SNNs?

Key findings

  • The proposed method achieves 73.20% top-1 accuracy on CIFAR-100 with only 2 time steps, representing a 15.7× reduction in energy consumption compared to the source ANN.
  • On ImageNet with VGG-16, the method achieves 70.13% top-1 accuracy in 16 time steps, a 19.16% improvement over prior work under the same latency constraint.
  • With just 32 calibration samples, the method improves ResNet-18 accuracy on CIFAR-10 by 25.42% at 4 time steps, demonstrating high sample efficiency.
  • At T=8, the method achieves nearly lossless conversion on CIFAR-100 with only 0.38% accuracy loss and 16.11% of the energy consumption of the original ANN.
  • The method maintains strong performance even at 4 time steps, outperforming state-of-the-art direct training methods on CIFAR-10 in terms of accuracy and latency.
  • Energy efficiency is significantly enhanced: SNNs consume only 140.5 μJ (6.36% of ANN) at T=2 on CIFAR-100, with 73.20% accuracy, demonstrating strong energy preservation.

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.