Frequency-Prior Enhanced Ambient Lighting Normalization via Visual Perceptual Refinement

Yuanfei Bao, Xin Lu, Xingbo Wang, Jiarong Yang, Anya Hu, Kunyu Wang, Jie Xiao, Dong Li, Xueyang Fu, Zheng-Jun ZhaWorkshops @ CVPR 2025

Abstract

The Ambient Lighting Normalization task aims to recover the detailed information lost in the image due to uneven lighting. Existing methods primarily focus on image reconstruction through pixel-level loss recovery and structural similarity constraints, often neglecting the visual perceptual quality of the restored image. To address this, we propose a novel two-stage optimization framework. In the first stage, a frequency-domain prior-enhanced model is employed to improve the understanding of various lighting conditions, optimizing the overall image brightness distribution while ensuring shadow removal and structural integrity. The second stage builds upon restoration accuracy by utilizing a lightweight and efficient restoration network for secondary optimization, ensuring that the restored result aligns more closely with human perception. Additionally, we strategically design loss function combination strategies at different stages to fully leverage the advantages of each model. Building upon the synergistic effects of the proposed two-stage optimization framework and training strategies, our approach achieves significant improvements in both objective accuracy and perceptual quality. Our approach won the championship in the NTIRE 2025 Ambient Lighting Normalization Challenge.

Introduction

Ambient Lighting Normalization (ALN) is the task of transforming images captured under uneven or harsh directional lighting into a version that appears to have been taken under perfectly uniform, diffuse light. While shadow removal is a well-studied field, real-world ALN scenarios are significantly more complex, featuring "self-shadowing," intricate material reflections, and multiple light sources. Standard deep learning models often struggle with these conditions, frequently leaving "ghost" artifacts or producing results that, while mathematically similar to ground truth, appear visually unnatural to human observers.

Methodology: The ALN-R Framework

To address these challenges, we propose ALN-R, a two-stage optimization framework that balances structural restoration with visual perceptual quality.

Stage 1: Blended-Frequency ALN (IFBlend)

The first stage utilizes the IFBlend model, which processes the image in both spatial and frequency domains. By employing techniques such as the Discrete Wavelet Transform (DWT), the model gains a better understanding of global brightness distributions. This stage focuses on the "heavy lifting": removing shadows and ensuring the underlying scene structure remains intact using $L_1$ and SSIM loss functions.

Stage 2: Visual Perceptual Refinement

The output from Stage 1 is passed into a lightweight NAFNet (Non-linear Activation Free Network). This stage performs secondary optimization to clean up faint edge traces and ensure the final result aligns with human visual perception. It introduces LPIPS (Learned Perceptual Image Patch Similarity) loss, which was found to be critical for boosting the Mean Opinion Score (MOS).

The two-stage ALN-R architecture featuring IFBlend and NAFNet refinement.

Training Strategies

The framework employs progressive training, starting with small image patches (128x128) and large batches, then moving to full-resolution images (1024x768). Additionally, pseudo-labeling was used to iteratively refine the network's parameters.

Experimental Results

The ALN-R method was evaluated on the ALN25 dataset (derived from Ambient6K), consisting of 5,000 high-resolution training pairs. Our approach achieved the championship in the NTIRE 2025 Ambient Lighting Normalization Challenge.

Quantitative Performance

ALN-R reached a SSIM of 0.878 and an LPIPS of 0.075, outperforming other teams significantly in perceptual metrics. The refinement stage is highly efficient, adding only approximately 2.9% to the total computational complexity (FLOPs) compared to the base model.

Qualitative Comparison

As shown in the visualizations below, ALN-R successfully removes deep shadows from complex objects, such as keyboards and cluttered desks, without the blurring or color distortion common in previous state-of-the-art methods like HirFormer or ConvIR.

Qualitative comparison of ALN-R against other state-of-the-art methods on complex scenes.

Conclusion

The ALN-R framework demonstrates that separating the "physics" of light restoration from the "aesthetics" of visual refinement leads to superior results in ambient lighting normalization. While the current two-stage process is computationally intensive during training, its performance in the NTIRE 2025 challenge validates the effectiveness of frequency-prior enhancement and perceptual loss. Future work will explore real-time adaptations and broader generalization to diverse camera sensors.

Summary updated

BibTeX
@inproceedings{bao2025frequency,
  author = {Yuanfei Bao and Xin Lu and Xingbo Wang and Jiarong Yang and Anya Hu and Kunyu Wang and Jie Xiao and Dong Li and Xueyang Fu and Zheng-Jun Zha},
  title = {{Frequency-Prior Enhanced Ambient Lighting Normalization via Visual Perceptual Refinement}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
  url = {https://openreview.net/forum?id=kSVRziO5pK},
}
Figure