Abstract
Automatic Speech Recognition (ASR) robustness toward slot entities are critical in e-commerce voice assistants that involve monetary transactions and purchases. Along with effective domain adaptation, it is intuitive that cross utterance contextual cues play an important role in disambiguating domain specific content words from speech. In this paper, we investigate various techniques to improve contextualization, content word robustness and domain adaptation of a Transformer-XL neural language model (NLM) to rescore ASR N-best hypotheses. To improve contextualization, we utilize turn level dialogue acts along with cross utterance context carry over. Additionally, to adapt our domain-general NLM towards e-commerce on-the-fly, we use embeddings derived from a finetuned masked LM on in-domain data. Finally, to improve robustness towards in-domain content words, we propose a multi-task model that can jointly perform content word detection and language modeling tasks. Compared to a non-contextual LSTM LM baseline, our best performing NLM rescorer results in a content WER reduction of 19.2% on e-commerce audio test set and a slot labeling F1 improvement of 6.4%.
Introduction
In e-commerce voice assistants, the recognition of "content words" or "slots"—such as product names or quantities—is critical for successful transactions. Errors in these entities, such as mishearing "pods" as "pause," often lead to transaction failure. While standard ASR systems typically process utterances in isolation, human dialogue is inherently contextual. This research addresses the challenge of incorporating cross-utterance context and high-level intent information (Dialogue Acts) into ASR rescoring to disambiguate phonetically similar words in real-time.
Methods
The proposed architecture utilizes a Transformer-XL (TXL) as a second-pass rescorer. The model re-ranks N-best hypotheses from a first-pass ASR system using three key innovations:
- Dialogue Act (DA) Conditioning: Utterances are prefixed with tags representing the conversational state (e.g.,
<inform-intent>), helping the model anticipate specific speech patterns based on the bot's previous turn. - Multi-Task Learning for Slot Detection: A dedicated Slot Detection Network is integrated into the TXL. The model is trained to simultaneously perform language modeling and identify slot entities. The feedback from the slot detector enhances the language model's word prediction accuracy by focusing on critical content words.
- BERT Fusion for Domain Adaptation: To handle domain-specific jargon, embeddings from a fine-tuned BERT model are fused with the TXL's hidden states. This allows the model to adapt to sub-domains like retail or fast food on-the-fly without full retraining.
Experimental Setup
The models were trained on a comprehensive dataset of approximately 260,000 samples (9.9 million words), combining public datasets (Schema-Guided Dialogue, MultiWOZ 2.1, MultiDoGo) with in-house retail and fast-food delivery data. Evaluation was conducted on anonymized 8kHz audio representing real-world e-commerce interactions.
Results
The multi-task NLM rescorer demonstrated significant performance gains over a non-contextual LSTM baseline. In the "Fastfood" domain, the model achieved a 19.2% relative reduction in Content Word Error Rate (CWERR) and a 6.4% relative improvement in Slot Labeling (SL) F1 score. Furthermore, perplexity was reduced by up to 25.8% when all features (DA, Slot Detection, and BERT Fusion) were combined, indicating a substantial decrease in model uncertainty.
Conclusion
This work demonstrates that integrating NLU signals like Dialogue Acts and joint slot detection into the ASR rescoring phase significantly improves robustness for e-commerce applications. The use of BERT-derived embeddings provides a scalable way to specialize general-purpose models for specific sub-domains. Future work will explore integrating these contextual signals directly into first-pass end-to-end ASR systems to minimize latency.
Summary updated