Abstract
Maintaining consistency in long-form dialogue remains a significant challenge for open-domain chatbots. This paper identifies that conversational shortcuts, such as anaphora and ellipsis, frequently obscure contradictions from standard Natural Language Inference (NLI) models. We propose a two-stage framework that first rewrites bot utterances into self-contained sentences before performing contradiction detection. Our results demonstrate that this approach improves detection accuracy by up to 6.5% AUPR, effectively bridging the context gap in dialogue consistency.
Introduction
Consistency is a fundamental requirement for engaging and believable open-domain chatbots. However, bots frequently contradict themselves over the course of a conversation—for example, claiming to love dogs in the second turn while stating an allergy to pets in the tenth. While researchers typically use Natural Language Inference (NLI) to identify these conflicts, the inherent structure of natural dialogue presents a "messy data" problem that degrades model performance.
In human-like conversation, we frequently use anaphora (pronouns like "it" or "mine" referring to previous subjects) and ellipsis (omitting words that are implied by context). If a bot says, "Mine is Johnny Cash," an NLI model may fail to realize "mine" refers to a "favorite singer" mentioned several turns prior. Without this explicit context, the model cannot reliably detect if a later statement contradicts the bot's persona. This research addresses the gap between raw, incomplete dialogue and the structured information required for robust contradiction detection.
Methodology
The authors propose a two-stage pipeline designed to clarify dialogue before analysis: Utterance Rewriting followed by Contradiction Detection.
1. Utterance Rewriting
The first stage treats rewriting as a sequence-to-sequence (Seq2Seq) task. The researchers fine-tuned pre-trained models, specifically T5 and Pegasus, to ingest a dialogue history alongside an incomplete utterance. The model then generates a "restored" version of the sentence. For instance, an ambiguous phrase like "I have not been since last year" is transformed into the self-contained sentence: "I have not been to a Johnny Cash concert since last year."
2. Contradiction Detection
Once the utterances are rewritten, the system employs a Structured Utterance-Based (SUB) approach for detection. Using a RoBERTa-Large model, the system pairs the latest rewritten bot response against every previous rewritten bot response in the history. This allows the model to pinpoint specific points of conflict rather than attempting to process the entire history as a single, undifferentiated block of text.
Data and Evaluation
The study utilizes a combination of existing benchmarks and newly curated datasets to validate the approach:
- New Rewriting Dataset: The authors developed a new English dataset for incomplete utterance rewriting, featuring 40,000 training samples and 3,200 test samples derived from DailyDialog and Blended Skill Talk (BST).
- DECODE Benchmark: The standard benchmark for dialogue contradiction was used as the primary testing ground.
- Improved DECODE Test Set: Upon finding flaws in the original DECODE human-bot test set (such as missing evidence labels), the authors relabeled 1,889 samples to create a more rigorous and reliable benchmark for the research community.
Key Insights
- The Context Gap: Standard NLI models are typically trained on isolated sentence pairs. They lack the architectural "intuition" to search through multiple turns of dialogue history to resolve pronouns. Rewriting effectively brings the context to the model, rather than forcing the model to find the context.
- Anaphora vs. Ellipsis: The study found that these two types of linguistic incompleteness occur with nearly equal frequency in chatbot dialogues. Consequently, a model that only addresses coreference resolution (pronouns) would fail to solve half of the consistency problem.
- Rewriting as a Universal Utility: Beyond contradiction detection, making utterances self-contained has the potential to improve other areas of AI, such as dialogue state tracking and response generation, by clarifying the "state" of the conversation at every turn.
Results
The experimental results confirm that utterance rewriting acts as a significant "force multiplier" for detection models:
- Performance Gains: Implementing the T5-Large rewriting model improved the Area Under Precision-Recall Curve (AUPR) by 6.5% and Joint Accuracy (the ability to identify both the contradiction and the specific evidence for it) by 4.5% on unbalanced test sets.
- Human Validation: Human evaluators rated the rewritten utterances as 92% correct and 85% complete, indicating that the automated rewriting is both high-quality and natural.
- Parity with Humans: The automated T5 model achieved performance gains nearly identical to those achieved using manual human rewrites, suggesting the technology is mature enough for practical deployment.
Limitations and Future Work
While rewriting significantly improves detection, certain categories of contradictions remain difficult for current models to resolve:
- Numerical Reasoning: Challenges in comparing quantities (e.g., "I have one son" vs. "I have three kids").
- Logical Reasoning: Complex "if-then" or conditional inconsistencies.
- Common Sense: Conflicts requiring external world knowledge (e.g., geographic contradictions).
- Subjectivity: Nuanced cases where even human judges disagree on whether a contradiction exists.
Future research will focus on enhancing the rewriting models to handle these complex reasoning tasks and exploring the application of this pipeline to task-oriented dialogue systems.
Summary updated