Learning Discrete Latent Variable Structures with Tensor Rank Conditions

Zhengming Chen, Ruichu Cai, Feng Xie, Jie Qiao, Anpeng Wu, Zijian Li, Zhifeng Hao, Kun Zhang

Introduction

Causal discovery—the process of inferring causal relationships from observational data—is a cornerstone of scientific inquiry. However, this task becomes significantly more complex when the primary variables of interest are latent (unobserved) and the data is discrete. In fields such as psychology, sociology, and education, researchers often work with categorical survey responses to infer hidden constructs like "social stress" or "political efficacy."

Traditional causal discovery methods frequently rely on linear-Gaussian assumptions, which are ill-suited for categorical data. Meanwhile, existing methods for discrete latent variables often impose rigid structural constraints, such as requiring the causal graph to be a simple tree or a pyramid. This paper introduces a novel framework that leverages tensor rank conditions to identify complex causal structures among discrete latent variables without these restrictive topological assumptions.

The Theoretical Bridge: Tensor Rank and d-Separation

The core innovation of this research lies in the application of tensor algebra to probability distributions. The authors demonstrate a fundamental link between an algebraic property (tensor rank) and a graphical property (d-separation).

By treating the joint distribution of a set of observed variables as a multi-way tensor (a high-dimensional generalization of a matrix), the authors prove that the rank of this tensor is determined by the size of the smallest set of variables that d-separates the observed indicators. This allows researchers to use the algebraic rank of data tables as a proxy for the underlying causal architecture, bridging the gap between abstract graph theory and concrete statistical analysis.

The PC-TENSOR-RANK Algorithm

The proposed methodology follows a two-step process to reconstruct the causal model:

1. Identifying the Measurement Model

The first step involves determining which observed indicators (e.g., specific survey questions) belong to which latent variable. The authors utilize iterative tensor rank tests to cluster variables. If the rank of the joint distribution of a subset of variables matches the support (number of states) of a potential latent variable, it suggests those variables share a common latent parent.

2. Discovering the Structural Model

Once the latent variables are identified, the authors introduce PC-TENSOR-RANK, an adaptation of the classic PC algorithm. While the standard PC algorithm relies on conditional independence tests—which are notoriously difficult to implement for latent structures—PC-TENSOR-RANK uses tensor rank conditions to prune edges and orient causal directions between the unobserved variables. This allows for the discovery of complex networks, including those with multiple parents or non-tree structures.

To handle finite sample sizes, the implementation utilizes CP (Canonical Polyadic) decomposition and chi-square goodness-of-fit tests to estimate tensor ranks accurately from noisy data.

Empirical Validation

The framework was validated through a combination of synthetic simulations and real-world applications:

  • Synthetic Benchmarks: The algorithm was tested against various causal topologies, including colliders, stars, and chains. It consistently outperformed baselines such as BPC (designed for linear models) and BayPy (limited to pyramid structures), showing significantly lower rates of latent omission and false edge commission.
  • Political Efficacy Dataset: Analyzing a classic survey of 1,719 cases, the algorithm successfully recovered the latent structure of how citizens perceive their influence on government, matching established domain expertise.
  • Depression Dataset: In a study of self-esteem and impulsiveness (204 samples), the method correctly grouped 12 observed indicators into their respective latent factors and identified the causal links between them.

Key Insights and Robustness

A significant advantage of this approach is its flexibility regarding variable cardinality. Unlike many previous methods, this framework functions even when latent variables have different numbers of categories (e.g., a binary latent variable influencing a four-state latent variable). Furthermore, the method proved robust even when the "Full Rank" assumption was slightly violated, suggesting it can handle the inherent noise of real-world social science data.

Limitations and Future Directions

While the paper represents a significant leap forward, the authors note several areas for future research:

  • The Purity Assumption: The current algorithm assumes each observed variable has only one latent parent (the "Pure Child" constraint). While the authors provide a theoretical basis for handling "impure" structures, a fully automated algorithmic solution remains a future goal.
  • Computational Complexity: High-dimensional tensor decomposition is computationally intensive. Scaling the method to hundreds of variables will require more optimized approximation techniques.
  • Hierarchical Depth: Extending the framework to identify deep hierarchies (latents causing other latents in multiple layers) is a promising avenue for further exploration.

Conclusion

By moving beyond linear assumptions and tree-based constraints, this research provides a powerful new toolkit for causal discovery in the social and behavioral sciences. The use of tensor rank conditions offers a mathematically rigorous yet practical way to unlock the hidden causal structures within discrete data.

Summary updated

BibTeX
@inproceedings{chen2024learning,
  author = {Zhengming Chen and Ruichu Cai and Feng Xie and Jie Qiao and Anpeng Wu and Zijian Li and Zhifeng Hao and Kun Zhang},
  title = {{Learning Discrete Latent Variable Structures with Tensor Rank Conditions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=6EqFoqkLSW},
}
Figure