A Differentiable Recurrent Surface for Asynchronous Event-Based Data

Marco Cannici, Marco Ciccone, Andrea Romanoni, Matteo Matteucci

TL;DR

Matrix-LSTM introduces a fully differentiable, grid-based recurrent layer designed to bridge the gap between asynchronous event-based camera data and standard deep learning architectures. By replacing hand-crafted event-to-frame heuristics with a grid of LSTM cells, the model learns task-specific representations that significantly improve performance in object classification and optical flow estimation.

What Problem Does This Paper Address?

Traditional cameras capture the world in "frames" at fixed intervals, but Dynamic Vision Sensors (DVS)—or event cameras—work differently. They mimic the human retina, asynchronously streaming "events" only when a pixel detects a change in brightness. This results in high dynamic range and microsecond-level temporal resolution, but it creates a data format (a sparse, timed sequence of $(x, y, t, p)$ tuples) that standard Convolutional Neural Networks (CNNs) cannot process directly.

To use CNNs, researchers typically "densify" these events into frames or "event-surfaces" using hand-crafted rules (e.g., counting events or using exponential decays). These heuristics are often sub-optimal because they aren't tailored to the specific task at hand. The authors of this paper address this by asking: Can we learn the best way to aggregate events into a surface using a neural network?

Methods

The authors propose Matrix-LSTM, a grid of Long Short-Term Memory (LSTM) cells that act as a trainable "reconstruction" layer.

  • The Architecture: Instead of a single LSTM for the whole image, they use a grid of cells (matching the sensor resolution). As events arrive at a specific $(x, y)$ location, the corresponding LSTM updates its internal state.
  • End-to-End Differentiability: Because the entire process is differentiable, the "surface" produced by the LSTMs can be optimized alongside the rest of the network (e.g., a ResNet backbone) for a specific goal like identifying a car or calculating motion.
  • Sparsity Preservation: Unlike ConvLSTM, which requires data to be converted into dense frames before processing, Matrix-LSTM processes events asynchronously. The authors developed custom CUDA kernels (groupByPixel and groupByTime) to ensure the computation only happens where events actually occur, saving memory and time on sparse data.
  • Temporal Bins: To handle long sequences, they optionally split the event stream into temporal bins, processing each independently and then concatenating the results to provide the downstream network with a "history" of the scene.

Datasets

The model was evaluated on several key benchmarks for event-based vision:

  • N-Cars: A large-scale dataset for event-based object classification (cars vs. background).
  • N-Caltech101: An event-based version of the classic Caltech101 object recognition dataset.
  • MVSEC (Multi-Vehicle Stereo Event Camera): Used for evaluating optical flow estimation in real-world driving scenarios.
  • N-MNIST & ASL-DVS: Supplementary datasets used to further validate classification accuracy.

Key Insights and Ideas

  • Learned vs. Hand-crafted: The "aha moment" is that the network often learns representations that look nothing like human-readable frames but are far more informative for the computer. For example, it can learn to ignore noise or emphasize specific temporal patterns that hand-crafted decays might miss.
  • The Sparsity Advantage: Standard deep learning layers hate sparsity. Matrix-LSTM turns this on its head by using a "group-by-pixel" strategy, allowing it to be more memory-efficient than ConvLSTM when the event stream is sparse (which is most of the time in event-based vision).
  • Translation Invariance: By sharing the LSTM parameters across the entire grid (similar to how a convolutional kernel shares weights), the model gains translation invariance and can be applied to different sensor resolutions.

Key Results

Matrix-LSTM demonstrated state-of-the-art (SOTA) performance across multiple tasks:

  • Object Classification: On the N-Cars dataset, it achieved 95.8% accuracy, a 3.3% improvement over previous SOTA methods.
  • Optical Flow: On the MVSEC benchmark, it improved optical flow estimation by up to 30.76% compared to hand-crafted features and 23.07% over other end-to-end differentiable methods (like EST).
  • Efficiency: The custom CUDA implementation showed that Matrix-LSTM is significantly faster and more memory-efficient than ConvLSTM for typical event densities (under 70% active pixels).

Limitations and Future Work

While Matrix-LSTM is powerful, the authors note a few areas for improvement:

  • Pre-training Gaps: On N-Caltech101, the model performed slightly worse (0.9%) than some baselines that rely heavily on pre-training on natural images. This suggests that event-based models still struggle to match the "feature wealth" of models trained on massive RGB datasets like ImageNet.
  • Sequential Bottleneck: Although the CUDA kernels help, LSTMs are inherently sequential. Processing extremely high-frequency event bursts might still pose a latency challenge compared to simpler, non-recurrent integrators.
  • Future Directions: The authors suggest extending this work to more complex 3D tasks, such as ego-motion estimation, depth perception, and high-quality gray-scale video reconstruction from events.

Summary updated

BibTeX
@inproceedings{cannici2020differentiable,
  author = {Marco Cannici and Marco Ciccone and Andrea Romanoni and Matteo Matteucci},
  title = {{A Differentiable Recurrent Surface for Asynchronous Event-Based Data}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=48MdMA2BgQh},
}
Figure