Skip to main content
QUICK REVIEW

[Paper Review] Masked Diffusion as Self-supervised Representation Learner

Zixuan Pan, Jianxu Chen|arXiv (Cornell University)|Aug 10, 2023
Generative Adversarial Networks and Image SynthesisComputer Science6 citations
TL;DR

This paper proposes the Masked Diffusion Model (MDM), a self-supervised representation learner for semantic segmentation that replaces Gaussian noise with masking in diffusion models, using Structural Similarity (SSIM) loss to align pre-training with downstream dense prediction tasks. MDM achieves state-of-the-art performance, especially in few-shot scenarios, demonstrating that generative capability is not essential for strong representation learning.

ABSTRACT

Denoising diffusion probabilistic models have recently demonstrated state-of-the-art generative performance and have been used as strong pixel-level representation learners. This paper decomposes the interrelation between the generative capability and representation learning ability inherent in diffusion models. We present the masked diffusion model (MDM), a scalable self-supervised representation learner for semantic segmentation, substituting the conventional additive Gaussian noise of traditional diffusion with a masking mechanism. Our proposed approach convincingly surpasses prior benchmarks, demonstrating remarkable advancements in both medical and natural image semantic segmentation tasks, particularly in few-shot scenarios.

Motivation & Objective

  • To decouple the generative capability of diffusion models from their representation learning potential, challenging the assumption that denoising is essential for strong features.
  • To address the mismatch between reconstruction pre-training and downstream dense prediction tasks, particularly in few-shot settings with lightweight models.
  • To propose a novel pre-training paradigm—Masked Diffusion Model (MDM)—that replaces noise with masking, enabling scalable self-supervised learning.
  • To improve alignment between pre-training objectives and segmentation performance by replacing MSE loss with SSIM loss.
  • To empirically validate MDM’s superiority over DDPM and MAE across medical and natural image segmentation benchmarks.

Proposed method

  • Replace the conventional additive Gaussian noise in diffusion models with a dynamic masking mechanism that probabilistically masks image patches based on timestep.
  • Train a time-aware U-Net to reconstruct the original image from masked inputs, using a diffusion process with T timesteps.
  • Use Structural Similarity (SSIM) loss instead of Mean Squared Error (MSE) to minimize distributional discrepancy between pre-training and downstream segmentation tasks.
  • Train the model to predict the original image (or masked regions) at each timestep, with reconstruction targets optimized for semantic consistency.
  • Adopt a noise-prediction strategy in DDPM variants, where the model learns to predict the noise added during corruption, improving representation quality.
  • Evaluate the learned representations via fine-tuning on downstream semantic segmentation tasks using mIoU as the primary metric.

Experimental results

Research questions

  • RQ1Can the generative capability of diffusion models be decoupled from their representation learning performance?
  • RQ2Does replacing Gaussian noise with masking in diffusion models still yield strong semantic representations for segmentation?
  • RQ3Is SSIM loss more effective than MSE loss in aligning pre-training objectives with downstream dense prediction tasks?
  • RQ4How does MDM perform in few-shot segmentation scenarios compared to DDPM and MAE?
  • RQ5Does the choice of reconstruction target (noise vs. image) significantly affect downstream segmentation accuracy?

Key findings

  • MDM achieves state-of-the-art mIoU on GlaS (84.51 ± 1.15) and FFHQ-34 (59.18 ± 0.11) in few-shot settings, outperforming DDPM and MAE.
  • With SSIM loss, MDM achieves 84.51 ± 1.15 mIoU on GlaS at 10% labeled data, a significant improvement over DDPM (82.32 ± 0.77) and MAE (79.47 ± 1.08).
  • The use of SSIM loss improves performance on both MDM and DDPM, but not on MAE, indicating its effectiveness is context-dependent on the corruption mechanism.
  • MDM with MSE loss (82.70 ± 0.79) already outperforms MAE (79.47 ± 1.08), and further gains are achieved with SSIM loss (84.51 ± 1.15).
  • Even in degraded forms (e.g., single-timestep), MDM and DDPM outperform MAE, suggesting that the diffusion process enhances representation learning beyond simple autoencoding.
  • The model trained to predict noise (εt) achieves higher downstream accuracy than predicting the clean image (x0), consistent with prior diffusion literature.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.