Introduction
Image completion, or inpainting, is the task of filling in missing regions of an image with semantically plausible content. Traditionally, this has been treated as a deterministic problem where models are trained to reconstruct a single ground-truth image. However, image completion is inherently ambiguous; a missing mouth could be smiling or frowning, and a missing window could have various architectural styles. Researchers have introduced PICNet (Pluralistic Image Completion Network) to address this by generating multiple, diverse, and high-quality results for a single input.
The Limitations of Deterministic Models
Most existing deep learning models for inpainting suffer from two primary drawbacks:
- Lack of Diversity: By minimizing the distance to a single ground truth, models often produce an "average" result that lacks sharp, diverse details.
- VAE Collapse: While Conditional Variational Auto-Encoders (CVAEs) theoretically allow for sampling from a distribution, they often experience "posterior collapse" in inpainting. The latent distribution becomes a single point, leading to nearly identical outputs regardless of the random noise input.
The PICNet Framework
PICNet utilizes a dual-pipeline architecture to overcome these hurdles:
- Reconstructive Path: Used only during training, this path sees the full ground-truth image and learns the latent distribution of valid content.
- Generative Path: Used during both training and inference, this path only sees the visible pixels and attempts to predict the latent distribution learned by the reconstructive path.
- Prior-Conditional Coupling: This mechanism links the two paths, encouraging the generative path to match the distribution of the reconstructive path without forcing it to replicate specific pixels. This prevents the model from collapsing into a single deterministic solution.
Additionally, the model incorporates Short+Long Term Attention. Short-term attention ensures local consistency within the generated region, while long-term attention allows the model to borrow textures from distant, visible parts of the image.
Experimental Results
The model was tested on benchmarks including Paris StreetView, CelebA-HQ, Places2, and ImageNet.
Diversity and Quality
PICNet significantly outperforms standard CVAEs in diversity. Using the LPIPS metric, PICNet achieved a diversity score of 0.088, compared to 0.014 for standard CVAEs. Crucially, this diversity does not come at the cost of quality; PICNet also improved upon state-of-the-art deterministic models in PSNR and $\ell_1$ loss.
Visual Realism
Qualitative analysis demonstrates the model's ability to generate varied facial expressions, skin tones, and architectural details. The model respects natural constraints—such as facial symmetry—while allowing for creative variation in regions where the ground truth is truly ambiguous. For example, in building facades, the model can generate varying window counts and architectural details from the same input mask.
Conclusion
PICNet represents a significant step forward in image synthesis by treating inpainting as a distribution-learning problem rather than a pixel-matching one. By successfully avoiding VAE collapse and incorporating sophisticated attention mechanisms, it provides a robust framework for generating diverse, high-fidelity image completions.
Summary updated