[Paper Review] Products of Hidden Markov Models: It Takes N>1 to Tango
This paper proposes Products of Hidden Markov Models (PoHMMs) as a powerful generative model for complex time-series data with componential structure. By combining multiple HMMs via a product-of-experts framework and using Annealed Importance Sampling to estimate the intractable partition function, PoHMMs achieve superior log-likelihood performance on real-world rainfall and human motion data—especially when data exhibits strong componential dependencies—demonstrating their viability for high-dimensional sequence modeling despite higher training cost than standard HMMs.
Products of Hidden Markov Models(PoHMMs) are an interesting class of generative models which have received little attention since their introduction. This maybe in part due to their more computationally expensive gradient-based learning algorithm,and the intractability of computing the log likelihood of sequences under the model. In this paper, we demonstrate how the partition function can be estimated reliably via Annealed Importance Sampling. We perform experiments using contrastive divergence learning on rainfall data and data captured from pairs of people dancing. Our results suggest that advances in learning and evaluation for undirected graphical models and recent increases in available computing power make PoHMMs worth considering for complex time-series modeling tasks.
Motivation & Objective
- To address the limitations of standard HMMs in modeling high-dimensional, componential time-series data with long-range dependencies.
- To revive interest in Products of Hidden Markov Models (PoHMMs), a class of undirected models with distributed hidden states that have seen little use since their introduction.
- To provide a reliable method for estimating the intractable partition function in PoHMMs, enabling accurate log-likelihood computation for model evaluation and selection.
- To empirically evaluate PoHMMs on real-world datasets—rainfall and human motion capture—demonstrating their effectiveness compared to baseline HMMs.
Proposed method
- PoHMMs are defined as a product of individual HMMs, where each HMM acts as an expert modeling a distinct aspect of the sequence, with the joint distribution formed by multiplying individual HMM likelihoods and normalizing.
- The partition function, which is intractable in undirected models, is estimated using Annealed Importance Sampling (AIS) with 5000 uniformly spaced annealing intervals to achieve high-accuracy log-likelihood estimation.
- Contrastive Divergence (CD) with K=10 steps is used to train the PoHMMs, minimizing the contrastive divergence between data and model distributions.
- For motion data, dimensionality is grouped into body parts (e.g., left leg, right arm), and 25-means clustering is applied per group to create discrete sequences for modeling.
- Log-likelihood comparisons are normalized per dimension to allow fair comparison between single- and multi-subject motion data.
- Baseline HMMs are trained via EM with varying numbers of states (2N, N=2 to 6), while PoHMMs are trained with comparable parameter counts using CD(10) and momentum optimization.
Experimental results
Research questions
- RQ1Can PoHMMs effectively model high-dimensional, real-world time-series data with componential structure, such as human motion or rainfall patterns?
- RQ2Is the intractable partition function in PoHMMs reliably estimable using Annealed Importance Sampling (AIS) to enable accurate log-likelihood evaluation?
- RQ3How do PoHMMs compare to standard HMMs in terms of log-likelihood performance when both are constrained to similar parameter counts?
- RQ4Does the performance advantage of PoHMMs increase with stronger componential structure in the data, as in multi-agent motion capture?
- RQ5Can gradient-based CD learning with AIS-based likelihood estimation outperform traditional EM-based HMM training despite higher computational cost?
Key findings
- PoHMMs achieved significantly better log-likelihood scores than baseline HMMs on both single-subject and two-subject motion capture data, with the advantage being more pronounced in the two-subject case, indicating stronger componential structure benefits the model.
- On single-subject motion data, PoHMMs with 4 experts each having 8 states (4×8) outperformed HMMs with up to 32 states in terms of normalized log-likelihood.
- On two-subject data, PoHMMs with 4×8 and 8×4 configurations achieved better test log-likelihood than HMMs with 64 states, demonstrating superior capacity for modeling multi-influence sequences.
- The use of AIS with 5000 intervals enabled reliable log-likelihood estimation, with error bars from 100 AIS runs being so tight that they were nearly invisible on the plots.
- Despite higher training cost (on the order of an hour per PoHMM vs. minutes for HMMs), PoHMMs showed better generalization and modeling capacity, especially when data had strong componential dependencies.
- The results suggest that combining multiple HMMs via a product model is more effective than increasing the number of states in a single HMM, particularly when the number of states becomes large.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.