Learning Overcomplete HMMs

Vatsal Sharan, Sham M. Kakade, Percy S. Liang, Gregory Valiant

Introduction

Hidden Markov Models (HMMs) are foundational tools for modeling sequential data like speech and text. Traditionally, provable learning algorithms assume the "undercomplete" or "full-rank" setting, where the number of observable output symbols is at least as large as the number of hidden states ($m \ge n$).

However, many real-world applications are overcomplete. Imagine modeling a DNA sequence or a book: the "alphabet" (4 bases or ~100 characters) is tiny, but the underlying hidden structure (genes, syntax, semantics) involves thousands or millions of states. In this $m \ll n$ regime, standard spectral methods fail because the observation matrices are no longer full rank.

This paper explores this "overcomplete" regime, establishing a sharp boundary for learnability. The core challenge addressed is: Under what conditions can we actually learn these models with a reasonable (polynomial) amount of data? The authors demonstrate that while dense, random-walk-style HMMs are information-theoretically impossible to learn with polynomial samples, structured HMMs—specifically those with sparse transition matrices and few short cycles—can be efficiently learned.

Methods: Tensors and Coupling

To tackle the overcomplete setting, the authors employ the Method of Moments combined with Tensor Decomposition.

  1. Moment Tensors: Instead of looking at single observations, the algorithm analyzes sequences of observations (windows) of length $N = 2\tau + 1$. By examining these windows, they construct a third-order tensor $M$ representing the joint probabilities of past, present, and future observation strings.
  2. Tensor Decomposition: If the factors of this tensor (which relate to the HMM's transition and observation matrices) are well-conditioned, they can be recovered uniquely using algorithms like Jennrich’s (simultaneous diagonalization).
  3. The Coupling Argument: The paper’s primary technical innovation is a novel "Markov chain coupling" argument. To prove that the tensor is well-conditioned, they show that two random walks starting from different states must diverge significantly in their output distributions over time. If the transition matrix $T$ is well-conditioned and lacks short cycles, the random walks "spread out" enough to make the states distinguishable from short observation windows.

Key Insights and Results

The authors use synthetic simulations to generate HMMs with specific graph properties (cycles of varying lengths, different degrees) to empirically validate how the "condition number" of the likelihood matrix changes.

Conditioning worsens with shorter cycles and higher degrees
  • The "Short Cycle" Curse: If an HMM has many short cycles (e.g., a state just toggles back and forth), it doesn't "explore" enough of the state space in a short window. This makes it impossible to distinguish between different hidden states using only a few observations. As demonstrated empirically, the model becomes harder to learn as cycles get shorter or the graph gets denser.
  • Information-Theoretic Hardness (Theorem 1): The authors prove that for certain "dense" HMMs (like random walks on high-degree regular graphs), even though the model might be identifiable (distinguishable with infinite data), it requires a super-polynomial number of samples to learn. This explains why previous generic approaches struggled.
  • Sparsity is the Key (Theorem 2): Learnability becomes possible when the transition matrix is sparse (each state only transitions to a few others) and the "girth" of the underlying graph is large (no short loops). Specifically, HMMs are learnable in polynomial time/samples if the transition matrix is well-conditioned, the graph has few cycles shorter than $O(\log_m n)$, the transition matrix is sparse, and the output distributions are random with small support.
  • Long-term Dependencies: They introduce a parameter $\sigma_{min}^{(1)}(T)$ to measure how well a transition matrix preserves information over time, arguing this is a better metric for "memory" than standard mixing times. Furthermore, they show that for generic HMMs, a window length of $2\log_m n + 1$ is sufficient for identifiability, a quadratic improvement over previous bounds.

Limitations and Future Work

While this paper establishes crucial theoretical boundaries, some limitations remain:

  • Random Observation Matrix: A significant assumption in the positive results is that the observation matrix $O$ is drawn at random. In reality, output distributions (like character frequencies in English) are highly structured. The authors acknowledge that "aliased" HMMs (where different states have identical outputs) remain a daunting challenge.
  • Gap in Bounds: There is still a gap between the "no short cycles" requirement in the positive result and the "dense graph" condition in the negative result.
  • Smoothed Analysis: The authors suggest that future work could move toward a "smoothed analysis" framework, where an adversary chooses a transition matrix, but a small amount of nature's noise is added to the observation matrix to ensure learnability.

Summary updated

BibTeX
@inproceedings{sharan2017learning,
  author = {Vatsal Sharan and Sham M. Kakade and Percy S. Liang and Gregory Valiant},
  title = {{Learning Overcomplete HMMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=HkbSV_buZS},
}
Figure