Skip to main content
QUICK REVIEW

[Paper Review] Controllable Semantic Image Inpainting

Jin Xu, Yee Whye Teh|arXiv (Cornell University)|Jun 15, 2018
Generative Adversarial Networks and Image SynthesisComputer Science5 references5 citations
TL;DR

This paper proposes a controllable semantic image inpainting method that generates semantically coherent and locally consistent image completions based on user-specified high-level semantics. It combines a disentangled variational autoencoder for interpretable latent control and a bidirectional PixelCNN for detailed, context-aware generation, achieving user-controllable, high-quality inpainting without post-processing or adversarial training.

ABSTRACT

We develop a method for user-controllable semantic image inpainting: Given an arbitrary set of observed pixels, the unobserved pixels can be imputed in a user-controllable range of possibilities, each of which is semantically coherent and locally consistent with the observed pixels. We achieve this using a deep generative model bringing together: an encoder which can encode an arbitrary set of observed pixels, latent variables which are trained to represent disentangled factors of variations, and a bidirectional PixelCNN model. We experimentally demonstrate that our method can generate plausible inpainting results matching the user-specified semantics, but is still coherent with observed pixels. We justify our choices of architecture and training regime through more experiments.

Motivation & Objective

  • To address the lack of user control in existing semantic inpainting methods, which either produce deterministic outputs or lack interactive control.
  • To enable user manipulation of high-level semantics (e.g., object type, color, pose) in image inpainting while preserving local texture and structural consistency.
  • To eliminate the need for post-processing techniques like Poisson blending or adversarial training by ensuring intrinsic coherence in generated results.
  • To design a training regime that supports both disentangled, interpretable latent representations and a powerful autoregressive decoder for high-fidelity generation.

Proposed method

  • Uses a disentangled PixelVAE to encode observed image patches into a disentangled latent space, where each dimension corresponds to an interpretable semantic factor.
  • Employs a bidirectional PixelCNN that models pixel dependencies in both forward and reverse raster scan orders, capturing local details and textures from surrounding observed pixels.
  • Introduces a two-stage training procedure: first pre-train the disentangled VAE on complete images, then jointly fine-tune the VAE and bidirectional PixelCNN on masked images.
  • Applies the InfoVAE-MMD objective to encourage disentanglement in the latent space while maintaining expressive generative capacity.
  • Enables user control by manipulating latent variables during inference, allowing diverse, semantically consistent inpainting results.
  • Uses a variational inference framework with a posterior approximation that leverages both context and latent codes, minimizing reconstruction error under a structured prior.

Experimental results

Research questions

  • RQ1Can a deep generative model produce semantically coherent and locally consistent image inpainting results that are controllable via user-specified semantics?
  • RQ2How can disentangled, interpretable latent variables be effectively learned under a variational autoencoder framework when combined with a powerful autoregressive decoder?
  • RQ3What is the impact of two-stage training on the disentanglement quality and controllability of the latent space in image inpainting?
  • RQ4Can bidirectional autoregressive modeling improve local detail generation without requiring adversarial loss or post-processing?

Key findings

  • The proposed method generates diverse, semantically coherent inpainting results that match user-specified semantics without requiring post-processing or adversarial training.
  • Two-stage training significantly improves the diversity and controllability of generated results compared to one-stage training, reducing noise and mask-dependent artifacts.
  • Latent code traversal reveals interpretable disentangled factors such as hue, gender, face width, and azimuth, confirming the model's ability to disentangle high-level semantics.
  • When missing regions are large, the model effectively preserves global semantic factors (e.g., face width, azimuth) even with limited context, demonstrating strong semantic generalization.
  • The bidirectional PixelCNN effectively captures local textures and details, ensuring spatial coherence without relying on external blending techniques.
  • One-stage training leads to noisy or inconsistent results due to latent variables learning to represent only the target region, making them mask-dependent and less generalizable.

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.