Abstract
Today, state-of-the-art deep neural networks that process event-camera data first convert a temporal window of events into dense, grid-like input representations. As such, they exhibit poor generalizability when deployed at higher inference frequencies (i.e., smaller temporal windows) than the ones they were trained on. We address this challenge by introducing state-space models (SSMs) with learnable timescale parameters to event-based vision. This design adapts to varying frequencies without the need to retrain the network at different frequencies. Additionally, we investigate two strategies to counteract aliasing effects when deploying the model at higher frequencies. We comprehensively evaluate our approach against existing methods based on RNN and Transformer architectures across various benchmarks, including Gen1 and 1 Mpx event camera datasets. Our results demonstrate that SSM-based models train 33% faster and also exhibit minimal performance degradation when tested at higher frequencies than the training input. Traditional RNN and Transformer models exhibit performance drops of more than 20 mAP, with SSMs having a drop of 3.76 mAP, highlighting the effectiveness of SSMs in event-based vision tasks.
Introduction
Event cameras represent a paradigm shift in visual sensing, capturing per-pixel brightness changes asynchronously with microsecond-level temporal resolution. Unlike traditional frame-based cameras, they do not suffer from motion blur and possess a high dynamic range. However, integrating this asynchronous data into standard deep learning pipelines typically requires grouping events into fixed temporal windows to create dense, grid-like representations.
This discretization introduces a significant limitation: the "Frequency Gap." Models trained on a specific temporal window size (e.g., 50ms for 20Hz) often fail when deployed at higher frequencies (e.g., 5ms for 200Hz) required for high-speed robotics or drones. Current architectures, such as Recurrent Neural Networks (RNNs) and Transformers, struggle to generalize across these different timescales. Furthermore, RNNs, while naturally suited for temporal data, are computationally expensive to train due to their sequential nature.
Methodology: The SSM-ViT Architecture
To overcome these hurdles, we propose the use of State Space Models (SSMs)—specifically the S4 and S5 variants—as a robust backbone for temporal aggregation in event-based vision.
The SSM-ViT Block
Our architecture, SSM-ViT, is a hybrid design that leverages the spatial feature extraction capabilities of Vision Transformers (ViTs) and the temporal efficiency of SSMs. As shown in the block diagram below, each stage of the network processes spatial information through local and global attention mechanisms before passing the features to an SSM layer for temporal integration.
The block includes:
- Spatial Attention: Utilizing both Block-SA (local) and Grid-SA (global dilated) attention to capture multi-scale spatial relationships.
- SSM Layer: A continuous-time system defined by a learnable timescale parameter ($\Delta$). This parameter allows the model to be rescaled at inference time to match new frequencies without retraining.
Advantages of SSMs
SSMs offer a unique combination of benefits. During training, they can be computed in parallel like Convolutional Neural Networks (CNNs), leading to a 33% reduction in training time compared to recurrent vision transformers. During inference, they maintain the constant-memory footprint of an RNN. Most importantly, their mathematical foundation in continuous-time systems makes them inherently more resilient to changes in sampling frequency.
Experimental Evaluation
We evaluated our models on the Gen1 Automotive Detection and 1 Mpx datasets, which are the current benchmarks for event-based object detection. These datasets provide a rigorous testing ground for both accuracy and temporal consistency.
Robustness to Frequency Changes
A key finding of our research is the superior generalization of SSMs across frequencies. While traditional models like RVT and GET-Transformer experience catastrophic performance drops when the inference frequency increases, our SSM-based models remain stable.
As illustrated in the figure above, when tested at 200Hz—ten times the training frequency—RVT and GET saw their mAP drop by over 20 points. In contrast, the SSM-based models experienced a negligible drop of only 3.76 mAP.
Key Results and Insights
- Efficiency: The S5-ViT-S model achieves competitive performance with only 9.7M parameters and an inference time of 7.81ms on Gen1.
- State-of-the-Art: Our S5-ViT-B model achieved 47.8 mAP on the 1 Mpx dataset, matching the performance of much slower and more complex models.
- Linearity: Our results suggest that linear SSMs are sufficient for aggregating event representations, potentially rendering the complex gating of LSTMs unnecessary for these tasks.
Conclusion
By introducing State Space Models to event-based vision, we have addressed the critical issue of frequency generalization. The SSM-ViT architecture not only trains faster but also provides a reliable solution for high-speed applications where inference rates may vary. Future work will explore "Mamba"-style selective SSMs to further refine the spatial-temporal trade-offs in event processing.
Summary updated