Hexa: Self-Improving for Knowledge-Grounded Dialogue System

Daejin Jo, Daniel Wontae Nam, Gunsoo Han, Kyoung-Woon On, Taehwan Kwon, Seungeun Rho, Sungwoong Kim

Abstract

A common practice in knowledge-grounded dialogue generation is to explicitly utilize intermediate steps (e.g., web-search, memory retrieval) with modular approaches. However, data for such steps are often inaccessible compared to those of dialogue responses as they are unobservable in an ordinary dialogue. To fill in the absence of these data, we develop a self-improving method to improve the generative performances of intermediate steps without the ground truth data. In particular, we propose a novel bootstrapping scheme with a guided prompt and a modified loss function to enhance the diversity of appropriate self-generated responses. Through experiments on various benchmark datasets, we empirically demonstrate that our method successfully leverages a self-improving mechanism in generating intermediate and final responses and improves the performances on the task of knowledge-grounded dialogue generation.

Introduction

Modern knowledge-grounded dialogue systems often rely on modular architectures to handle complex tasks like web searching or memory retrieval. While these systems are effective, they face a significant hurdle: the lack of ground-truth data for intermediate steps. While human-provided final responses are abundant, the "perfect" search query or retrieval decision for a specific turn is rarely observable in standard datasets.

Modular architecture of the knowledge-grounded dialogue system illustrating the multi-step process from search decision to final response.

This creates a "multi-depth dependency" problem. If an early module (e.g., search query generation) performs poorly, the subsequent knowledge retrieval and final response generation are likely to fail. Standard supervised learning is insufficient because these internal modules are not inherently aligned with the final objective.

The Hexa Framework

To address this, we introduce Hexa, a self-improving framework that iteratively enhances modular dialogue systems without requiring ground-truth intermediate data. Hexa employs a bootstrap-and-finetune cycle designed to prevent the "model collapse" often seen in self-taught reasoners.

Overview of the Hexa self-improving framework and the detailed bootstrapping process with guided prompts.

Guided Bootstrapping with Alphabetical Lists

The core innovation of Hexa is the Guided Prompt. When a model fails to generate a correct response, Hexa provides a prompt containing an Alphabetical List (AL). This list includes the ground-truth response alongside several of the model's previous failed attempts. By presenting both correct and incorrect examples, the prompt acts as a "correction term," forcing the model to understand the reasoning behind the correct choice rather than simply copying a hint.

Similarity-Based Matching and Diverse Sampling

Since dialogue is fluid, Hexa uses similarity metrics (like ROUGE-L) with task-specific thresholds to identify "correct" self-generated responses. During bootstrapping, the model samples $K$ candidate responses and selects the one with the highest similarity to the ground truth. This ensures that the generated training data is both high-quality and linguistically diverse.

Experimental Evaluation

Hexa was evaluated across a wide range of datasets, including MS Marco, TriviaQA, Wizard of Wikipedia, and several unseen generalization tasks like Funpedia and OpenDialKG.

Key Results

  • Performance Gains: Hexa consistently outperformed baseline models (like BlenderBot 3) and adapted versions of the Self-Taught Reasoner (STaR). On seen tasks, Hexa achieved an average ROUGE-L of 22.25, a significant improvement over the 19.48 baseline.
  • Human Preference: In A/B testing, human evaluators preferred Hexa's responses for their fluency and faithfulness to retrieved knowledge. Hexa's faithfulness score reached ~66%, compared to ~48% for the baseline.
  • Robustness: The system demonstrated strong generalization capabilities on "totally unseen" datasets, proving that the self-improvement mechanism captures fundamental reasoning and search skills.

Key Insights

  1. The Value of Negative Examples: Including failed attempts in the guided prompt prevents the model from taking "shortcuts" and encourages a deeper understanding of the task.
  2. Maintaining Autonomy: The Alphabetical List format preserves the integrity of intermediate steps, ensuring the model learns to search and reason effectively rather than just mimicking the final output.
  3. Threshold Sensitivity: Optimal performance requires tuning similarity thresholds based on the task type (e.g., higher for factual QA, lower for open-ended dialogue).

Conclusion and Future Work

Hexa provides a robust path for training modular dialogue systems in data-scarce environments. Future research will focus on addressing "off-policy" distribution shifts through importance sampling and implementing rejection mechanisms to filter out "lucky" guesses where incorrect intermediate steps lead to correct final responses.

Summary updated

BibTeX
@misc{jo2023hexa,
  author = {Daejin Jo and Daniel Wontae Nam and Gunsoo Han and Kyoung-Woon On and Taehwan Kwon and Seungeun Rho and Sungwoong Kim},
  title = {{Hexa: Self-Improving for Knowledge-Grounded Dialogue System}},
  year = {2023},
  eprint = {2310.06404},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.06404},
}
Figure