Skip to main content
QUICK REVIEW

[Paper Review] A practical approach to dialogue response generation in closed domains

Yichao Lu, Phillip Keung|arXiv (Cornell University)|Mar 28, 2017
Topic ModelingComputer Science11 references13 citations
TL;DR

This paper proposes a weakly supervised, template-based dialogue response generation system for customer service using a dual encoder network to match customer inquiries to relevant response templates. Trained on Amazon's chat corpus, the model achieves 80.0% precision@3 and over 70% coverage of past inquiries, significantly outperforming a tf-idf baseline in relevance and ranking accuracy.

ABSTRACT

We describe a prototype dialogue response generation model for the customer service domain at Amazon. The model, which is trained in a weakly supervised fashion, measures the similarity between customer questions and agent answers using a dual encoder network, a Siamese-like neural network architecture. Answer templates are extracted from embeddings derived from past agent answers, without turn-by-turn annotations. Responses to customer inquiries are generated by selecting the best template from the final set of templates. We show that, in a closed domain like customer service, the selected templates cover $>$70\% of past customer inquiries. Furthermore, the relevance of the model-selected templates is significantly higher than templates selected by a standard tf-idf baseline.

Motivation & Objective

  • To reduce labor-intensive customer service interactions by automating response generation in a closed domain.
  • To identify a finite set of high-quality, reusable response templates from unstructured agent replies without turn-by-turn annotations.
  • To improve response relevance and reduce manual effort in template selection using a weakly supervised deep learning approach.
  • To enable scalable, efficient, and deployable dialogue systems for customer service that support both text and speech interfaces.
  • To outperform traditional retrieval baselines like tf-idf in relevance and ranking performance for customer inquiries.

Proposed method

  • A dual encoder network architecture is used to embed both customer questions and agent answers into a shared vector space for similarity measurement.
  • The model is trained in a weakly supervised manner using only past chat logs, without explicit intent annotations or human-labeled intent clusters.
  • Response templates are automatically extracted from embeddings of historical agent replies through clustering in the embedding space.
  • The final response is generated by selecting the highest-scoring template from the pool based on embedding similarity to the input question.
  • The system leverages existing order and issue metadata to enrich templates with slots for dynamic content like dates and order status.
  • Evaluation uses both automatic metrics (MRR, precision@3) and human evaluation by customer service agents on relevance scores.

Experimental results

Research questions

  • RQ1Can a weakly supervised dual encoder model effectively retrieve relevant response templates from unstructured customer service chat logs?
  • RQ2To what extent can automatically extracted templates cover past customer inquiries in a closed domain?
  • RQ3How does the dual encoder model compare to a traditional tf-idf baseline in terms of response relevance and ranking performance?
  • RQ4Can human evaluators rate the model-selected templates as significantly more relevant than those from a tf-idf baseline?
  • RQ5What is the potential for extending the system to support dynamic content and polarity-aware responses using internal order data?

Key findings

  • The dual encoder model achieves a mean reciprocal rank (MRR) of 0.685, significantly outperforming the tf-idf baseline (MRR = 0.562).
  • The model reaches 80.0% precision@3, compared to 65.2% for the tf-idf baseline, indicating superior top-3 response ranking.
  • Over 70% of past customer inquiries are covered by the selected templates, demonstrating strong coverage in a closed domain.
  • Human evaluators assigned an average relevance score of 2.08 to model-selected responses, compared to 1.66 for the tf-idf baseline (p < 0.05).
  • The model recommended at least one 'very relevant' (score = 3) answer in the top three for 48 out of 100 questions, compared to 31 for the tf-idf baseline.
  • The system demonstrates that high relevance and coverage can be achieved without explicit intent annotation or beam search, simplifying deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.