What Is a Word Lattice in Speech Recognition?
A word lattice is a compact graph of alternative ASR transcriptions. It preserves scored paths, but pruning means it does not contain every possible sentence.
A word lattice is a directed graph of candidate transcriptions for one audio segment. Nodes represent decoder states; arcs represent possible next steps with labels and costs. Shared parts let the graph retain alternatives without listing every full sentence.
In Kaldi, weights separate graph cost from acoustic cost. Graph cost may combine language-model, transition, and pronunciation costs, so replacing it wholesale can discard useful components. Scores are decoder-specific costs, not automatically calibrated probabilities.
Decoders prune paths that fall too far behind the best. A lattice is therefore a bounded search result, not a guarantee that the correct transcript is present. Word labels and acoustic frames also may not align exactly arc by arc; use a word-alignment step when precise word times are required.
Use lattices when later processing needs alternatives, such as rescoring. Keep the model, symbol table, and scoring settings together, and measure on development data whether reference transcripts occur in the lattice. Kaldi-specific details are described in Kaldi’s lattice documentation.