Unaligned Image-to-Image Translation by Learning to Reweight

Shaoan Xie, Mingming Gong, Yanwu Xu, Kun Zhang

Abstract

Unsupervised image-to-image (I2I) translation typically assumes that training domains are well-aligned, meaning every image in the source domain has a conceptual counterpart in the target domain. However, real-world datasets are often "noisy" or unaligned, containing irrelevant images that degrade translation quality. This paper introduces IrwGAN (Importance Reweighting Generative Adversarial Network), a framework that automatically identifies and reweights relevant samples during training. By leveraging the "quicker translation hypothesis," IrwGAN filters out unaligned data, enabling high-quality translation in cluttered or poorly curated environments.

The Challenge of Unaligned Domains

Standard unsupervised I2I models, such as CycleGAN, rely on the assumption that the two domains share a common underlying distribution of content. When this assumption is violated—for instance, if a "human face" dataset is paired with an "anime" dataset containing full-body shots or background scenery—the model attempts to map unrelated features, leading to significant artifacts and distorted outputs.

Comparison between aligned and unaligned datasets. In unaligned sets, irrelevant images (noise) are present in both domains.

Manually cleaning these datasets is often impractical. The authors propose a method to perform translation between unaligned domains, where only an unknown subset of images in each domain is relevant to the target task.

Methodology: IrwGAN

The core of IrwGAN is the introduction of two importance weight networks ($\beta_X$ and $\beta_Y$). These networks assign a weight to every training image, effectively performing a "soft" data curation during the learning process.

The Quicker Translation Hypothesis

The authors hypothesize that images belonging to aligned subsets are easier and faster for a network to learn to translate than unaligned "noise." Because aligned images share consistent content categories, the SGD optimizer finds a mapping function for them more quickly.

Reweighted Loss and ESS

The standard adversarial, cycle-consistency, and identity losses are modified by multiplying them by the learned weights ($\beta$). If an image is difficult to translate (likely unaligned), the discriminator produces a high loss, prompting the weight network to assign it a low weight. To prevent the model from collapsing and selecting only a few "easy" images, an Effective Sample Size (ESS) loss is added as an $L_2$ penalty, encouraging the selection of as many relevant images as possible.

Experimental Results

The researchers evaluated IrwGAN on several corrupted benchmarks, including Horse-to-Zebra (with added selfies and dogs) and Selfie-to-Anime (with added full-body anime shots).

Quantitative Performance

IrwGAN significantly outperformed baselines in image quality and diversity. For the $H_S \to Z_D$ task, IrwGAN achieved an FID score of 79.40, whereas CycleGAN scored 87.28 and a non-reweighted baseline scored 106.84. Furthermore, the learned weights demonstrated high precision, often reaching near 1.00, indicating the model successfully ignored irrelevant images.

Qualitative Comparison

As shown in the comparative results, IrwGAN produces sharper and more semantically accurate translations than existing state-of-the-art models like MUNIT or NICE-GAN, which often struggle with "ghostly" artifacts when faced with unaligned data.

Qualitative comparison of IrwGAN against baseline models across various unaligned translation tasks.

Conclusion and Future Work

IrwGAN provides a robust solution for I2I translation in the presence of noisy data by treating data cleaning as part of the optimization process. While the method relies on the "quicker translation hypothesis"—which may not hold if noise is simpler to learn than the signal—it represents a significant step toward making unsupervised translation practical for real-world, uncurated web data. Future research may focus on handling even larger domain gaps where shared content categories are less obvious.

Summary updated

BibTeX
@inproceedings{xie2021unaligned,
  author = {Shaoan Xie and Mingming Gong and Yanwu Xu and Kun Zhang},
  title = {{Unaligned Image-to-Image Translation by Learning to Reweight}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01391},
}
Figure