Abstract
Query rewrite (QR) is an emerging component in conversational AI systems, reducing user defect. User defect is caused by various reasons, such as errors in the spoken dialogue system, users' slips of the tongue or their abridged language. Many of the user defects stem from personalized factors, such as user's speech pattern, dialect, or preferences. In this work, we propose a personalized search-based QR framework, which focuses on automatic reduction of user defect. We build a personalized index for each user, which encompasses diverse affinity layers to reflect personal preferences for each user in the conversational AI. Our personalized QR system contains retrieval and ranking layers. Supported by user feedback based learning, training our models does not require hand-annotated data. Experiments on personalized test set showed that our personalized QR system is able to correct systematic and user errors by utilizing phonetic and semantic inputs.
Introduction
Voice assistants often encounter "user defects"—instances where the system fails to correctly interpret a request. These failures arise from technical limitations in Automatic Speech Recognition (ASR) or Natural Language Understanding (NLU), as well as human factors like slips of the tongue or regional dialects. Generic models often struggle with the inherent ambiguity of these errors. For instance, a request to "turn on the moon" could refer to a specific smart lamp or a musical piece, depending entirely on the user's history and environment. This paper presents a personalized, search-based Query Rewrite (QR) system designed to mitigate these defects by learning from individual user patterns.
Methodology
The proposed system utilizes a two-stage search-based framework consisting of a retrieval phase followed by a ranking phase, both powered by a personalized index.
The Personalized Index
For each user, the system maintains an index of successful interactions from the previous 30 days. This index is structured into multiple "affinity layers" to capture different levels of user preference:
- Utterance Layer: Raw text and its corresponding NLU hypothesis.
- Entity Layer: Specific slots (e.g., "ArtistName: Cocomelon").
- Intent Layer: The underlying goal (e.g., "PlayMusic").
- Template Layer: The linguistic structure (e.g., "play [SongName] by [ArtistName]").
Retrieval and Ranking
During the Retrieval phase, the system identifies the top $N$ candidates from the personalized index. A key innovation is the use of a Deep Structured Semantic Model (DSSM) with Phonetic Fusion. By converting queries into phonemes (sound sequences), the model can bridge gaps caused by ASR misrecognitions (e.g., confusing "hertz" with "church"). It also leverages the "ASR n-best" list—the top alternative hypotheses from the speech recognizer.
In the Ranking phase, a LightGBM model evaluates these candidates using approximately 730 features. These include global popularity metrics and personalized features, such as the frequency with which a specific user interacts with a particular entity.
Weak Supervision
To eliminate the need for manual labeling, the system uses "rephrase pairs" extracted from interaction logs. If a user's initial query fails but is followed by a successful interaction within 45 seconds, the second query is treated as the ground-truth rewrite for the first. Transition probabilities are used to filter noise, improving data quality by 40%.
Experimental Results
The system was evaluated using internal Alexa production traffic. The training set consisted of millions of weakly labeled rephrase pairs, while the evaluation set comprised 6,000 human-verified cases.
Quantitative Performance
The impact of phonetic and ASR data on the retrieval stage was significant. As shown in the table below, incorporating phonemes and the ASR n-best list dramatically increased the system's ability to trigger a rewrite while maintaining or improving precision.
The full ranking model, utilizing both global and personalized features, achieved a +7.6% precision boost over retrieval-only baselines.
Qualitative Analysis
The system demonstrated a high capacity for correcting specific, context-dependent errors. Examples include rewriting "Play 104 WKQR" to "Play 104.1 WTQR" or correcting "Wharton beach" to "Boynton beach" based on the user's geographical history.
Conclusion
This personalized QR framework effectively reduces user defects by leveraging individual interaction histories and phonetic data. Future work will explore incorporating multi-turn conversational context and "cohort-based" personalization to address the cold-start problem for new users.
Summary updated