MFDNet: Multi-Frequency Deflare Network for efficient nighttime flare removal

Yiguo Jiang, Xuhang Chen, Chi-Man Pun, Shuqiang Wang, Wei Feng

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 MFDNet architecture utilizes a Laplacian Pyramid for frequency decomposition, followed by specialized modules for flare perception and hierarchical fusion.

The network consists of two primary modules:

  1. 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.
  2. 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.

Comparison of PSNR vs. GMACs on synthetic (left) and real-world (right) datasets, highlighting MFDNet's 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

Abstract

When light is scattered or reflected accidentally in the lens, flare artifacts may appear in the captured photographs, affecting the photographs’ visual quality. The main challenge in flare removal is to eliminate various flare artifacts while preserving the original content of the image. To address this challenge, we propose a lightweight Multi-Frequency Deflare Network (MFDNet) based on the Laplacian Pyramid. Our network decomposes the flare-corrupted image into low- and high-frequency bands, effectively separating the illumination and content information in the image. The low-frequency part typically contains illumination information, while the high-frequency part contains detailed content information. So our MFDNet consists of two main modules: the Low-Frequency Flare Perception Module (LFFPM) to remove flare in the low-frequency part and the Hierarchical Fusion Reconstruction Module (HFRM) to reconstruct the flare-free image. Specifically, to perceive flare from a global perspective while retaining detailed information for image restoration, LFFPM utilizes Transformer to extract global information while utilizing a convolutional neural network to capture detailed local features. Then HFRM gradually fuses the outputs of LFFPM with the high-frequency component of the image through feature aggregation. Moreover, our MFDNet can reduce the computational cost by processing in multiple frequency bands instead of directly removing the flare on the input image. Experimental results demonstrate that our approach outperforms state-of-the-art methods in removing nighttime flare on real-world and synthetic images from the Flare7K dataset. Furthermore, the computational complexity of our model is remarkably low.
BibTeX
@article{jiang2024mfdnet,
  author = {Yiguo Jiang and Xuhang Chen and Chi-Man Pun and Shuqiang Wang and Wei Feng},
  title = {{MFDNet: Multi-Frequency Deflare Network for efficient nighttime flare removal}},
  journal = {The Visual Computer},
  year = {2024},
  url = {https://openreview.net/forum?id=SOrKqKfZad},
}
Figure