Abstract
Symmetries of input and latent vectors provide valuable insights for disentanglement learning in Variational Autoencoders (VAEs). However, most existing unsupervised methods require prior knowledge of factor information. We propose Composite Factor-Aligned Symmetry Learning (CFASL), a novel unsupervised framework that learns symmetry-based disentanglement without any knowledge of dataset factors. CFASL utilizes a learnable symmetry codebook, models composite symmetry changes between random samples, and induces group equivariance in the encoder and decoder. Our results demonstrate significant improvements in both single-factor and multi-factor change conditions compared to state-of-the-art methods.
Introduction
Achieving "disentanglement"—the ability to separate independent features like shape, color, and position in a latent space—is a core goal of representation learning. Ideally, a model should discover the "true" factors of variation in a dataset such that changing one latent dimension affects only one visual property. While standard VAEs often struggle with "entangling" these factors, CFASL introduces a framework based on group theory to organize these features in an entirely unsupervised way, even when multiple factors change simultaneously.
The Problem of Entanglement
In standard VAEs, latent factors are often coupled; for instance, changing a value intended for "color" might inadvertently alter the "shape" of an object. Existing methods using mathematical symmetries often require supervision or specific sequential data. CFASL addresses these limitations by discovering symmetries from pairs of random images, handling complex "composite" changes where multiple factors vary at once.
Methodology
CFASL incorporates three primary features to achieve symmetry-based disentanglement:
- Learnable Symmetry Codebook: The model learns a set of matrices (using Lie algebra) organized into sections, where each section represents a single factor of variation. This avoids the need for pre-defined symmetries.
- Inductive Biases via Loss Functions:
- Parallel Loss ($L_{pl}$): Forces symmetries within the same codebook section to affect the same factor.
- Perpendicular Loss ($L_{pd}$): Ensures different sections affect orthogonal factors.
- Sparsity Loss ($L_s$): Aligns factor changes directly with the axes of the latent space.
- Composite Symmetry Learning: A two-step attention mechanism predicts which factors changed between two random images, allowing the model to learn from complex, multi-factor transitions.
- Group Equivariant Architecture: The encoder and decoder are trained such that transformations in the input space result in predictable, linear transformations in the latent space.
Results and Insights
CFASL was evaluated on standard benchmarks including dSprites, 3D Cars, and smallNORB. It consistently outperformed models like $\beta$-VAE and Factor-VAE. Notably, CFASL achieved an Average Rank of 1.17 across all metrics, significantly better than the next best model ($\beta$-TCVAE at 3.04).
Latent Space Flattening
A key qualitative insight is that CFASL effectively "flattens" the data manifold. While standard VAEs produce tangled distributions, the latent space of CFASL closely approximates an ideal grid structure, where each axis corresponds to a single independent factor of variation.
Furthermore, the paper introduces the m-FVMk metric to measure performance under multi-factor changes. CFASL showed a substantial lead in these scenarios, proving its robustness in tracking multiple simultaneous variations.
Conclusion and Future Work
CFASL represents a significant step forward in unsupervised disentanglement by leveraging group theory and composite symmetry learning. While the current model involves complex hyperparameter tuning due to multiple loss functions, future work will focus on improving computational efficiency and scaling the approach to more complex, "in-the-wild" datasets.
Summary updated