MoWE: Mixture of Weather Experts for Multiple Adverse Weather Removal

Yulin Luo, Rui Zhao, Xiaobao Wei, Jinwei Chen, Yijie Lu, Shenghao Xie, Tianyu Wang, Ruiqin Xiong, Ming Lu, Shanghang Zhang · DOI

Introduction

Autonomous driving systems rely heavily on clear visual input to navigate safely. However, real-world conditions are rarely ideal. Cameras often encounter a variety of adverse weather conditions—such as rain, snow, and haze—that can occur simultaneously or in varying intensities. Existing image restoration methods often struggle with these "blind" scenarios where the specific type of degradation is unknown.

Traditional approaches typically fall into three categories: task-specific models that excel at one degradation but fail at others; task-agnostic models that require separate training for each condition; and multi-task models that often fail to distinguish between underlying scene textures and weather-induced artifacts. To address these limitations, we introduce MoWE (also referred to as WM-MoE), a Weather-aware Multi-scale Mixture-of-Experts framework. MoWE is designed to decouple image content from weather features, allowing for robust restoration across diverse and mixed weather conditions without prior knowledge of the weather type.

Proposed Architecture: WM-MoE

The core of MoWE is the Weather-aware Multi-scale MoE Transformer Block. Unlike standard Vision Transformers (ViTs) or basic Mixture-of-Experts (MoE) models, MoWE incorporates three key innovations to handle the complexities of weather removal.

Comparison of the standard MoE block versus the proposed Weather-Aware Multi-scale MoE block.

1. Weather-Aware Router (WEAR)

In a standard MoE, the router often becomes a bottleneck because it attempts to route tokens based on raw image data where weather and content are coupled. This leads to "weather-blind" routing. MoWE introduces the WEather-Aware Router (WEAR), which utilizes a decoupled approach. It takes weather-specific embeddings from a dedicated classification branch and concatenates them with content features. This ensures that the selection of experts is driven explicitly by the detected weather conditions rather than just image brightness or texture.

2. Multi-Scale Experts (MSE)

Weather degradations vary significantly in their spatial characteristics; for instance, rain streaks are fine and directional, while haze is global and smooth. Standard MoE models use identical Feed-Forward Networks (FFNs) as experts, which lack the flexibility to handle these varying scales. MoWE replaces these with Multi-Scale Experts, each equipped with depth-wise convolutions of different kernel sizes (e.g., 1x1, 3x3, 5x5, and 7x7). This allows the model to adaptively assign "wide-angle" experts to heavy occlusions and "fine-detail" experts to lighter degradations.

3. Weather Guidance Fine-grained Contrastive Learning (WGF-CL)

To ensure the weather embeddings are discriminative, MoWE employs a fine-grained contrastive learning strategy during training. By using weather labels as guidance at the patch level, the model learns to cluster features from similar weather conditions together while pushing different weather types apart in the latent space. This is crucial for handling non-uniform weather across a single frame.

Experimental Evaluation

The performance of MoWE was evaluated on several benchmarks, including a newly introduced dataset:

  • MAW-Sim: A Unity3D-based simulated dataset featuring 30 city scenes under five conditions (Clear, Rain, Snow, Fog, and Mix).
  • All-Weather: A public benchmark combining Outdoor-Rain, Raindrop, and Snow100K.
  • RainCityscapes & HazeCityscapes: Synthetic datasets used to measure the impact of restoration on downstream semantic segmentation tasks.

Key Results

MoWE achieves state-of-the-art results across all major benchmarks. On the All-Weather dataset, it reached a PSNR of 29.11 dB, significantly outperforming other leading models like Restormer (28.12 dB) and TransWeather (26.66 dB). On the MAW-Sim dataset, it maintained a strong lead with 30.46 dB PSNR.

Beyond visual metrics, MoWE demonstrated substantial benefits for autonomous driving. When restored images were processed by a semantic segmentation model, the Mean Intersection over Union (mIoU) improved significantly, indicating that MoWE effectively preserves the semantic integrity of the scene.

Insights and Discussion

A critical finding of this work is the importance of weather-aware routing. t-SNE visualizations reveal that while standard MoE routers fail to distinguish between different weather types at the token level, the proposed weather-aware router creates distinct clusters.

t-SNE visualization of the Weather-aware MoE, demonstrating effective feature separation for different weather conditions.

This separation allows the model to effectively delegate tasks to the most appropriate experts. Furthermore, the multi-scale nature of the experts ensures that the model can handle the diverse spatial frequencies inherent in different weather types.

Conclusion and Future Work

MoWE represents a significant step forward in "blind" adverse weather removal. By integrating weather-aware routing and multi-scale experts into a Transformer framework, it provides a robust solution for real-world autonomous driving. While the model is efficient during inference, future work will focus on further reducing the parameter count for deployment on resource-constrained edge devices and exploring performance on a wider array of unseen real-world weather conditions.

Summary updated

BibTeX
@misc{luo2023mowe,
  author = {Yulin Luo and Rui Zhao and Xiaobao Wei and Jinwei Chen and Yijie Lu and Shenghao Xie and Tianyu Wang and Ruiqin Xiong and Ming Lu and Shanghang Zhang},
  title = {{MoWE: Mixture of Weather Experts for Multiple Adverse Weather Removal}},
  year = {2023},
  eprint = {2303.13739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13739},
}
Figure