Weighted Automata in Text and Speech Processing

Mehryar Mohri, Fernando Pereira, Michael RileyarXiv 2005

This 1996 paper from AT&T Research is a foundational text in the field of speech and language processing. It introduces a unified mathematical framework—Weighted Finite-State Transducers (WFSTs)—to handle everything from acoustic modeling to language translation, setting the stage for the modern architecture of speech recognition systems.

The Unified WFST Paradigm

Before this work, speech recognition systems often relied on specialized, ad-hoc machinery for different stages of the pipeline. For example, Hidden Markov Models (HMMs) handled acoustics, while separate logic handled context-dependency or n-gram language models. This lack of uniformity made it difficult to optimize the entire system globally.

The authors proposed representing every level of the process—acoustics, phonetics, and linguistics—as weighted finite-state transducers. While a standard automaton simply accepts or rejects a string, a transducer maps an input string to an output string, and a weighted transducer assigns a cost or probability to that mapping.

The Recognition Cascade

The authors model the recognition task as a "cascade" of five transducers:

  1. $O$ (Observations): Maps acoustic vectors to quantization cells.
  2. $A$ (Acoustic Models): Maps observations to context-dependent phones.
  3. $C$ (Context): Maps context-dependent phones to context-independent phones.
  4. $D$ (Dictionary): Maps phone sequences to words.
  5. $M$ (Model): A weighted acceptor representing the language model (e.g., word probabilities).
The input to the system is represented as a linear sequence of observations.

The final recognition result is found by composing these transducers ($O \circ A \circ C \circ D \circ M$) and finding the path with the highest probability (lowest cost) using the Viterbi algorithm.

Examples of transducers at different levels: (b) acoustic model transitions, (c) phonetic dictionary mapping for the word "data", and (d) general weighted state transitions.

Algorithmic Innovations

The core innovation lies in the development of efficient algorithms for manipulating these transducers:

  • Uniformity and Efficiency: By treating everything as a transducer, the same set of general algorithms can optimize the entire pipeline.
  • Determinization and Minimization: The paper shows that even if a transducer is built from many redundant parts, it can often be "determinized" (ensuring only one path exists for any input) and "minimized" (finding the smallest possible equivalent machine), drastically speeding up the final search.
  • Lazy (On-the-Fly) Composition: The full composed network for a large vocabulary system would be too big to fit in memory. The authors developed "lazy" algorithms that only build the parts of the network needed for the current search, saving massive amounts of RAM.
  • The $\epsilon$-Transition Filter: A major technical hurdle in weighted composition is handling "null" moves (epsilon transitions). The authors introduced a "filter transducer" to ensure each path is counted exactly once, maintaining correct probabilities.

Legacy and Impact

While the paper focuses on the theoretical framework, the algorithms described provided the mathematical foundation for the AT&T FSM Library, which powered some of the most efficient speech recognizers of the late 90s and early 2000s. This approach eventually led to modern toolkits like Kaldi and OpenFst, which remain central to the field today. The transition from heuristic-based "black boxes" to a unified transducer-based pipeline allowed for the scaling of speech technology to the complex, large-vocabulary systems used in modern applications.

Summary updated

BibTeX
@misc{mohri2005weighted,
  author = {Mehryar Mohri and Fernando Pereira and Michael Riley},
  title = {{Weighted Automata in Text and Speech Processing}},
  year = {2005},
  eprint = {cs/0503077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cs/0503077},
}
Figure