Causal Representation Learning from General Environments under Nonparametric Mixing

Ignavier Ng, Shaoan Xie, Xinshuai Dong, Peter Spirtes, Kun Zhang

Abstract

Causal representation learning aims to recover the latent causal variables and their causal relations, typically represented by directed acyclic graphs (DAGs), from low-level observations such as image pixels. A prevailing line of research exploits multiple environments, which assume how data distributions change, including single-node interventions, coupled interventions, or hard interventions, or parametric constraints on the mixing function or the latent causal model, such as linearity. Despite the novelty and elegance of the results, they are often violated in real problems. Accordingly, we formalize a set of desiderata for causal representation learning that applies to a broader class of environments, referred to as general environments. Interestingly, we show that one can fully recover the latent DAG and identify the latent variables up to minor indeterminacies under a nonparametric mixing function and nonlinear latent causal models, such as additive (Gaussian) noise models or heteroscedastic noise models, by properly leveraging sufficient change conditions on the causal mechanisms up to third-order derivatives. These represent, to our knowledge, the first results to fully recover the latent DAG from general environments under nonparametric mixing. Notably, our results are stronger than many existing works, but require less restrictive assumptions about changing environments.

Introduction

Causal Representation Learning (CRL) is often considered the "holy grail" of causal AI. Its objective is to discover underlying causal variables—such as "position" or "velocity"—and their structural relationships (the Directed Acyclic Graph, or DAG) directly from raw, high-dimensional data like image pixels or genomic sequences.

Historically, the field has struggled with unidentifiability. Without strict assumptions, multiple causal models can often explain the same observed data. Previous solutions typically relied on restrictive assumptions: assuming the mapping from latents to observations is linear, requiring knowledge of exact intervention targets, or assuming "hard" interventions that completely break causal dependencies. This work addresses these limitations by providing theoretical guarantees for CRL in "general environments" where interventions may be soft, multi-node, and unknown.

Problem Setup: General Environments

In real-world scenarios, such as robotics or biology, the mixing process between latent variables and observations is highly nonlinear, and interventions are rarely clean or localized. To address this, the authors formalize three "desiderata" for a realistic CRL setting: supporting soft interventions, requiring no prior knowledge of intervention targets, and allowing for simultaneous multi-node interventions.

The CRL framework under general environments, mapping latent variables $Z$ to observations $X$ via a nonparametric mixing function $g$.

As illustrated in the framework above, latent causal variables $Z_1, \dots, Z_n$ are influenced by an environment variable $u$. These latents are then transformed into high-dimensional observations $X_1, \dots, X_d$ through a nonparametric mixing function $g$. The goal is to invert this process to recover both the variables $Z$ and the DAG structure connecting them.

Methodology: The Power of Third-Order Derivatives

The core technical innovation of this paper is the use of third-order partial derivatives of the log-density of latent variables. While prior research utilized second-order derivatives to identify the "moral graph" (an undirected version of the structure), this work proves that third-order derivatives can uniquely identify sink nodes (nodes with no children).

Specifically, Lemma 1 demonstrates that for an Additive Noise Model (ANM), the third-order derivative $\frac{\partial^3 \log p(Z)}{\partial Z_i^2 \partial Z_j}$ is exactly zero if $Z_i$ is a sink node. This mathematical "fingerprint" allows for an iterative "peeling" approach (Algorithm 1): the method identifies a sink node, fixes its local structure, and repeats the process on the remaining variables until the entire DAG is reconstructed.

Comparison with Prior Work

This approach represents a significant advancement over existing CRL literature. By leveraging non-linearity as an advantage—since linear functions would cause third-order derivatives to vanish—the method achieves full DAG recovery where others could only identify transitive closures or moral graphs.

Comparison of the proposed method against existing literature across various identifiability and model assumption criteria.

As shown in the table, the proposed method is the first to satisfy all three desiderata while achieving full DAG recovery under general, nonparametric mixing. Furthermore, it identifies latent variables up to their "intimate parents," a much stronger guarantee than the "ancestor" or "surrounding node" indeterminacies found in previous works.

Empirical Validation and Results

The theoretical findings were validated through simulation studies using synthetic latent DAGs (chains and v-structures) and nonlinear mixing modeled by Multi-Layer Perceptrons (MLPs). The results confirmed:

  • Full DAG Recovery: The latent structure was successfully reconstructed for both Additive Noise Models (ANM) and Heteroscedastic Noise Models (HNM).
  • Variable Identification: Root nodes showed a clear one-to-one correspondence with estimates, while child nodes were correctly identified as functions of themselves and their parents.
  • Model Selection: The Evidence Lower Bound (ELBO) in a VAE framework proved to be a reliable metric for determining the correct number of latent variables and graph sparsity.

Conclusion

This work provides the first theoretical proof that latent DAGs can be fully recovered from general environments under nonparametric mixing. By moving away from brittle assumptions like linearity or known intervention targets, it brings CRL closer to practical application in complex, real-world domains. Future research will focus on relaxing the Gaussian noise assumption and improving the computational scalability of the iterative identification process for larger latent systems.

Summary updated

BibTeX
@inproceedings{ng2025causal,
  author = {Ignavier Ng and Shaoan Xie and Xinshuai Dong and Peter Spirtes and Kun Zhang},
  title = {{Causal Representation Learning from General Environments under Nonparametric Mixing}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=S8lfepB2fz},
}
Figure