A Versatile Causal Discovery Framework to Allow Causally-Related Hidden Variables

Xinshuai Dong, Biwei Huang, Ignavier Ng, Xiangchen Song, Yujia Zheng, Songyao Jin, Roberto Legaspi, Peter Spirtes, Kun Zhang

Overview

The authors introduce RLCD (Rank-based Latent Causal Discovery), a novel framework designed to identify causal structures even when hidden variables are scattered throughout the network. By leveraging rank constraints on covariance matrices rather than relying solely on standard conditional independence tests, RLCD can locate latent variables, determine their influence, and recover the causal graph in complex scenarios where observed variables are directly connected.

The Challenge of Latent Variables

Causal discovery—the science of determining "what causes what" from observational data—often struggles when faced with latent (hidden) variables. Most traditional algorithms assume "causal sufficiency," meaning all relevant variables have been measured. In reality, datasets almost always omit crucial confounders.

Existing methods that attempt to handle latents often come with significant limitations. Some algorithms, like FCI, can detect that a latent exists but cannot describe the causal relationships between the latents themselves. Others, such as traditional measurement models, assume observed variables are merely "leaves" (effects) of hidden traits and cannot cause one another.

The authors tackle a much more realistic and "messy" scenario: a world where hidden variables can be causes, effects, or mediators, and where observed variables can directly influence each other.

Example of a complex causal network with scattered latent variables.

Methodology: Beyond Conditional Independence

The core innovation of RLCD is moving beyond Conditional Independence (CI) tests. While CI tests are the traditional bread and butter of causal discovery, they are often uninformative when variables are hidden. Instead, the authors utilize rank deficiency constraints of the covariance matrix.

The RLCD Algorithm

The framework operates in three primary phases:

  1. FindCISkeleton: The algorithm uses rank tests to find an initial "skeleton" of the graph among the observed variables.
  2. FindCausalClusters: This is the search phase for hidden variables. The algorithm looks for specific patterns of rank deficiency that signal the presence of a latent variable. It introduces the concept of an "Atomic Cover"—the minimal identifiable unit of a graph that contains a latent.
  3. RefineCausalClusters: A cleanup phase that identifies and splits "fake" or overly large clusters into their correct, smaller components.

The mathematical backbone of this approach is Trek-separation. In a linear model, the rank of a cross-covariance matrix between two sets of variables is bounded by the number of "treks" (paths) connecting them. By finding where the rank is lower than expected, the algorithm effectively "sees" the bottleneck created by a hidden variable.

Key Insights and Results

The authors evaluated RLCD against several baselines (including PC, FCI, and GIN) using both synthetic data (Latent Trees, Latent Measurement Models, and General Latent Models) and real-world data (the Big Five Personality dataset, comprising approximately 20,000 participants).

  • Rank is More Informative than CI: A CI test is essentially a "rank-0" or "rank-1" constraint. By analyzing higher ranks, RLCD identifies structures that CI tests simply cannot see when nodes are missing.
  • Latents as Effects: Unlike most models that treat latents strictly as "parents" (causes), RLCD is versatile enough to handle latents that are "children" (effects) of observed variables.
  • Superior Accuracy and Efficiency: In synthetic tests, RLCD consistently achieved higher F1 scores for both the skeleton and the overall causal directions compared to baselines. Furthermore, it demonstrated high sample efficiency, maintaining strong performance even with finite samples (as low as 2,000 points), whereas other rank-based methods often require much larger datasets to converge.
  • Bridging Psychological Theories: On the Big Five dataset, RLCD correctly clustered most questions under their respective personality traits and discovered plausible causal links between the traits themselves. Interestingly, RLCD's results reconciled two competing theories: Latent Trait Theory (traits cause behaviors) and Network Theory (behaviors trigger other behaviors), finding a structure where both dynamics occur simultaneously.

Limitations and Future Work

While powerful, the current framework has a few limitations:

  • Linearity Assumption: RLCD relies on Latent Linear Causal Models. It does not currently account for complex non-linear interactions.
  • Acyclic Only: The algorithm assumes the underlying graph is a Directed Acyclic Graph (DAG) and cannot handle systems with feedback loops (cycles).
  • Computational Complexity: Searching for all possible rank-deficient combinations can become computationally expensive as the number of variables grows.

Future work will likely focus on extending these rank-based principles to nonlinear models and cyclic graphs, further broadening the applicability of this versatile causal discovery framework.

Summary updated

BibTeX
@inproceedings{dong2024versatile,
  author = {Xinshuai Dong and Biwei Huang and Ignavier Ng and Xiangchen Song and Yujia Zheng and Songyao Jin and Roberto Legaspi and Peter Spirtes and Kun Zhang},
  title = {{A Versatile Causal Discovery Framework to Allow Causally-Related Hidden Variables}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=FhQSGhBlqv},
}
Figure