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 · OpenReview

Abstract

Representation learning is an approach that allows to discover and extract the factors of variation from the data. Intuitively, a representation is said to be disentangled if it separates the different factors of variation in a way that is understandable to humans. Definitions of disentanglement and metrics to measure it usually assume that the factors of variation are independent of each other. However, this is generally false in the real world, which limits the use of these definitions and metrics to very specific and unrealistic scenarios. In this paper we give a definition of disentanglement based on information theory that is also valid when the factors of variation are not independent. Furthermore, we relate this definition to the Information Bottleneck Method. Finally, we propose a method to measure the degree of disentanglement from the given definition that works when the factors of variation are not independent. We show through different experiments that the method proposed in this paper correctly measures disentanglement with non-independent factors of variation, while other methods fail in this scenario.

Introduction

A primary goal of representation learning is to identify the underlying factors of variation that generate a dataset. A "disentangled" representation is one where these factors—such as shape, color, or position—are isolated into separate latent variables. However, most existing research and metrics (e.g., MIG, FactorVAE) rely on a critical, often unrealistic assumption: that these factors are statistically independent. In real-world data, factors are frequently correlated; for instance, the color "yellow" is highly correlated with the shape "banana."

The Problem: The Independence Assumption

When factors of variation are dependent, traditional metrics fail. If a model is perfectly disentangled, its "shape" variable should only be influenced by the shape factor. However, if bananas are always yellow, the shape variable will naturally contain information about color. Existing metrics penalize this natural overlap, incorrectly labeling a perfect encoder as entangled.

Figure 1: Illustration of a perfectly disentangled encoder where latent variables still carry information about other factors due to underlying statistical correlations (e.g., bananas are usually yellow).

Furthermore, most metrics ignore "nuisances"—irrelevant data components like background noise—which can bleed into representations and further degrade the reliability of standard disentanglement scores.

Proposed Framework

The authors rethink disentanglement through the lens of the Information Bottleneck (IB) framework. They propose that a truly disentangled representation should satisfy four information-theoretic properties:

  1. Factors-Invariance: A representation variable for one factor should not be affected by changes in other factors.
  2. Nuisances-Invariance: The representation should be "blind" to irrelevant noise or background information.
  3. Representations-Invariance: A factor should be predictable from its assigned variable alone, without needing the rest of the representation.
  4. Explicitness: The representation as a whole should contain all the information about the factor.

New Metrics: Minimality and Sufficiency

To quantify these properties, the paper introduces two primary metrics calculated using mutual information:

  • Minimality ($m$): Measures if a representation variable contains information only about its target factor. This captures both Factors- and Nuisances-Invariance.
  • Sufficiency ($s$): Measures if a representation variable contains all the information about its target factor, capturing Representations-Invariance and Explicitness.

Experimental Results

The authors validated these metrics using controlled toy experiments (where factor dependence $\delta$ and entanglement $\alpha$ were manually tuned) and neural benchmarks (DSprites, MPI3D, Shapes3D) with artificial correlations introduced.

  • Robustness to Correlation: In toy settings, the proposed metrics were the only ones to reach a perfect score of 1.0 when the representation was perfectly disentangled, regardless of factor correlation levels.
  • Downstream Performance: Sufficiency showed the strongest and most stable correlation with downstream task accuracy (using a Random Forest classifier) across all levels of factor dependence.
  • Nuisance Handling: Minimality was the only metric that effectively penalized models for encoding irrelevant nuisances and consistently correlated with the Interventional Robustness Score (IRS).
  • Computational Efficiency: The metrics scale linearly with the number of factors, making them significantly faster than metrics like DCI.

Conclusion and Future Work

This work demonstrates that disentanglement should be defined by the mapping from factors to variables, not the independence of the factors themselves. While the current implementation relies on discrete binning—which is non-differentiable and susceptible to the curse of dimensionality—future work may utilize variational approximations to create differentiable versions of Minimality and Sufficiency for direct model optimization.

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},
}
Figure