RubyStar: A Non-Task-Oriented Mixture Model Dialog System

Huiting Liu, Tao Lin, Hanfei Sun, Weijian Lin, Chih-Wei Chang, Teng Zhong, Alexander I. RudnickyarXiv 2017

Abstract

RubyStar is a dialog system designed to create "human-like" conversation by combining different response generation strategies. RubyStar conducts a non-task-oriented conversation on general topics by using an ensemble of rule-based, retrieval-based and generative methods. Topic detection, engagement monitoring, and context tracking are used for managing interaction. Predictable elements of conversation, such as the bot's backstory and simple question answering are handled by separate modules. We describe a rating scheme we developed for evaluating response generation. We find that character-level RNN is an effective generation model for general responses, with proper parameter settings; however other kinds of conversation topics might benefit from using other models.

Introduction

Building a non-task-oriented dialog system, or "socialbot," presents a unique challenge: there is no specific goal to optimize for beyond maintaining human engagement. Current NLP approaches often face a trade-off: retrieval-based systems are grounded in real human language but limited by their databases, while generative systems (like Seq2Seq models) can produce novel sentences but often default to "safe," generic responses like "I don't know."

RubyStar addresses this by employing a "mixture model" architecture. It combines the accuracy of handcrafted rules, the factual grounding of knowledge graphs, and the flexibility of neural networks to overcome the "generic response" trap common in pure deep learning systems.

System Architecture

RubyStar's architecture is layered, processing user input through several stages to ensure a coherent and engaging response. The system prioritizes reliable rules for common intents while using neural models as a flexible fallback.

The RubyStar system architecture, illustrating the flow from user input to response generation via a mixture of strategies.

The system operates as follows:

  • Natural Language Understanding (NLU): Performs topic detection using a Random Forest classifier, intent analysis via Amazon Lex, and entity linking using TAGME to connect words to Wikipedia/Wikidata.
  • The Strategy Layer: This core component prioritizes strategies in a specific order: rule-based templates for backstory, knowledge-based queries to Amazon Evi, retrieval-based responses from Twitter, and finally, generative neural networks (LSTMs).
  • Engagement Reranking: A Linear SVM classifier, trained on Reddit "upvotes" as a proxy for engagement, ranks multiple candidate responses.
  • Context Tracking: Utilizes the Stanford CoreNLP toolkit for coreference resolution to maintain conversation flow across turns.

Datasets and Training

Diverse datasets were used to train various components of the system. Over 5,000 Reddit samples were used for topic detection, while a larger corpus of Reddit commentaries trained the engagement reranking model. Real-time Twitter data provided "fresh" responses, and the Cornell Movie Lines Corpus was used to train the generative Seq2Seq models. The final evaluation was based on 15,084 real-world sessions with Alexa users.

Key Insights

A central design philosophy is "Safety First." By treating neural generation as a fallback rather than the primary driver, the system avoids hallucinating or becoming nonsensical. Additionally, the bot uses Wikidata to dynamically fill templates; for example, if a user mentions an actor, the bot can query their filmography to inject specific details into the conversation. Analysis also showed that sentiment plays a role in user satisfaction; the presence of words like "love" and "friend" correlated with higher ratings, while "stupid" correlated with lower ones.

Results and Evaluation

During the Alexa Prize evaluation, RubyStar achieved an average score of 2.57/5, with 45.5% of sessions receiving a 3 or higher. The SVM-based engagement model achieved 79.7% accuracy in binary classification (engaging vs. non-engaging) on the test set.

Statistical breakdown of dialog turns, keyword presence, and generator usage across different user ratings.

As shown in the statistics, higher ratings were strongly correlated with longer conversations. The mean number of turns for a 5-star rating was 16.6, compared to 10.0 for a 1-star rating. Neural models were the most active generators across all rating levels, accounting for approximately 40% of responses, followed by the Evi QA engine and Twitter retrieval.

Conclusion and Future Work

While successful, user feedback indicated a "proactivity gap," where the bot was perceived as too reactive. Future improvements could involve using Generative Adversarial Networks (GANs) or Reinforcement Learning to improve long-term coherence and planning. Additionally, unifying the bot's "persona" across different modules remains a challenge, with potential solutions involving word embeddings to harmonize tone and sentiment across the mixture of models.

Summary updated

BibTeX
@misc{liu2017rubystar,
  author = {Huiting Liu and Tao Lin and Hanfei Sun and Weijian Lin and Chih-Wei Chang and Teng Zhong and Alexander I. Rudnicky},
  title = {{RubyStar: A Non-Task-Oriented Mixture Model Dialog System}},
  year = {2017},
  eprint = {1711.02781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.02781},
}
Figure