TL;DR
This paper introduces a scalable, matrix-factorization-based algorithm to learn Hidden Markov Models (HMMs) using only pairwise co-occurrence statistics (second-order data). By leveraging a geometric condition called "sufficiently scattered," the method guarantees unique identifiability of HMM parameters, bypassing the heavy computational burden of Expectation-Maximization (EM) and the extreme sample-size demands of tensor-based approaches.
What Problem Does This Paper Address?
Hidden Markov Models (HMMs) are foundational tools for modeling time-dependent sequential data, such as speech, video, and natural language. However, learning an HMM in a fully unsupervised setting—where both the hidden state sequence and the underlying transition/emission probabilities are unknown—remains a classical challenge.
(Xt-1) ----> ( Xt ) ----> (Xt+1) <- Hidden States
| | |
v v v
(Yt-1) ( Yt ) (Yt+1) <- Observations
Figure 1: The classic graphical model of a Hidden Markov Model (HMM).
The traditional go-to method, the Baum-Welch (Expectation-Maximization) algorithm, scales poorly with long observation sequences ($O(K^2T)$ per iteration, where $K$ is the number of hidden states and $T$ is the sequence length) and suffers from slow convergence. To build more scalable algorithms, researchers often turn to method-of-moments techniques using sufficient statistics.
While tensor-based methods can guarantee unique parameter recovery, they require third-order statistics (triple co-occurrences of observations). In practice, accurately estimating third-order probabilities requires an impractically large amount of data. This paper addresses the intermediate sample-size regime: where you have enough data to accurately estimate pairwise (second-order) co-occurrences, but not higher-order ones.
Methods
The authors formulate HMM learning as a nonnegative matrix tri-factorization problem:
$$\Omega = M\Theta M^\top$$
Where $\Omega$ is the observed pairwise co-occurrence matrix, $M$ is the emission probability matrix, and $\Theta$ is the joint transition probability matrix.
Because matrix tri-factorization is generally non-unique, the authors introduce a determinant-based regularization criterion ($|\det \Theta|$) to enforce uniqueness. They prove that if the true emission matrix $M$ satisfies a geometric condition known as sufficiently scattered (meaning its columns are well-distributed across the probability simplex facets, implying a degree of sparsity), minimizing this determinant uniquely recovers the ground-truth HMM parameters.
To solve this non-convex optimization problem, the authors propose an iterative algorithm based on Successive Convex Approximation (SCA). Crucially, they develop a tailored Newton's method with block elimination to update the transition matrix $\Theta$. This optimization trick slashes the per-iteration complexity from a naive $O(K^6)$ down to an efficient $O(K^3)$, making the algorithm highly scalable.
Datasets
The algorithm was evaluated on two primary setups:
- Synthetic Data: Generated using MATLAB's HMM toolbox to strictly control parameters ($N=100$ observed states, $K=20$ hidden states) and evaluate exact parameter recovery across varying sequence lengths ($10^6$ to $10^8$).
- Reuters21578: A real-world text corpus used to evaluate the method's application to Hidden Topic Markov Modeling (HTMM), where documents are treated as sequences of words generated by evolving latent topics.
Key Insights and Ideas
- Pairwise Statistics Converge Faster: The authors mathematically demonstrate (via Proposition 1) that pairwise co-occurrences ($\Omega$) accumulate significantly less estimation error and concentrate faster than triple co-occurrences ($\Omega_3$) for any finite sample size $T$.
- Relaxing the "Anchor Word" Assumption: Unlike previous matrix-factorization topic models that require strict "separability" (i.e., every topic must have an exclusive anchor word), the "sufficiently scattered" condition is much milder and holds true even when topics share common vocabularies.
- Bigrams are Enough for Context: By modeling text as an HMM and learning it via bigram statistics, the model captures word-ordering dependencies well beyond a local neighborhood without the exponential parameter explosion seen in standard $n$-gram models.
Key Results
Synthetic Parameter Recovery
In synthetic benchmarks, the proposed method achieved near-perfect recovery of both transition and emission probabilities as the realization length approached $10^8$. It consistently outperformed tensor Canonical Polyadic Decomposition (CPD) methods, which suffered due to noisy third-order estimates.
Topic Modeling Performance
When applied to the Reuters21578 dataset, the proposed Hidden Topic Markov Model (HTMM) consistently achieved higher topic coherence and lower perplexity than popular bag-of-words baselines like pLSA, LDA, and FastAnchor across various topic counts ($K$).
Qualitatively, using the Viterbi algorithm on the learned HMM parameters yielded highly consistent and smooth topic assignments for individual words in a document, aligning closely with human reading comprehension.
Limitations and Future Work
- Stationarity Assumption: The algorithm assumes the underlying Markov process is stationary (time-invariant), which might not hold for highly dynamic real-world sequences.
- State Dimension Constraints: The theoretical guarantees and current formulation focus on settings where the number of hidden states ($K$) is less than or equal to the number of observed states ($N$). Extending this efficiently to overcomplete regimes ($K > N$) remains an open challenge for second-order methods.
- Sensitivity to Initialization: Because the optimization objective is non-convex, the algorithm's convergence relies on a high-quality geometric initialization step.
Summary updated