Skip to main content
QUICK REVIEW

[Paper Review] Best of Both Worlds: Hybrid SNN-ANN Architecture for Event-based Optical Flow Estimation

Shubham Negi, Deepika Sharma|arXiv (Cornell University)|Jun 5, 2023
Advanced Memory and Neural ComputingEngineering4 citations
TL;DR

This paper proposes a hybrid SNN-ANN architecture that leverages spiking neural network (SNN) layers for efficient temporal feature extraction from event-based camera data, followed by analog neural network (ANN) layers for easy training and deployment on standard hardware. The method achieves state-of-the-art performance with 24.8–31% lower average endpoint error and 2.1–3.1× lower inference energy than SNN-only models on DSEC and MVSEC datasets.

ABSTRACT

In the field of robotics, event-based cameras are emerging as a promising low-power alternative to traditional frame-based cameras for capturing high-speed motion and high dynamic range scenes. This is due to their sparse and asynchronous event outputs. Spiking Neural Networks (SNNs) with their asynchronous event-driven compute, show great potential for extracting the spatio-temporal features from these event streams. In contrast, the standard Analog Neural Networks (ANNs) fail to process event data effectively. However, training SNNs is difficult due to additional trainable parameters (thresholds and leaks), vanishing spikes at deeper layers, and a non-differentiable binary activation function. Furthermore, an additional data structure, membrane potential, responsible for keeping track of temporal information, must be fetched and updated at every timestep in SNNs. To overcome these challenges, we propose a novel SNN-ANN hybrid architecture that combines the strengths of both. Specifically, we leverage the asynchronous compute capabilities of SNN layers to effectively extract the input temporal information. Concurrently, the ANN layers facilitate training and efficient hardware deployment on traditional machine learning hardware such as GPUs. We provide extensive experimental analysis for assigning each layer to be spiking or analog, leading to a network configuration optimized for performance and ease of training. We evaluate our hybrid architecture for optical flow estimation on DSEC-flow and Multi-Vehicle Stereo Event-Camera (MVSEC) datasets. On the DSEC-flow dataset, the hybrid SNN-ANN architecture achieves a 40% reduction in average endpoint error (AEE) with 22% lower energy consumption compared to Full-SNN, and 48% lower AEE compared to Full-ANN, while maintaining comparable energy usage.

Motivation & Objective

  • Address the challenge of training deep SNNs due to non-differentiable activations, vanishing spikes, and additional parameters like thresholds and leaks.
  • Overcome the inefficiency of deploying SNNs on standard hardware (e.g., GPUs, Eyeriss) due to high data movement from membrane potential tracking.
  • Leverage the temporal modeling strength of SNNs and the training efficiency of ANNs to create a hybrid architecture optimized for accuracy and deployability.
  • Optimize the placement and number of SNN vs. ANN layers to balance performance, training complexity, and inference energy.
  • Enable efficient deployment of event-based optical flow models on non-neuromorphic hardware without sacrificing accuracy.

Proposed method

  • Use initial SNN layers to process sparse, asynchronous event streams by leveraging the Leaky Integrate-and-Fire (LIF) neuron's inherent recurrence and membrane potential for temporal encoding.
  • Follow SNN layers with multiple fully connected or convolutional ANN layers to enable backpropagation with differentiable activations and standard training on GPUs.
  • Apply surrogate gradient methods and learnable thresholds/leaks in SNN layers to stabilize training while preserving temporal dynamics.
  • Perform ablation studies to determine optimal SNN layer count and position, minimizing training complexity and inference energy.
  • Deploy the final hybrid architecture on general-purpose ML accelerators (e.g., Eyeriss) to evaluate energy efficiency and inference performance.
  • Use standard optical flow benchmarks (DSEC-flow and MVSEC) to evaluate accuracy via average endpoint error (AEE) and energy consumption metrics.

Experimental results

Research questions

  • RQ1Can a hybrid SNN-ANN architecture outperform both SNN-only and ANN-only models in event-based optical flow estimation?
  • RQ2How does the number and placement of SNN layers affect the trade-off between accuracy, training complexity, and inference energy?
  • RQ3Can the hybrid architecture achieve competitive performance while being efficiently deployable on standard machine learning hardware like GPUs and Eyeriss?
  • RQ4Does the absence of explicit temporal input encoding (e.g., voxelization) in the hybrid model lead to better temporal feature learning than in ANN-based models?
  • RQ5How does the hybrid architecture compare to prior hybrid models and state-of-the-art SNN/ANN baselines in terms of AEE and energy efficiency?

Key findings

  • The proposed hybrid architecture achieves a 31% lower average endpoint error (AEE) and 2.1× lower inference energy on the DSEC-flow dataset compared to an SNN-only baseline.
  • On the MVSEC dataset, the hybrid model reduces AEE by 24.8% and inference energy by 3.1× compared to the SNN-only architecture.
  • The Mini-Hybrid configuration achieves 47% lower AEE than the ANN-only version and 24% lower AEE than the SNN-only version on MVSEC.
  • The hybrid architecture demonstrates 37% lower AEE than the fully spiking XLIF-EV-FlowNet and 12.5% lower AEE than the FireFlowNet-SNN baseline on MVSEC.
  • The hybrid model achieves energy efficiency comparable to ANN-only models (e.g., 21.30 mJ for Pico-Hybrid vs. 14.20 mJ for Pico-ANN) while significantly outperforming SNN-only models (61.72 mJ for Pico-SNN).
  • Ablation studies confirm that increasing the number of SNN layers degrades performance, indicating that only a few SNN layers are optimal for temporal encoding in this hybrid setup.

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.