Modelintro
Source-channel model of speech recognition
Also called fundamental equation of speech recognition.
Choose the word sequence W that maximizes P(O | W) P(W), an acoustic model times a language model, for the acoustic features O.
The source-channel model treats speech recognition as the decoding of a noisy channel. A source, the speaker's language, produces a word sequence with probability , and a channel, the speaker's voice and the front end, turns it into acoustic features with probability density . The recognizer outputs , the product of an acoustic model and a language model. Jelinek 1976 and Bahl, Jelinek and Mercer 1983 stated speech recognition in this form, and it was the frame of almost all recognizers until neural end-to-end models.
The machine
The model is a generative story with four parts.
- The source. A language model gives the prior of each word sequence . An n-gram model writes .
- The channel. An acoustic model gives the density of the frames for each word sequence. In an HMM recognizer it is built from the pronunciation lexicon, which turns into phones, and from the phone HMMs, for example a GMM-HMM acoustic model with triphones: over the state paths of the HMM of .
- The decoder. By Bayes' theorem, , and is the same for every , so
- The training. The two models are trained apart: the acoustic model on audio with transcripts, and the language model on text alone, which is available in much larger amounts.
In practice the decoder uses the Viterbi approximation , and it works in log space with two extra constants:
The language model weight and the word insertion penalty are tuned on development data. They correct for the acoustic model, which treats the frames as independent given the states and so is much too confident. This is a heuristic, not a consequence of the model.
What it counts
The model scores a hypothesis by , and the decision rule picks the best score. If the two models were the true distributions, this rule would minimize the probability of a sentence error, that is, of any error in (a theorem of Bayes decision theory). It does not minimize the expected number of word errors, which is what the word error rate counts. A minimum Bayes risk decoder, for example one that picks the best path of a confusion network, targets the word errors.
The cost of the model is the cost of the search. With the Viterbi approximation, an n-gram language model and HMMs, the search is a best path problem in one large graph, the HCLG decoding graph, with one layer per frame. The time is linear in times the number of arcs, and decoders prune it with a beam.
Relation to other models
- Noisy channel spelling correction. Noisy channel spelling correction uses the same decomposition: a language model of the intended words times an error model of the typed letters. The statistical machine translation of the IBM group used it as well.
- Hybrid models. A hybrid DNN-HMM gives state posteriors , not the likelihoods . Dividing by the state priors gives scaled likelihoods, which the source-channel decoder uses unchanged. The model stays the same, and only the estimate of the channel changes.
- Discriminative training. Maximum mutual information training trains the acoustic model to raise of the correct transcript, computed through the source-channel product. It keeps the decoding rule and changes the training goal.
- Direct models. CTC, the RNN transducer and Listen, Attend and Spell model directly with one network. They can add an external language model by shallow fusion, a log-linear sum that looks like the source-channel score but has no prior to divide out.
- HMM decoding. With the Viterbi approximation, the decision rule is HMM decoding on the HMM of all the word sequences that the language model allows.
Known results in the model
- The decision rule. For the 0-1 loss on whole sentences, the rule is optimal among all decision rules, if the probabilities are the true ones (a theorem). With estimated models this is no longer a guarantee.
- Exact decoding is hard. The exact rule sums over the state paths of each word sequence. Finding the most probable string emitted by a hidden Markov model is NP-hard (Lyngsø and Pedersen 2002, a theorem), so the exact rule is not computed. The Viterbi approximation of the joint best path takes time linear in times the size of the graph.
- Separate training. The acoustic model and the language model have separate maximum likelihood estimates, because splits into two terms with separate parameters. This is why a language model can be changed without retraining the acoustic model.
- Measured accuracy. Systems of this form reached word error rates of a few percent on read speech with a vocabulary of 5000 words, for example 4.90 percent on the Wall Street Journal Nov'93 5k test (Young, Odell and Woodland 1994, a measurement).
References
- Frederick Jelinek, Continuous speech recognition by statistical methods, Proceedings of the IEEE 64(4), 1976, pages 532 to 556, the view of the speaker and the acoustic processor as a noisy channel, and the decoding rule
- Lalit R. Bahl, Frederick Jelinek and Robert L. Mercer, A maximum likelihood approach to continuous speech recognition, IEEE Transactions on Pattern Analysis and Machine Intelligence PAMI-5(2), 1983, pages 179 to 190, the communication theory view of recognition, with the text generator, the speaker, the acoustic processor and the linguistic decoder
- Frederick Jelinek, Statistical Methods for Speech Recognition, MIT Press, 1997, Chapter 1 (the mathematical formulation of speech recognition)
- 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 chapter on the architecture of an HMM-based recognizer
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag V3PXA1 Edit this page History Report an error Markdown