HDI-Former: Hybrid Dynamic Interaction ANN-SNN Transformer for Object Detection Using Frames and Events
Dianze Li, Jianing Li, Xu Liu, Zhaokun Zhou, Xiaopeng Fan, Yonghong Tian
TL;DR
HDI-Former tackles multimodal object detection from frames and events with a directly trained hybrid ANN-SNN Transformer. It couples a Semantic-Enhanced Swin Transformer (ANN branch) with a Spiking Swin Transformer (SNN branch) via a bio-inspired Dynamic Interaction mechanism, enabling effective cross-modality fusion while preserving energy efficiency. Key innovations include Semantic-Enhanced Multi-head Self-Attention with Relative Semantic Embedding for the RGB stream and a Spiking Swin Transformer with Q-K attention for events, achieving state-of-the-art accuracy with substantial energy savings on the DSEC-Detector and Gen1 datasets. The approach demonstrates strong practical impact for real-time, low-power perception in challenging conditions and provides open-source code for broader adoption.
Abstract
Combining the complementary benefits of frames and events has been widely used for object detection in challenging scenarios. However, most object detection methods use two independent Artificial Neural Network (ANN) branches, limiting cross-modality information interaction across the two visual streams and encountering challenges in extracting temporal cues from event streams with low power consumption. To address these challenges, we propose HDI-Former, a Hybrid Dynamic Interaction ANN-SNN Transformer, marking the first trial to design a directly trained hybrid ANN-SNN architecture for high-accuracy and energy-efficient object detection using frames and events. Technically, we first present a novel semantic-enhanced self-attention mechanism that strengthens the correlation between image encoding tokens within the ANN Transformer branch for better performance. Then, we design a Spiking Swin Transformer branch to model temporal cues from event streams with low power consumption. Finally, we propose a bio-inspired dynamic interaction mechanism between ANN and SNN sub-networks for cross-modality information interaction. The results demonstrate that our HDI-Former outperforms eleven state-of-the-art methods and our four baselines by a large margin. Our SNN branch also shows comparable performance to the ANN with the same architecture while consuming 10.57$\times$ less energy on the DSEC-Detection dataset. Our open-source code is available in the supplementary material.
