Tech Report A Variational HEM Algorithm for Clustering Hidden Markov Models

Emanuele Coviello, Antoni B. Chan, Gert R. G. LanckrietarXiv 2011

Introduction

Hidden Markov Models (HMMs) are fundamental tools in sequential data analysis, with applications ranging from speech recognition and bioinformatics to financial modeling. As the volume of sequential data grows, researchers often encounter large collections of HMMs that need to be organized, summarized, or indexed. However, clustering HMMs presents significant challenges because their parameters exist on a complex, non-linear manifold rather than a flat Euclidean space.

This paper introduces the Variational Hierarchical EM (VHEM) algorithm, a novel approach designed to cluster HMMs based on the probability distributions they represent. Unlike previous methods, VHEM not only groups similar models but also generates a representative "cluster center" HMM for each group, providing a generative summary of the underlying data.

The Challenge of HMM Clustering

Clustering HMMs typically follows one of two paths: parameter-space clustering or distribution-space clustering. Parameter-space methods, such as spectral clustering, rely on similarity matrices. While effective at grouping, they cannot produce a "mean" model; they can only identify a representative model from the existing set.

Distribution-space clustering, specifically the Hierarchical EM (HEM) framework, is mathematically more robust as it treats models as probability distributions. However, HEM is traditionally computationally intractable for HMMs. The E-step in HEM requires marginalizing over hidden states, a process that leads to exponential complexity when dealing with the transition and emission structures of HMMs.

The VHEM Algorithm

To overcome these computational hurdles, the authors propose VHEM. The algorithm aims to reduce a "base" mixture of many HMMs into a "reduced" mixture with fewer components. Two key innovations make this possible:

  1. Virtual Samples: Rather than relying on the original raw data—which may be unavailable or too large to process—VHEM treats the base HMMs as the data source. It effectively uses "virtual samples" generated by these models to estimate the parameters of the reduced model.
  2. Variational Approximation: To solve the intractability of the HMM E-step, the authors employ a variational approach. They restrict the search for the posterior distribution to a simpler, factored distribution (a Markov chain). This allows for the derivation of a lower bound on the log-likelihood, which can be optimized efficiently using a backward recursion.

The resulting algorithm iteratively assigns base HMMs to clusters and updates the cluster centers to better represent their assigned members, ensuring a computationally feasible path to distribution-based clustering.

Experimental Evaluation

The authors evaluated VHEM across three distinct domains to demonstrate its versatility and performance.

Motion Capture (MoCap)

Using a collection of human motion sequences (e.g., walking, jumping, running), VHEM was tasked with creating a hierarchy of motions. The algorithm produced more semantically meaningful results than spectral clustering. For example, VHEM successfully separated "sitting" (a static pose) from all active motions at the highest level of the hierarchy, a distinction that spectral clustering failed to make clearly.

Music Tagging (CAL500)

In experiments with the CAL500 music dataset, which includes semantic tags for genre and mood, VHEM was used to build an HMM mixture model. VHEM outperformed standard EM-based mixtures, particularly in "Precision@10" metrics. This indicates that the top-ranked songs for specific semantic tags were more accurately identified by the VHEM-derived models.

Handwriting Recognition

On the Character Trajectories dataset, VHEM demonstrated significant efficiency gains. When training time was constrained, VHEM achieved higher classification accuracy than standard EM. By using virtual samples of shorter lengths, the algorithm converged faster without sacrificing the quality of the resulting models.

Key Insights

VHEM offers several advantages over traditional clustering techniques:

  • Generative Summarization: By producing a novel HMM for every cluster, VHEM provides a generative model that can be used for further synthesis or hierarchical indexing.
  • Robustness to Basis Mismatch: Because it clusters in the space of distributions, VHEM is unaffected by "basis mismatch," where two HMMs represent the same process but use different internal state numbering.
  • Scalability: VHEM supports a "divide and conquer" approach. Large datasets can be processed by training small HMMs in parallel and then using VHEM to merge them into a global model, reducing memory overhead.

Conclusion

The Variational Hierarchical EM algorithm provides a powerful framework for organizing large collections of sequential models. By bridging the gap between distributional elegance and computational feasibility, VHEM enables more sophisticated analysis of complex datasets. Future work may extend this variational logic to other graphical models, potentially offering a generalized solution for hierarchical modeling in high-dimensional spaces.

Summary updated

BibTeX
@misc{coviello2011tech,
  author = {Emanuele Coviello and Antoni B. Chan and Gert R. G. Lanckriet},
  title = {{Tech Report A Variational HEM Algorithm for Clustering Hidden Markov Models}},
  year = {2011},
  eprint = {1109.1032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1109.1032},
}
Figure