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

Shubham Negi, Deepika Sharma, Adarsh Kumar Kosta, Kaushik Roy · DOI

Abstract

Event-based cameras provide high-speed, high-dynamic-range visual data by reporting per-pixel brightness changes as asynchronous events. However, processing this data efficiently remains a challenge: traditional Analog Neural Networks (ANNs) struggle with temporal dynamics, while Spiking Neural Networks (SNNs) face training difficulties and significant hardware memory overhead. This paper introduces a hybrid SNN-ANN architecture that utilizes spiking layers as a temporal front-end to capture event dynamics and analog layers for robust feature processing. Our approach achieves up to a 40% reduction in error and 22% lower energy consumption compared to pure SNN baselines on standard benchmarks like DSEC and MVSEC.

Introduction

Event-based cameras, such as the Dynamic Vision Sensor (DVS), represent a paradigm shift from traditional frame-based imaging. By capturing only changes in a scene with microsecond latency, they are ideal for high-speed robotics. However, standard ANNs are "stateless" and often require converting events into dense frames, which discards the sensor's temporal advantages. Conversely, SNNs are a natural fit for temporal data but are difficult to train due to non-differentiable activations and can be inefficient on traditional hardware because of the constant need to update internal "membrane potentials."

We propose a "best of both worlds" solution: a hybrid architecture that captures temporal dynamics efficiently without the training and hardware overhead of a full SNN.

Proposed Hybrid Architecture

The core innovation is the Hybrid SNN-ANN architecture, which uses a small number of spiking layers at the beginning of the network to act as a temporal feature extractor. These layers utilize Leaky-Integrate-and-Fire (LIF) neurons to accumulate input over time and fire binary spikes only when a threshold is reached, effectively filtering noise and capturing temporal patterns.

Hybrid SNN-ANN architectures for (a) EV-FlowNet and (b) Fire-FlowNet.

Following this spiking front-end, the network transitions to standard ANN layers (using ReLU activations) to perform the heavy lifting of flow estimation. We adapted two popular models—EV-FlowNet and the lightweight Fire-FlowNet—into these hybrid forms. To overcome the non-differentiable nature of spikes, we employed surrogate gradients and Backpropagation Through Time (BPTT) during training.

Experimental Results

We evaluated the models on the DSEC-flow and MVSEC benchmarks. To accurately assess efficiency, we modeled energy consumption using Timeloop on the Eyeriss hardware accelerator, accounting for the energy cost of moving data in and out of memory—a major bottleneck for stateful SNNs.

Comparison of AEE and Energy consumption across different architectures on MVSEC and DSEC datasets.

As shown in the results, the hybrid approach consistently outperformed both "Full-SNN" and "Full-ANN" counterparts. On the DSEC-flow dataset, the Hybrid SNN-ANN achieved a 40% reduction in Average Endpoint Error (AEE) and 22% lower energy consumption compared to a Full-SNN. Compared to a Full-ANN, it reduced AEE by 48%. On MVSEC, the "Mini-Hybrid" model showed a 47% lower AEE than the Full-ANN and 25% lower AEE than the Full-SNN.

Discussion and Key Insights

A critical finding was the "Front-Loading" advantage: placing spiking layers at the very beginning of the network is optimal. This layer acts as a learned low-pass filter, smoothing noisy event data into a representation that subsequent ANN layers can easily digest. This configuration also improves training stability by avoiding the "vanishing spikes" problem common in deep SNNs.

Furthermore, the paper highlights a counter-intuitive reality: while SNNs are theoretically low-power, the need to fetch and update membrane potentials at every timestep creates massive memory traffic. The hybrid approach minimizes this by limiting the number of stateful layers, making it more suitable for current hardware.

Conclusion

The hybrid SNN-ANN architecture provides a significant step forward for event-based vision. While it still trails behind highly complex iterative models like E-RAFT in absolute accuracy, its superior energy efficiency and reduced complexity make it a prime candidate for deployment on edge robotics platforms. Future work will explore more sophisticated integration of spiking and analog layers to further bridge the gap with state-of-the-art performance.

Summary updated

BibTeX
@inproceedings{negi2024best,
  author = {Shubham Negi and Deepika Sharma and Adarsh Kumar Kosta and Kaushik Roy},
  title = {{Best of Both Worlds: Hybrid SNN-ANN Architecture for Event-based Optical Flow Estimation}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Ih6Fuz3eU2},
}
Figure