Latent Dependency Forest Models

Shanbo Chu, Yong Jiang, Kewei Tu

Abstract

Probabilistic modeling is one of the foundations of modern machine learning and artificial intelligence. In this paper, we propose a novel type of probabilistic models named latent dependency forest models (LDFMs). A LDFM models the dependencies between random variables with a forest structure that can change dynamically based on the variable values. It is therefore capable of modeling context-specific independence. We parameterize a LDFM using a first-order non-projective dependency grammar. Learning LDFMs from data can be formulated purely as a parameter learning problem, and hence the difficult problem of model structure learning is circumvented. Our experimental results show that LDFMs are competitive with existing probabilistic models.

Introduction

Traditional probabilistic graphical models, such as Bayesian Networks (BNs), typically rely on a fixed graph structure to represent dependencies between random variables. However, this approach faces significant challenges. First, exact inference in complex graphs is often #P-complete. Second, finding the optimal graph structure is an NP-hard discrete optimization problem. Finally, fixed graphs struggle to capture Context-Specific Independence (CSI), where dependencies between variables change based on the values of other variables.

Latent Dependency Forest Models (LDFMs) address these issues by borrowing techniques from Natural Language Processing (NLP). Instead of a single fixed structure, LDFMs represent relationships as a dynamic forest of trees that adapts to the data.

Methods

The core innovation of LDFMs is treating the dependency structure as a latent variable. Rather than searching for a single "best" graph, the model considers the ensemble of all possible dependency trees simultaneously.

Dependency Grammar and Matrix Tree Theorem

Inspired by dependency grammars in NLP, LDFMs link variables where each node is a variable and edges represent conditional dependencies. To handle the exponential number of possible tree structures, the model utilizes the Matrix Tree Theorem (MTT). The MTT allows for the calculation of the partition function—the sum of weights of all possible trees—in polynomial time ($O(n^3)$).

Example of dependency structures and weight calculations in LDFMs.

Learning and Inference

By weighting all possible edges in a complete graph, the difficult discrete problem of structure learning is transformed into a continuous parameter learning problem. The weights are learned using the Expectation-Maximization (EM) algorithm. If a dependency is not supported by the data, its weight naturally approaches zero. For inference, the authors introduced "tree-augmented sampling," which samples both the tree structure and variable values, achieving significant speedups over standard Gibbs sampling.

Experimental Results

LDFMs were evaluated on nine standard Bayesian Network benchmarks, ranging from small datasets like Asia to complex ones like Hailfinder. The performance was measured using conditional log-likelihoods.

Comparison of LDFMs with other probabilistic models across various datasets and training sizes.

The results demonstrate that LDFMs are highly competitive. They consistently outperformed traditional BNs and Mixtures of Trees (MTs). When compared to state-of-the-art Sum-Product Networks (SPNs), LDFMs showed particular strength in low-data regimes (e.g., 500 training instances), suggesting superior data efficiency. Notably, LDFMs achieved these results even on datasets originally generated from BNs, showcasing their robustness.

Conclusion

LDFMs provide a flexible framework for probabilistic modeling that naturally incorporates context-specific independence while avoiding the pitfalls of explicit structure search. While the model offers significant advantages in efficiency and expressiveness, challenges remain regarding the #P-hardness of calculating the global normalization factor and scaling to extremely large variable sets. Future work may focus on more elegant generative constraints to ensure valid variable assignments across the latent structures.

Summary updated

BibTeX
@inproceedings{chu2017latent,
  author = {Shanbo Chu and Yong Jiang and Kewei Tu},
  title = {{Latent Dependency Forest Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=SJVQxgWu-S},
}
Figure