Smooth image-to-image translations with latent space interpolations

Yahui Liu, Enver Sangineto, Yajing Chen, Linchao Bao, Haoxian Zhang, Nicu Sebe, Bruno Lepri, Marco De Nadai · DOI

Introduction

Multi-domain Image-to-Image (I2I) translation has achieved remarkable success in discrete attribute swapping, such as changing a person’s gender or transforming a cat into a tiger. However, these models often struggle with the transitions between domains. Linear interpolation in the latent space frequently results in "jumpy" transitions characterized by abrupt changes, unrealistic artifacts, or "ghosting."

This paper identifies the root cause as latent space sparsity: because training data typically consists of distinct classes (e.g., "Cat" or "Dog"), the model fails to learn meaningful representations for the "inter-domain" regions. To address this, the authors introduce two regularization techniques—Shrinkage Loss and Mixup data augmentation—alongside a new metric, Perceptual Proportionality ($P^2$), to quantify semantic smoothness.

Methodology

The core objective is to regularize the latent style space to be more continuous and dense, ensuring that intermediate points decode into realistic images. The proposed methods were integrated into state-of-the-art frameworks like StarGAN v2 and TUNIT.

Regularization Techniques

  1. Shrinkage Loss ($L_{shr}$): This loss function penalizes the squared Euclidean distance between pairs of points in the latent space. By "compacting" the space, it prevents the formation of low-density "holes" that cause artifacts during interpolation.
  2. Mixup Strategy: The authors adapt the Mixup technique by blending style representations from different domains (e.g., a 70/30 mix of male and female styles) during training. The generator is tasked with creating an image from this blend, while the discriminator must recognize it as a composite, effectively "filling in" the gaps between domains with synthetic training data.
Figure 2: Comparison of unregularized vs. regularized latent spaces. The proposed method (a) produces smooth transitions compared to the artifacts seen in StarGAN v2 (b).

Measuring Smoothness: Perceptual Proportionality ($P^2$)

Traditional metrics like Perceptual Path Length (PPL) can be unreliable or easily manipulated by models with low diversity. The authors propose Perceptual Proportionality ($P^2$), which measures the ratio of distances in the latent style space relative to a perceptual feature space. A semantically smooth space is one where a small, linear step in the latent space results in a proportional and predictable change in the visual output.

Figure 4: The $P^2$ metric evaluates the relationship between distances in the Style Space and the resulting Perceptual Space.

Experimental Results

The approach was evaluated on high-resolution benchmarks, including CelebA-HQ (human faces) and AFHQ (animal faces).

  • Quantitative Improvements: On the CelebA-HQ gender translation task, the proposed method significantly improved the Fréchet Inception Distance (FID) from 42.32 to 23.03, indicating a substantial leap in image realism.
  • Qualitative Smoothness: Visual analysis confirms that while baseline models like StarGAN v2 produce glitchy intermediate frames with red artifacts, the regularized model generates believable, gradual morphs between species and attributes.
  • Metric Alignment: The $P^2$ metric proved more aligned with human judgment than PPL. It correctly identified models that "cheated" PPL by making minimal visual changes, rewarding instead those that achieved true semantic linearity.

Discussion and Limitations

While the regularization significantly improves smoothness, the authors noted a slight smoothness-diversity trade-off. Compacting the latent space can marginally reduce the extreme variance of generated styles. Additionally, while the Mixup strategy is effective, it increases training time due to the generation of additional synthetic samples. Future work may focus on maintaining high diversity while enforcing local smoothness, particularly for extremely disparate domains where linear interpolation remains challenging.

Summary updated

BibTeX
@misc{liu2022smooth,
  author = {Yahui Liu and Enver Sangineto and Yajing Chen and Linchao Bao and Haoxian Zhang and Nicu Sebe and Bruno Lepri and Marco De Nadai},
  title = {{Smooth image-to-image translations with latent space interpolations}},
  year = {2022},
  eprint = {2210.00841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00841},
}
Figure