Identification of Nonlinear Latent Hierarchical Models

Lingjing Kong, Biwei Huang, Feng Xie, Eric Xing, Yuejie Chi, Kun Zhang

TL;DR

This paper provides the first theoretical guarantees and practical algorithm for simultaneously identifying both the causal structure and the underlying latent variables in general nonlinear latent hierarchical models. By relaxing restrictive assumptions from prior work—such as linearity, discrete variables, or strict tree structures—the authors show that latent variables can be recovered up to an invertible transformation using only observational data.

What Problem Does This Paper Address?

In real-world data (like images, biological systems, or psychometric tests), the variables we observe are often driven by hidden, underlying factors. Discovering the causal relationships between these hidden factors is a fundamental goal of causal discovery.

However, existing methods suffer from severe limitations. Most assume that the relationships are strictly linear or that the variables are discrete. Furthermore, many assume a strict "latent tree" structure, meaning there is at most one path between any two variables.

Real life is rarely that simple. Hidden variables are often continuous, interact nonlinearly, and can have multiple overlapping paths of influence. This paper tackles the challenging task of identifying both the multi-dimensional continuous latent variables and their complex hierarchical causal structures simultaneously from purely observational data.

Figure 1: Examples of latent hierarchical graphs satisfying Conditions 2.4. xi denotes observed variables and zj denotes latent variables. The node size represents the dimensionality of each variable. We note that our graph condition permits multiple paths between two latent variables (e.g., z1 and z4 in Figure 1b), thus more general than tree structures.

Methods

The authors approach this problem by breaking it down from a local mechanism to a global algorithm:

  1. The Basis Model: They first introduce an elementary latent variable model consisting of two observed variables ($v_1, v_2$) generated nonlinearly by a shared latent variable $z$ and individual noise terms ($s_1, s_2$). They prove (Theorem 3.2) that $z$ can be identified up to an invertible transformation without requiring the individual generating functions to be independently invertible.
  2. Local-to-Global Traversal: They prove that by carefully grouping observed variables, the global hierarchical structure can be solved locally, level-by-level.
  3. Algorithm 1 (Identification of Latent Hierarchical Models): They propose an iterative search procedure. Starting from the observed leaf variables (the "active set"), the algorithm applies the basis model to find their parents, merges duplicate variables, splits "super-variables" caused by V-structures, and proactively avoids introducing invalid directed paths. It repeats this process to climb the hierarchy until it reaches the root.
The elementary Basis Model

Datasets

The authors evaluated their approach on three types of data:

  • Synthetic Hierarchical Datasets: Generated using multi-layer perceptrons (MLPs) with Leaky-ReLU activations to simulate complex nonlinear structures (balanced trees, V-structures, and unbalanced trees).
  • Personality Dataset: A real-world dataset from an online Big Five personality test (~19,500 responses), consisting of answers to 6 questions for each of the 5 personality traits.
  • Multi-view Digit Dataset: A synthetic multi-view dataset constructed by cropping and rotating MNIST digit images to introduce explicit latent factors (like aspect ratio and rotation angle).

Key Insights and Ideas

  • Joint Invertibility over Individual Invertibility: Unlike prior work in nonlinear independent component analysis (ICA) which requires the functions generating each child to be individually invertible, this paper relies on joint invertibility. This means the shared latent information just needs to be preserved across the children collectively, which is a much more realistic assumption for hierarchical systems.
  • Footprints for Identification: The structural conditions require that each latent variable has at least two "pure children" (children influenced only by that latent variable at that level). This ensures that each hidden factor leaves a distinct, identifiable footprint in the observed data.
  • Lower Algorithmic Complexity: By leveraging deep learning models to handle the local estimation, the algorithm achieves a lower structural search complexity ($\mathcal{O}(R * n)$, where $R$ is the number of levels and $n$ is the number of observed variables) compared to previous linear hierarchical methods that scale exponentially or factorially.

Key Results

  • High Fidelity Latent Recovery: On synthetic datasets, the proposed method achieved high coefficients of determination ($R^2$ scores ranging from $0.76$ to $0.91$) when predicting true latent variables from the estimated ones, validating the theoretical identifiability claims.
Estimation R2 scores on various synthetic hierarchical structures
  • Real-World Trait Clustering: When applied to the personality dataset, the algorithm successfully clustered questions corresponding to the same underlying personality traits together at the first latent level without any prior knowledge of the question categories.
Causal structure learned from the personality dataset
  • Disentangling Image Factors: On the multi-view digit dataset, the method automatically clustered views that shared latent factors (e.g., aspect ratio vs. rotation angle), proving its capability to handle high-dimensional continuous data like images.

Limitations and Future Work

The primary limitation of this work is its nature as a discrete search algorithm. Because it steps through the hierarchy level-by-level and relies on iterative prediction tests to merge or split variables, it may not scale well to massive, complex datasets like ImageNet.

The authors note that their current implementation serves primarily as a theoretical proof-of-concept. They point to future work focusing on translating these theoretical insights into scalable, end-to-end continuous optimization frameworks integrated with deep learning.

Summary updated

Abstract

Identifying latent variables and causal structures from observational data is essential to many real-world applications involving biological data, medical data, and unstructured data such as images and languages. However, this task can be highly challenging, especially when observed variables are generated by causally related latent variables and the relationships are nonlinear. In this work, we investigate the identification problem for nonlinear latent hierarchical causal models in which observed variables are generated by a set of causally related latent variables, and some latent variables may not have observed children. We show that the identifiability of causal structures and latent variables (up to invertible transformations) can be achieved under mild assumptions: on causal structures, we allow for multiple paths between any pair of variables in the graph, which relaxes latent tree assumptions in prior work; on structural functions, we permit general nonlinearity and multi-dimensional continuous variables, alleviating existing work's parametric assumptions. Specifically, we first develop an identification criterion in the form of novel identifiability guarantees for an elementary latent variable model. Leveraging this criterion, we show that both causal structures and latent variables of the hierarchical model can be identified asymptotically by explicitly constructing an estimation procedure. To the best of our knowledge, our work is the first to establish identifiability guarantees for both causal structures and latent variables in nonlinear latent hierarchical models.
BibTeX
@inproceedings{kong2023identification,
  author = {Lingjing Kong and Biwei Huang and Feng Xie and Eric Xing and Yuejie Chi and Kun Zhang},
  title = {{Identification of Nonlinear Latent Hierarchical Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Uc5yyiytR1},
}
Figure