Abstract
Event cameras offer high temporal resolution and low power consumption by asynchronously reporting pixel-level brightness changes. However, leveraging Vision Transformers (ViTs) for event-based object detection often negates these benefits due to high computational costs. We present the Scene Adaptive Sparse Transformer (SAST), a novel architecture that dynamically prunes windows and tokens based on real-time scene complexity. SAST achieves state-of-the-art accuracy while reducing computational costs by up to 72% compared to dense baselines, effectively scaling its resource allocation to the density of the visual scene.
Introduction
Event-based sensors provide sparse, asynchronous data, which is inherently efficient. Yet, modern detection frameworks using Transformers often treat this data as dense frames, leading to wasted computation. Existing sparse Transformers typically use fixed pruning ratios, which are either too coarse for small objects or too fine for efficiency, and crucially, they fail to adapt to varying scene complexities. SAST addresses this by introducing a hierarchical window-token co-sparsification strategy that adapts to the environment.
Methodology
SAST employs a hierarchical architecture designed for window-token co-sparsification. The process involves three key stages:
- Scoring and Selection: A dedicated Scoring Module evaluates token importance using a Response Unit and a Control Factor derived from raw event sparsity. The Selection Module then uses a p-norm and Softmax-based competition to dynamically set pruning thresholds based on scene complexity.
- Masked Sparse Window Self-Attention (MS-WSA): To handle the unequal window sizes resulting from pruning, MS-WSA implements a specialized masking strategy. This prevents "context leakage" from padding tokens, ensuring that attention is only computed on valid, selected tokens.
- Hierarchical Processing: The model processes events through multiple SAST blocks, progressively refining the selection of windows and tokens across different scales.
Experiments and Results
The model was evaluated on the 1Mpx and Gen1 event-based datasets.
Performance and Efficiency
SAST demonstrates a significant improvement in the accuracy-efficiency trade-off. On the 1Mpx dataset, it achieved a top mAP of 48.7%, surpassing the RVT-B baseline while reducing attention-related FLOPs (A-FLOPs) by 72%.
Scene Adaptability
A core strength of SAST is its ability to scale computation with scene density. Unlike fixed-cost models, SAST's FLOP count correlates directly with event sparsity, ensuring minimal power usage in simple environments while maintaining high performance in complex ones.
Conclusion
The Scene Adaptive Sparse Transformer successfully bridges the gap between high-performance ViTs and the efficiency requirements of event-based vision. By dynamically managing sparsity at both window and token levels, SAST provides a robust and efficient solution for real-time object detection in varying environments. Future work will explore extending this adaptive sparsity to other tasks such as semantic segmentation.
Summary updated