TL;DR
HazeCLIP is a novel, language-guided adaptation framework that allows image dehazing models trained on synthetic data to successfully generalize to real-world hazy scenes. By leveraging the rich visual-language priors of a frozen CLIP model alongside region-specific masking, HazeCLIP accurately identifies and removes real-world haze without requiring any architectural modifications to the underlying network.
What Problem Does This Paper Address?
While deep learning models have achieved incredible success at clearing up hazy images, they suffer from a major Achilles' heel: domain shift. Most models are trained on synthetic datasets where haze is mathematically simulated. When deployed in the real world, these models struggle because actual atmospheric haze behaves quite differently from synthetic approximations.
To fix this, previous methods tried incorporating handcrafted physical priors (like assuming certain color channels are always dark in clean images) or learned priors. However, these rigid statistical assumptions often fail to capture the sheer diversity of real-world environments.
Recently, vision-language models like CLIP have shown a remarkable ability to understand image degradation through natural language. But directly applying CLIP to image dehazing introduces a new problem: sky bias. In CLIP's training data, hazy scenes often feature prominent grey skies. As a result, when CLIP looks at a hazy image, the sky region dominates its attention, causing it to completely overlook residual haze left behind on buildings, roads, or trees.
Methods
HazeCLIP solves these issues by acting as a fine-tuning wrapper around existing dehazing networks. Its pipeline consists of three core components:
- Region-Specific Dehazing: To eliminate the sky bias, the framework uses the Segment Anything Model (SAM) to split the image into sky and non-sky regions. This allows the model to evaluate and clear haze from the actual scene content independently of the sky.
- Contrastive Prompt Sets: The authors design three distinct prompt sets to guide the network:
- Sky Dehazing ($T_s$): Prompts specifically targeting the sky region.
- Non-Sky Dehazing ($T_n$): Prompts inserting objects like "building" or "people" into templates like "A picture of hazy [entity]".
- Image Enhancing ($T_e$): General quality prompts (e.g., "a bright and clean photo") to correct dull colors and artifacts.
- Dual-Loss Optimization: During fine-tuning, the network is optimized using a CLIP guidance loss (which pushes the image features closer to the positive text prompts) balanced by a fidelity loss to ensure the model doesn't experience "catastrophic forgetting" and lose its baseline texturing capabilities.
Datasets
- Pre-training: Synthetic data from the RIDCP dataset.
- Fine-tuning: The URHI (Unlabeled Real-world Hazy Images) split from the RESIDE dataset.
- Evaluation: The RTTS split from the RESIDE dataset, which contains over 4,000 diverse, real-world hazy images.
Key Insights and Ideas
- Isolating the Sky is Crucial: The most critical "aha" moment in the paper is demonstrating that masking out the sky allows CLIP's attention mechanisms to accurately map out and target haze in the rest of the scene. Without this masking, the network leaves significant haze residuals on foreground objects.
- Zero Architecture Overhead: Because HazeCLIP only modifies the loss function during the fine-tuning phase using a frozen CLIP model, it introduces zero new parameters to the underlying dehazing network. The computational cost during actual deployment (inference) remains exactly the same.
- Human-Aligned Priors: Because CLIP is trained on internet-scale human data, its aesthetic and structural priors align much closer to human perception than traditional mathematical formulas, resulting in more vibrant and natural-looking restorations.
Key Results
The authors plugged HazeCLIP into a popular dehazing network (MSBDN) and compared it against several state-of-the-art methods on real-world imagery.
- Quantitative Superiority: HazeCLIP achieved the best scores across all evaluated metrics on the RTTS dataset. Notably, it demonstrated a 30.7% improvement in the FADE metric (a no-reference fog density evaluator) over the next best method.
- Subjective Preference: In a user study involving 22 subjects, HazeCLIP secured the highest Mean Opinion Score (MOS) of 3.60.
- Excellent Generalization: To prove it is a universal framework, the authors applied HazeCLIP to three entirely different network architectures (GDN, FFANet, and MSBDN). In every single case, applying HazeCLIP significantly boosted the model's real-world performance across all metrics.
Limitations and Future Work
Despite its strong performance, the authors note two primary limitations:
- Handcrafted Prompts: The contrastive prompt sets used to guide CLIP were engineered manually. Future iterations could benefit from a more automated, learned prompt-tuning approach.
- Metric Deficiencies: The field currently lacks robust, universally accepted no-reference evaluation metrics specifically tailored to judge real-world image dehazing quality, making validation heavily reliant on user studies.
Summary updated