Abstract
Recently, spiking neural networks (SNNs) have demonstrated substantial potential in computer vision tasks. In this paper, we present an Efficient Spiking Deraining Network, called ESDNet. Our work is motivated by the observation that rain pixel values will lead to a more pronounced intensity of spike signals in SNNs. However, directly applying deep SNNs to image deraining task still remains a significant challenge due to information loss and training difficulties. We develop a spiking residual block to convert the input into spike signals and adaptively optimize the membrane potential using attention weights, alleviating information loss. We introduce a gradient proxy strategy to directly train the model. Experimental results show that our approach gains comparable performance against ANN-based methods while reducing energy consumption by 54%.
Introduction
Single-image deraining is a computationally intensive task essential for outdoor vision systems. While modern Artificial Neural Networks (ANNs), such as CNNs and Transformers, have achieved impressive results, their high memory and power requirements hinder deployment on resource-constrained edge devices like smartphones or drones. Spiking Neural Networks (SNNs) offer a bio-inspired, low-power alternative by communicating via discrete binary "spikes." However, SNNs face challenges in image restoration, specifically regarding information loss from binary activation and non-differentiable training processes.
Methodology
ESDNet addresses these challenges through an encoder-decoder architecture optimized for spatio-temporal rain dynamics. The core of the network is the Spiking Residual Block (SRB), which utilizes Leaky Integrate-and-Fire (LIF) neurons to transform inputs into spike sequences. This design exploits the fact that high-intensity rain pixels naturally trigger higher firing rates in SNNs, allowing the network to detect rain streaks by learning their fluctuations.
To mitigate information loss, the Mixed Attention Unit (MAU) adaptively weights the neuron's membrane potential across temporal, channel, and spatial dimensions before the firing threshold is reached. This allows the network to represent feature importance within a binary framework. Finally, a Feature Refinement Block (FRB) aggregates these discrete pulses back into continuous pixel values for high-quality reconstruction. The model is trained directly using a gradient proxy strategy, avoiding the inefficiencies of ANN-to-SNN conversion.
Experimental Results
The model was evaluated on synthetic benchmarks (Rain12, Rain200L/H, Rain1200) and real-world data (RW-Data). ESDNet demonstrates a remarkable balance between performance and efficiency.
As shown in the performance analysis, ESDNet achieves competitive PSNR values while maintaining a significantly lower parameter count compared to models like MPRNet or SFNet. Specifically, on the Rain200H benchmark, ESDNet achieved a PSNR of 30.01 dB with only 0.165M parameters, outperforming the 13.23M-parameter SFNet. Furthermore, the SNN architecture enables a 54% reduction in energy consumption compared to traditional ANN-based approaches, making it ideal for edge deployment.
Conclusion
ESDNet proves that Spiking Neural Networks can be highly effective for pixel-level restoration tasks like deraining. By leveraging the inherent temporal dynamics of spikes and introducing attention-based potential optimization, the model achieves state-of-the-art efficiency without sacrificing visual quality. Future work will focus on deploying these models on neuromorphic hardware and exploring more complex temporal dynamics to handle diverse weather conditions.
Summary updated