Abstract
Automatic Speech Recognition (ASR) has witnessed a profound research interest. Recent breakthroughs have given ASR systems different prospects such as faithfully transcribing spoken language, which is a pivotal advancement in building conversational agents. However, there is still an imminent challenge of accurately discerning context-dependent words and phrases. In this work, we propose a novel approach for enhancing contextual recognition within ASR systems via semantic lattice processing leveraging the power of deep learning models in accurately delivering spot-on transcriptions across a wide variety of vocabularies and speaking styles. Our solution consists of using Hidden Markov Models and Gaussian Mixture Models (HMM-GMM) along with Deep Neural Networks (DNN) models integrating both language and acoustic modeling for better accuracy. We infused our network with the use of a transformer-based model to properly rescore the word lattice achieving remarkable capabilities with a palpable reduction in Word Error Rate (WER). We demonstrate the effectiveness of our proposed framework on the LibriSpeech dataset with empirical analyses.
Introduction
Despite significant advancements in Automatic Speech Recognition (ASR), accurately handling contextual ambiguity remains a major hurdle. For instance, without broader semantic context, a system might struggle to distinguish between homophones or words with multiple meanings based on their surroundings. Furthermore, modern end-to-end (E2E) models often falter with Out-of-Vocabulary (OOV) terms—such as specific names or technical jargon—that appear infrequently in training data. While contextual biasing techniques exist, they often suffer from "attention dispersion" when the list of potential candidates grows too large.
This paper addresses these challenges by proposing a hybrid framework that utilizes word lattices. A word lattice is a Directed Acyclic Graph (DAG) where each path represents a possible transcription hypothesis generated by the acoustic model. By preserving multiple hypotheses rather than a single "best guess," the system maintains a safety net of uncertainty that can be resolved using higher-level semantic information.
Methodology
The proposed system integrates traditional acoustic modeling with modern deep learning architectures in a multi-stage pipeline.
1. Lattice Generation
The process begins with a standard pipeline using Gaussian Mixture Models and Hidden Markov Models (GMM-HMM), followed by a Deep Neural Network (DNN) to refine acoustic predictions. This stage produces the raw word lattice, capturing various phonetic possibilities based on the audio input.
2. Transformer-Based Rescoring
The core innovation lies in the rescoring stage. The authors deploy a custom six-layer Transformer model (with 512 hidden embeddings) to re-evaluate the paths within the generated lattice. Unlike traditional n-gram language models, Transformers excel at capturing long-range dependencies and complex semantic relationships. By "looking ahead" and "looking back" across the entire lattice, the Transformer can determine which path is most semantically coherent.
3. Implementation Details
The workflow utilizes the Kaldi toolkit for data preprocessing and lattice manipulation. Training was conducted on an NVIDIA H100 GPU, ensuring high computational efficiency and a total training cost of approximately $500.
Experimental Results
The framework was evaluated on the LibriSpeech dataset, a benchmark consisting of 1,000 hours of English speech. Testing was performed on both test-clean (high-quality audio) and test-other (noisy or diverse audio) subsets.
The proposed approach demonstrated significant improvements in Word Error Rate (WER):
- test-clean: Achieved a 14.88% relative reduction in WER, dropping from 7.64% to 6.65%.
- test-other: Showed a more dramatic 21.42% relative reduction in WER, from 21.03% to 17.32%.
The model outperformed several established architectures, including AmNet and HMM-SAT-GMM, and remained competitive with larger E2E models like Deepspeech2 and Li-GRU.
Conclusion
By combining the robustness of GMM-HMM/DNN acoustic models with the semantic power of Transformer-based lattice rescoring, this work provides a scalable solution for improving ASR accuracy in contextually challenging scenarios. Future research will focus on domain-specific applications, such as music recognition, and further hyperparameter optimization to enhance performance across diverse dialects and complex linguistic constructs.
Summary updated