Skip to main content
QUICK REVIEW

[Paper Review] Probabilistic Semantic Inpainting with Pixel Constrained CNNs

Emilien Dupont, Suhas Suresha|arXiv (Cornell University)|Oct 8, 2018
Generative Adversarial Networks and Image SynthesisComputer Science33 references10 citations
TL;DR

This paper proposes Pixel Constrained CNNs, a probabilistic semantic inpainting method based on modified PixelCNNs that model image distributions conditioned on visible pixels, enabling diverse, realistic image completions with likelihood estimation. Experiments on MNIST and CelebA show high sample diversity and strong human perception correlation for MNIST, though likelihood estimates are less reliable for complex faces in CelebA.

ABSTRACT

Semantic inpainting is the task of inferring missing pixels in an image given surrounding pixels and high level image semantics. Most semantic inpainting algorithms are deterministic: given an image with missing regions, a single inpainted image is generated. However, there are often several plausible inpaintings for a given missing region. In this paper, we propose a method to perform probabilistic semantic inpainting by building a model, based on PixelCNNs, that learns a distribution of images conditioned on a subset of visible pixels. Experiments on the MNIST and CelebA datasets show that our method produces diverse and realistic inpaintings.

Motivation & Objective

  • To address the inherent uncertainty in image inpainting by generating multiple plausible completions instead of a single deterministic output.
  • To develop a model that learns a conditional distribution of images given visible pixels, enabling sampling from a distribution of realistic inpaintings.
  • To estimate the likelihood of generated inpaintings, allowing ranking of samples by plausibility.
  • To improve sample diversity compared to deterministic GAN-based or optimization-based methods.
  • To evaluate whether model-estimated likelihood correlates with human perception of image plausibility.

Proposed method

  • Extends PixelCNNs to condition on arbitrary sets of visible pixels, not just those above and to the left, enabling inpainting for irregular or non-rectangular masks.
  • Uses autoregressive modeling to predict each pixel's distribution based on previously generated pixels and the visible pixel constraints.
  • Introduces a conditional input mechanism that encodes the visible pixels and integrates them into the autoregressive generation process.
  • Employs a modified loss function that combines pixel-wise cross-entropy with a regularization term to maintain consistency with visible pixels.
  • Leverages the autoregressive structure to compute exact likelihoods of generated images, enabling model evaluation and sample ranking.
  • Applies a multi-scale architecture to improve modeling capacity and capture both local and global image structure.

Experimental results

Research questions

  • RQ1Can a probabilistic model generate diverse, realistic image inpaintings conditioned on visible pixels, even for irregular or non-rectangular masks?
  • RQ2Does the model’s estimated likelihood correlate with human perception of image plausibility?
  • RQ3How does the model’s performance compare to state-of-the-art deterministic inpainting methods in terms of diversity and realism?
  • RQ4Why do likelihood estimates fail to correlate with human perception on complex datasets like CelebA?
  • RQ5Can the model effectively propagate uncertainty through the autoregressive generation process, as shown by evolving pixel probability maps?

Key findings

  • The model generates diverse and realistic inpaintings on both MNIST and CelebA, with high sample diversity confirmed through visual and quantitative analysis.
  • On MNIST, 49.7% of user responses agreed with the model’s likelihood ranking, indicating strong correlation with human perception of plausibility.
  • On CelebA, 56.6% of users disagreed with the model’s likelihood estimates, suggesting the model’s likelihood estimation is less reliable for complex facial data.
  • The model’s pixel probability maps evolve over generation, showing increasing certainty as more pixels are sampled, and correctly biasing toward plausible completions.
  • Failure cases show the model can produce unrealistic inpaintings or mismatched pixels, especially near mask boundaries, indicating sensitivity to mask structure and model convergence.
  • The model’s likelihood estimation is computationally expensive due to autoregressive generation, requiring as many forward passes as there are pixels in the image.

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.