Abstract
We study the role of latent space dimensionality in Wasserstein auto-encoders (WAEs). Through experimentation on synthetic and real datasets, we argue that random encoders should be preferred over deterministic encoders. We highlight the potential of WAEs for representation learning with promising results on a benchmark disentanglement task.
Introduction: The Dimension Mismatch Problem
In generative modeling, high-dimensional data is mapped into a lower-dimensional latent space ($d_Z$). A significant challenge arises when the chosen latent dimensionality exceeds the data's intrinsic dimensionality ($d_I$). In standard Wasserstein Auto-Encoders (WAEs) with deterministic encoders, this "dimension mismatch" ($d_Z > d_I$) forces the model to distort the data manifold.
Because the WAE objective requires the aggregated encoded distribution to match a prior (e.g., a Gaussian), a deterministic encoder must "stretch" or "curl" a low-dimensional manifold to fill the higher-dimensional volume. This leads to the "curling" phenomenon, where the encoder wiggles a 1D line to cover a 2D area, leaving significant "holes" in the latent space where the decoder remains untrained.
Methods: Random Encoders and Regularization
To address this, the authors propose using random encoders within the WAE-MMD framework. Unlike deterministic encoders that map input $x$ to a single point $z$, random encoders map $x$ to a distribution.
To prevent "variance collapse"—where the encoder reverts to deterministic behavior—an $L_1$ penalty is applied to the log-variances of the encoder. This regularization encourages the model to use only the necessary dimensions for data encoding while filling redundant dimensions with noise. This allows the model to match the prior distribution naturally without distorting the underlying data manifold.
Experimental Results
The models were evaluated on synthetic datasets like Fading Squares (intrinsic dimension $d_I=1$) and real-world datasets like CelebA and dSprites.
Sample Quality and Robustness
On CelebA, deterministic WAEs showed significant degradation in FID scores as latent dimensionality increased. In contrast, $L_1$-regularized random WAEs maintained high sample quality, demonstrating robustness to dimension mismatch. On the Fading Squares dataset, the random encoder successfully filled the latent space without the artifacts seen in deterministic models.
Disentanglement Performance
On the dSprites benchmark, WAEs with random encoders achieved a disentanglement score of 98.8%, significantly outperforming $\beta$-VAE (85.4%). Crucially, WAEs achieved this while maintaining superior reconstruction quality, avoiding the blurriness often associated with high-disentanglement VAEs.
Conclusion
Random encoders, combined with appropriate variance regularization, offer a robust solution to the dimension mismatch problem in WAEs. By allowing the model to adapt to the intrinsic dimensionality of the data, they enable high-quality generation and state-of-the-art disentangled representations. Future work will focus on adaptive regularization techniques to further automate this process.
Summary updated