Introduction
In many real-world scenarios, we encounter datasets from different "domains" (e.g., photos of streets versus semantic maps of those same streets) without direct pairings between individual samples. Learning to translate between these domains—unpaired cross-domain translation—is a classic underconstrained problem. While the popular CycleGAN addressed this by introducing a "cycle consistency loss" to encourage reversible translations, this consistency is only approximate, treated as a penalty term during training. Furthermore, standard GANs are "likelihood-free," making it difficult to perform density estimation or ensure the model captures the entire data distribution without mode collapse.
The AlignFlow Framework
AlignFlow is a generative framework that reimagines domain alignment through the lens of Normalizing Flows. Unlike CycleGAN, which uses two independent generators, AlignFlow defines two invertible mappings (flows) that meet at a shared latent space $Z$. To translate from Domain A to Domain B, the model maps $A \to Z$ and then $Z \to B$.
Exact Cycle Consistency
Because normalizing flows are mathematically bijective (one-to-one and reversible), the composition of these mappings is also invertible. This means that translating from A to B and back to A is guaranteed to return the exact original starting point by design. No extra loss term is required to enforce this property; it is a fundamental geometric feature of the model.
Hybrid Training Objective
By leveraging the fact that flows allow for exact likelihood calculation, AlignFlow employs a hybrid training strategy:
- Adversarial Loss (GAN): Ensures generated images are realistic and sharp.
- Maximum Likelihood Estimation (MLE): Ensures the model covers the full data distribution and learns a structured, semantically meaningful latent space.
Key Insights and Results
The Shared Latent Space
Because the model is trained with MLE, the latent space $Z$ becomes a powerful tool for manipulation. The authors demonstrate that the shared latent space is "real" by interpolating between points in $Z$. As shown in the Facades dataset, moving through the latent space results in smooth, consistent changes across both domains simultaneously.
Performance Benchmarks
AlignFlow was evaluated on image-to-image translation (Facades, Maps, Cityscapes) and Unsupervised Domain Adaptation (UDA) using digit datasets (MNIST, USPS, SVHN).
- Superior Translation: On the Facades dataset ($A \to B$), AlignFlow achieved a Mean Squared Error (MSE) of 0.5801, significantly outperforming CycleGAN's 0.7129.
- State-of-the-Art UDA: AlignFlow outperformed strong baselines like CyCADA and UNIT. On the challenging SVHN $\to$ MNIST task, it achieved 91.0% accuracy, surpassing CyCADA's 90.4%.
Conclusion
AlignFlow demonstrates that invertibility is a powerful inductive bias for cross-domain learning. By making cycle consistency an architectural guarantee rather than a training objective, and by combining GANs with MLE, the framework achieves more robust and accurate domain alignment. While normalizing flows can be more computationally intensive than standard generators, the benefits of exact consistency and a structured latent space provide a significant step forward for unpaired translation tasks.
Summary updated