CFANet: Learning Conflict-Free Weather Adapters for All-Weather Image Restoration

Minglong Xue, Wenchao Yan, Guoan Guan, Palaiahnakote Shivakumara, Yirui WuarXiv 2026

Imagine you’re driving home through a nasty storm. It’s not just raining; there’s a thick fog rolling in, and maybe a bit of sleet. Your car’s computer vision system is trying to make sense of the road, but it’s struggling. Most AI models designed to "clean up" weather-degraded images are trained to handle one thing at a time: they are either "derainers," "dehazers," or "desnowers." When they encounter a messy cocktail of all three, they often trip over their own feet.

This is the problem tackled by CFANet (Conflict-Free Adapter Network). Instead of forcing an image into a single category, it treats weather as a flexible "recipe" of different conditions.

TL;DR

CFANet moves away from the "one-size-fits-all" approach to image restoration by recognizing that real-world weather is often a mixture—like rain coexisting with haze. By using a "mixture router" and specialized "adapters," it can dynamically blend restoration strategies to clean up complex, multi-weather images more effectively than traditional models.

What Problem Does This Paper Address?

In the world of computer vision, "all-in-one" restoration models are the holy grail. They aim to fix any weather degradation with a single network. However, most existing models rely on single-label modeling. They assume an image is either rainy or hazy.

As shown in the authors' motivation figure, real life is rarely that tidy:

Figure 1: Motivation of CFANet. (a) Real-world adverse weather can be composed of multiple known

When a model trained for a single label sees a "rain + haze" image, it might experience "task interference." The features it needs to remove rain might conflict with the features it needs to clear haze. The result? A restored image that looks "off," with weird artifacts or lingering blurriness.

Methods

The researchers introduced three clever components to make CFANet "conflict-free":

  1. Weather Mixture Router (WMR): Instead of using a standard softmax function (which forces the model to pick one dominant weather type), the WMR uses a sigmoid activation. This allows it to predict "non-exclusive" weights. It might say, "This image is 80% hazy and 40% rainy," allowing both restoration paths to activate simultaneously.
  2. Shared-Private Weather Adapter (SPWA): This is the heart of the system. Inside the network's blocks, there is one Common Adapter (which handles general image restoration tasks like fixing edges and textures) and three Private Adapters (one each for rain, haze, and snow). The weights from the WMR tell the model how much to listen to each private expert.
  3. Natural Color Adapter (NCA): Weather restoration often leaves images looking a bit "washed out" or color-shifted. The NCA is a lightweight module that performs a final color calibration to ensure the output looks natural to the human eye.
Overview of the CFANet framework, showing the Weather Mixture Router and the Shared-Private Weather Adapter architecture.

To keep these "experts" from getting lazy and overlapping, the authors used a Conflict-Free Learning Objective. This includes an "orthogonality constraint"—essentially a mathematical nudge that forces the rain adapter to stay distinct from the haze adapter.

Datasets

The model was put through its paces using a mix of massive synthetic and real-world datasets:

  • Training: A combination of Snow100K (50k pairs), SRD (rain, 13k pairs), OTS (haze, 72k pairs), and CDD-11 (specifically for compound weather).
  • Evaluation: Standard benchmarks like SOTS-Outdoor, Rain100H/L, and real-world sets like RTTS (dehazing) and SPA-DATA (deraining).

Key Insights and Ideas

  • Weather as a Composition: The biggest "aha" moment is treating weather as a continuous mixture rather than a discrete category. This allows the model to handle "edge cases" that aren't purely one thing or another.
  • Shared vs. Private Knowledge: By separating "how to fix an image" (Shared) from "how to fix this specific weather" (Private), the model becomes much more efficient. The private adapters are lightweight, meaning the model doesn't bloat in size even though it's becoming more specialized.
  • Orthogonality Matters: The paper proves that if you don't explicitly force the weather adapters to be different (via the conflict-free loss), they tend to drift together, losing the benefits of specialization.

Key Results

CFANet didn't just perform well; it set new high-water marks:

  • Compound Weather: On the CDD-11 dataset (mixed weather), CFANet outperformed the previous best model (WeatherRemover) by 0.86 dB in PSNR for Haze+Rain images. In the world of image restoration, a nearly 1 dB jump is significant.
  • Downstream Tasks: The researchers tested how well a YOLOv8 object detector performed on images cleaned by CFANet. On the hazy RTTS dataset, detection precision jumped from 66.45% (unenhanced) to 71.10%.
  • Efficiency: Despite the extra modules, CFANet remains fast, clocking in at ~98ms per image on a modern GPU—much faster than newer diffusion-based models.

Limitations and Future Work

While CFANet is a leap forward, the authors note a few areas for improvement:

  • Fixed Primitives: Currently, it only knows about rain, haze, and snow. It doesn't yet handle low-light conditions or motion blur.
  • Spatial Uniformity: The router predicts one set of weights for the entire image. In reality, it might be raining harder on the left side of a photo than the right. Future versions might use "spatially adaptive" routing.
  • Triple Threats: The study focused mostly on dual-weather (Rain+Haze). Testing on triple-weather (Rain+Haze+Snow) remains a challenge for the future.

Summary updated

Abstract

All-weather image restoration aims to recover clean images from diverse weather degradations such as rain, haze, and snow. Most existing all-in-one methods handle different weather types with a unified network or rely on single-label weather modeling. However, real-world adverse weather is often compositional, where multiple known weather primitives may coexist in a single image. To this end, we propose Conflict-Free Adapter Network (CFANet) for open-compositional all-weather image restoration. CFANet first employs a Weather Mixture Router (WMR) to predict non-exclusive composition weights for rain, haze, and snow from shallow features. Guided by these weights, a Shared-Private Weather Adapter (SPWA) dynamically composes a common adapter with weather-private adapters inside each Conflict-Free Adapter Block, preserving shared restoration capability while providing weather-specific residual adaptation. Moreover, a lightweight Natural Color Adapter (NCA) performs constrained color calibration to improve color fidelity and visual naturalness. Extensive experiments demonstrate that the proposed method achieves competitive adverse weather image restoration performance and benefits downstream visual tasks. Our code is available at https://github.com/wenchao-tech/CFANet-main
BibTeX
@misc{xue2026cfanet,
  author = {Minglong Xue and Wenchao Yan and Guoan Guan and Palaiahnakote Shivakumara and Yirui Wu},
  title = {{CFANet: Learning Conflict-Free Weather Adapters for All-Weather Image Restoration}},
  year = {2026},
  eprint = {2611.29257},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29257},
}
Figure