Paper commentary
An All-in-One Network for Dehazing and Beyond
A single network learns to dehaze images end to end
- Problem Dehazers estimate transmission and atmospheric light separately, so their errors add up in the final image. The clean image is never directly optimized.
- Method AOD-Net is a light CNN that merges transmission and atmospheric light into one map K(x). It learns K(x) from the hazy input and computes the clean image directly.
- Results On TestSet B, AOD-Net scored SSIM 0.9272, compared to 0.8879 for CAP.
Why two-step dehazing stalls
Most dehazers follow the same three steps: estimate the transmission, estimate the global atmospheric light, then compute the clean image from the physical model. Each step is fitted on its own, so an error in the transmission or the light carries into the final image. Those errors can add up and amplify each other, and the procedure never directly minimizes the reconstruction error.
Learned dehazers such as DehazeNet and MSCNN still aim at the transmission map rather than the clean image. Denoising, deblurring and super resolution are usually trained end to end to regress the clean image directly. The authors argue that haze differs, because its effect depends on the depth of each pixel, so the mapping has to adapt to each input.
On that basis they state that no end-to-end deep dehazing model had appeared before this work.
Evaluation adds a second obstacle. Synthetic hazy images can be scored with PSNR and SSIM, but real hazy photos have no ground truth, so only visual comparison remains. Differences between dehazers then show up mostly as global illumination and tone, which are hard to judge by eye.
Haze also degrades high-level tasks such as object detection. Yet no earlier work had examined how dehazing quality relates to high-level vision performance.
Folding transmission and atmospheric light into one map
The key idea is to merge the transmission and the atmospheric light into one variable, K(x), and to let a network learn K(x) directly from the hazy input. The clean image then follows from the hazy input and K(x), so training can minimize the error on the clean image itself.
The atmospheric scattering model writes the hazy image \(I(x)\) as scene radiance \(J(x)\) weighted by transmission \(t(x)\), plus global atmospheric light \(A\) weighted by \(1-t(x)\).
Re-expressing that model gives the Transformed Formula, in which the clean image is a function of \(I(x)\) and \(K(x)\) plus a constant bias \(b\). \[ J(x)=K(x)I(x)-K(x)+b \] The bias \(b\) defaults to 1, and \(K(x)\) changes with each hazy input, which is why the model has to be input adaptive.
The K-estimation module has five convolutional layers, and it concatenates features from earlier layers at three points. Each convolution uses only three filters, which keeps the network light compared with the deep models it follows. The clean image generation module then applies one element-wise multiplication and several element-wise additions, which carry out the Transformed Formula.
To test whether joint estimation matters, the authors built a naive baseline that estimates \(A\) with the Dark-Channel Prior and then learns \(t(x)\). That baseline overestimates \(A\) and produces overexposed images, while AOD-Net gives more realistic lighting. The authors attribute the gain to \(1/t(x)\) and \(A\) refining each other during training.
Training data and settings
AOD-Net is trained on hazy images synthesized from NYU2 Depth Database ground truth with the atmospheric scattering model. Atmospheric light is drawn for each channel uniformly between 0.6 and 1.0, and \(\beta\) is chosen from seven values between 0.4 and 1.6. This yields 27,256 training images, 3,170 images in TestSet A, and the 800 full-size Middlebury images as TestSet B.
Training uses the MSE loss, Gaussian initialization, ReLU neurons, momentum 0.9 and weight decay 0.0001. Batches hold 8 images of 480×640, the learning rate is 0.001, and the gradient norm is clipped within [-0.1, 0.1]. The model converges in around 10 epochs, and the authors trained it for 40. The authors report that the MSE loss improved PSNR and SSIM as well as visual quality.
At test time AOD-Net takes only the hazy image as input. Natural photos are therefore a generalization test, since the network never sees real hazy images during training.
Synthetic test results against baselines
On TestSet A, AOD-Net scored PSNR 19.6954 and SSIM 0.8478, the highest values in Table I. The closest competitor, CAP, scored 19.6364 and 0.8374, so the PSNR margin is small. On TestSet B, AOD-Net scored PSNR 21.5412 and SSIM 0.9272, compared to 21.4544 and 0.8879 for CAP.
MSE training explains the PSNR lead, but SSIM is not an optimization target, so the SSIM lead is less expected. To find where the SSIM gain comes from, the authors split each TestSet B image into a mean image and a residual image, because MSE separates into those two parts. The mean-image MSE of AOD-Net is 260.12, below CAP at 356.68 and DehazeNet at 424.90.
The residual error is similar to that of DehazeNet and CAP, so the authors link the gain to global illumination, which the mean image represents.
The ablation replaces the inter-layer concatenations with a plain conv1 to conv5 chain. On TestSet A this variant reached PSNR 17.0517 and SSIM 0.7688, below AOD-Net's 19.6954 and 0.8478. On TestSet B its PSNR was 22.3359 against 21.5412, slightly higher, but its SSIM fell to 0.9032 against 0.9272. The authors conjecture that the concatenations smooth the transition from low-level to higher-level features, a hypothesis they base on an empirical finding.
Natural and edge-case images
Natural hazy photos have no clean reference, so the authors compare the results visually. FVR shows overly enhanced artifacts, and DCP, BCCR, ATM, NLD and MSCNN produce unrealistic color tones on some images. The authors judge AOD-Net to keep richer, more saturated colors while suppressing most artifacts.
On white scenes the DCP results show heavy artifacts in the sky, and CAP, DehazeNet and MSCNN still show problems. The authors describe AOD-Net as almost artifact-free there, although they did not add any handling for white scenes. The authors report that AOD-Net changes haze-free inputs little, on two clean images from Colorlines. Anti-halation, a different enhancement task, was tried without retraining, and the authors call those results decent.
Object detection with joint tuning
Naive Faster R-CNN falls from 0.6954 on clean images to 0.5155 under heavy haze, a loss of nearly 0.18.
Without tuning, DCP plus Faster R-CNN gives the highest heavy-haze mAP among the pipelines, at 0.6267. AOD-Net plus Faster R-CNN scored 0.5794 without tuning, above naive 0.5155 but below MSCNN at 0.5973. So the dehazing module alone does not beat the best dehazer before joint tuning.
After joint tuning, JAOD-Faster R-CNN scored 0.6819 on heavy haze, up from 0.5794. Tuning used a learning rate of 0.0001 for the first 35,000 iterations and 0.00001 for the next 65,000, with momentum 0.9 and weight decay 0.0005. Retrained Faster R-CNN reached 0.6756, which is still below JAOD-Faster R-CNN.
The control Auto-Faster R-CNN replaces AOD-Net with an auto-encoder of the same parameter count. It scored 0.6573 on heavy haze, below 0.6819 for JAOD-Faster R-CNN. The authors read this as evidence that extra parameters alone don't explain the gain, which needs a task-specific dehazing design.
With one training set mixing haze levels, with \(\beta\) sampled from [0, 0.1], JAOD-Faster R-CNN scored 0.6682 on the heavy test set. Retrained Faster R-CNN scored 0.6631 there, and both models are slightly below their dedicated counterparts, while JAOD-Faster R-CNN stays ahead.
Speed of the pipeline
The authors ran the Matlab and Pycaffe methods on 50 TestSet A images, on an Intel Core i7-6700 CPU without GPU acceleration. AOD-Net averaged 0.65 seconds per image, compared to 5.09 seconds for DehazeNet in Pycaffe. The authors describe this as about one tenth of DehazeNet's time.
The 0.026 seconds per 480×640 image in the introduction is a single-GPU measurement, on a different platform from Table IV. With the detector, the per-image average was 0.166 seconds for Retrained Faster R-CNN and 0.192 seconds for JAOD-Faster R-CNN on an NVIDIA GeForce GTX TITAN X GPU. The authors say the added complexity is small because AOD-Net is light.
Limitations
The authors name depth estimation as the main limit, since dehazing is closely tied to depth. They suggest adding depth prior knowledge or a dedicated depth module to improve AOD-Net.
The quantitative tests use NYU2 and Middlebury synthetic images, and natural photos are judged only by eye. The detection study uses synthetic Pascal VOC 2007 sets and one Faster R-CNN setup, with a VGG16 model pretrained on 20 classes. The ablation tests only the removal of the inter-layer concatenations.
The running-time comparison mixes a CPU Pycaffe measurement with GPU numbers for the detection pipeline, so the two aren't directly comparable.
Paper info
- Authors
- Boyi Li, Xiulian Peng, Zhangyang Wang, Jizheng Xu, Dan Feng
- Venue
- arXiv · Preprint
- First published
- 2017-7-20
- Added
- 2026-11-12
- Updated
- 2017-7-20
- Version
- v1
- arXiv
- 1707.06543
- Category
- cs.CV · cs.AI
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Boyi Li, Xiulian Peng, Zhangyang Wang, Jizheng Xu, Dan Feng (2017). An All-in-One Network for Dehazing and Beyond. arXiv:1707.06543v1. https://arxiv.org/abs/1707.06543v1
BibTeX
@misc{li2017network,
title = {{An All-in-One Network for Dehazing and Beyond}},
author = {Boyi Li and Xiulian Peng and Zhangyang Wang and Jizheng Xu and Dan Feng},
year = {2017},
eprint = {1707.06543},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1707.06543v1}
}