Spike-FlowNet: Event-based Optical Flow Estimation with Energy-Efficient Hybrid Neural Networks

Chankyu Lee, Adarsh Kosta, Alex Zihao Zhu, Kenneth Chaney, Kostas Daniilidis, Kaushik Roy

TL;DR

Spike-FlowNet is a hybrid neural network architecture that combines the energy efficiency of Spiking Neural Networks (SNNs) with the high-performance regression capabilities of Analog Neural Networks (ANNs). By using SNNs to process sparse data from event-based cameras and ANNs for deep feature decoding, the system achieves state-of-the-art optical flow estimation with significantly lower computational costs than traditional deep learning models.

What Problem Does This Paper Address?

Event-based cameras, or "silicon retinas," are a radical departure from traditional frame-based photography. Instead of capturing a grid of pixels at a fixed rate, they asynchronously report log-scale brightness changes (events) at the microsecond level. This makes them ideal for high-speed motion and low-light environments.

However, we face a dilemma when processing this data:

  1. Standard ANNs (like typical CNNs) are designed for dense frames. To use them, we must convert sparse events into artificial "frames," which often loses temporal precision and wastes energy by performing dense calculations on mostly empty data.
  2. Spiking Neural Networks (SNNs) are bio-inspired and naturally handle sparse, asynchronous spikes. While they are incredibly energy-efficient, deep SNNs suffer from the "vanishing spike" phenomenon, where activity dies out in deeper layers, making them difficult to train for complex tasks like optical flow regression.

Spike-FlowNet bridges this gap by proposing a hybrid approach that leverages the strengths of both paradigms.

Methods

The authors introduce a deep hybrid architecture based on the U-Net topology. The key innovation lies in how the layers are split:

  • Input Representation: To preserve temporal information, the authors discretize a time window into "former" and "latter" groups, each containing $N$ event frames. This allows the network to "see" the sequence of motion rather than just a collapsed summary.
  • SNN Encoder: The initial layers (the encoder) are built using Integrate-and-Fire (IF) neurons. These neurons accumulate weighted input spikes into a membrane potential and only fire when a threshold is reached, mimicking biological neurons. This stage is highly efficient because it only performs calculations when events occur.
  • ANN Decoder: Once the encoder has extracted features, the data is passed through an accumulator into an ANN-based residual and decoder block. The ANN layers maintain the high numerical precision required to predict exact pixel-wise optical flow vectors.
  • Self-Supervised Training: Since labeled event data is scarce, the model is trained using a self-supervised loss. It uses synchronous grayscale images (from a DAVIS camera) to calculate a photometric reconstruction loss—essentially checking if the predicted flow can accurately "warp" one image to match the next.
Fig. 1. The dynamics of an Integrate and Fire (IF) neuron. The input events are mod- ulated by the synaptic weight to be integrated as the current influx in the membrane potential. Whenever the membrane potential crosses the threshold, the neuron fires an output spike and resets the membrane potential.
Fig. 3. Spike-FlowNet architecture. The four-channeled input images, comprised of ON/OFF polarity events for former and latter groups, are sequentially passed through the hybrid network. The SNN-block contains the encoder layers followed by output accumulators, while the ANN-block contains the residual and decoder layers. The loss is evaluated after forward propagating all consecutive input event frames (a total of N inputs, sequentially taken in time from the former and the latter event groups) within the time window. The black arrows denote the forward path, green arrows represent residual connections, and blue arrows indicate the flow predictions.

Datasets

The researchers evaluated Spike-FlowNet using the Multi-Vehicle Stereo Event Camera (MVSEC) dataset.

  • Training: Performed exclusively on the outdoor_day2 sequence.
  • Evaluation: Tested on indoor_flying1, 2, 3 and outdoor_day1 to demonstrate the model's ability to generalize across vastly different environments.

Key Insights and Ideas

  • Hybridization is Key: The "aha moment" is realizing that SNNs don't have to do everything. By using SNNs for the sparse "front-end" and ANNs for the dense "back-end," the authors bypass the vanishing spike problem while retaining efficiency.
  • AC vs. MAC: In traditional ANNs, the fundamental operation is a Multiply-Accumulate (MAC). In SNNs, because the inputs are binary spikes (0 or 1), the multiplication step is skipped, leaving only an Accumulate (AC) operation. AC operations are roughly 5.1x more energy-efficient than MACs in standard 45nm CMOS hardware.
  • Temporal Granularity: By feeding the SNN a sequence of event frames ($N=5$ or $N=20$) rather than one single frame, the network utilizes the precise timing of events to better understand motion dynamics.

Key Results

Spike-FlowNet doesn't just save energy; it actually improves accuracy over its pure-ANN counterparts.

  • Accuracy: In the MVSEC outdoor_day1 test (at $dt=4$), Spike-FlowNet achieved an Average End-point Error (AEE) of 1.09, outperforming the ANN-based EV-FlowNet (1.23).
  • Energy Efficiency: The SNN-based encoder block was found to be 25x to 300x more computationally efficient than an equivalent ANN encoder, depending on the temporal window size.
  • Overall Compute Reduction: The hybrid approach resulted in an overall compute-energy reduction of approximately 17% for the entire network compared to a fully analog version.

Limitations and Future Work

  • Grayscale Reliance: The training process still requires grayscale images for the self-supervised loss. If the grayscale images are blurred (a common issue in high-speed motion), the training quality may suffer.
  • Spike Density: The authors noted that the model performs best when there is a certain minimum level of spike density. Extremely sparse environments might still pose a challenge.
  • Hardware Realization: While the theoretical energy gains are clear, the full benefits of Spike-FlowNet will only be realized when deployed on specialized neuromorphic hardware (like Intel’s Loihi or IBM’s TrueNorth) that can natively handle asynchronous spikes.

Summary updated

BibTeX
@misc{lee2020spike,
  author = {Chankyu Lee and Adarsh Kosta and Alex Zihao Zhu and Kenneth Chaney and Kostas Daniilidis and Kaushik Roy},
  title = {{Spike-FlowNet: Event-based Optical Flow Estimation with Energy-Efficient Hybrid Neural Networks}},
  year = {2020},
  eprint = {2003.06696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.06696},
}
Figure