Abstract
The unsupervised task of aligning two or more distributions in a shared latent space has many applications including fair representations, batch effect mitigation, and unsupervised domain adaptation. Existing flow-based approaches estimate multiple flows independently, which is equivalent to learning multiple full generative models. Other approaches require adversarial learning, which can be computationally expensive and challenging to optimize. Thus, we aim to jointly align multiple distributions while avoiding adversarial learning. Inspired by efficient alignment algorithms from optimal transport (OT) theory for univariate distributions, we develop a simple iterative method to build deep and expressive flows. Our method decouples each iteration into two subproblems: 1) form a variational approximation of a distribution divergence and 2) minimize this variational approximation via closed-form invertible alignment maps based on known OT results. Our empirical results give evidence that this iterative algorithm achieves competitive distribution alignment at low computational cost while being able to naturally handle more than two distributions.
Introduction
In machine learning, "alignment" refers to the process of mapping different data distributions into a shared space such that they become indistinguishable. This is critical for tasks like domain adaptation, removing batch effects in biological data, or ensuring fairness by obfuscating protected attributes. Traditionally, this has relied on adversarial training (e.g., GANs), which is notoriously unstable and computationally demanding.
This paper introduces Iterative Naïve Barycenter (INB), a flow-based method that jointly aligns multiple distributions without adversarial learning. By leveraging the efficiency of 1D optimal transport (OT), INB provides a stable, invertible, and highly scalable alternative to existing methods.
The Iterative Naïve Barycenter (INB) Framework
The core of the proposed approach is an iterative algorithm that builds a deep, invertible transformation layer-by-layer. Unlike standard normalizing flows that map data to a fixed Gaussian distribution, INB maps multiple distributions toward a shared "barycenter"—a statistical average distribution.
The algorithm alternates between two primary steps:
- Maximization (Projection Pursuit): Identify the 1D directions where the distributions are most divergent.
- Minimization (Alignment): Apply a closed-form "Monge map" along these directions to move each distribution toward the shared barycenter.
Because 1D optimal transport has a simple closed-form solution based on sorting and cumulative distribution matching, each layer is computationally inexpensive to compute. By stacking these layers, the model "weaves" a complex high-dimensional alignment.
Experimental Evaluation
The authors evaluated INB against several baselines, including Naïve Barycenter (NB), Deep Dispersion (DD), and AlignFlow. Experiments were conducted on 2D synthetic data and high-dimensional image datasets like Permuted MNIST and FashionMNIST.
As shown in the visual results, INB maintains the shared structure of the data (e.g., the shape of digits) while aligning the distributions. In contrast, other non-adversarial flow methods often scramble the data into noise or fail to align the distributions effectively.
Key Results and Discussion
The empirical results highlight three major advantages of the INB approach:
- Computational Efficiency: INB is orders of magnitude faster than adversarial methods. On MNIST, INB trained in less than an hour on a CPU, whereas AlignFlow required 60 hours on a high-end GPU.
- Scalability to Multiple Distributions: While most methods are designed for pairwise alignment ($M=2$), INB naturally handles $M > 2$ distributions jointly.
- Alignment Quality: INB achieves superior Frechet Inception Distance (FID) and Wasserstein Distance (WD) scores compared to other non-adversarial baselines.
The quantitative data confirms that INB (especially with $L=250$ layers) achieves the lowest FID and WD scores while maintaining a massive lead in training speed.
Conclusion
Iterative Alignment Flows offer a principled and efficient path for distribution alignment. By replacing adversarial drama with the mathematical elegance of 1D optimal transport, the INB algorithm provides a scalable solution for complex alignment tasks. Future work includes incorporating convolutional priors for better image handling and exploring the theoretical convergence properties of the multi-distribution barycenter case.
Summary updated