[Paper Review] Diversifying Reply Suggestions using a Matching-Conditional Variational Autoencoder
This paper proposes Matching-Conditional Variational Autoencoder (M-CVAE), a latent variable model that diversifies reply suggestions in a production instant-messaging system by conditioning response generation on message embeddings and stochastic latent variables. By enabling constrained sampling for efficient inference, M-CVAE increases response diversity by 30–40% without sacrificing relevance, resulting in a 5% higher click-through rate in online A/B tests on Skype.
We consider the problem of diversifying automated reply suggestions for a commercial instant-messaging (IM) system (Skype). Our conversation model is a standard matching based information retrieval architecture, which consists of two parallel encoders to project messages and replies into a common feature representation. During inference, we select replies from a fixed response set using nearest neighbors in the feature space. To diversify responses, we formulate the model as a generative latent variable model with Conditional Variational Auto-Encoder (M-CVAE). We propose a constrained-sampling approach to make the variational inference in M-CVAE efficient for our production system. In offline experiments, M-CVAE consistently increased diversity by ~30-40% without significant impact on relevance. This translated to a 5% gain in click-rate in our online production system.
Motivation & Objective
- To address the lack of semantic diversity in automated reply suggestions within a commercial IM system, despite high relevance.
- To maintain the efficiency and relevance of a matching-based information retrieval architecture while introducing response diversity.
- To enable scalable, low-latency inference for a generative model in a production environment.
- To validate that increased semantic diversity in reply suggestions improves user engagement, measured by click-through rate.
- To demonstrate that latent variable modeling can effectively capture and generate diverse conversational intents from single message-reply pairs.
Proposed method
- Formulates a matching-based response retrieval system as a Conditional Variational Autoencoder (CVAE), introducing a stochastic latent variable to model hidden conversational intents.
- Uses a bi-directional LSTM encoder to embed messages and replies into a shared vector space, with symmetric loss for joint optimization.
- Applies variational inference to train the M-CVAE model, enabling generation of diverse response vectors conditioned on input messages and sampled latent codes.
- Introduces a constrained-sampling strategy to limit the number of latent samples during inference, ensuring low latency suitable for production systems.
- Employs voting over multiple sampled responses to rank candidates, improving diversity while preserving relevance.
- Pre-computes and caches response vectors for fast lookup, maintaining the efficiency of the original matching IR framework.
Experimental results
Research questions
- RQ1Can a latent variable model be effectively integrated into a matching-based retrieval system to improve response diversity?
- RQ2Does introducing stochasticity via a CVAE framework increase semantic diversity in reply suggestions without degrading relevance?
- RQ3Can constrained sampling make variational inference scalable and efficient enough for real-time production use in a high-throughput system?
- RQ4Does increased response diversity lead to higher user engagement, as measured by click-through rates?
- RQ5Can the M-CVAE model generalize across different conversational domains, such as IM and email?
Key findings
- M-CVAE increased response diversity by approximately 30–40% in offline evaluations, as measured by intrinsic diversity metrics.
- The model maintained high relevance, with no significant drop in retrieval performance or relevance metrics.
- In online A/B testing on Skype, M-CVAE achieved a 5% higher click-through rate compared to the baseline matching model.
- The gain in click-through rate was primarily driven by improved performance at the 2nd and 3rd reply positions, indicating better coverage of diverse intents.
- The constrained sampling strategy enabled low-latency inference, making the model deployable in production despite the generative nature of CVAE.
- The model was successfully deployed across 100% of Skype users and showed similar gains in Outlook Web App, indicating strong generalization across conversational domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.