Pluralistic Image Completion with Gaussian Mixture Models

Xiaobo Xia, Wenhao Yang, Jie Ren, Yewen Li, Yibing Zhan, Bo Han, Tongliang Liu

TL;DR

This paper introduces PICMM, a novel framework for pluralistic image completion that uses a Probabilistic Graphical Model (PGM) and Gaussian Mixture Models (GMM) to generate multiple, diverse, and visually realistic results for missing image regions. By moving away from task-agnostic, unimodal constraints, the authors achieve state-of-the-art performance with an inference speed over 750 times faster than leading transformer-based methods.

The Challenge of Pluralistic Image Completion

Image completion—filling in "holes" or masked regions in a picture—is inherently subjective. For example, if a person's mouth is masked out, there are many valid ways to complete it: a smile, a neutral expression, or a slight frown. Generating multiple valid and diverse completions is known as pluralistic image completion.

The three types of images in the completion task: the masked input ($I_m$), the missing complement ($I_c$), and the original ground truth ($I_o$).

Existing methods often struggle with two main issues:

  1. Poor Interpretability: They rely on heuristic constraints (like perceptual loss) that aren't clearly linked to the mathematical objective of image completion.
  2. Lack of Diversity: Many models assume the distribution of possible completions follows a simple, unimodal Gaussian distribution. This "one-size-fits-all" approach is often task-agnostic and fails to capture the complex, multi-modal nature of real-world images, leading to results that are either repetitive or unrealistic.

A Probabilistic Approach: PGM and GMM

To address these limitations, the authors propose a unified probabilistic approach to make the image completion process more structured and explainable.

  • Probabilistic Graphical Model (PGM): The interactions between the masked image ($I_m$), the missing region ($I_c$), and the full image ($I_o$) are represented as a directed acyclic graph. This allows the complex completion task to be mathematically decomposed into manageable sub-procedures: inference, dynamic inference, and generation.
  • Gaussian Mixture Model (GMM): Instead of a single Gaussian distribution, PICMM uses a GMM to model the latent features of the missing region. Each "primitive" in the mixture can represent a different pattern or "mode" of completion (e.g., different facial expressions).
  • Task-Related Optimization: Unlike prior work where distribution parameters were fixed or task-agnostic, PICMM optimizes GMM parameters adaptively during training using a "frequency loss" and a "back-propagate-max-operation." This ensures the different primitives remain distinguishable and relevant to the specific image content.
  • End-to-End Training: The model combines the PGM-derived objectives with standard reconstruction and adversarial losses to ensure both diversity and high visual quality.

Datasets and Evaluation

The model was rigorously evaluated on five widely used benchmarks:

  • CelebA-HQ & FFHQ: High-quality human face datasets.
  • Paris StreetView: Images of city architecture.
  • Places2: A large-scale dataset of diverse natural and man-made scenes.
  • ImageNet: A massive, complex dataset used to test the model's generalizability.

Key Results and Insights

PICMM demonstrates superior performance across both qualitative and quantitative measures.

Qualitative comparison showing PICMM's ability to generate diverse, realistic expressions and scenes compared to the baseline PIC method.
  • Visual Quality and Diversity: By using a PGM, the authors turn a "black box" deep learning problem into a structured mathematical one. GMMs naturally allow the model to learn distinct features (like an eye being open or closed) rather than forcing a blurry average. As a result, PICMM produces sharper, more varied facial expressions and textures compared to baseline methods.
  • Quantitative Metrics: It achieved top-tier results in FID (Fréchet Inception Distance) for realism and LPIPS/DIV-FID for diversity. For instance, on the FFHQ dataset with center masks, PICMM achieved an FID of 10.604, significantly better than the baseline PIC's 14.513.
  • Inference Speed: While Transformers (like the ICT baseline) are powerful, they are computationally expensive for image generation due to iterative sampling. By using a latent-space GMM, PICMM achieves high diversity with a single forward pass of a decoder. PICMM takes roughly 0.235 minutes to generate results for a test set, while the transformer-based ICT takes 179.126 minutes—making PICMM over 750x faster.

Limitations and Future Work

  • Mode Dominance: Theoretically, if one GMM primitive becomes too dominant (probability $\approx 1$), diversity could collapse. While the authors didn't observe this in their experiments, it remains a potential risk in different settings.
  • Deterministic Scenarios: For very small missing regions, human cognition expects a deterministic (single) answer rather than a pluralistic one. Future work could explore how to adaptively switch between pluralistic and deterministic modes based on the mask size.
  • Broader Applications: The PGM approach could potentially be extended to other "diverse decision-making" tasks beyond just image pixels.

Summary updated

BibTeX
@inproceedings{xia2022pluralistic,
  author = {Xiaobo Xia and Wenhao Yang and Jie Ren and Yewen Li and Yibing Zhan and Bo Han and Tongliang Liu},
  title = {{Pluralistic Image Completion with Gaussian Mixture Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=wuunqp9KVw},
}
Figure