Weakly-Supervised Neural Response Selection from an Ensemble of Task-Specialised Dialogue Agents

Asir Saeed, Khai Mai, Pham Minh, Nguyen Tuan Duc, Danushka BollegalaarXiv 2020

Abstract

Modern dialogue systems often leverage ensembles of specialized agents to handle diverse conversational tasks. However, selecting the optimal response from such a "choir" remains challenging. This paper introduces a Neural Response Selection (NRS) method that utilizes weakly-supervised curriculum learning and contextualized embeddings (BERT, ELMo, AWD-LSTM) to evaluate response coherence. Our approach is agent-agnostic, treating individual agents as black boxes and focusing solely on the semantic relationship between the conversation history and the proposed responses. Experimental results on a multi-turn Japanese dialogue dataset demonstrate significant improvements over traditional similarity-based baselines.

Introduction

The complexity of human conversation often necessitates hybrid dialogue systems that combine rule-based, retrieval-based, and generative agents. Managing these ensembles typically introduces three major hurdles:

  1. Agent Dependency: Traditional selection methods often require internal metadata from agents, making the system brittle to architectural changes.
  2. Contextual Drift: Responses that are semantically similar to a single query may still disrupt the overall flow of a multi-turn conversation.
  3. Exposure Bias: Models trained exclusively on human-curated histories often struggle when faced with the imperfect outputs of automated agents in real-world settings.

To address these, we propose an agent-agnostic selector that evaluates raw text outputs against conversation history using deep semantic embeddings.

Methodology

The core of our system is a scoring function $M$ that evaluates a (Context, Query, Response) tuple. We employ several key techniques to optimize this function:

Weak Supervision and Hinge Loss

Rather than requiring exhaustive human rankings of all agent outputs, we utilize a single human-written "gold" response as a proxy. We apply a Hinge Loss function to ensure the model scores the selected agent response similarly to, or better than, the gold reference.

Curriculum Training

To mitigate exposure bias, we implement a three-phase training curriculum:

  • Utterance Phase: Training on isolated turns using ground-truth human history.
  • Conversation Phase: Training using the agents' own previous responses as history to simulate realistic noise.
  • Scheduled Sampling: A hybrid phase where the model transitions from human-provided history to its own predicted history, increasing robustness.

Contextualized Embeddings

We evaluate the performance of three state-of-the-art embedding models—BERT, ELMo, and AWD-LSTM—to capture deep semantic nuances beyond simple keyword matching.

Evaluation

The model was tested on a proprietary dataset of 6,000 multi-turn Japanese conversations (approximately 40,000 pairs) across 60 topics. The ensemble consisted of seven distinct agents, including AIML templates, Word2Vec retrieval systems, and Seq2Seq generators.

Quantitative Results

The NRS model demonstrated substantial performance gains over baseline methods. Specifically, it achieved a 15.08% improvement over a Query-Response similarity baseline and a 26.52% improvement over a context-aware cosine similarity baseline.

Accuracy comparison of NRS vs. Cosine-Similarity across different embedding types and training phases.

As shown in the table above, ELMo achieved the highest accuracy in the Utterance and Scheduled Sampling phases (up to 65.40%), while BERT performed best during the Conversation phase (60.40%).

Discussion and Conclusion

Our findings suggest that prioritizing conversational coherence over simple semantic similarity is crucial for effective dialogue management. The NRS model's ability to act as an "agent-agnostic critic" allows for a modular system where new agents can be integrated without retraining the selector.

Qualitative analysis revealed that the model occasionally selected agent responses that human evaluators preferred over the original "gold" responses, indicating that the system learned general principles of dialogue rather than mere data memorization. Future work will focus on expanding the context window beyond two utterances and testing the model's performance on other languages and real-time "cold start" scenarios for new agents.

Summary updated

Abstract

Dialogue engines that incorporate different types of agents to converse with humans are popular. However, conversations are dynamic in the sense that a selected response will change the conversation on-the-fly, influencing the subsequent utterances in the conversation, which makes the response selection a challenging problem. We model the problem of selecting the best response from a set of responses generated by a heterogeneous set of dialogue agents by taking into account the conversational history, and propose a \emph{Neural Response Selection} method. The proposed method is trained to predict a coherent set of responses within a single conversation, considering its own predictions via a curriculum training mechanism. Our experimental results show that the proposed method can accurately select the most appropriate responses, thereby significantly improving the user experience in dialogue systems.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Human evaluation · test dataset · human evaluationNRS (Context,Query,Response), ELMoaccuracy65.40%split: test · input=context-query-response · phase=utterance · encoder=ELMo · pooling=concatenation · evaluation=oracle
Source quote
L311: NRS (Context,Query,Response) │ 47.49 │ 49.16 │ 52.40 │ 64.00^\ast │ 60.40^\ast │ 61.94^\ast │ 65.40^\ast │ 55.00 │ 62.80^\ast }
Human evaluation · test dataset · human evaluationNRS (Query,Response), BERTaccuracy54.80%split: test · input=query-response · phase=utterance · encoder=BERT · evaluation=oracle
Source quote
L309: NRS (Query,Response) │ 47.78 │ 54.80 │ 40.21
Human evaluation · test dataset · human evaluationNRS (Context,Query,Response), BERTaccuracy60.40%split: test · input=context-query-response · phase=conversation · encoder=BERT · pooling=concatenation · evaluation=oracle
Source quote
L311: NRS (Context,Query,Response) │ 47.49 │ 49.16 │ 52.40 │ 64.00^\ast │ 60.40^\ast │ 61.94^\ast │ 65.40^\ast │ 55.00 │ 62.80^\ast }
Human evaluation · test dataset · human evaluationNRS (Context,Query,Response), ELMoaccuracy62.80%split: test · input=context-query-response · phase=scheduled-sampling · encoder=ELMo · pooling=concatenation · evaluation=oracle
Source quote
L311: NRS (Context,Query,Response) │ 47.49 │ 49.16 │ 52.40 │ 64.00^\ast │ 60.40^\ast │ 61.94^\ast │ 65.40^\ast │ 55.00 │ 62.80^\ast }
BibTeX
@misc{saeed2020weakly,
  author = {Asir Saeed and Khai Mai and Pham Minh and Nguyen Tuan Duc and Danushka Bollegala},
  title = {{Weakly-Supervised Neural Response Selection from an Ensemble of Task-Specialised Dialogue Agents}},
  year = {2020},
  eprint = {2005.03066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.03066},
}
Figure