TL;DR
This paper introduces SLTNet, a novel Spiking Neural Network (SNN) architecture for event-based semantic segmentation. SLTNet achieves state-of-the-art performance on event-based segmentation tasks while drastically reducing computational and energy costs, making it suitable for resource-constrained edge devices.
What Problem Does This Paper Address?
Semantic segmentation, the task of classifying each pixel in an image, is crucial for applications like autonomous driving and robotics. Traditional image-based methods struggle with high dynamic range and variable lighting conditions. Event cameras, which capture changes in light intensity with high temporal resolution and low latency, offer a promising alternative. However, existing event-based segmentation methods, whether based on Artificial Neural Networks (ANNs) or Spiking Neural Networks (SNNs), suffer from high computational demands and energy consumption. This limits their deployment on edge devices. Furthermore, current SNN-based approaches often have suboptimal feature extraction modules, hindering their performance. This paper aims to bridge this gap by proposing an efficient and robust SNN architecture for event-based semantic segmentation.
Methods
The core of SLTNet is its Spike-driven Lightweight Transformer-based Network (SLTNet) architecture, which exclusively uses event data. It's a hierarchical, single-branch encoder-decoder SNN designed for energy efficiency.
Key components include:
- Spike-driven Convolution Blocks (SCBs): These blocks are designed to extract rich semantic features while minimizing model parameters. They leverage a novel Spike-LD module which uses a bottleneck structure with a membrane shortcut for better gradient flow. The Spike-LD module employs decomposed convolutions (1x3 and 3x1) to reduce parameters, and a three-branch structure with dilated and depth-wise convolutions to capture multi-scale features. Channel attention (CA) modules are used to compensate for lost inter-channel information.
- Spike-driven Transformer Blocks (STBs): These blocks are responsible for capturing long-range contextual features. The STB incorporates a Spike-driven Multi-Head Self-Attention (SDMSA) module. This module is designed to be spike-friendly, replacing floating-point multiplications with masked operations that skip inactive spikes, thus significantly reducing energy consumption. It also uses a membrane shortcut for residual connections.
- Evolutionary Spiking Neuron (ESN): The paper utilizes the Leaky Integrate-and-Fire (LIF) neuron model as the basic building block for its spiking components. To address the non-differentiable nature of spiking neurons during backpropagation, they employ an Evolutionary Surrogate Gradient function (EvAF), which dynamically adapts to generate substitute gradients.
- Event Representation: Raw event streams are converted into a voxel grid and then into an event tensor suitable for SNN processing.
- Segmentation Loss: A combined loss function is used, consisting of an Online Hard Example Mining (OHEM) cross-entropy loss and an early-stage cross-entropy loss to promote rapid convergence and improve generalization.
Datasets
The proposed SLTNet is evaluated on two widely used event-based semantic segmentation datasets:
- DDD17: Contains event data and grayscale images from driving scenes, with semantic labels for six categories. It has 15,950 training and 3,890 testing pairs.
- DSEC-Semantic: Provides event streams and high-resolution RGB images from driving sequences, annotated with 11 fine-grained categories. It has 8,082 training and 2,809 testing frames.
Key Insights and Ideas
- SNNs are a natural fit for event cameras: The biomimetic nature of event cameras and spiking neurons makes them theoretically well-suited for each other, promising significant energy efficiency gains.
- Transformer power for SNNs: Integrating transformer-like self-attention mechanisms into SNNs can effectively capture long-range dependencies, which are crucial for semantic understanding, without incurring prohibitive computational costs.
- Membrane shortcuts are key for SNN transformers: Unlike traditional ANN shortcuts, using membrane shortcuts in SNN transformers helps maintain performance by preserving membrane potential information.
- Decomposed and dilated convolutions are efficient: The Spike-LD module demonstrates that clever use of decomposed (1x3, 3x1) and dilated convolutions can capture rich multi-scale features with fewer parameters and FLOPs.
- OHEM and early-stage loss synergy: Combining OHEM with an early-stage loss function significantly improves segmentation performance compared to using either loss alone.
Key Results
SLTNet demonstrates state-of-the-art performance among SNN-based methods on both DDD17 and DSEC-Semantic datasets.
- DDD17: Achieves 51.93% mIoU, outperforming SNN-based methods by up to 9.06%. It uses only 0.41M parameters and 1.96G FLOPs, with an inference speed of 114.29 FPS.
- DSEC-Semantic: Achieves 47.91% mIoU, outperforming Spiking-DeepLab by 3.33% and Spiking-FCN by 9.39%.
- Energy Efficiency: SLTNet consumes significantly less energy than both ANN and SNN counterparts. For instance, it uses 4.58x less energy than SCGNet and drastically less than ANN methods like Ev-SegNet (30.20x less).
- Qualitative Results: Visualizations show SLTNet producing fine-grained segmentation results, comparable to or better than other models, demonstrating its robustness.
Limitations and Future Work
- Accuracy Gap with ANNs: While SLTNet significantly narrows the gap, it still slightly lags behind the best ANN-based methods in terms of mIoU on the DDD17 dataset.
- Future Directions: The authors suggest focusing on developing more advanced SNN architectures for event processing, extending the approach to other domains like autonomous driving and robotic localization, and further closing the accuracy gap with ANN-based methods.
Summary updated