Response Enhanced Semi-supervised Dialogue Query Generation

Jianheng Huang, Ante Wang, Linfeng Gao, Linfeng Song, Jinsong Su

Abstract

Dialogue Query Generation (DQG) is essential for factual conversational AI but suffers from data scarcity and domain adaptation challenges. We present SemiDQG, a semi-supervised framework that utilizes dialogue responses as a "teacher" signal during training. By employing a three-stage process involving similarity-based filtering and reinforcement learning, SemiDQG achieves significant performance gains over supervised baselines and large language models like ChatGPT, particularly in low-resource and cross-domain settings.

Introduction

Modern dialogue systems often require external knowledge retrieval to provide accurate, up-to-date information. The task of Dialogue Query Generation (DQG) involves distilling user intent from multi-turn conversation histories into effective search queries. However, creating high-quality, human-annotated datasets for this task is expensive and time-consuming. Furthermore, models often struggle to generalize across different conversational domains.

Existing semi-supervised approaches often suffer from error accumulation during self-training. SemiDQG addresses this by leveraging the dialogue response—which is available in unlabeled training data but absent during inference—to guide the Query Producer (QP) during the training phase.

Methodology

The SemiDQG framework operates in three distinct stages to progressively refine the query generation process:

  1. Supervised Warm-up: Initial training of two models on a small labeled dataset: a standard Query Producer (QP) using only dialogue history, and a Response-Augmented (RA) model using both history and response.
  2. Similarity-based Query Selection: On unlabeled data, the RA model generates pseudo-queries. A similarity-based filter compares these with QP outputs; high agreement indicates reliable queries, which are then used for further training.
  3. RA-guided Reinforcement Learning: The RA model serves as a rewarder in a REINFORCE setup, scoring candidate queries from the QP to provide fine-grained training signals.
Overview of the SemiDQG framework showing Stage 2 (Similarity-based selection) and Stage 3 (Reinforcement Learning).

Experimental Setup

The framework was evaluated on four major benchmarks across two languages:

  • English: Wizard-of-Internet (WoI) and Wizard-of-Wikipedia (WoW).
  • Chinese: DuSinc and KdConv.

Experiments focused on cross-domain performance (e.g., training on WoI and testing on WoW) and low-resource scenarios, testing with as few as 300 labeled examples.

Results and Discussion

SemiDQG demonstrates remarkable efficiency and robustness. In low-resource settings, it achieves performance with 300 labeled instances comparable to standard models using 3,000 instances—a 10x improvement in data efficiency. The core insight is that while dialogue history can be ambiguous, the response often clarifies the intended search topic.

Comparison with LLMs

SemiDQG significantly outperformed ChatGPT (GPT-3.5-turbo) in few-shot in-context learning settings. For instance, on the WoW cross-domain dataset, SemiDQG achieved a Unigram F1 score of 57.12, vastly exceeding the 41.38 achieved by 8-shot ChatGPT and the 48.11 of a T5-base baseline.

Impact of Reinforcement Learning

The reinforcement learning stage (Stage 3) consistently improved performance over the pseudo-labeling approach of Stage 2. This highlights the value of using the RA model to provide a gradient of rewards rather than binary labels.

Performance comparison (Unigram F1) on WoI-500 and KdConv datasets across different configurations.

Conclusion

SemiDQG effectively utilizes dialogue responses as a "privileged" information source during training to overcome the limitations of supervised DQG. While the RA model can occasionally introduce biases from the response (e.g., picking up secondary topics), the overall framework provides a robust path toward high-performance, domain-agnostic dialogue systems. Future work will explore more sophisticated reward functions and larger teacher models to further bridge the gap to human-level performance.

Summary updated

BibTeX
@inproceedings{huang2024response,
  author = {Jianheng Huang and Ante Wang and Linfeng Gao and Linfeng Song and Jinsong Su},
  title = {{Response Enhanced Semi-supervised Dialogue Query Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29790},
}
Figure