Minimal Realization Problems for Hidden Markov Models

Qingqing Huang, Rong Ge, Sham M. Kakade, Munther A. Dahleh

TL;DR

This paper tackles the fundamental problem of learning Hidden Markov Models (HMMs) from observed data. The authors show that for "typical" HMMs, both finding the minimal model structure (quasi-HMM realization) and learning the full HMM parameters can be done efficiently, with computational complexity surprisingly low, on the order of O(log(k)), where k is the model order.

What Problem Does This Paper Address?

Hidden Markov Models (HMMs) are powerful tools for modeling sequential data, widely used in areas like speech recognition and bioinformatics. However, learning an HMM from data, specifically finding the minimal HMM that explains the observed sequences, is a challenging problem. This involves two key aspects:

  1. Partial Realization: Given only a finite number of observed output sequences (strings of a certain length), can we determine the underlying HMM's complete probabilistic model? This is akin to reconstructing a full picture from a few snapshots.
  2. Learning from Observations: How can we efficiently learn the parameters of an HMM when we only have access to observed outputs, not the hidden states?

The paper aims to bridge the gap between theoretical realization theory of HMMs and modern spectral methods for learning latent variable models. A core challenge is that for some HMMs, learning can be computationally intractable, even undecidable. This paper focuses on the "generic" case, meaning for almost all HMMs, excluding a tiny set of "pathological" cases.

Methods

The paper leverages spectral methods and tensor decomposition to tackle these problems.

  • Quasi-HMM Realization: The authors adapt a well-known algorithm (Algorithm 1) that uses Singular Value Decomposition (SVD) on specially constructed matrices derived from the observed joint probabilities. These matrices, called Hankel matrices, capture the temporal dependencies. The rank of these matrices reveals the minimal order of the HMM. The key innovation here is proving that for generic HMMs, a surprisingly small window size (N, the length of observed strings) is sufficient to guarantee the correctness of this algorithm.
  • HMM Realization: For learning the full HMM, the paper employs tensor decomposition. A 3rd-order tensor is constructed from the observed joint probabilities. The rank of this tensor corresponds to the minimal HMM order. The paper shows how to recover the HMM's transition and observation matrices from the factors of this tensor decomposition. They also propose algorithms for both the general case and a specific class of "degenerate" HMMs.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic development, assuming access to exact joint probabilities of observed sequences.

Key Insights and Ideas

  • Efficiency for Generic HMMs: The most striking insight is that for almost all HMMs, learning the minimal model structure (quasi-HMM) and recovering the full HMM parameters are computationally efficient. This is a significant result, as worst-case scenarios for HMM learning are known to be hard.
  • Small Window Size Suffices: The paper demonstrates that a surprisingly small window size (N) is sufficient for correct realization in the generic case. Specifically, N needs to be on the order of O(log(k)), where k is the HMM order. This is a dramatic improvement over previous approaches that might require N to be much larger, leading to exponential complexity.
  • Unified Complexity: The paper highlights that for generic HMMs, the computational complexity of finding a minimal quasi-HMM realization and a minimal HMM realization is comparable and efficient.
  • Spectral Methods Power: The success of the spectral methods (SVD and tensor decomposition) in efficiently solving these problems for generic cases underscores their power in learning latent variable models.

Key Results

  • Theorem 1: For generic HMMs, a minimal quasi-HMM realization can be computed efficiently using SVD on Hankel matrices derived from joint probabilities of strings of length N = 2n+1, where n > 8[log_d(k)]. This implies polynomial time and sample complexity.
  • Theorem 3: Similarly, for generic HMMs, a minimal HMM realization can be computed efficiently using tensor decomposition on a tensor constructed from joint probabilities of strings of length N = 2n+1, where n > 8[log_d(k)].
  • Theorem 2: Provides a bound on the number of independent sample sequences required to achieve a certain accuracy in the learned HMM parameters, showing it's polynomial in k, d, and inversely related to the smallest singular value of the Hankel matrix.
  • Algorithm 4: A specific algorithm is presented for recovering HMM parameters from tensor decomposition, even for some degenerate cases.

Limitations and Future Work

  • Generic vs. Worst-Case: The results primarily apply to "generic" HMMs. The paper acknowledges that for a measure-zero set of HMMs (pathological cases), learning can still be computationally hard or even undecidable. Developing algorithms that handle these worst-case scenarios remains an open problem.
  • Sample Complexity Dependence: While the paper shows polynomial sample complexity for generic cases, the exact bound depends on the smallest singular value of the Hankel matrix, which can be arbitrarily small for certain HMMs. Understanding this dependence more deeply is suggested for future work.
  • Degenerate Cases: While progress is made on some degenerate HMMs, a complete solution for all such cases is not presented.
  • Practical Implementation: The paper focuses on theoretical guarantees. Further research could explore the practical performance and stability of these algorithms on real-world datasets.

Summary updated

BibTeX
@article{huang2015minimal,
  author = {Qingqing Huang and Rong Ge and Sham M. Kakade and Munther A. Dahleh},
  title = {{Minimal Realization Problems for Hidden Markov Models}},
  journal = {IEEE Transactions on Signal Processing},
  year = {2015},
  doi = {10.1109/tsp.2015.2510969},
}
Figure