Abstract
Modern conversational AI systems face significant challenges in maintaining dialogue coherence, particularly when dealing with system errors (friction) and user shortcuts (contextual carryover). This paper introduces a unified framework for Query Rewriting (QR) developed by researchers from Amazon Alexa AI and Georgia Tech. By leveraging a multi-task BART-based architecture, the framework simultaneously corrects ASR/NLU errors and resolves linguistic phenomena like ellipsis and co-reference. Experimental results demonstrate a 16.65% reduction in defect rates in production, highlighting the efficacy of teaching models to understand both intent and triggering logic.
Introduction
Conversational agents often struggle with two primary issues: system friction and contextual carryover. System friction arises from errors in Automatic Speech Recognition (ASR) or Natural Language Understanding (NLU), where a user's intent is misidentified due to audio noise or linguistic ambiguity. Contextual carryover refers to the natural human tendency to use elliptical expressions or co-references (e.g., "How about tomorrow?" following a weather query for a specific city).
Historically, these problems have been addressed by separate, siloed models. This approach is not only computationally expensive but also fails to exploit the shared contextual logic inherent in both tasks. This research proposes a unified approach to Query Rewriting (QR) that treats the problem as a sequence-to-sequence generation task.
Methodology
The proposed framework utilizes BART (Bidirectional and Auto-Regressive Transformers), a denoising autoencoder, to perform text-to-text generation. The input to the model is a flattened representation of the dialogue history combined with the current user turn.
To enhance the primary QR task, the researchers integrated two auxiliary tasks: NLU Interpretation (predicting domain/intent/slots) and Trigger Prediction (determining whether a rewrite is necessary).
Multi-Task Strategies
The study compared three distinct multi-task learning strategies: Parallel Unified Learning, Sequential Unified Learning, and Hybrid Unified Learning. The Hybrid model emerged as the most effective, nesting the rewrite and trigger prediction into a single sequential output while maintaining NLU interpretation as a parallel task. This design balances the need to capture correlations between tasks while minimizing decoding latency.
Experimental Setup and Datasets
The models were trained and evaluated using two large-scale internal datasets: QueryR (7M samples) for identifying system failures and CarryoverR (1M samples) for resolving contextual ellipsis and co-reference. Performance was further validated using one week of live, de-identified traffic from a production environment.
Results and Discussion
The Hybrid Unified Model achieved a 0.91 F1 score for trigger prediction and 79.98% precision at a 20% trigger rate. In live simulations, the model reduced the interaction defect rate by 16.65%, significantly improving the user experience for millions of interactions.
Key insights from the results include:
- Auxiliary Tasks as Regularizers: NLU intent prediction serves as a semantic anchor, preventing the model from generating nonsensical rewrites for garbled inputs.
- Reduced Hallucinations: The unified approach lowered the hallucination rate to 39.71%, compared to 46.23% for the baseline BART model.
- Conditioning Logic: By conditioning the rewrite on the trigger prediction, the Hybrid model more accurately mimics human-like reasoning regarding when to intervene in a conversation.
Conclusion
Unifying system friction reduction and contextual carryover into a single multi-task framework provides a robust solution for modern conversational AI. While the autoregressive nature of BART introduces some latency challenges, the significant gains in accuracy and the reduction in system defects demonstrate the power of joint intent and trigger modeling. Future work will focus on semi-autoregressive decoding and the integration of retrieval-augmented generation to incorporate real-time external knowledge.
Summary updated