Real-world single-image dehazing suffers from severe domain shifts, as paired real data is scarce and models trained on synthetic haze generalize poorly to real-world haze. While pre-trained generative editing models offer powerful image priors to bridge this generalization gap, applying them to image dehazing poses two major challenges: standard generative models prioritize distribution alignment over strict pixel-level fidelity, and operating in compressed latent spaces inherently discards fine-grained structural details. In this paper, we propose a novel two-stage framework that adapts the generative prior of a few-step flow-matching backbone to real-world dehazing. In the first stage, we fine-tune the latent backbone using Low-Rank Adaptation (LoRA), supervised not only on a flow-matching objective, but also on pixel-level supervision, thus enabling direct hazy-to-clear translation. In the second stage, we introduce structure-preserving skip connections directly to the VAE decoder, bypassing latent compression artifacts to recover precise spatial edges. Experiments on four realworld benchmarks demonstrate that our approach significantly outperforms existing dehazing methods in real conditions.
Figures & tables
Figure 2: Overview of the proposed framework. In the first stage, we fine-tune the transformer in latent space, using the hazy latent zh as reference and a fixed prompt c , producing the clean latent estimate z^0 in four steps with supervision from both latent space and pixel space. In the second stage, we compensate for the detail lost to latent compression: gated image structure adapters G0 – G3 feed the hazy image into the four decoder levels under a learned per-pixel gate. The VAE and the FLUX.2 [klein] [ 29 ] transformer stay frozen, and only the LoRA adapters and the gated image structure adapters are trained in the first and second stages, respectively.
Figure 3: Pixel-wise ℓ1 differences and structural errors of the hazy input and Stage-1 output relative to the GT. Row 1: hazy input I and its structural error map S(I,J) . Row 2: Stage-1 dehazed output J^s1 and its structural error map S(J^s1,J) . Row 3: ground truth J and the pixel-wise ℓ1 difference map ∣J^s1−J∣ . Here, S(I1,I2)=1−s(I1,I2) , where s(I1,I2) denotes the structure term of SSIM [ 47 ] between images I1 and I2 . Each error map is annotated with its spatial mean (top right). For visibility, only the zoomed-in hazy input is contrast-stretched, and this does not affect the computation of S .
Figure 4: Architecture of the gated image structure adapter Gi at decoder level i . Individual parameters are learned for each level.
Method
Dense-Haze
I-HAZE
O-HAZE
NH-HAZE
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
DehazeDDPM [2023] [ 50 ]
15.45
0.456
–
–
–
–
19.44
0.628
FocalNet [ICCV 2023] [ 8 ]
16.95
0.597
–
–
25.46
0.791
20.36
0.696
ConvIR [TPAMI 2024] [ 9 ]
16.86
0.600
–
–
25.25
0.784
20.65
0.692
SGDN [AAAI 2025] [ 13 ]
16.60
0.571
–
–
24.59
0.778
20.13
0.680
DeHamer [CVPR 2022] [ 19 ]
16.62
0.560
19.44
0.790
22.42
0.693
20.66
0.684
Table 1: Quantitative comparison with state-of-the-art methods on Dense-Haze, I-HAZE, O-HAZE, and NH-HAZE. Best and second-best models are marked.
Method
PSNR ↑
SSIM ↑
LPIPS ↓
ΔE↓
FID ↓
Q-Align ↑
RQI ↑
CLIPIQA ↑
TPIPS ↓
DeHamer [CVPR 2022] [ 19 ]
18.72
0.676
0.524
11.91
156.52
3.25
0.464
0.46
0.132
MB-TaylorFormer-B [ICCV 2023] [ 38 ]
19.52
0.631
0.498
10.65
154.22
3.23
0.443
0.37
0.128
MB-TaylorFormer-L [ICCV 2023] [ 38 ]
18.66
0.628
0.507
12.11
191.91
3.15
0.440
0.41
0.125
MB-TaylorFormer-B V2 [TPAMI 2025] [ 26 ]
20.37
0.679
0.480
9.98
133.14
3.47
0.458
0.38
0.106
MB-TaylorFormer-L V2 [TPAMI 2025] [ 26 ]
20.15
0.658
0.488
10.29
139.18
3.41
0.457
0.37
0.110
DehazeXL [CVPR 2025] [ 6 ]
19.19
0.712
0.488
9.46
129.66
3.44
0.449
0.30
0.104
Table 2: Quantitative comparison with state-of-the-art methods on Merge-HAZE. Best and second-best models are marked.
Train Data
Method
Dense-Haze
I-HAZE
O-HAZE
NH-HAZE
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
Dense- Haze
VIVNet
–
–
19.68
0.750
18.32
0.599
15.20
0.535
HNDiff
–
–
16.02
0.722
18.12
0.593
16.44
0.624
Ours
–
–
20.23
0.823
21.98
0.709
19.23
0.649
I-HAZE
VIVNet
13.85
0.514
–
–
21.68
0.695
15.42
0.586
Ours
15.56
0.591
–
–
20.00
0.684
15.80
0.574
Table 3: Cross-dataset generalization. Each block trains on one dataset and tests on the remaining three. Best result per column within a block in bold .
Method
Dense-Haze
I-HAZE
O-HAZE
NH-HAZE
Merge-HAZE
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
ΔE
FLUX.2 [klein]
10.53
0.506
10.20
0.599
11.88
0.400
14.96
0.519
11.94
0.506
22.317
Ours (Stage 1)
17.66
0.611
24.55
0.852
25.31
0.730
21.15
0.651
20.61
0.699
8.734
Ours (Stage 2)
18.01
0.628
24.30
0.854
26.46
0.797
21.69
0.714
20.98
0.722
8.488
Table 4: Ablation of two-stage training on five haze datasets.
Loss
PSNR ↑
SSIM ↑
LPIPS ↓
ΔE↓
FID ↓
Q-Align ↑
FLUX.2 [klein] w/o finetune
10.20
0.599
0.552
24.68
433.84
1.98
Llat
23.62
0.839
0.438
5.96
65.02
4.42
Llat+L1
23.63
0.842
0.440
5.60
54.42
4.47
Llat+L1+LLPIPS
24.08
0.851
0.436
5.20
59.24
4.43
Llat+L1+LLPIPS+LSSIM
24.55
0.852
0.463
5.28
51.61
4.46
Table 5: Ablation on pixel losses (Stage 1) on I-HAZE.
Figure 5: Comparison of the reconstruction details between the baseline FLUX.2 [klein], ours (stage 1), and ours (stage 2).
Figure 6: Qualitative comparison on real-world hazy images.
Figure 7: Qualitative comparison on hazy images from the I-HAZE, O-HAZE, Dense-Haze, and NH-HAZE datasets, including challenging cases such as severe haze (Rows 1 to 3) and non-homogeneous haze (Rows 6 and 7). From left to right, we show the original images, the results of DeHamer [ 19 ] , the MB-TaylorFormer V2 [ 26 ] , DehazeXL [ 6 ] , VIVNet [ 10 ] , and HNDiff [ 20 ] , our results, and the ground truth.
Rank
PSNR ↑
SSIM ↑
LPIPS ↓
ΔE↓
FID ↓
Q-Align ↑
8
23.95
0.845
0.441
5.410
59.61
4.443
16
24.01
0.848
0.439
5.282
55.17
4.456
32(Ours)
24.55
0.852
0.463
5.275
51.61
4.458
Table 6: Ablation on LoRA ranks (Stage 1) on I-HAZE.
Dense-Haze
I-Haze
O-Haze
NH-HAZE
Model
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
PSNR
SSIM
BiLaLoRA (released)
9.92
0.472
14.98
0.667
15.54
0.632
11.87
0.553
BiLaLoRA (fine-tuned)
12.75
0.467
16.84
0.501
18.42
0.620
15.51
0.617
Ours
18.01
0.628
24.30
0.854
26.46
0.797
21.69
0.714
Table 7: Quantitative comparison on four real-world haze datasets.
Table 8: Parameter count and inference speed on an RTX 4090.
Figure 8: Examples of results in real hazy images. From left to right, we show input, HNDiff [ 20 ] , DeHamer [ 19 ] , MB-TaylorFormer V2 [ 26 ] , DehazeXL [ 6 ] , VIVNet [ 10 ] , and our method. Our method obtains more natural results, without any type of artifacts.
Figure 9: Further examples of results in real hazy images. From left to right, we show input, HNDiff [ 20 ] , DeHamer [ 19 ] , MB-TaylorFormer V2 [ 26 ] , DehazeXL [ 6 ] , VIVNet [ 10 ] , and our method. Our method obtains more natural results, without any type or artifacts.
Department of Computer Science, National Yang Ming Chiao Tung University, Taiwan · National Tsing Hua University, Taiwan · National Chengchi University, Taiwan +1