Abstract
Adverse weather image restoration aims to remove unwanted degraded artifacts, such as haze, rain, and snow, caused by adverse weather conditions. Existing methods achieve remarkable results for addressing single-weather conditions. However, they face challenges when encountering unpredictable weather conditions, which often happen in real-world scenarios. Although different weather conditions exhibit different degradation patterns, they share common characteristics that are highly related and complementary, such as occlusions caused by degradation patterns, color distortion, and contrast attenuation due to the scattering of atmospheric particles. Therefore, we focus on leveraging common knowledge across multiple weather conditions to restore images in a unified manner. In this paper, we propose a Triplet Attention Network (TANet) to efficiently and effectively address all-in-one adverse weather image restoration. TANet consists of Triplet Attention Block (TAB) that incorporates three types of attention mechanisms: Local Pixel-wise Attention (LPA) and Global Strip-wise Attention (GSA) to address occlusions caused by non-uniform degradation patterns, and Global Distribution Attention (GDA) to address color distortion and contrast attenuation caused by atmospheric phenomena. By leveraging common knowledge shared across different weather conditions, TANet successfully addresses multiple weather conditions in a unified manner. Experimental results show that TANet efficiently and effectively achieves state-of-the-art performance in all-in-one adverse weather image restoration.
Introduction
Restoring images taken in adverse weather—like heavy rain, thick haze, or falling snow—is a classic "ill-posed" problem in computer vision. While many models excel at fixing a single type of weather, they often fail in real-world scenarios where weather is unpredictable or mixed. Existing "all-in-one" solutions typically try to identify the weather type first or use massive, computationally expensive architectures.
The authors of TANet argue that these methods miss a crucial trick: different weather conditions actually share common characteristics. Rain, snow, and haze all cause occlusions (blocking the view) and atmospheric scattering (distorting color and reducing contrast). TANet aims to exploit these shared "inductive biases" to create a single, lean model that handles everything.
Methodology
The core innovation is the Triplet Attention Block (TAB), which is integrated into a standard CNN-based encoder-decoder architecture. Instead of treating all pixels the same, the TAB uses three specialized attention mechanisms to target specific degradation patterns:
- Local Pixel-wise Attention (LPA): This focuses on short-range spatial information to identify and "fill in" small, non-uniform artifacts.
- Global Strip-wise Attention (GSA): Weather like rain and snow often has a clear orientation. GSA uses horizontal and vertical "strip pooling" to capture these long-range, directional patterns across the entire image.
- Global Distribution Attention (GDA): Atmospheric phenomena like haze shift the entire color and contrast distribution. GDA uses Instance Normalization to adaptively adjust the feature distribution for each specific image, effectively "re-balancing" colors and contrast.
The model is trained using a combination of Charbonnier loss for pixel-level accuracy and FFT loss to ensure the restored image looks correct in the frequency domain.
Experiments and Results
The researchers evaluated TANet on both synthetic and real-world benchmarks. For synthetic data, a mixed training set of 15,000 images was derived from SOTS (haze), Rain1400 (rain), and Snow100K-L (snow). For real-world evaluation, the WeatherStream dataset was used.
TANet sets a new high bar for all-in-one restoration:
- Quantitative Superiority: On synthetic datasets, it achieved an average PSNR of 32.45 dB, outperforming the previous best (MPRNet) by 1.26 dB.
- Real-World Performance: On the WeatherStream dataset, it reached 21.50 dB, surpassing specialized models like PromptIR.
- Speed and Scale: Despite the high performance, TANet is remarkably lean with only 9M parameters. It runs at 18ms per image on an NVIDIA RTX A5000, making it viable for near-real-time applications.
Conclusion
By designing modules specifically for the geometry of weather (strips for rain, distribution shifts for haze), TANet achieves superior results with significantly fewer parameters than previous methods. The use of GSA highlights that rain and snow have structural "flow," and treating Instance Normalization as a form of "distribution attention" allows the network to correct global color shifts without separate classification steps. While currently focused on single-image restoration, the inductive biases used here could potentially be extended to other types of image degradation, such as low-light enhancement or motion blur.
Summary updated