Domain Aware Neural Dialog System

Sajal Choudhary, Prerna Srivastava, Lyle H. Ungar, João SedocarXiv 2017

Abstract

Standard open-domain conversational agents frequently struggle with maintaining topical consistency, often producing generic responses or failing to resolve ambiguities when a conversation shifts domains. This paper presents DOM-Seq2Seq, a domain-aware dialog system designed to track the thematic context of a conversation across multiple turns. By integrating a domain classifier that incorporates conversational history with specialized response generators, the proposed architecture achieves higher relevance and contextual coherence compared to general-purpose sequence-to-sequence models.

Introduction

Open-domain conversational agents face significant challenges in providing specific and contextually relevant replies. Two primary issues plague current systems:

  1. Genericness: Models trained on broad datasets often default to "safe" but uninformative responses like "I don't know."
  2. Domain Ambiguity: Human conversations naturally transition between topics. An utterance such as "Want to play tonight?" is inherently ambiguous without context—it could refer to gaming, sports, or music.

Most existing models analyze utterances in isolation. The authors of this work argue that maintaining "topical cohesion" requires the system to remember the domain of preceding sentences to disambiguate current inputs.

Methodology

The proposed DOM-Seq2Seq architecture is modular, comprising three primary components:

  1. Domain Classifier: This component identifies the topic of the current input. The researchers evaluated an Ensemble-based approach (combining an SVM for current text and logistic regression for the previous three turns' domains) and an RNN-based approach to capture longer-term dependencies.
  2. Domain-Specific Response Generators: Rather than a single monolithic model, the system employs multiple Sequence-to-Sequence (Seq2Seq) models with attention mechanisms, each trained on specific domains such as Movies or Gaming.
  3. Re-ranker: This final module selects the optimal response by weighing the probability scores from the domain classifier against the confidence scores (logits) from the individual response generators.
The modular architecture of the DOM-Seq2Seq system, showing the flow from utterance to the final re-ranked response.

Experimental Setup

The models were trained and evaluated using diverse social media datasets:

  • Reddit: Approximately 1.8 million query-response pairs from r/Movies and r/Gaming were used to train specialized generators.
  • Twitter: Utilized for training an "Out of Domain" (OOD) model to handle general conversation.
  • Reddit IAma: Used for testing multi-turn interactions, leveraging "flairs" as ground-truth topic labels to evaluate domain tracking.

Key Results

The DOM-Seq2Seq system was benchmarked against a standard Seq2Seq baseline using Domain Classification Accuracy and the Word Embedding Greedy Match metric (measuring semantic similarity to human responses).

Performance comparison of the baseline Seq2Seq model against the proposed domain-aware variants.

As shown in the results, the Ensemble-based DOM-Seq2Seq model (En-DOM-Seq2Seq) achieved a domain classification accuracy of 77.57%. Furthermore, it outperformed the baseline on the Greedy Match metric (0.801 vs. 0.760), indicating more semantically relevant replies. Qualitative analysis showed that DOM-Seq2Seq provided specific, domain-appropriate entities (e.g., mentioning specific game titles) where the baseline remained generic.

Discussion and Conclusion

A central insight of this research is that the sequence of previous domains is often more informative for disambiguation than the current utterance's vocabulary. By routing inputs to "expert" sub-models, the system avoids the pitfalls of monolithic architectures. While effective, the current scope is limited to a few domains. Future work involves scaling the system to handle a wider array of topics and incorporating user-specific patterns for personalized interaction.

Summary updated

BibTeX
@misc{choudhary2017domain,
  author = {Sajal Choudhary and Prerna Srivastava and Lyle H. Ungar and João Sedoc},
  title = {{Domain Aware Neural Dialog System}},
  year = {2017},
  eprint = {1708.00897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.00897},
}
Figure