Multiple GAN Inversion for Exemplar-based Image-to-Image Translation

Taewon Kang · DOI

TL;DR

This paper introduces Multiple GAN Inversion (MGI), a novel approach to exemplar-based image-to-image translation that overcomes limitations of existing methods by avoiding human intervention and improving generalization. MGI achieves this by using a self-deciding algorithm to select optimal GAN inversion hyperparameters, leading to more natural and plausible image reconstructions without requiring paired or labeled datasets.

What Problem Does This Paper Address?

Image-to-image translation (I2I) is a fundamental computer vision task that aims to transform an image from one domain to another. Exemplar-based I2I, specifically, reconstructs a source image guided by an exemplar (target) image, aiming for a balanced output that retains the source's structure and the target's style. However, current state-of-the-art methods like SPADE and CoCosNet face several critical issues:

  • Alignment Dependency: They often require aligned input image tuples (source and target), limiting their applicability.
  • Limited Generalization: Existing methods struggle to generalize to unseen image pairs or tasks without extensive retraining.
  • Computational Cost & Data Requirements: Many methods require significant training, expensive computation, and large, often labeled, datasets (e.g., segmentation masks).
  • Instance Matching: Some methods fail to accurately match instances between images, leading to overfitted results.

This paper aims to address these limitations by proposing a method that is more generalizable, requires less data, and is computationally efficient.

Methods

The proposed approach, Multiple GAN Inversion (MGI), consists of two main modules:

  1. Cross-domain Correspondence Networks: This module establishes dense correspondences between the source and target images. It uses feature extractors (like VGG19) to obtain feature representations of both images. A crucial part is Local Feature Matching, where a correlation matrix is computed to warp the target image's features to align with the source image's structure. This ensures that the warped image retains semantic meaning from the source.
  2. Multiple GANs Inversion (MGI): This module refines the warped image to produce a more natural and plausible output. Instead of relying on traditional I2I methods that might require extensive training, MGI leverages GAN inversion. Specifically, it utilizes the mGANprior technique, which allows for optimization in the latent space of a pre-trained GAN. The novelty here is the self-deciding algorithm for selecting GAN inversion hyperparameters. This algorithm generates multiple hypotheses for the inversion by varying the number of layers used. It then uses the Fréchet Inception Distance (FID) score to objectively select the most plausible reconstruction among these hypotheses, thus avoiding human intervention and the need for supervision. This process allows for high-resolution output generation (e.g., 256x256 to 1024x1024).

Datasets

The paper evaluates its method on two datasets:

  • CelebA-HQ: A high-quality dataset of celebrity faces.
  • Flickr Faces HQ (FFHQ): Another large-scale dataset of diverse human faces.

These datasets are used for both training and evaluating the exemplar-based image-to-image translation and GAN inversion capabilities of the proposed model. No new benchmarks are introduced; rather, existing datasets are used to compare against state-of-the-art methods.

Key Insights and Ideas

  • Self-Deciding Hyperparameter Selection: The core innovation is using FID to automatically select the best GAN inversion hyperparameters. This removes the need for manual tuning or task-specific training, significantly improving usability and generalization.
  • Leveraging GAN Inversion for Refinement: Instead of solely relying on generative adversarial training for translation, the paper effectively uses GAN inversion to refine a warped image, leading to more natural and higher-quality results.
  • Bridging Structure and Style: The two-module approach (correspondence networks for structure, GAN inversion for style refinement) effectively balances preserving the source image's structure with adopting the target image's style.
  • Unsupervised Generalization: The method's ability to work without paired or labeled data and generalize to unseen image pairs is a significant advantage over many existing techniques.

Key Results

  • Qualitative Improvements: The MGI model generates more realistic and plausible images compared to state-of-the-art methods like CoCosNet and OEFT. It excels at capturing fine details like eyes and wrinkles, and overall structure.
  • Quantitative Evaluation (FID):
    • For exemplar-based I2I, MGI achieves competitive FID scores on CelebA-HQ (202.349) and FFHQ (220.951), outperforming OEFT and some variants of CoCosNet.
  • For GAN inversion, MGI achieves a significantly lower FID score (50.427 on CelebA-HQ, 179.522 on warped images) compared to mGANprior, PULSE, and Image2StyleGAN, indicating superior reconstruction quality.
  • Computational Efficiency: MGI demonstrates a faster computation time (467.09 seconds) compared to OEFT (632 seconds) for processing a single image pair, especially when considering that OEFT requires online fine-tuning. CoCosNet's training time is orders of magnitude higher.
  • User Study: A user study showed that 77.78% of participants preferred MGI's image quality over other GAN inversion methods, and most preferred its preservation of source structure and target style.

Limitations and Future Work

  • Limitations:
    • While the paper claims to avoid human intervention, the self-deciding algorithm still involves setting a range of hyperparameters (e.g., number of layers, latent codes) to explore.
  • The paper mentions that the warped image might have limited resolution (256x256) before the MGI module, although the final output is high-resolution.
  • The method's performance on extremely diverse or out-of-domain images is not extensively explored.
  • Future Work: The paper suggests that their framework can be extended to other image manipulation tasks. The self-deciding algorithm for hyperparameter selection is a promising direction for making GAN-based methods more accessible and robust. Further exploration into optimizing the correspondence network and exploring different GAN inversion techniques could also yield improvements.

Summary updated

BibTeX
@misc{kang2021multiple,
  author = {Taewon Kang},
  title = {{Multiple GAN Inversion for Exemplar-based Image-to-Image Translation}},
  year = {2021},
  eprint = {2103.14471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.14471},
}
Figure