NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Defining and Measuring Disentanglement for non-Independent Factors of Variation

Antonio Almudévar, Alfonso Ortega, Luis Vicente, Antonio Miguel, Eduardo Lleida · Submission to ICLR 2025 · Rejected

TL;DR

Existing disentanglement metrics almost universally assume that the underlying factors of variation (and nuisances) are statistically independent—an assumption that rarely holds in the real world. This paper formalizes disentanglement for correlated factors through the lens of information-theoretic minimality and sufficiency, and introduces practical, predictor-based estimators that accurately evaluate representations even under heavy factor correlations.

What Problem Does This Paper Address?

In representation learning, a model aims to map raw data $x$ into latent variables $z = \{z_j\}$ that correspond to distinct underlying factors $y = \{y_i\}$ (e.g., shape, color) while ignoring nuisances $n$ (e.g., background noise).

Standard definitions and metrics (such as Factor-VAE, $\beta$-VAE score, MIG, SAP, and DCI) explicitly or implicitly assume that the factors $y_i$ are independent of one another ($p(y) = \prod_i p(y_i)$). In reality, real-world factors are often correlated—for example, fruit type strongly correlates with color (strawberries are red, bananas are yellow). When factors are correlated:

  1. Current metrics penalize a representation that isolates a factor, because the isolated latent inevitably carries information about correlated factors.
  2. Nuisance invariance is rarely quantified directly.

The authors set out to rigorously define what disentanglement means under arbitrary factor dependencies and derive robust metrics to measure it.

Methods

The authors bridge disentanglement with the Information Bottleneck (IB) framework:

  1. Four Desirable Properties via Markov Chains:
  2. Factors-Invariance: Latent $z_j$ depends only on factor $y_i$ given $y_i$ ($\tilde{y}_i \leftrightarrow y_i \leftrightarrow z_j$).
  3. Nuisances-Invariance: $z_j$ is unaffected by nuisances once $y_i$ is known ($n \leftrightarrow y_i \leftrightarrow z_j$).
  4. Representations-Invariance: Factor $y_i$ only requires $z_j$ to be predicted, ignoring other latents $\tilde{z}_j$ ($\tilde{z}_j \leftrightarrow z_j \leftrightarrow y_i$).
  5. Explicitness: Representation $z$ retains all task-relevant information present in $x$ ($x \leftrightarrow z \leftrightarrow y_i$).
  6. Equivalence to Minimality and Sufficiency:
  7. Proposition 1: Factors-invariance + Nuisance-invariance $\iff$ Minimality ($x \leftrightarrow y_i \leftrightarrow z_j$, meaning $z_j$ compresses $x$ while retaining only information about $y_i$).
  8. Proposition 2: Representations-invariance + Explicitness $\iff$ Sufficiency ($x \leftrightarrow z_j \leftrightarrow y_i$, meaning $z_j$ alone fully recovers $y_i$).
  9. Tractable Estimators: Because mutual information terms like $I(z_j; x)$ and $I(y_i; x)$ are intractable in high dimensions, the authors assume Gaussian conditional distributions and derive regression-based estimators:

  10. Minimality ($\bar{m}$): Evaluates how well a non-linear regressor $f_{ij}$ can predict $z_j$ from $y_i$ relative to the total variance in $z_j$: $$\hat{m}_{ij} = 1 - \frac{1}{|D|}\sum_k \|f_{ij}(y_i^{(k)}) - z_j^{(k)}\|_2^2, \quad \bar{m} = \frac{1}{m}\sum_j \max_i \hat{m}_{ij}$$

  11. Sufficiency ($\bar{s}$): Evaluates how well a regressor predicts $y_i$ from $z_j$: $$\hat{s}_{ij} = 1 - \frac{1}{|D|}\sum_k \|f_{ij}(z_j^{(k)}) - y_i^{(k)}\|_2^2, \quad \bar{s} = \frac{1}{n}\sum_i \max_j \hat{s}_{ij}$$ (In their experiments, $f_{ij}$ is implemented using Random Forest regressors on standardized targets).

Datasets

The authors test their metrics on synthetic setups (where ground-truth mappings are analytically controlled) as well as standard benchmark datasets with induced factor correlations:

  • Synthetic Control Tasks: Formulated with 4 continuous factors and explicit control over mixing angle $\alpha$, nuisance level $\beta$, non-injectivity $\gamma$, and correlation strength $\delta$.
  • Standard Disentanglement Benchmarks:
  • MPI3D
  • Shapes3D
  • dSprites
  • CelebA
  • Correlation Scenarios Introduced:
  • Uncorrelated (original).
  • Correlated Pairs (1, 2, or 3 correlated factor pairs generated via Gaussian-weighted reweighting with bandwidth $\sigma = 0.1$).
  • Shared Confounder (one factor correlates with all other factors).

Key Insights and Ideas

  • Avoid Penalizing Correlated Information: Existing metrics like DCI, Modularity, SAP, or MIG fail on correlated data because they measure whether $z_j$ contains information exclusively about $y_i$ relative to other factors. If $y_1$ and $y_2$ are strongly correlated, a latent encoding $y_1$ will naturally predict $y_2$. The proposed metrics avoid computing gaps between the top-1 and top-2 predictive factors, preventing false penalties for correlated ground truth.
  • Minimality naturally handles nuisances: Rather than trying to explicitly model the intractable distribution of nuisances $n$, minimizing $I(z_j; x \mid y_i)$ inherently enforces invariance to both other factors and all unobserved nuisances simultaneously.
  • Separation vs. Sufficiency: Disentanglement is not just about isolating latents; an isolated representation is useless if it discards the actual factor information. Minimality and Sufficiency unify isolation and completeness into two complementary axes.

Key Results

  • Perfect Score on Perfectly Disentangled Correlated Data: When latents have an exact one-to-one mapping with correlated factors ($z = y$, i.e., mixing $\alpha = 0$):
  • Proposed Minimality and Sufficiency consistently score $1.0$ across all degrees of correlation ($\delta$) and confounders.
  • In contrast, baselines (Factor-VAE, DCI-Disentanglement, Modularity, MIG, SAP) plummet, yielding low or intermediate scores even though the representation is objectively perfect.
  • Gradual vs. Step Degradation: On synthetic benchmarks with nuisances ($\beta$) and factor mixing ($\alpha$), baselines often exhibit step-function behaviors (instantly dropping to 0 or staying at 1), whereas the proposed metrics decrease smoothly and proportionally as true disentanglement degrades.

Limitations and Future Work

  • Choice of Predictor Family: The practical metrics rely on regressors/classifiers (Random Forests in this work). The resulting score can be influenced by the capacity, inductive biases, and hyperparameters of the chosen predictor.
  • Evaluation on Artificially Generated Representations: The empirical evaluation primarily constructs latent representations analytically ($z = \cos(Ay)$ or $z = Ay$) to evaluate the metrics against known ground truth. The paper does not evaluate deep generative models (e.g., training $\beta$-VAEs on correlated datasets) directly with these metrics.
  • Conditional Distribution Assumptions: The analytic derivations of the estimators assume conditional Gaussian distributions with unit variance for the latent and factor spaces.

Summary updated

BibTeX
@misc{almudevar2024defining,
  author = {Antonio Almudévar and Alfonso Ortega and Luis Vicente and Antonio Miguel and Eduardo Lleida},
  title = {{Defining and Measuring Disentanglement for non-Independent Factors of Variation}},
  year = {2024},
  eprint = {2408.07016},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07016},
}

Loading related content...

Figure