Skip to main content
QUICK REVIEW

[Paper Review] High-Quality Pluralistic Image Completion via Code Shared VQGAN

Chuanxia Zheng, Guoxian Song|arXiv (Cornell University)|Apr 5, 2022
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

This paper proposes Code Shared VQGAN, a novel framework for high-quality pluralistic image completion that leverages a compact yet expressive discrete latent code representation to enable fast, non-autoregressive generation. By sharing codes across spatial locations and using a transformer in the discrete code space, the method achieves over 100× faster inference than autoregressive iGPT-based approaches while significantly outperforming SOTA in both image quality and diversity on benchmark datasets.

ABSTRACT

PICNet pioneered the generation of multiple and diverse results for image completion task, but it required a careful balance between $\mathcal{KL}$ loss (diversity) and reconstruction loss (quality), resulting in a limited diversity and quality . Separately, iGPT-based architecture has been employed to infer distributions in a discrete space derived from a pixel-level pre-clustered palette, which however cannot generate high-quality results directly. In this work, we present a novel framework for pluralistic image completion that can achieve both high quality and diversity at much faster inference speed. The core of our design lies in a simple yet effective code sharing mechanism that leads to a very compact yet expressive image representation in a discrete latent domain. The compactness and the richness of the representation further facilitate the subsequent deployment of a transformer to effectively learn how to composite and complete a masked image at the discrete code domain. Based on the global context well-captured by the transformer and the available visual regions, we are able to sample all tokens simultaneously, which is completely different from the prevailing autoregressive approach of iGPT-based works, and leads to more than 100$ imes$ faster inference speed. Experiments show that our framework is able to learn semantically-rich discrete codes efficiently and robustly, resulting in much better image reconstruction quality. Our diverse image completion framework significantly outperforms the state-of-the-art both quantitatively and qualitatively on multiple benchmark datasets.

Motivation & Objective

  • To address the trade-off between image quality and diversity in pluralistic image completion.
  • To overcome the slow inference speed of autoregressive models like iGPT in image generation tasks.
  • To enable efficient, simultaneous sampling of diverse image completions using a compact discrete latent representation.
  • To improve reconstruction fidelity and semantic richness in generated image completions.
  • To achieve state-of-the-art performance in both quantitative metrics and qualitative diversity.

Proposed method

  • Introduces a code sharing mechanism in VQGAN to create a compact yet expressive discrete latent representation.
  • Represents images in a discrete codebook space derived from a shared codebook across spatial locations.
  • Employs a transformer model operating directly on the discrete code tokens to model global context and guide completion.
  • Enables non-autoregressive, parallel sampling of all code tokens, drastically accelerating inference.
  • Leverages the rich, semantically meaningful codes to improve reconstruction quality and diversity.
  • Uses a joint optimization of reconstruction and diversity objectives via a shared codebook and transformer-based completion network.

Experimental results

Research questions

  • RQ1Can a shared codebook representation in a VQGAN-based framework improve both image quality and diversity in image completion?
  • RQ2How does non-autoregressive sampling in the discrete code space compare to autoregressive generation in terms of inference speed and quality?
  • RQ3To what extent can a compact discrete representation preserve semantic richness for image completion?
  • RQ4Can the proposed method outperform existing SOTA approaches in both quantitative metrics and qualitative diversity?
  • RQ5How robust is the code sharing mechanism in handling diverse and complex image completion scenarios?

Key findings

  • The proposed framework achieves over 100× faster inference speed compared to autoregressive iGPT-based methods.
  • The method significantly outperforms PICNet in both image reconstruction quality and diversity, as measured by FID and FVD metrics.
  • The use of a shared codebook enables a more compact and expressive latent representation, improving generation efficiency.
  • The non-autoregressive sampling strategy maintains high image quality while enabling parallel generation of diverse completions.
  • Experiments on multiple benchmark datasets confirm superior performance in both quantitative metrics and qualitative diversity.
  • The framework learns semantically rich discrete codes that support high-fidelity and diverse image completion.

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.