Abstract
Nighttime flare removal is a critical task for improving image quality in low-light photography and computer vision. Existing methods often struggle with the computational demands of high-resolution processing and the difficulty of distinguishing flare from scene content. We present MFDNet, a lightweight and efficient network that utilizes frequency decomposition via a Laplacian Pyramid. By isolating flare artifacts in low-frequency bands, MFDNet achieves state-of-the-art restoration quality while drastically reducing computational complexity, making it suitable for real-time 4K image processing.
Introduction
Capturing images at night frequently introduces "flare artifacts"—bright streaks, halos, and blobs caused by internal light scattering within camera lenses. These artifacts obscure visual information and degrade image aesthetics. Removing them is difficult because flares vary significantly in shape and color. Furthermore, processing high-resolution (e.g., 4K) images with standard deep learning models often leads to out-of-memory (OOM) errors or prohibitive processing times due to the heavy computational load of treating flare removal as a standard full-resolution restoration task.
Methods: Multi-Frequency Architecture
MFDNet addresses these challenges by decoupling the flare removal process across different frequency bands. The core of the architecture is the Laplacian Pyramid, which decomposes the input image into a low-frequency band (containing the bulk of the flare and illumination) and multiple high-frequency bands (containing sharp textures).
The network consists of two primary modules:
- Low-Frequency Flare Perception Module (LFFPM): This module operates at the lowest resolution where flares are most prominent. It employs a Transformer with "Axis-based Multi-head Attention" to capture global context with linear complexity, combined with a CNN encoder-decoder to preserve local details.
- Hierarchical Fusion Reconstruction Module (HFRM): The "cleaned" low-frequency features are progressively merged with high-frequency details. A learned mask guides this fusion to ensure that background textures remain sharp and are not blurred during the restoration process.
The model is trained using a hybrid loss function combining MSE, SSIM, and perceptual loss to ensure both structural accuracy and visual naturalness.
Key Results and Performance
MFDNet was evaluated on the Flare7K dataset and real-world test sets, demonstrating a superior balance between restoration quality and computational efficiency.
- Quality: MFDNet achieved the highest PSNR on both synthetic (30.79 dB) and real-world (26.98 dB) benchmarks, outperforming established models like Restormer and Uformer.
- Efficiency: At 512 x 512 resolution, MFDNet requires only 18.25 GMACs, compared to 682.86 GMACs for HINet—a nearly 37x reduction in computation.
- 4K Capability: MFDNet can process 4K images in approximately 0.78 seconds on an NVIDIA GTX 2080Ti, whereas many competing models fail due to memory constraints.
Conclusion
By leveraging frequency decomposition, MFDNet effectively isolates flare artifacts from scene content, allowing for high-efficiency restoration. While the model occasionally struggles with very dim light sources or high-frequency "shimmer" artifacts, it represents a significant step toward practical, high-resolution nighttime flare removal. Future work will focus on improving the recovery of original light source appearances.
Summary updated