Bayesian Tensor Factorisation for Bottom-up Hidden Tree Markov Models

Daniele Castellana, Davide Bacciu · DOI

Introduction

Tree-structured data is prevalent in various domains, from XML document processing to bioinformatics and linguistics. Hidden Tree Markov Models (HTMMs) are a standard tool for modeling such data. While top-down HTMMs are computationally efficient, they often fail to capture the compositional nature of data where a parent node's state is inherently determined by its children. Bottom-up (BU) models address this but face a significant challenge: the state-transition matrix grows exponentially with the number of children, a problem known as the "curse of dimensionality."

The Challenge of Bottom-Up Modeling

In a standard BU-HTMM, the transition probability $P(Q_u | Q_{ch_1}, \dots, Q_{ch_L})$ requires a tensor of size $C^{L+1}$, where $C$ is the number of hidden states and $L$ is the number of children. For nodes with many children, this becomes intractable. Previous attempts to mitigate this, such as the Switching Parent (SP) approximation, assume that the parent's state depends on only one child at a time, effectively averaging the contributions. This simplification, however, loses the joint information and complex interactions between siblings.

The graphical structure of a Bottom-Up Hidden Tree Markov Model (BU-HTMM).

TF-BHTMM: Tensor Factorisation to the Rescue

The authors propose TF-BHTMM, which leverages Tucker decomposition to factorize the high-dimensional transition tensor. Instead of storing the full tensor, the model represents it using a smaller core tensor and a set of mode matrices.

Tucker decomposition of a tensor into a core tensor and mode matrices, which forms the basis of the TF-BHTMM transition model.

Key Components:

  • Mode Matrices: These matrices act as filters that group child states into a reduced set of "concepts" or clusters. This dimensionality reduction allows the model to handle nodes with many children efficiently.
  • Core Tensor: The core tensor models the interactions between these compressed "concepts" to determine the parent's state. By maintaining a multi-way structure, TF-BHTMM preserves the joint information between siblings that simpler approximations discard.

Bayesian Learning and Rank Selection

A critical aspect of tensor factorization is choosing the "rank" or the size of the core tensor. TF-BHTMM employs a Bayesian framework to learn these parameters automatically. The authors use Stochastic Search Variable Selection (SSVS) within a Gibbs sampling scheme to identify the optimal compression size from the data. This removes the need for manual tuning and allows the model to adapt its complexity to the specific dataset.

Experimental Results

The model was rigorously tested on the INEX 2005 and 2006 XML mining benchmarks, as well as a synthetic ternary tree dataset.

  • Classification Performance: On the INEX05 dataset, TF-BHTMM achieved an accuracy of approximately 95.2%, outperforming the state-of-the-art SP-BHTMM (~93.3%).
  • Structural Labeling: The most significant gains were seen in node labeling tasks. On synthetic data designed to test structural understanding, TF-BHTMM reached 80.68% accuracy, nearly 30 percentage points higher than the SP model (53.08%).
  • Leaf Node Accuracy: TF-BHTMM was exceptionally precise at identifying leaf nodes (99.67% accuracy), whereas the SP model frequently misclassified them (55.47%).

Conclusion

TF-BHTMM provides a powerful solution to the dimensionality problems inherent in bottom-up tree models. By integrating Tucker decomposition into a Bayesian framework, it captures the rich, joint dependencies within tree structures while remaining computationally feasible. This approach sets a new benchmark for modeling complex, compositional tree-structured data.

Summary updated

BibTeX
@inproceedings{castellana2019bayesian,
  author = {Daniele Castellana and Davide Bacciu},
  title = {{Bayesian Tensor Factorisation for Bottom-up Hidden Tree Markov Models}},
  booktitle = {IJCNN},
  year = {2019},
  doi = {10.1109/ijcnn.2019.8851851},
}
Figure