Quantized Disentanglement: A Practical Approach

Vitória Barin-Pacela, Kartik Ahuja, Simon Lacoste-Julien, Pascal Vincent

TL;DR

This paper introduces "Cliff," a novel practical approach for unsupervised disentanglement that leverages the theoretical concept of "cliffs" (axis-aligned discontinuities) in the learned latent factor density. Cliff successfully identifies latent variables even under complex nonlinear transformations, outperforming existing methods on disentanglement benchmarks.

What Problem Does This Paper Address?

Unsupervised disentanglement aims to learn representations where individual latent factors correspond to distinct, interpretable variations in the data (e.g., object color, shape, position). While theoretical work has shown that "quantized" latent factors can be identified even under complex, non-linear transformations of the data, translating this theory into practical algorithms has been challenging. Specifically, existing methods often struggle with non-linear transformations or rely on strong assumptions like factorized support. This paper addresses the gap by proposing a practical criterion that encourages the learned latent density to exhibit axis-aligned discontinuities, or "cliffs," which are theorized to be key to disentanglement under general transformations.

Methods

The core of the proposed method, "Cliff," is a new criterion designed to encourage axis-aligned discontinuities in the learned latent factor density. This criterion is built upon the theoretical understanding that such discontinuities, when aligned with the axes, allow for the recovery of latent factors even after non-linear warping. Cliff consists of three main components:

  1. Univariate Criterion: Encourages "cliffs" in the marginal density of each individual latent factor. This is achieved by minimizing the entropy of the derivative of the marginal density, effectively promoting sharp peaks.
  2. Bivariate Criterion: Encourages these cliffs to be independent across different factors. It does this by examining pairwise conditional densities and ensuring that the locations of high-magnitude derivatives (cliffs) are consistent across different values of other factors. This is implemented by minimizing the generalized Jensen-Shannon divergence between conditional densities.
  3. Anti-collapse Criterion: Aims to prevent degenerate solutions, such as the latent variables collapsing to a single point or a very small scale. It encourages the standardized latent variables to have a spread similar to a uniform distribution by minimizing the KL divergence between the marginal densities and a uniform distribution.

These components are combined into a total loss function, which is then minimized by training an encoder-decoder network. The method is designed to be model-agnostic and can be applied as a regularizer.

Datasets

The paper evaluates Cliff on several datasets:

  • Synthetic Data: A custom synthetic dataset is used to specifically test Cliff's ability to handle nonlinear transformations. This dataset is generated by applying a nonlinear mixing function to latent factors that already possess axis-aligned discontinuities.
  • Shapes3D: A standard disentanglement benchmark dataset containing images with six factors of variation (e.g., floor color, wall color, object color, size, type, and azimuthal angle).
  • Balls Dataset: A variant of the dSprites dataset, where the latent variables are controlled to have axis-aligned discontinuities, similar to the synthetic data. This dataset is used to test Cliff on more realistic image data where the core assumption is satisfied.

Key Insights and Ideas

  • "Cliffs" as a Practical Disentanglement Signal: The paper successfully translates the theoretical concept of axis-aligned discontinuities into a practical learning objective. This provides a concrete way to encourage disentanglement without relying on overly strong assumptions.
  • Robustness to Nonlinearity: Cliff demonstrates remarkable effectiveness in disentangling latent factors even when the data generation process involves complex, non-linear transformations. This is a significant advancement over methods that are primarily designed for linear mixing.
  • Independence of Discontinuities is Crucial: The bivariate criterion, which enforces the independence of these "cliffs" across factors, is highlighted as a key component for achieving true disentanglement, preventing factors from being spuriously correlated.
  • Model-Agnostic Regularizer: The Cliff criterion can be added to existing autoencoder architectures, making it a flexible tool for improving disentanglement in various representation learning models.

Key Results

  • Synthetic Data: Cliff achieved a Mean Correlation Coefficient (MCC) of 94.1 ± 0.9 on synthetic data with nonlinear transformations, significantly outperforming IOSS (91.6 ± 0.8). This visually demonstrates Cliff's ability to recover axis-aligned latent representations.
  • Shapes3D Dataset: Cliff achieved the highest Disentanglement (D) score (80.33 ± 2.60), outperforming baselines like HFS (70.64 ± 4.77) and β-VAE (69.72 ± 3.54).
  • Balls Dataset: Cliff achieved an MCC of 52.06 ± 4.00, comparable to IOSS (60.51 ± 5.58) and significantly better than the Additive Decoder baseline (37.80 ± 3.49). While not outperforming IOSS, it shows competitive performance on a more realistic dataset.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that hyperparameter tuning for Cliff can be computationally expensive, especially when searching over all terms. Future work will focus on optimizing this process.
  • Suboptimal Performance on Balls Dataset: While competitive, Cliff's performance on the Balls dataset was slightly lower than IOSS. The authors attribute this to suboptimal hyperparameter tuning and suggest that improvements are possible with further tuning.
  • Exploration of Other Divergences: The paper mentions exploring other divergences for the anti-collapse criterion, which could be a direction for future work.
  • Real-World Datasets: While Cliff shows promise on synthetic and semi-realistic datasets, its performance on complex, real-world, high-dimensional data with potentially less pronounced axis-aligned discontinuities remains an area for further investigation.

Summary updated

BibTeX
@inproceedings{barinpacela2025quantized,
  author = {Vitória Barin-Pacela and Kartik Ahuja and Simon Lacoste-Julien and Pascal Vincent},
  title = {{Quantized Disentanglement: A Practical Approach}},
  booktitle = {SIM @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=bNbu0GJyZi},
}
Figure