Algorithms for Speech Recognition and Language Processing

Mehryar Mohri, Michael Riley, Richard SproatarXiv 1996

Abstract

This paper describes a unified mathematical framework for speech and language processing using Weighted Finite-State Transducers (WFSTs). By treating diverse linguistic components—from acoustic signals to complex grammars—as state machines, the authors provide a modular and mathematically rigorous approach to building efficient speech recognition and synthesis systems. Key algorithmic techniques such as composition, determinization, and minimization allow for global optimization and significant reductions in computational complexity.

Introduction: The Challenge of Integration

In the mid-1990s, speech recognition and natural language processing (NLP) were typically treated as a series of disconnected, ad-hoc modules. Information flowed from acoustic models to phonetic models, then to lexicons, and finally to grammars. Each stage utilized distinct data structures and search strategies, making holistic optimization nearly impossible. This fragmented architecture often led to "state explosion" in memory and sub-optimal global interpretations of input data.

The authors address these challenges by proposing a framework that integrates these disparate levels of representation into a single, consistent mathematical object: the Weighted Finite-State Transducer.

Methodology: Weighted Finite-State Transducers

The core of this framework is the application of Weighted Finite-State Transducers (WFSTs). A transducer is a finite-state machine that maps an input sequence to an output sequence. In a weighted transducer, every transition carries an associated cost, typically representing a negative log-probability.

Examples of finite-state machines representing linguistic structures.

Several key algorithmic techniques enable the efficiency of this framework:

  • Composition ($\circ$): This operation serves as the primary integration mechanism, allowing researchers to combine separate transducers (e.g., a Lexicon $L$ and a Grammar $G$) into a single transducer $L \circ G$ that represents their combined knowledge.
  • Determinization: This process converts a non-deterministic machine into a deterministic one, eliminating redundant paths and accelerating the search for the optimal output.
  • Minimization: This reduces a transducer to its smallest equivalent form, optimizing memory usage.
  • On-the-fly (Lazy) Expansion: To manage memory constraints, the system can generate only the necessary portions of a massive combined transducer during the search process rather than pre-computing the entire graph.

Evaluation and Datasets

The framework was evaluated across a diverse set of linguistic domains:

  • Speech Recognition: Large-vocabulary tasks using the ATIS (Air Travel Information System) corpus with trigram grammars.
  • Multilingual Text Processing: Morphology and text normalization tasks in Russian (percentage and word pronunciation), German (numeral expansion), and Spanish (syllable structure).
  • Chinese Word Segmentation: A stochastic model for segmenting unspaced text.
  • Prosodic Phrasing: Prediction of intonational phrase boundaries using a corpus of 85,000 hand-annotated words.

Key Insights

The primary advantage of this approach is uniformity. By representing every stage of the speech pipeline—from acoustic models to syntax—as a WFST, a single set of optimization algorithms can be applied globally. This avoids "garden path" errors where local modules make high-confidence mistakes that cannot be corrected by later stages.

Furthermore, the authors identify the "twin property" as a critical theoretical boundary: transducers possessing this property can be determinized, while those without it cannot, providing clear guidance on model design for efficiency.

Results

The experimental results highlight the efficiency and accuracy of the WFST approach:

  • Search Efficiency: In ATIS recognition tasks, "on-demand" composition expanded only 1.6% of total arcs compared to a static network, without sacrificing accuracy.
  • Phrasing Accuracy: The phrasing model achieved 91.2% accuracy for major boundaries in read speech.
  • Lexical Disambiguation: Compiled "Decision Lists" reached a 97% success rate in disambiguating homographs (e.g., lead as a metal vs. lead as a verb).

Conclusion and Limitations

While WFSTs offer a powerful unified framework, they are not without limitations. Not all transducers are determinizable, and the worst-case complexity for operations like composition can be high for certain non-deterministic models. Nevertheless, this tutorial established the foundation for modern speech recognition tools like the AT&T FSM Library and OpenFst, demonstrating the enduring value of finite-state methods in computational linguistics.

Summary updated

BibTeX
@misc{mohri1996algorithms,
  author = {Mehryar Mohri and Michael Riley and Richard Sproat},
  title = {{Algorithms for Speech Recognition and Language Processing}},
  year = {1996},
  eprint = {cmp-lg/9608018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cmp-lg/9608018},
}
Figure