Overview
This paper introduces Relational Regularized Autoencoders (RAE), a novel framework that aligns latent distributions based on their internal relational structures rather than just their absolute coordinates. By leveraging the Gromov-Wasserstein distance, RAE allows for learnable, complex priors that avoid over-regularization. Furthermore, it enables the co-training of multiple autoencoders even when their latent spaces have entirely different dimensions or architectures.
The Challenge: Fixed Priors and Incomparable Spaces
Standard autoencoders, such as Variational Autoencoders (VAEs) and Wasserstein Autoencoders (WAEs), typically rely on simple, fixed priors (usually a standard Normal distribution). This leads to two major limitations:
- Regularizer Misspecification: A simple Gaussian prior is often too restrictive, causing "over-regularization" where the model sacrifices reconstruction quality to fit the prior. While some models use learnable mixture models (like GMMs) as priors, they are prone to "under-regularization" and are highly sensitive to initialization, often leading to mode collapse.
- Incomparable Latent Spaces: In multi-view learning (e.g., analyzing a patient's clinical records alongside genetic data), researchers often need to train multiple autoencoders. Traditional methods assume these models share the same latent space or require an explicit transformation between them. This becomes impractical when different data types require vastly different architectures or latent dimensions.
Methods: Relational Regularization
The core innovation of this paper is Relational Regularization using the Gromov-Wasserstein (GW) distance. Unlike the standard Wasserstein distance, which measures the cost of moving points from one distribution to another in the same space, the GW distance compares the relationships (distances) between points across different spaces.
Key technical components of the framework include:
- Fused Gromov-Wasserstein (FGW): The authors combine the standard Wasserstein distance (direct coordinate comparison) with the GW distance (relational comparison). This allows the model to learn a structured prior (like a GMM) that accurately reflects the clustering of the data.
- Hierarchical FGW: For probabilistic autoencoders, the components of a Gaussian Mixture Model are treated as entities in an optimal transport problem, making the computation efficient for large batches.
- Sliced FGW: For deterministic autoencoders, high-dimensional latent codes are projected onto random 1D lines. In 1D, the GW distance can be solved simply by sorting, drastically reducing computational complexity.
- Relational Co-training: The framework is extended to train multiple autoencoders by penalizing the GW distance between their respective posterior distributions. This encourages the models to find similar "relational structures" in their latent spaces, even if one space is 2D and the other is 100D.
Key Insights
- Structure over Coordinates: Traditional regularizers (like KL divergence) are "pointwise"—they want the latent code of an image to be at a specific coordinate. Relational regularization cares about the "constellation" shape; it wants the distance between "cat" and "dog" in the latent space to match the distance between their corresponding clusters in the prior.
- Bridging Incomparable Spaces: Because the GW distance only evaluates internal distances, it provides a mathematically sound way to "sync" two neural networks with totally different latent dimensions without forcing them into a shared bottleneck.
- Robustness to Initialization: By using FGW, the model avoids the "mode collapse" common in GMM-based priors (where the model ignores most components of the mixture). The relational term forces the posterior to utilize the multi-modal structure of the prior.
Results and Performance
The authors evaluated their framework on several benchmarks, including image generation (MNIST, CelebA) and multi-view learning (Caltech101, Cathgen clinical dataset).
- Effective Conditional Generation: Unlike baseline models like VampPrior (which suffered from mode collapse), the RAE successfully learned distinct Gaussian components for different digit styles in MNIST and different facial attributes in CelebA.
- Superior Image Synthesis: On the CelebA dataset, the RAE achieved a Fréchet Inception Distance (FID) of 51.45, outperforming the standard WAE (52.07) and VAE (59.99).
- Multi-view Accuracy: In classification tasks, relational co-training consistently outperformed independent training and CCA-based methods. For example, on the Caltech101-7 dataset, it achieved 84.29% accuracy, compared to just 56.92% for independent autoencoders.
Limitations and Future Work
- Computational Overhead: Although the authors introduced Hierarchical and Sliced versions to improve speed, calculating GW distances remains more computationally intensive than simple KL divergence or Maximum Mean Discrepancy (MMD).
- Hyperparameter Sensitivity: The balance between the reconstruction loss, the direct comparison, and the relational comparison (controlled by parameters $\gamma$ and $\beta$) may require careful tuning for different datasets.
- Scaling: The current co-training experiments focused on two views. Extending this framework to handle many more views while maintaining computational efficiency is a key direction for future research.
Summary updated