Quantifying and Learning Disentangled Representations with Limited Supervision

Loek Tonnaer, Luis A. Pérez Rey, Vlado Menkovski, Mike Holenderski, Jacobus W. Portegies

Abstract

The definition of Linear Symmetry-Based Disentanglement (LSBD) formalizes the notion of linearly disentangled representations, but there is currently no metric to quantify LSBD. Such a metric is crucial to evaluate LSBD methods and to compare to previous understandings of disentanglement. We propose $\mathcal{D}_\mathrm{LSBD}$, a mathematically sound metric to quantify LSBD, and provide a practical implementation for $\mathrm{SO}(2)$ groups. Furthermore, from this metric we derive LSBD-VAE, a semi-supervised method to learn LSBD representations. We demonstrate the utility of our metric by showing that (1) common VAE-based disentanglement methods don't learn LSBD representations, (2) LSBD-VAE as well as other recent methods can learn LSBD representations, needing only limited supervision on transformations, and (3) various desirable properties expressed by existing disentanglement metrics are also achieved by LSBD representations.

Introduction

The quest for disentangled representations in machine learning aims to isolate independent factors of variation into distinct latent variables. While many approaches rely on heuristic definitions, Higgins et al. (2018) proposed a formal mathematical framework: Linear Symmetry-Based Disentanglement (LSBD). LSBD defines disentanglement through the lens of group theory, where factors of variation are seen as symmetries. A perfectly disentangled representation should be equivariant—transformations in the input space should manifest as linear transformations in the latent space. However, until now, there has been no formal metric to quantify LSBD, nor a robust method to learn such representations.

The $\mathcal{D}_{LSBD}$ Metric

We propose $\mathcal{D}_{LSBD}$, a mathematically sound metric to quantify equivariance. The core idea is to measure the dispersion of latent representations after they have been "un-transformed" by the inverse of the known group action. In a perfectly equivariant model, all un-transformed representations of the same object should coincide, resulting in zero dispersion.

The $\mathcal{D}_{LSBD}$ metric measures the dispersion of latent representations after applying inverse group transformations to verify equivariance.

LSBD-VAE: Learning Structured Representations

Building on this metric, we introduce LSBD-VAE, a semi-supervised Variational Autoencoder designed to learn LSBD representations. LSBD-VAE utilizes a Diffusion VAE ($\Delta$VAE) backbone, allowing the latent space to adopt non-Euclidean topologies, such as circles ($S^1$), which are essential for representing periodic symmetries like rotation. By incorporating a supervised loss term based on $\mathcal{D}_{LSBD}$, the model can be "anchored" to the correct group structure using transformation labels for only a small fraction of the training data.

Experimental Results

We evaluated LSBD-VAE against several state-of-the-art unsupervised disentanglement methods (e.g., $\beta$-VAE, FactorVAE) across datasets with varying symmetries, including 2D translations (Square), rotations and hue shifts (Arrow), and complex 3D rotations (ModelNet40, COIL-100).

Our results demonstrate that traditional VAE-based methods fail to learn LSBD representations, primarily because they attempt to map cyclic symmetries into linear latent spaces, leading to mathematical discontinuities. In contrast, LSBD-VAE achieves near-perfect disentanglement scores across various synthetic and real-world datasets.

Quantitative comparison of $\mathcal{D}_{LSBD}$ scores across different models. LSBD-VAE variants significantly outperform traditional unsupervised VAE methods.

Furthermore, we found that LSBD representations generalize well to real-world objects and maintain high performance even with minimal supervision (as low as 12.5% labeled transformation pairs). Interestingly, representations that satisfy LSBD also score highly on traditional disentanglement metrics, whereas the converse is not true, suggesting LSBD is a more stringent and robust criterion for representation learning.

Conclusion

This work introduces a formal metric for LSBD and a practical semi-supervised method for learning equivariant representations. While LSBD-VAE currently requires prior knowledge of the data's group structure, it sets a new benchmark for structured disentanglement. Future work will explore the automatic discovery of symmetries and the application of these representations to complex downstream tasks like robotic manipulation.

Summary updated

BibTeX
@inproceedings{tonnaer2020quantifying,
  author = {Loek Tonnaer and Luis A. Pérez Rey and Vlado Menkovski and Mike Holenderski and Jacobus W. Portegies},
  title = {{Quantifying and Learning Disentangled Representations with Limited Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  doi = {10.48550/arxiv.2011.06070},
}
Figure