Constrained Hidden Markov Models

Sam T. RoweisNeurIPS 1999

Introduction

In the realm of sequence modeling, researchers often face a difficult choice between discrete state models and continuous dynamical systems. This paper introduces Constrained Hidden Markov Models (HMMs), a novel architecture designed to bridge this gap. By restricting state transitions to only occur between "neighboring" states within a predefined topology, the model forces discrete state sequences to mimic continuous physical paths. This approach successfully recovers complex physical movements—such as the continuous motion of human articulators (mouth, tongue, jaw)—from noisy, highly nonlinear signals like speech.

The Dilemma in Sequence Modeling

Historically, modeling sequential data has required choosing between two imperfect paradigms:

  1. Traditional HMMs: These models are excellent at capturing complex, nonlinear relationships between hidden states and observed data. However, their internal "dynamics" are poor. In a standard HMM, any state can theoretically jump to any other state, making it difficult to capture the smooth, continuous motion inherent in physical systems.
  2. Linear Dynamical Systems (LDS): Models like Kalman filters excel at tracking smooth, continuous motion. Unfortunately, they assume the relationship between the hidden state and the output is linear and global. This assumption fails spectacularly when the mapping is "many-to-one" (where different physical states produce the same output) or highly nonlinear.

To highlight this challenge, the author tackles the acoustic-to-articulatory inversion problem: attempting to deduce how a speaker's tongue and jaw are moving solely from the audio of their voice. This is notoriously difficult because small changes in mouth shape can cause abrupt changes in sound, and entirely different mouth shapes can produce nearly identical sounds.

Enter Constrained HMMs

The core innovation of this paper is the Constrained HMM, which imposes a physical structure onto a traditional discrete model.

A 3D grid illustrating the fictitious topology of a Constrained HMM, where transitions are restricted to adjacent cells.

Here is how the architecture is constructed:

  • Fictitious Topology: The model defines a $d$-dimensional space (e.g., a 3D grid) and assigns each HMM state to a specific "cell" within that space.
  • Sparse Transitions: Instead of a dense transition matrix where any state can transition to any other, the matrix is preprogrammed to be extremely sparse. Transitions are strictly limited to adjacent cells in the defined topology.
  • Fixed Dynamics: Unlike standard HMMs where transition probabilities are learned from the data, Constrained HMMs use fixed probabilities (often set to be equally likely among neighbors). This forces the hidden state to "walk" through the grid exactly like a physical object moving continuously through space.
  • Standard Inference: Because the underlying math remains that of an HMM, standard tools like the Forward-Backward algorithm (for training) and Viterbi decoding (for finding the most likely path) can still be utilized.
  • Annealing: To prevent the model from getting stuck in local minima during training, a deterministic annealing process is used, gradually enforcing the transition constraints via a temperature parameter.

Experimental Validation

The paper evaluates the Constrained HMM on two distinct tasks to prove its efficacy in recovering underlying continuous structures.

1. The Synthetic "Pencil Game"

To test the model's ability to recover a 2D topology from noisy, repeated sequences, the author created a synthetic dataset. Imagine a "pencil" moving continuously across a sheet of paper divided into regions labeled with symbols. The model only sees the sequence of symbols and must reconstruct the spatial layout of the regions.

The synthetic 'pencil game' demonstrating how a sequence of observations generated from a true map can be used to reconstruct the underlying topology.

2. Real-World Speech Tracking

The model was then applied to the University of Wisconsin X-ray Microbeam Database. This dataset contains simultaneous audio (sampled at 22kHz) and physical measurements tracking 8 points on a speaker's tongue, lips, and jaw (a 16D vector) using gold beads and X-rays.

Key Insights and Results

The experiments yielded several landmark results for unsupervised learning and sequence modeling:

  • Topology as a Regularizer: By fixing the transitions, the model is provided with a powerful "physical" prior. This constraint forces the model to find a spatial arrangement that explains the temporal continuity of the data, making the learning of output distributions much more efficient.
  • Solving Many-to-One Mappings: Traditional linear models fail when two different states produce the same output because they attempt to "average" the states. Constrained HMMs maintain "private" output distributions for different parts of the state space, allowing them to distinguish between different physical configurations that happen to sound identical.
  • Discretized Continuity Works: The model proves that continuous math isn't strictly necessary to model continuous systems. A sufficiently dense grid of discrete states with local connectivity acts as a highly effective approximation of a continuous manifold.
  • Superior Performance: In the synthetic game, the model successfully reconstructed relative region positions despite 15% noise and many-to-one mappings—conditions where other methods failed. On the real-world X-ray data, a Constrained HMM with a 4D topology and 4,096 states significantly outperformed an optimized LDS/Kalman filter, recovering mouth movements to within the actual measurement error of the X-ray system.

Limitations and Future Directions

While powerful, the model has a few limitations. The dimensionality ($d$) and the total number of states ($M$) must be manually chosen beforehand (e.g., via cross-validation), as the model cannot learn the dimensionality of the space itself. Additionally, while the transition matrix is sparse, scaling to thousands of states (like $M=4096$) remains computationally intensive compared to simple linear models. Finally, the current iteration focuses on "diffusion" (moving equally in any direction), but future work could incorporate "directed flows" for more structured sequences like text.

Summary updated

BibTeX
@inproceedings{roweis1999constrained,
  author = {Sam T. Roweis},
  title = {{Constrained Hidden Markov Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1999},
}
Figure