NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

N-best Response-based Analysis of Contradiction-awareness in Neural Response Generation Models

Shiki Sato, Reina Akama, Hiroki Ouchi, Ryoko Tokuhisa, Jun Suzuki, Kentaro Inui

Abstract

Neural response generation models often produce contradictory outputs, undermining their reliability in dialogue systems. While post-generation filters can mitigate these errors, their effectiveness is limited by the quality of the candidate pool. This paper shifts the evaluation focus from the single top-ranked response to the entire $n$-best list. We introduce two metrics—Certainty and Variety—to quantify a model's underlying contradiction-awareness. Through a framework utilizing polar echo questions, we demonstrate that standard decoding methods like beam search often fail to generate even one valid response in the $n$-best list, whereas unlikelihood training significantly improves the consistency of the entire candidate distribution.

Introduction

State-of-the-art neural response models, such as DialoGPT and Blender, frequently "hallucinate" contradictions, providing logically inconsistent answers across a conversation. While researchers have developed filters to intercept these errors, such post-processing is only viable if the model generates at least one non-contradictory alternative within its $n$-best list. Most prior research evaluates only the "1-best" response. This study argues for a deeper analysis: if a model's entire top-10 list is logically flawed, no amount of filtering can salvage the interaction. We aim to quantify how "contradiction-aware" these models' underlying distributions truly are.

Methodology

To stress-test models, we developed a framework using polar echo questions. These questions repeat a previously established fact to elicit a clear confirmation or refutation (e.g., History: "I'm in Ohio." -> Message: "Are you in Ohio?").

Overview of the evaluation framework: (i) input synthesis, (ii) contradiction detection in n-best lists, and (iii) metric computation.

We propose two key metrics to analyze the $n$-best candidate lists:

  1. Certainty: The probability that an $n$-best list contains at least one non-contradictory response. This measures the potential for a filter to succeed.
  2. Variety: The proportion of non-contradictory responses within the $n$-best list, indicating the "density" of valid answers.

Evaluation is automated using a RoBERTa-based classifier fine-tuned on the Circa dataset. This classifier distinguishes between affirmations and refutations, allowing us to programmatically determine if a model's response (e.g., "Yeah," "I'm not") contradicts the established history.

Experimental Setup

We utilized the Multi-Genre NLI (MNLI) dataset to synthesize dialogue contexts. Entailment pairs were transformed into confirmation questions (ENTQ), and contradiction pairs into refutation questions (CNTQ). Additionally, the Circa Dataset was used to train the automated classifier for indirect responses. We released a benchmark of 2,000 synthesized ENTQ/CNTQ inputs to facilitate replication of this $n$-best analysis.

Results and Analysis

Our analysis reveals a critical Beam Search Trade-off: while increasing the beam size (searching more paths) generally improves Certainty by eventually finding a correct answer, it simultaneously degrades Variety. As the beam grows, the candidate list becomes cluttered with repetitive, slightly modified versions of the same few responses, reducing the utility of the candidate pool for diverse filtering.

Certainty and Variety metrics across different beam sizes for ENTQ and CNTQ tasks using various models.

Key findings include:

  • The "10% Failure" Wall: In standard configurations (beam size 10), high-performance models like DialoGPT 345M failed to provide a single non-contradictory response in 8-10% of refutation cases.
  • Model Comparison: DialoGPT typically exhibited higher Certainty (finding the right answer somewhere), whereas Blender showed higher Variety (maintaining more "good" answers in the mix).
  • Unlikelihood Training (UL): The most effective improvement came from training rather than decoding. UL, which explicitly penalizes contradictory tokens, allowed Blender 3B to achieve a Variety score of 0.968, a massive improvement over standard Beam Search (0.73-0.82).

Conclusion

This work highlights the limitations of standard decoding for maintaining logical consistency in dialogue. While larger beam sizes can find valid responses, they often fail to provide a diverse set of consistent candidates. Unlikelihood training emerges as a superior method for embedding contradiction-awareness directly into the model's distribution. Future work should extend this analysis beyond polar questions to more complex, open-ended dialogue scenarios and explore correlations with human perceptions of chatbot trustworthiness.

Summary updated

BibTeX
@inproceedings{sato2022n,
  author = {Shiki Sato and Reina Akama and Hiroki Ouchi and Ryoko Tokuhisa and Jun Suzuki and Kentaro Inui},
  title = {{N-best Response-based Analysis of Contradiction-awareness in Neural Response Generation Models}},
  booktitle = {SIGDIAL},
  year = {2022},
  doi = {10.18653/v1/2022.sigdial-1.60},
}
Figure