Contrastive Semantic-Guided Image Smoothing Network

Jie Wang, Yongzhen Wang, Yidan Feng, Lina Gong, Xuefeng Yan, Haoran Xie, Fu Lee Wang, Mingqiang Wei

TL;DR

CSGIS-Net is a novel deep learning framework that masters image smoothing by learning what not to do. By combining contrastive learning (using "negative" examples of bad smoothing) with semantic segmentation priors, the network achieves state-of-the-art results in preserving critical object structures while wiping away distracting textures.

What Problem Does This Paper Address?

Image smoothing is a classic "low-level" vision task: you want to remove "noise" or "texture" (like the grain of a wooden table or the blades of grass in a field) while keeping the "salient structures" (the edges of the table or the outline of a dog).

The authors identify two major flaws in current deep-learning approaches:

  1. The Generalization Gap: Most models are trained on a tiny amount of high-quality "ground truth" data. When they see a messy, real-world image, they often fail (a problem known as domain shift).
  2. Semantic Blindness: Traditional filters treat all pixels similarly based on local statistics. However, a "wall" and a "face" require different smoothing strengths. Without understanding what an object is (semantics), models often over-blur important details or leave behind stubborn textures.

Methods

The authors propose the Contrastive Semantic-Guided Image Smoothing Network (CSGIS-Net), which uses a multi-task learning strategy to solve these issues.

1. The Smoothing Backbone

The core is a smoothing network based on rHDC (residual Hybrid Dilated Convolution) blocks. It uses an "Edge Interpreter" to predict where edges are and a "Smooth Interpreter" to generate the final image.

2. Contrastive Learning (The "Negative Teacher")

Instead of just showing the model what a "perfect" smoothed image looks like, the authors use contrastive learning. They provide the model with "negative" samples—images that are either over-smoothed (blurry) or under-smoothed (too textured). The loss function forces the model's output to move away from these bad examples in a latent feature space and toward the ground truth.

3. Semantic Guidance

The network includes a Semantic Segmentation Module (using the popular Deeplabv3+ architecture). By forcing the model to also perform segmentation, it learns to recognize different objects. This "semantic awareness" allows the smoothing process to be adaptive—knowing that a brick texture should be smoothed out while the silhouette of a person must remain sharp.

Datasets

  • VOC-smooth (New): The authors created this dataset by augmenting the PASCAL VOC 2012 benchmark. It contains 15,000 images with three types of labels: texture-enhanced inputs, high-quality smoothing ground truths, and semantic segmentation masks. This is the first dataset to bridge smoothing and segmentation.
  • NKS: A synthetic dataset used for quantitative evaluation.
  • Natural/Real-world Images: Used for qualitative testing to prove the model's robustness.

Key Insights and Ideas

  • Negative Knowledge is Power: Most models only learn from success. By explicitly defining "over-smoothed" and "under-smoothed" images as negative samples, the model gains a much clearer boundary of what a "good" result looks like.
  • Smoothing Boosts Segmentation: Interestingly, the authors found that well-smoothed images actually improve the performance of segmentation tasks. By removing "non-semantic" textures, the high-level features of objects become clearer to the AI.
  • Texture-Semantic Link: The paper argues that texture is inherently linked to semantics. A model cannot perfectly smooth an image unless it understands the difference between a "texture" (like a pattern on a shirt) and a "structure" (the edge of the shirt).

Key Results

CSGIS-Net outperformed eight state-of-the-art methods (including traditional filters like the Bilateral Filter and recent deep learning models like JESS) across multiple metrics:

  • Quantitative: On the VOC-smooth dataset, it achieved a PSNR of 29.33 and an SSIM of 0.899, beating the next best method (JESS) by nearly 1.0 dB in PSNR.
  • Qualitative: Visual results show that CSGIS-Net is significantly better at removing "strong" textures (like heavy brickwork or complex fabric patterns) that typically cause other models to fail or produce "halo" artifacts.
  • Generalization: The model showed superior performance on real-world natural images, proving that the contrastive prior effectively mitigated the domain shift problem.

Limitations and Future Work

While highly effective, the authors note that the current framework is a complex multi-task system. Future work could involve:

  • Extending the method to other related tasks like image deraining or detail enhancement.
  • Exploring more efficient ways to exploit semantic information without requiring full segmentation masks, which are expensive to produce.
  • Optimizing the training time, as multi-task networks with contrastive modules can be computationally intensive to train.

Summary updated

BibTeX
@article{wang2022contrastive,
  author = {Jie Wang and Yongzhen Wang and Yidan Feng and Lina Gong and Xuefeng Yan and Haoran Xie and Fu Lee Wang and Mingqiang Wei},
  title = {{Contrastive Semantic-Guided Image Smoothing Network}},
  journal = {Computer Graphics Forum},
  year = {2022},
  doi = {10.1111/cgf.14681},
}

Loading related content...

Figure