Deep-Masking Generative Network: A Unified Framework for Background Restoration From Superimposed Images

Xin Feng, Wenjie Pei, Zihui Jia, Fanglin Chen, Guangming Lu, David Zhang

Introduction

In computer vision, tasks such as image reflection removal, deraining, and dehazing are typically treated as distinct research problems. However, they share a fundamental mathematical challenge: the input image is a "superimposed" composite of a clean background layer and a noisy layer. Existing deep learning approaches often rely on brute-force convolutional stacking or task-specific designs that fail to generalize across different types of noise.

The Deep-Masking Generative Network (DMGN) introduces a unified framework designed to restore clean backgrounds from images polluted by various superimposed artifacts. By employing a novel Residual Deep-Masking Cell (RDMC) and a coarse-to-fine generative strategy, the model treats noise not merely as an unwanted element to be removed, but as a "contrasting cue" that actively facilitates high-quality background reconstruction.

The DMGN framework uses a coarse-to-fine strategy, leveraging noise distribution maps (NDM) as contrasting cues to refine the final background.

Methodology

Coarse-to-Fine Generative Strategy

The DMGN architecture follows a two-phase generative process to progressively clean the input image:

  1. Coarse Phase: The network projects the input into a deep embedding space using VGG-19 features and "Hypercolumns." A separator then splits these features into background and noise constituents. Two parallel generators produce an initial coarse background image and a corresponding noise image (e.g., a map of rain streaks or haze).
  2. Refining Phase: Instead of discarding the predicted noise, the network utilizes it as an explicit contrasting cue. By identifying the spatial distribution of noise, the refining generator can better regularize source information and focus on restoring background details previously obscured by the superimposed layer.

The Residual Deep-Masking Cell (RDMC)

The core engine of the DMGN generators is the RDMC. Unlike standard convolutional layers, the RDMC learns a gating mask via an attention mechanism for every pixel. This mask dynamically controls the information flow, enhancing effective information needed for restoration while suppressing irrelevant or negative data. As the iterative restoration progresses, the mask values converge toward zero, indicating that less "new" information is required as the image becomes cleaner.

The complete DMGN architecture, highlighting the Head Feature Learning (HFL), Separator (S), Adapted Channel-wise Attention (ACA), and the dual-phase restoration process.

Key Insights

  • Noise as a Teacher: Explicitly generating a noise map helps the background restoration. By "subtracting" noise features from background features in the embedding space, the model learns a clearer boundary between the two layers.
  • Dynamic Information Filtering: The RDMC acts as a dynamic filter. In early generation stages, the mask allows significant information through to build the image; as it nears completion, the mask "shuts down" to prevent over-processing or artifacts.
  • Task-Agnostic Unity: Because the model learns to summarize noise patterns dynamically through its masking mechanism rather than relying on hard-coded physical priors (like the dark channel prior for haze), it generalizes across different types of image pollution.

Experimental Results

The authors evaluated DMGN across three distinct tasks using benchmark datasets including Real20 (reflections), Rain100H (heavy rain), and RESIDE (haze).

  • State-of-the-Art Performance: DMGN consistently outperformed specialized SOTA methods (such as IBCLN for reflections or PReNet for rain) in terms of Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM).
  • Efficiency: Despite its iterative nature, DMGN is more efficient than several competitors, utilizing 232.5 GFLOPs—significantly less than ERRNet (371.9) or IBCLN (289.2)—while achieving faster inference times.
  • Human Evaluation: In a study with 50 human subjects, DMGN's results were preferred 53.2% of the time when compared against three other top-tier reflection removal methods.
  • Cross-Task Robustness: DMGN demonstrated superior "zero-shot" style generalization. When tested on tasks it wasn't specifically tuned for, it maintained performance where task-specific models often failed completely.

Conclusion and Future Work

DMGN provides a robust, unified solution for restoring images from superimposed noise. While it achieves state-of-the-art results in common scenarios, the authors note that nighttime image restoration remains a challenge. In low-light conditions, the low contrast between background and noise makes it difficult for gating masks to effectively separate layers. Future research will focus on improving sensitivity to low-contrast features to address these challenging environments.

Summary updated

BibTeX
@article{feng2021deep,
  author = {Xin Feng and Wenjie Pei and Zihui Jia and Fanglin Chen and Guangming Lu and David Zhang},
  title = {{Deep-Masking Generative Network: A Unified Framework for Background Restoration From Superimposed Images}},
  journal = {IEEE Trans. Image Process.},
  year = {2021},
  url = {https://openreview.net/forum?id=6FEA41vqYx},
}
Figure