Feedback‐based self‐learning in large‐scale conversational AI agents

Pragaash Ponnusamy, Alireza Roshan Ghias, Yi Yi, Benjamin Yao, Chenlei Guo, Ruhi SarikayaAI Mag 2021

Abstract

Large-scale conversational AI agents like Alexa, Siri, and Google Assistant traditionally rely on massive amounts of manually annotated data to train components like Automatic Speech Recognition (ASR) and Natural Language Understanding (NLU). As these systems scale, manual annotation becomes a bottleneck. This paper presents a self-learning system that leverages implicit customer feedback signals—specifically user reformulations—to automate error correction. By employing an absorbing Markov Chain model to mine patterns across millions of sessions and a guardrail selection mechanism to ensure quality, the system identifies and fixes defects in real-time. Production A/B tests demonstrate a 30% reduction in defect rates and a win-loss ratio of 11.8, marking the first successful deployment of such a system at this scale.

Introduction

The development of modern voice assistants is a labor-intensive process. Improving model accuracy typically requires humans to transcribe audio and annotate intent for thousands of hours of data. This approach is not only expensive but also struggles to keep pace with the rapid expansion of domains and languages.

However, users often provide "free" labels through their behavior. When a system fails to fulfill a request, users frequently reformulate their query. For example, if a user says "play maj and dragons" and Alexa fails, the user might immediately follow up with "play imagine dragons." These reformulations are strong signals of the user's original intent. The challenge lies in harvesting these signals across millions of users to automatically correct errors without human intervention.

System Architecture

The proposed self-learning system operates in two distinct loops: an online runtime component and an offline daily learning cycle.

The system architecture showing the online interaction loop and the offline daily update cycle.

In the online phase, a Reformulation Engine sits alongside the standard ASR and NLU stack. When a user provides an utterance, the engine checks a database for known high-confidence rewrites. If a match is found, the query is corrected before reaching the NLU or application layer.

The offline phase processes anonymized log data daily. It uses an absorbing Markov Chain to mine new potential rewrites and a "Rewrite Filter" to evaluate their safety before they are pushed to the production database.

Methods: Mining and Selection

Absorbing Markov Chains

To handle the vast variety of natural language, the system maps raw utterances into an "Interpretation Space" consisting of (Domain, Intent, Entities). This abstraction allows the model to generalize across different ways of saying the same thing.

Mapping sequences of utterances (u) to interpretations (h) within a Markov Chain framework.

User interactions are modeled as paths in a graph where nodes are interpretations. The system identifies "absorbing states"—terminal points of a session that indicate either success (e.g., a song played to completion) or failure (e.g., the user said "stop"). By calculating transition probabilities, the model identifies which interpretation $h_j$ is the most likely "intended" state following a failed interpretation $h_i$.

Guardrail Selection

To prevent "hallucinations" or incorrect fixes, the system employs two selection mechanisms:

  1. Generalized Selection: A statistical Z-test compares the "friction" (error) rate of the original query against the proposed rewrite.
  2. Contextualized Selection (CRS): For low-traffic or new rewrites, a BERT-based model predicts whether a rewrite will reduce friction based on contextual features, ensuring high precision even without massive historical data.

Results and Impact

The system was evaluated using three months of deidentified Alexa log data and validated through live A/B testing.

  • Accuracy: Offline evaluation of the graph-based rewrites showed a 93.4% accuracy rate.
  • Defect Reduction: In production, the system reduced the defect rate by over 30% for utterance-level reformulations.
  • Win-Loss Ratio: The system achieved a win-loss ratio of 11.8, meaning it improved the user experience nearly 12 times for every one instance where it might have introduced a regression.
  • Engagement: The researchers found that for every two corrections made, one entirely new dialogue interaction was generated, suggesting that reducing friction directly encourages users to interact more with the AI.

Conclusion

This work demonstrates that large-scale conversational AI can move beyond total reliance on manual annotation. By treating user reformulations as a collaborative filtering problem and applying rigorous guardrails, the system effectively "learns" from its own mistakes. This self-learning capability is crucial for the sustainable growth of AI agents as they expand into more complex, global domains.

Summary updated

BibTeX
@article{ponnusamy2021feedbackbased,
  author = {Pragaash Ponnusamy and Alireza Roshan Ghias and Yi Yi and Benjamin Yao and Chenlei Guo and Ruhi Sarikaya},
  title = {{Feedback‐based self‐learning in large‐scale conversational AI agents}},
  journal = {AI Mag.},
  year = {2021},
}
Figure