Algorithm Search⌘K

Modelcore

GMM-HMM acoustic model

Also called GMM-HMM.

Model each phone by a left-to-right HMM, usually three states, whose emissions are Gaussian mixtures over feature vectors.

A GMM-HMM acoustic model gives the density p(O∣W)p(O \mid W) of the feature frames of an utterance for a word sequence WW, as the channel of the source-channel model. Each phone is a left-to-right hidden Markov model, usually with three emitting states, and each state emits feature vectors from a Gaussian mixture with diagonal covariances. The pronunciation lexicon turns WW into phones, and the phone HMMs joined in that order give the HMM of the utterance. From the 1980s to about 2010 almost every large vocabulary recognizer used this model, mostly with triphone states tied by decision trees.

The machine

The frames are vectors ot∈Rdo_t \in \mathbb{R}^d, one every 10 ms, for example 13 MFCC values with their first and second differences, so d=39d = 39.

One phone. A phone HMM has three emitting states 1,2,31, 2, 3 in a chain, for the start, the middle and the end of the phone. State jj has a self loop with probability ajja_{jj} and an arc to the next state with probability 1−ajj1 - a_{jj}; the arc out of state 3 leaves the phone. There are no arcs back, so the model is left-to-right, and a phone takes at least 3 frames.

One state. State jj emits a frame with the density

bj(o)=∑m=1Mcjm N(o;μjm,Σjm),cjm≥0,∑mcjm=1,b_j(o) = \sum_{m=1}^{M} c_{jm}\, \mathcal{N}(o; \mu_{jm}, \Sigma_{jm}), \qquad c_{jm} \ge 0, \quad \sum_m c_{jm} = 1,

a mixture of MM Gaussians with diagonal covariances Σjm=diag(σjm12,…,σjmd2)\Sigma_{jm} = \mathrm{diag}(\sigma^2_{jm1}, \ldots, \sigma^2_{jmd}). With natural logs, one component has

log⁡N(o;μ,Σ)=−12(dlog⁡(2π)+∑k=1dlog⁡σk2+∑k=1d(ok−μk)2σk2),\log \mathcal{N}(o; \mu, \Sigma) = -\frac{1}{2} \Big( d \log(2\pi) + \sum_{k=1}^{d} \log \sigma_k^2 + \sum_{k=1}^{d} \frac{(o_k - \mu_k)^2}{\sigma_k^2} \Big),

and log⁡bj(o)\log b_j(o) is a log-sum-exp over the components.

One utterance. For a transcript WW, the lexicon gives a phone sequence, and the phone HMMs joined in that order give one chain of SS states, with optional silence models between the words. The density of the frames is the sum over the state paths QQ of the chain:

p(O∣W)=∑Q∏t=1Taqt−1qt bqt(ot).p(O \mid W) = \sum_{Q} \prod_{t=1}^{T} a_{q_{t-1} q_t}\, b_{q_t}(o_t).

The frames are independent given the states. The forward algorithm computes this sum, and the Viterbi algorithm gives the best path, which is the forced alignment of the utterance.

Training. Baum-Welch, which is EM for this model, re-estimates the transitions, the mixture weights, the means and the variances from the posteriors of the states and the components (Juang, Levinson and Sondhi 1986). Training runs on the chain of each training utterance, built from its transcript, so the phone boundaries are not needed. A common recipe starts from one Gaussian per state, often from a Viterbi training start, and splits the components of each state in two between rounds of Baum-Welch until MM is reached.

What it counts

The model gives log⁡p(O∣W)\log p(O \mid W), a sum over the frames, for the decoder to add to the language model score. The cost of the model is the evaluation of the emission densities: a state with MM diagonal Gaussians of dimension dd takes Θ(Md)\Theta(M d) operations per frame. A decoder evaluates the states that are active in its beam at each frame, and this term often dominates the cost of the search.

The number of parameters is the number of states times M(2d+1)M (2d + 1), for the means, the variances and the weights, plus the transitions. For example, 5000 tied states with 16 components of dimension 39 have 5000⋅16⋅79=6 320 0005000 \cdot 16 \cdot 79 = 6\,320\,000 parameters. The number of tied states and the number of components are chosen to fit the amount of training data, which is a heuristic.

Relation to other models

  • Hidden Markov model. A GMM-HMM is an HMM with continuous emissions. A mixture state is the same as MM states with one Gaussian each, entered with the probabilities cjmc_{jm}, so the HMM algorithms apply with a larger state set.
  • Gaussian mixture model. Each state is a GMM over the frames that the state emits. With one state and no time structure, the model is a plain GMM, as used for speaker verification.
  • Triphone model. The phone HMMs can depend on the neighboring phones. The structure of the model is the same, with many more states, and the states are tied by phonetic decision trees.
  • Hybrid DNN-HMM. Keeps the HMM, the tied states and the lexicon, and replaces the Gaussian mixtures by a neural network that predicts the state posteriors. Hybrid systems are usually trained on alignments from a GMM-HMM.
  • Adaptation. MLLR moves the Gaussian means of the model by shared affine maps, and MAP adaptation moves them toward the data of a new speaker with the model as the prior.
  • Discriminative training. Maximum mutual information training keeps the model and changes the training goal from the likelihood to the posterior of the correct transcript.
  • Template matching. Dynamic time warping aligns the frames with stored examples in place of a statistical model. The Viterbi alignment of a GMM-HMM is its statistical counterpart.

Known results in the model

  • EM never lowers the likelihood. Baum-Welch re-estimation for HMMs with Gaussian mixture outputs never decreases the likelihood of the training data (Juang, Levinson and Sondhi 1986, a theorem). It finds a local maximum, not in general the global one.
  • Geometric durations. A state with self loop probability aa stays for δ\delta frames with probability aδ−1(1−a)a^{\delta - 1} (1 - a), a geometric distribution with mean 1/(1−a)1 / (1 - a) (a theorem of the model). The most likely duration is one frame, which does not match real phones. A hidden semi-Markov model models durations directly.
  • Diagonal covariances. Diagonal Gaussians assume that the features are uncorrelated within a component. The discrete cosine transform of the MFCCs makes the features nearly uncorrelated, and a mixture of diagonal Gaussians can model the correlation that is left. This is a heuristic justification, and full or structured covariances give small gains at a much larger cost.
  • Measured accuracy. With tied-state triphones, the GMM-HMM system of Young, Odell and Woodland 1994 had a word error rate of 3.87 percent on the Resource Management Feb'89 test set, and 4.90 percent on the Wall Street Journal Nov'93 5k test (measurements). Hybrid DNN-HMM systems later reduced the error rates on most tasks.

References

  1. Lawrence R. Rabiner, A tutorial on hidden Markov models and selected applications in speech recognition, Proceedings of the IEEE 77(2), 1989, pages 257 to 286, the sections on continuous observation densities, left-to-right models and the re-estimation of mixture densities
  2. Biing-Hwang Juang, Stephen E. Levinson and Man Mohan Sondhi, Maximum likelihood estimation for multivariate mixture observations of Markov chains, IEEE Transactions on Information Theory 32(2), 1986, pages 307 to 309, the re-estimation formulas for HMMs with Gaussian mixture outputs and their convergence
  3. Mark Gales and Steve Young, The application of hidden Markov models in speech recognition, Foundations and Trends in Signal Processing 1(3), 2008, pages 195 to 304, the chapters on the architecture of an HMM-based recognizer and on parameter estimation
  4. Xuedong Huang, Alex Acero and Hsiao-Wuen Hon, Spoken Language Processing, Prentice Hall PTR, 2001, Chapter 8 (hidden Markov models) and Chapter 9 (acoustic modeling)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/7V4M5X/text.yaml