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:
- Agent Dependency: Traditional selection methods often require internal metadata from agents, making the system brittle to architectural changes.
- Contextual Drift: Responses that are semantically similar to a single query may still disrupt the overall flow of a multi-turn conversation.
- 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.
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