Introduction
Training Hidden Markov Models (HMMs) has traditionally relied on iterative algorithms like Expectation-Maximization (EM) or Gibbs sampling. While effective, these methods suffer from two primary drawbacks: they are prone to getting trapped in local optima and they scale poorly with large observation vocabularies. In many modern natural language processing (NLP) tasks, the vocabulary size ($v$) can reach tens of thousands, while the number of hidden states ($m$) remains relatively small.
This paper, published in 2012, presents a significant refinement to the "spectral" approach for HMM training. By leveraging dimensionality reduction before parameter estimation, the authors reduce the parameter space complexity from $O(m^2v)$ to $O(m^3)$, making the learning process independent of the vocabulary size and providing robust theoretical guarantees.
The Vocabulary Problem in Spectral Learning
Spectral methods, pioneered by Hsu et al. (2009), offer a closed-form solution to HMM training using Singular Value Decomposition (SVD), thereby avoiding local optima. However, these earlier methods still required estimating parameters that scaled with the vocabulary size $v$. Specifically, the number of parameters to be estimated from trigram data was $O(m^2v)$.
In a typical NLP scenario where $v=50,000$ and $m=100$, this represents a 500-fold increase in the number of parameters compared to a vocabulary-independent method. This "vocabulary problem" limited the applicability of spectral methods to large-scale real-world datasets.
Proposed Method: Projection-First Estimation
The core innovation of this work is the projection of observations into a low-dimensional space prior to estimating the model's core statistics. The authors frame the HMM using "observable operators"—matrices that describe how the probability distribution over hidden states evolves given a specific observation.
The proposed algorithm follows three main steps:
- Dimensionality Reduction: The method uses SVD on bigram (pairs of observations) counts to learn a projection matrix $U \in \mathbb{R}^{v \times m}$. This matrix maps the high-dimensional observation space down to a space matching the number of hidden states.
- Reduced Tensor Estimation: Instead of estimating a large tensor of size $m^2v$, the authors estimate a much smaller "skewness tensor" $K$ of size $m^3$.
- Operator Recovery: The core observable operators are recovered from this reduced tensor, allowing for efficient sequence probability calculation.
As shown in the figure above, the proposed method (left) maintains a consistent projection $U^\top$ for all observations $x_i$ to produce reduced observations $y_i$. In contrast, Hsu et al.'s method (right) uses more complex, time-dependent projections (e.g., $(P_{21}^\top U)^+$) that do not fully decouple the vocabulary size from the core parameter estimation.
Theoretical Guarantees and Stability
A key contribution of this paper is a new theoretical proof for relative error bounds ($|p - \hat{p}|/p$). Standard absolute error bounds are often insufficient for language modeling, where probabilities can be extremely small. A small absolute error might still represent a massive relative error for a rare sequence.
The authors identify two critical parameters for stability that can be calculated directly from observed data:
- $\sigma_m$: The $m$-th singular value of the observation-state mapping, representing the "identifiability" of the hidden states.
- $\Lambda$: A parameter related to the "spread" of the observations in the projected space.
For "obscure" words with very low probabilities, the authors suggest estimating a likelihood ratio rather than a raw probability. This prevents the "0/0" numerical instability often encountered in sequence modeling when dealing with rare events.
Empirical Evaluation
The authors tested their model's stability using the Google n-gram dataset, a massive corpus containing frequencies of 1-grams through 5-grams occurring on the web. Their findings revealed that $\sigma_m$ follows a power-law decay as the number of hidden states $m$ increases.
This empirical result has profound implications: it explains why HMMs with a large number of states are inherently difficult to learn, even with spectral methods. As $m$ grows, the "signal" in the higher-order moments becomes increasingly difficult to distinguish from noise, requiring exponentially more data to maintain accuracy.
Conclusion
By reducing the sample complexity to be independent of vocabulary size, this spectral method offers a scalable and theoretically grounded alternative to traditional HMM training. The shift from $O(m^2v)$ to $O(m^3)$ parameters enables the use of HMMs in domains previously considered computationally prohibitive. While challenges remain in scaling to very high hidden state dimensions, the ability to check accuracy conditions directly from data provides a powerful tool for researchers and practitioners alike.
Summary updated