Abstract
Automatic Speech Recognition (ASR) systems often rely on a second-pass "rescoring" phase to refine initial hypotheses. Traditional rescorers operate on flat "n-best" lists, which can be redundant and lose structural uncertainty. This paper introduces "Lattention," a novel approach that applies an attention-based encoder-decoder model directly to word lattices—compact graph representations of the ASR search space. By incorporating lattice weights into a LatticeLSTM encoder, the proposed method achieves a 6-8% relative improvement in word error rate (WERR), significantly outperforming traditional n-best list rescoring methods.
Introduction
The standard pipeline for Automatic Speech Recognition (ASR) typically involves two distinct stages. The first pass is designed for speed, generating a broad set of potential transcriptions. The second pass, known as rescoring, employs a more sophisticated and computationally intensive neural language model to select the most accurate hypothesis from the initial set.
Historically, rescoring models have focused on "n-best lists," which are simple ranked lists of the top 5 or 10 guesses. However, these lists are inherently limited: they often contain repetitive word sequences and fail to capture the rich "uncertainty" information present in the first-pass decoding process. Lattices offer a more robust alternative. As directed graphs where paths represent different word sequences, lattices provide a dense representation of the hypothesis space. Despite their advantages, the topological complexity of lattices makes them difficult to integrate into standard neural architectures like LSTMs or Transformers. This paper presents a solution for effectively encoding these graph structures and their associated weights to enhance rescoring accuracy.
Methodology
The researchers propose an attention-encoder-decoder architecture capable of attending to multiple input streams: acoustic audio features, n-best lists, or word lattices.
The Lattice Encoder
To process the graph-based structure of a lattice, the authors utilize a LatticeLSTM, a variant of the TreeLSTM. Unlike standard LSTMs that process linear sequences, the LatticeLSTM allows a node to aggregate and "sum" information from multiple predecessor nodes within the graph. This enables the model to maintain the structural relationships between different word hypotheses.
Incorporating Lattice Weights
A critical component of the "Lattention" framework is the integration of lattice weights—the scores assigned by the first-pass model to various paths. The authors explored four distinct weighting mechanisms to guide the encoder:
- Weighted Child-Sum (WCS): Hidden states of previous nodes are scaled by their transition weights.
- Biased Forget Gate (BFG): Weights are used to modulate the LSTM's forget gate, prioritizing more probable paths.
- Biasing Attention (BATT): Lattice weights are added directly to the attention scores during decoding.
- Weighted Encoder Output (WEO): A simplified approach that scales the final encoder hidden states by the probability of reaching a specific node.
The entire model is trained using the Minimum Word Error Rate (MWER) criterion, which optimizes directly for transcription accuracy rather than simple next-word prediction.
Experimental Setup
The study was conducted using de-identified internal speech data from far-field voice-controlled devices. The training set was a large-scale internal dataset (roughly 25% of the size used for first-pass models), while evaluation was performed on a 140-hour internal test set. The performance of the Lattention model was compared against two major baselines: a standard Hybrid HMM-ASR and an end-to-end RNN-T model.
Key Results and Insights
The primary metric for success was the Relative Word Error Rate Reduction (WERR) compared to the first-pass model.
The Importance of Weights
One of the most significant findings was that using an unweighted lattice encoder actually degraded performance, resulting in a -8.4% WERR. Without weights, the attention mechanism becomes overwhelmed by low-probability, nonsensical paths within the lattice. Incorporating weights is essential, as they act as a guide, focusing the model's attention on the most plausible hypotheses.
Lattices vs. N-best Lists
The results demonstrated that a 5-best lattice encoder consistently outperformed a 5-best "deliberation" encoder (which processes the same hypotheses in list form). This suggests that the graph structure of the lattice preserves valuable cues that are lost when the hypotheses are flattened into a list. Furthermore, the lattice-based approach proved more efficient, requiring 52% fewer forward passes on average than the equivalent n-best list encoding.
The "Lattention" Synergy
The highest performance gains were achieved when the model attended to both the audio features and the lattice simultaneously. This "Lattention" synergy allows the system to reconcile raw acoustic evidence with the structural uncertainty of the first-pass decoding, leading to a total WERR of 6-8%.
Conclusion and Future Work
The Lattention framework demonstrates that word lattices are a superior input for ASR rescoring when compared to traditional n-best lists, provided that lattice weights are correctly integrated. While the current implementation uses LSTMs, the authors identify Transformers as a promising next step for lattice encoding. Future research will also need to address the real-time latency requirements for constructing and encoding these complex graph structures in production environments.
Summary updated