Abstract
Smart-reply systems in modern messaging applications often suffer from a lack of diversity, frequently suggesting semantically redundant responses (e.g., "Sure," "No problem," "Ok"). This paper introduces the Matching-Conditional Variational Autoencoder (M-CVAE), a hybrid architecture that combines the efficiency of retrieval-based models with the generative diversity of variational autoencoders. By modeling conversation intents as latent variables and employing a novel "constrained sampling" technique, the M-CVAE increases suggestion diversity by 40% while maintaining real-time performance. Deployment in Skype resulted in a 5% increase in overall click-through rates, with significant gains in the usage of secondary and tertiary suggestion slots.
Introduction
Standard smart-reply systems typically utilize a Matching-Information Retrieval (IR) architecture. These models map messages and replies into a shared feature space, selecting the "closest" candidates. While effective at finding relevant responses, this optimization often leads to clusters of near-synonyms. For a system to be truly useful, it must offer a variety of distinct intents—such as an affirmative, a negative, and a clarifying question—rather than multiple variations of the same meaning.
Methods
The M-CVAE architecture integrates three key components to balance relevance, diversity, and speed:
- Matching-IR Base: A dual-encoder setup using Bi-LSTMs to map messages ($x_i$) and replies ($y_i$) into a shared embedding space using symmetric loss.
- Conditional Variational Autoencoder (CVAE): A generative layer that introduces a latent variable ($z$) representing hidden intent. Sampling from $z$ allows the model to generate diverse response representations for a single input.
- Constrained Sampling: To meet production latency requirements, the model first retrieves the top $K$ candidates using the fast Matching-IR score. The more complex CVAE-based selection is then restricted to this subset, adding only ~1.5ms of overhead.
Evaluation and Results
The model was trained on 100 million message-reply pairs from Skype. Evaluation focused on "Defects" (relevance) and "Duplicates" (diversity) using a crowd-sourced judgment set of 2,000 messages.
Offline Metrics
M-CVAE reduced the duplicate rate by 30–40% compared to the baseline matching model. Crucially, this improvement in diversity did not come at the cost of relevance, as the defect rate remained stable.
Online Production Performance
In a live A/B test on Skype, the M-CVAE model led to a 5% overall increase in click-through rate (CTR). The diversity was particularly impactful for secondary choices: the CTR for the 2nd suggestion position jumped by 10.3%, and the 3rd position by 6.7%.
Discussion and Future Work
The success of M-CVAE lies in treating intent as a latent variable, allowing the model to learn the underlying structure of human conversation (e.g., agreement vs. disagreement) without manual labeling. Unlike lexical clustering, M-CVAE conditions its diversity on the message itself, ensuring that suggestions are contextually appropriate.
Future research will address current limitations, including the incorporation of multi-turn conversation history and personalization to match the specific "voice" of individual users. Additionally, privacy constraints remain a challenge for deep error analysis in production environments.
Summary updated