Reranking Overgenerated Responses for End-to-End Task-Oriented Dialogue Systems

Songbo Hu, Ivan Vulic, Fangyu Liu, Anna Korhonen

Abstract

End-to-end task-oriented dialogue systems are prone to fall into the so-called ‘likelihood trap’, resulting in generated responses which are dull, repetitive, and often inconsistent with dialogue history. Comparing ranked lists of multiple generated responses against the ‘gold response’ reveals a wide diversity in quality, with many good responses placed lower in the ranked list. The main challenge addressed in this work is how to reach beyond greedily generated system responses, that is, how to obtain and select high-quality responses from the list of overgenerated responses at inference without the availability of the gold response. To this end, we propose a simple yet effective reranking method to select high-quality items from the lists of initially overgenerated responses. The idea is to use any sequence-level scoring function to divide the semantic space of responses into high-scoring versus low-scoring partitions. At training, the high-scoring partition comprises all generated responses whose similarity to the gold response is higher than the similarity of the greedy response to the gold response. At inference, the aim is to estimate the probability that each overgenerated response belongs to the high-scoring partition. We evaluate our proposed method on the standard MultiWOZ dataset, the BiTOD dataset, and with human evaluation.

Introduction: The Likelihood Trap

Traditional Task-Oriented Dialogue (ToD) systems have historically relied on modular, pipeline-based architectures. Recent advancements have shifted the field toward End-to-End (E2E) models that utilize large language models (LLMs) to map dialogue history directly to a natural language response. However, these E2E models frequently suffer from the "likelihood trap." When using standard decoding methods such as greedy search or beam search, models tend to favor high-probability sequences that are safe, generic, and often repetitive (e.g., repeating "How can I help you?" across multiple turns).

While stochastic sampling methods like nucleus (top-p) sampling can generate more diverse and high-quality responses, they also introduce the risk of factual errors or hallucinations. A key insight of this research is the "Oracle" potential: preliminary experiments show that if a system could perfectly select the best response from a pool of 20 generated candidates, BLEU scores on the MultiWOZ benchmark could improve by a staggering 16.2 points. This indicates that high-quality, diverse responses are indeed present in the model's output distribution; the challenge lies in identifying and selecting these "hidden gems" without access to the ground-truth gold response.

The performance gap between standard decoding (Greedy) and the theoretical maximum (Max) across different top-p sampling values.

Methodology: Two-Stage Reranking

To address this selection challenge, we propose a two-stage post-generation reranking framework designed to recognize high-quality responses relative to the dialogue context.

Stage 1: Response Selection Fine-tuning

In the first stage, a Pretrained Language Model (PLM) such as BERT or RoBERTa is fine-tuned on a standard response selection task. The model learns to distinguish a true "gold" response from randomly sampled negative responses. This process aligns the general-purpose PLM with the specific nuances of the dialogue domain.

Stage 2: Response Reranking

The core contribution of this work is the second stage, where the model is further fine-tuned to distinguish between "high-quality" and "low-quality" responses within the set of generated candidates. We employ a "Threshold Trick" during training: the score of the greedy search response serves as a dynamic, local threshold. Any generated candidate that is more similar to the gold response than the greedy response is labeled as "high-quality," while others are labeled "low-quality."

Overview of the proposed response reranking framework, from dialogue context to the final selection of high-quality responses.

We explored two primary variants for this reranking:

  • Classification-based: A cross-encoder that predicts a binary "good/bad" label for each candidate.
  • Similarity-based: An approach using triplet loss to cluster high-quality responses together in a shared vector space.

At inference time, the system generates 20 candidates using nucleus sampling, and the Stage 2 model ranks them to select the top-scoring response.

Results and Key Insights

Our method was evaluated on the MultiWOZ 2.0 and BiToD datasets. On MultiWOZ, the framework achieved new state-of-the-art results, improving a strong MinTL baseline by 2.0 BLEU, 1.6 ROUGE, and 1.3 METEOR points. Human evaluators also showed a clear preference, choosing similarity-based reranked responses over the greedy search baseline 57.8% of the time.

Key findings include:

  • Cross-Encoders Matter: Models that process context and response together are significantly better at capturing semantic nuances than bi-encoders.
  • Efficiency: The system achieves near-peak performance with as few as three candidate responses, making it potentially viable for real-time applications where computational overhead is a concern.
  • Diversity Dependency: The method's success is tied to the underlying model's ability to generate diverse candidates. On the BiToD dataset, where the base model produced very similar outputs, the gains from reranking were more modest.

Conclusion

This work demonstrates that reranking overgenerated responses is a simple yet effective strategy to overcome the likelihood trap in end-to-end task-oriented dialogue systems. By using greedy search as a dynamic quality threshold, we can successfully identify high-quality responses that would otherwise be discarded. Future work will involve extending this method to multilingual settings and exploring its integration with even larger language models and in-context learning techniques.

Summary updated

BibTeX
@inproceedings{hu2024reranking,
  author = {Songbo Hu and Ivan Vulic and Fangyu Liu and Anna Korhonen},
  title = {{Reranking Overgenerated Responses for End-to-End Task-Oriented Dialogue Systems}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=9jG6Hh812y},
}
Figure