C-Disentanglement: Discovering Causally-Independent Generative Factors under an Inductive Bias of Confounder

Xiaoyu Liu, Jiaxin Yuan, Bang An, Yuancheng Xu, Yifan Yang, Furong Huang · DOI

Introduction

In the field of representation learning, the objective of disentanglement is to uncover a latent space where individual variables correspond to distinct, semantic generative factors of the data—such as the shape, color, or scale of an object. Historically, the community has treated "disentanglement" as synonymous with "statistical independence." However, this assumption frequently collapses in real-world scenarios where generative factors are naturally correlated. This paper introduces C-Disentanglement, a framework designed to identify causally independent factors by leveraging domain knowledge to account for hidden common causes, or confounders.

The Challenge of Confounding

The fundamental issue with unsupervised disentanglement methods, such as $\beta$-VAE or FactorVAE, is their reliance on the assumption that generative factors are statistically independent across the entire dataset. In reality, factors are often coupled. For instance, in a dataset of fruit, "shape" and "color" are correlated because apples are typically red and round, while bananas are yellow and curved. In this scenario, the "fruit type" acts as a confounder—a variable that influences both shape and color, creating a statistical dependency between them.

When models force statistical independence on such data, they fail to capture the true underlying causal structure. The authors argue that without a proper inductive bias—prior knowledge regarding these confounders—it is mathematically impossible to distinguish between true causal factors and spurious correlations.

The C-Disentanglement Framework

The authors propose the Confounded-Disentanglement (C-Disentanglement) framework and its implementation, the cdVAE (Confounded Disentangled Variational Autoencoder). The framework shifts the goal from global statistical independence to conditional independence.

Technical Components

  1. Inductive Bias via Labels: Rather than attempting purely unsupervised learning, cdVAE utilizes an accessible label set $C$ as a proxy for the true hidden confounder $C^*$. This weak supervision provides the necessary bias to resolve causal ambiguities.
  2. Mixture of Gaussians Latent Space: Unlike standard VAEs that employ a single isotropic Gaussian prior, cdVAE models the latent space as a mixture of Gaussians. Each component of the mixture is conditioned on a specific realization of the confounder $C$.
  3. Conditional Independence: By conditioning on the confounder, the model enforces independence within specific partitions of the data. For example, by looking only at "apples," the correlation between "red" and "round" is treated as a local property, allowing the model to separate the factors of color and shape.
  4. Objective Function: The training loss integrates reconstruction accuracy, a classification loss to align the latent space with confounder labels, and a KL-divergence term to ensure latent variables remain independent given the confounder.

Experimental Evaluation

The framework was evaluated across three diverse datasets:

  • 3dshape: A synthetic dataset where the authors injected specific correlations (e.g., cubes are red 70% of the time) to simulate confounding.
  • Candle: A complex environment generated in Blender, featuring factors like wall hue and object scale.
  • CelebA: A real-world dataset of celebrity faces, using "presence of eyeglasses" as a confounder to test the disentanglement of other facial features.

Key Results and Insights

The experiments yielded several critical insights into the nature of causal representation learning:

  • Statistical vs. Causal Independence: The study demonstrates that forcing global statistical independence is counterproductive when ground-truth factors are correlated. cdVAE consistently outperformed state-of-the-art baselines (including CAUSAL-REP) on causal metrics like Unconfoundedness (UC) and Counterfactual Generativeness (CG).
  • Reconstruction and Generalization: On the CelebA dataset, cdVAE achieved a reconstruction error of 0.18, significantly outperforming $\beta$-VAE (0.27). More importantly, the model showed superior Out-of-Distribution (OOD) generalization. By learning causal factors rather than correlations, the model remains robust when the data distribution shifts—such as identifying a "green apple" even if the training set only contained red ones.
  • The Value of Weak Supervision: The research suggests that purely unsupervised disentanglement may be an unreachable goal. However, providing even partial information about a confounder dramatically improves the identifiability of latent factors.

Conclusion and Future Work

C-Disentanglement provides a robust path forward for representation learning in the presence of correlated data. By incorporating confounder labels as an inductive bias, the cdVAE successfully recovers the causal structure of generative factors.

Despite its success, the framework currently faces limitations, specifically its reliance on predefined discrete labels for confounders. Future research is needed to extend the model to continuous confounders and to develop methods for automatically identifying potential confounders from metadata or external knowledge graphs without manual labeling.

Summary updated

BibTeX
@inproceedings{liu2023c,
  author = {Xiaoyu Liu and Jiaxin Yuan and Bang An and Yuancheng Xu and Yifan Yang and Furong Huang},
  title = {{C-Disentanglement: Discovering Causally-Independent Generative Factors under an Inductive Bias of Confounder}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=FFOYWUpBca},
}
Figure