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

Disentanglement via Mechanism Sparsity Regularization: A New Principle for Nonlinear ICA

Sebastien Lachapelle, Pau Rodriguez, Yash Sharma, Katie E Everett, Rémi Le Priol, Alexandre Lacoste, Simon Lacoste-Julien

Abstract

This work introduces a novel principle we call disentanglement via mechanism sparsity regularization, which can be applied when the latent factors of interest depend sparsely on past latent factors and/or observed auxiliary variables. We propose a representation learning method that induces disentanglement by simultaneously learning the latent factors and the sparse causal graphical model that relates them. We develop a rigorous identifiability theory, building on recent nonlinear independent component analysis (ICA) results, that formalizes this principle and shows how the latent variables can be recovered up to permutation if one regularizes the latent mechanisms to be sparse and if some graph connectivity criterion is satisfied by the data generating process. As a special case of our framework, we show how one can leverage unknown-target interventions on the latent factors to disentangle them, thereby drawing further connections between ICA and causality. We propose a VAE-based method in which the latent mechanisms are learned and regularized via binary masks, and validate our theory by showing it learns disentangled representations in simulations.

The Challenge of Nonlinear ICA

In the quest for machine learning models that are robust and interpretable, "disentanglement" is a primary goal. The objective is to enable models to take raw, high-dimensional data (like pixels) and extract the underlying factors of variation (like the position of a robot or the color of an object).

However, this problem is mathematically "ill-posed" in the context of Nonlinear Independent Component Analysis (ICA). Without specific constraints, there are infinitely many ways to "mix" latent variables that remain statistically indistinguishable from the true factors. To recover the true underlying variables, researchers must introduce an inductive bias—a "tie-breaker." While previous methods relied on auxiliary information like time stamps or environment IDs, they often struggled when latent variables were mutually dependent or when the mixing process was highly complex.

Mechanism Sparsity as an Inductive Bias

The authors propose a new principle: mechanism sparsity regularization. This approach is grounded in the "sparse mechanism shift" hypothesis, which posits that in the real world, variables typically have only a few direct causes (parents). For instance, moving a robot arm affects its position but does not directly alter the color of the sky.

Overview of the proposed framework. Latent factors $Z$ generate observations $X$ via a mapping $f$. Transitions between latents are governed by a sparse causal graph $G$ and external actions $A$.

The Proposed Framework

The method simultaneously learns the latent factors and the sparse causal graphical model relating them using a Variational Autoencoder (VAE) framework:

  1. The Model: An encoder maps observations $X$ to latents $Z$. The transition model $p(Z_t | Z_{<t}, A_{<t})$ is parameterized by a neural network.
  2. Binary Masks: To enforce sparsity, learnable binary masks ($G$) are introduced on the edges of the causal graph. These masks are regularized using an $L_0$ penalty, encouraging the model to explain the data using the simplest possible graph.
  3. Optimization: Since binary masks are non-differentiable, the Gumbel-Softmax trick is employed to allow for gradient-based optimization of the graph structure.

Theoretical Foundations

The core of the paper is a formal identifiability proof (Theorem 5). It demonstrates that under conditions of "sufficient variability" in transitions and a specific "graphical criterion," minimizing the sparsity of the causal graph uniquely recovers the latent variables up to a simple permutation.

Visualization of the graphical criterion. The connectivity between actions $a^{t-1}$ and latent variables $z^t$ must satisfy specific conditions to ensure identifiability.

This theory suggests that the causal graph acts as an anchor for disentanglement. An "entangled" representation—where latents are mixed together—would require a significantly denser and more complex graph to explain the observed transitions. By seeking the sparsest graph, the model is naturally driven toward the true, disentangled latents.

Empirical Validation

The authors evaluated their principle on several synthetic datasets designed to test theoretical assumptions:

  • Time-sparsity: Latent factors evolve over time without external actions, featuring both diagonal and complex triangular dependencies.
  • Action-sparsity: Latent factors are influenced by observed external actions (e.g., joystick input), where each action affects only a subset of latents.

Key Results

  • Superior Disentanglement: The proposed method significantly outperformed standard baselines such as $\beta$-TCVAE, PCL, and iVAE in terms of Mean Correlation Coefficient (MCC).
  • Graph Recovery: The model accurately recovered the underlying causal graph structure (measured by Structural Hamming Distance), proving it learns both the variables and their interaction patterns.
  • Robustness: Even when the "sufficient variability" assumption was weakened, sparsity regularization provided a noticeable performance boost compared to unregularized models.

Conclusion and Future Directions

This work bridges the gap between Causal Graphical Models and Deep Learning by leveraging sparsity as a fundamental principle for representation learning. However, several challenges remain:

  • Diffeomorphism Assumption: The theory assumes a smooth, bijective mapping from latents to pixels, which may fail in the presence of occlusions (e.g., an object moving behind a tree).
  • Scaling to Real-World Data: While rigorous on synthetic benchmarks, scaling this approach to complex real-world video (like driving datasets) is a significant engineering hurdle.
  • Latent Dimensionality: Current iterations assume the number of latent variables is known a priori; future work could explore learning this dimensionality automatically.

Summary updated

BibTeX
@inproceedings{lachapelle2022disentanglement,
  author = {Sebastien Lachapelle and Pau Rodriguez and Yash Sharma and Katie E Everett and Rémi LE PRIOL and Alexandre Lacoste and Simon Lacoste-Julien},
  title = {{Disentanglement via Mechanism Sparsity Regularization: A New Principle for Nonlinear ICA}},
  booktitle = {CLeaR},
  year = {2022},
  url = {https://openreview.net/forum?id=dHsFFekd_-o},
}
Figure