TL;DR: This paper introduces DistanceGAN, a novel approach to unsupervised domain mapping (e.g., turning a photo of a horse into a zebra) that functions in a single direction. By enforcing a constraint that preserves the relative distances between samples during translation, the authors eliminate the need for the computationally expensive "circularity" requirement used in popular models like CycleGAN.
The Problem with Circularity
Unsupervised domain mapping aims to translate an image from a source domain ($A$) to a target domain ($B$) without having any paired examples (e.g., the same scene as both a sketch and a photo).
The existing "gold standard" for this task, established by models like CycleGAN and DiscoGAN, relies on circularity constraints. This means the model learns to map $A \to B$ and then $B \to A$, requiring that the round-trip returns the original image. While effective, this approach has notable drawbacks: it requires training two separate generators and discriminators, and the circularity assumption is often only an approximation. For instance, once you remove a zebra's stripes to make it a horse, the information needed to reconstruct the exact original stripe pattern is lost. The authors ask: can we achieve high-quality mapping using only a one-sided, one-way transformation?
The DistanceGAN Approach
The core innovation of this paper is the Distance Constraint. The authors hypothesize that if two images are similar in the source domain, their translated versions should be similarly related in the target domain.
- Distance-Preserving Mapping: During training, the model takes a pair of images from domain $A$ and calculates their distance. It then requires that the distance between their translated versions in domain $B$ remains highly correlated with the original distance. To handle different scales between domains, these distances are normalized using precomputed means and variances.
- Self-Distance Constraint: To allow the model to work with a batch size of one (common in some implementations), the authors propose a "self-distance" version. Here, the model enforces distance preservation between different parts of the same image (e.g., the distance between the top-half and bottom-half of a face) before and after translation.
- Loss Functions: The final model uses a standard Adversarial Loss (to ensure the output looks "real" in the target domain) combined with the new Distance Loss. It can also be combined with traditional circularity losses for even better performance.
Datasets and Key Results
The authors evaluated DistanceGAN across a wide variety of tasks, including facial attribute manipulation (CelebA), geometric mappings (3D rendered cars and rotated heads), domain adaptation (SVHN to MNIST), and object translation (such as Handbags $\leftrightarrow$ Shoes and Horses $\leftrightarrow$ Zebras).
The results demonstrate that the internal structure of a dataset—how samples relate to one another—provides enough "supervision" to align two domains without needing to see the inverse mapping.
- One-Sided Success: DistanceGAN achieved results comparable to or better than two-sided models while only learning one direction.
- Preventing Model Collapse: Distance constraints naturally prevent "model collapse"—a common GAN failure where the generator maps many different inputs to the same output. If the inputs are far apart, the distance constraint forces the outputs to stay far apart too.
- Quantitative Gains: In the SVHN-to-MNIST task, DistanceGAN achieved 26.8% accuracy, slightly outperforming CycleGAN's 26.1%. In geometric tasks, it significantly reduced the error in angle preservation compared to DiscoGAN.
- User Preference: In a human study, users preferred DistanceGAN's translations for handbags-to-shoes 87% of the time over the baseline. For gender translation, DistanceGAN won 88% of the time.
Limitations and Future Work
While DistanceGAN offers a more efficient training paradigm, it has limitations. The method assumes that a "semantic mapping" should preserve distances, which works well for analogous domains but might struggle if the domains are fundamentally different in structure. Additionally, it requires precomputing distance statistics for both domains, assuming the training sets are representative of the full distributions.
Finally, while it improved on unsupervised baselines, there remains a significant performance gap compared to semi-supervised methods on complex datasets like SVHN. This suggests that raw pixel distances have limits as a feature representation. The authors suggest that future work could explore applying these distance constraints to high-level feature descriptors or internal network activations rather than just raw RGB values.
Summary updated