Introduction
Standard Hidden Markov Models (HMMs) have long been the workhorses for modeling sequential data like text or time series. However, these models often struggle when applied to structured data such as natural language parse trees, biological phylogenetic trees, or website hierarchies. In their research, Davide Bacciu and Daniele Castellana provide a theoretical deep dive into modeling these hierarchical structures, arguing that the direction of processing fundamentally alters a model's learning capacity.
Modeling Directions: Top-Down vs. Bottom-Up
When transitioning from sequences to trees, researchers must choose a processing direction: generating the tree from the root down to the leaves (Top-Down) or from the leaves up to the root (Bottom-Up). While these directions are often equivalent for simple sequences, they are distinct for trees.
Most existing literature focuses on Top-Down (TD) models due to their mathematical simplicity. In a TD Hidden Tree Markov Model (HTMM), the state of a child depends only on its parent. This assumption implies that "sibling" nodes are independent given their parent, which limits the model's ability to capture complex structural relationships between different branches.
The Bottom-Up Advantage
The authors argue that Bottom-Up (BU) models are more expressive. By processing from leaves to root, the parent state depends on the joint states of all its children. This creates a "v-structure" in the underlying Bayesian network. In probability theory, this structure induces "explaining away"—a phenomenon where observing the parent makes the siblings dependent. This allows BU models to capture much richer structural information than TD models.
To manage the exponential complexity of this joint distribution, the authors employ a "mixture of multinomials" approximation. This reduces the computational burden from $O(C^L)$ to $O(LC^2)$, where $C$ is the number of states and $L$ is the number of children, making the BU approach practically viable.
Scaling to Infinite States: The iBU HTMM
A common challenge in HMMs is pre-specifying the number of hidden states. The authors propose a novel "Infinite" BU HTMM that utilizes Bayesian non-parametrics to address this.
By incorporating Hierarchical Dirichlet Processes (HDP) and the "stick-breaking" construction, the model can automatically determine the necessary number of hidden states based on the data. This allows the model complexity to grow organically, removing the need for manual tuning. While the paper primarily provides a theoretical sketch of this framework, it sets a roadmap for future implementations in recursive structures, potentially leading to breakthroughs in unrestricted tree transductions.
Conclusion
This theoretical overview highlights that causality and directionality are not neutral choices in tree modeling. The Bottom-Up approach, with its inherent v-structure, offers a superior framework for learning complex tree distributions. By linking these models to automata theory and proposing non-parametric extensions, the authors pave the way for more flexible and powerful hierarchical data models.
Summary updated