Associative Memory Augmented Asynchronous Spatiotemporal Representation Learning for Event-based Perception

Uday Kamal, Saurabh Dash, Saibal MukhopadhyayICLR 2023

TL;DR

EventFormer is a novel framework for event-based vision that combines the power of Transformers with associative memory to process camera data asynchronously. It shatters the efficiency-performance trade-off, achieving state-of-the-art accuracy on object recognition while requiring up to 30,000x less computation than dense frame-based methods and 200x less than existing event-based models.

What Problem Does This Paper Address?

Event cameras (or neuromorphic cameras) are fundamentally different from standard cameras. Instead of capturing frames at a fixed rate, they report "events"—pixel-level changes in brightness—exactly when and where they happen. This results in data that is sparse, asynchronous, and extremely fast.

The challenge lies in how to process this data efficiently without losing its unique benefits. Researchers usually take one of two paths:

  1. Dense Methods: They aggregate events into "frames" and use standard Convolutional Neural Networks (CNNs). This achieves high accuracy but throws away the camera's inherent sparsity and low-latency benefits, leading to massive computational waste.
  2. Event-based Methods: They use Graph Neural Networks (GNNs) or Point Clouds (PointNets) to process events directly. While more efficient, these often struggle to match the accuracy of dense models or become computationally bogged down when trying to correlate new events with a long history of past data.
Comparison of event processing paradigms: standard dense frames, graphs, and point clouds versus the proposed set-based EventFormer.

The authors of EventFormer sought a "third way": a method that maintains high accuracy while being computationally lean enough for real-time, low-power robotics.

The EventFormer Architecture

EventFormer treats a stream of events as an unstructured, spatially unordered set. Its architecture consists of several key components designed to maximize efficiency:

  • Positional Encoder: Since events are essentially coordinates $(x, y)$ in time, the model uses a Fourier-based encoder to map these 2D points into a high-dimensional feature space.
  • Refine Operator (Efficient Attention): To understand how events in a small window relate to each other spatially, the model uses self-attention. Crucially, they use a version of attention with linear complexity, preventing the "quadratic explosion" of computation that usually plagues standard Transformers.
  • Associative Memory: This is the core innovation. Instead of storing a massive history of raw events, the model maintains a compact "latent memory" matrix.
  • Read/Write/Erase Operators:
    • Read: When a new event occurs, the model "queries" the memory to retrieve the relevant past state for that specific location.
  • Write/Erase: After processing, the model updates the memory. It uses an "Erase" mechanism (similar to a GRU's forget gate) to decide what old information to discard and a "Write" mechanism to store the new spatiotemporal representation.
  • Recurrent Module: A Gated Recurrent Unit (GRU) blends the retrieved past context with the current spatial information to produce a refined state.

Key Insights and Ideas

  • Shift to Latent Space: By moving the "learning" from the high-dimensional pixel space to a compact latent memory space, the model decouples its computational cost from the raw resolution of the sensor.
  • Asynchronous "Where and When": The memory addressing mechanism ensures the model only updates its internal state where and when events actually occur. This perfectly mirrors the physical behavior of the event camera.
  • Feature Reuse: In experiments where the object class changes (e.g., moving from a "car" to a "face"), the model shows a brief "perception latency." It takes a few events to adapt its memory, but once it stabilizes, it can classify the new object extremely quickly by reusing learned features.
  • Sub-linear Scaling: Unlike many models where complexity grows linearly with memory size, EventFormer’s compute cost increases much more slowly as memory capacity ($m$) increases, making it highly scalable for complex scenes.

Key Results

The authors evaluated EventFormer on three primary benchmarks: N-Caltech101, N-Cars, and EV-IMO. The quantitative results are striking, particularly regarding the balance of accuracy and computational cost:

Recognition accuracy versus computational cost. EventFormer (Ours) achieves state-of-the-art accuracy with orders of magnitude less computation.
  • Efficiency: On the N-Caltech101 dataset, EventFormer requires only 0.048 MFLOPs per event. For comparison, the state-of-the-art dense method (Matrix-LSTM) requires a staggering 1580 MFLOPs.
  • Accuracy: Despite the massive reduction in compute, EventFormer achieved 84.8% accuracy on N-Caltech101, outperforming the best previous event-based method (EvS-S at 76.1%) and even beating top-tier dense methods.
  • Speed: Implemented on an NVIDIA RTX 3090, the model has a latency of just 0.7 microseconds per event, making it roughly 10x faster than AEGNN, the previous leader in efficient event processing.

Limitations and Future Work

While EventFormer excels at classification, the authors note some hurdles for dense prediction tasks like motion segmentation. Because the model compresses information into a compact memory, it can lose the fine-grained spatial details needed for pixel-perfect masks. Standard "skip connections" used in U-Nets are difficult to implement in this asynchronous memory framework.

Future work will focus on designing specialized decoders to reconstruct dense outputs from the latent memory and scaling the framework to more complex tasks like object detection, depth estimation, and optical flow.

Summary updated

BibTeX
@inproceedings{kamal2023associative,
  author = {Uday Kamal and Saurabh Dash and Saibal Mukhopadhyay},
  title = {{Associative Memory Augmented Asynchronous Spatiotemporal Representation Learning for Event-based Perception}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=ZCStthyW-TD},
}
Figure