Response Enhanced Semi-Supervised Dialogue Query Generation

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

Abstract

Leveraging vast and continually updated knowledge from the Internet has been considered an important ability for a dialogue system. Therefore, the dialogue query generation task is proposed for generating search queries from dialogue histories, which will be submitted to a search engine for retrieving relevant websites on the Internet. In this regard, previous efforts were devoted to collecting conversations with annotated queries and training a query producer (QP) via standard supervised learning. However, these studies still face the challenges of data scarcity and domain adaptation. To address these issues, in this paper, we propose a semi-supervised learning framework -- SemiDQG, to improve model performance with unlabeled conversations. Based on the observation that the search query is typically related to the topic of dialogue response, we train a response-augmented query producer (RA) to provide rich and effective training signals for QP. We first apply a similarity-based query selection strategy to select high-quality RA-generated pseudo queries, which are used to construct pseudo instances for training QP and RA. Then, we adopt the REINFORCE algorithm to further enhance QP, with RA-provided rewards as fine-grained training signals. Experimental results and in-depth analysis of three benchmarks show the effectiveness of our framework in cross-domain and low-resource scenarios. Particularly, SemiDQG significantly surpasses ChatGPT and competitive baselines.

Introduction

Modern dialogue systems often need to search the Internet to provide factual answers and avoid "hallucinations." However, converting complex conversation histories into concise, effective search queries is a significant challenge. Current research faces two major hurdles: data scarcity, as manual annotation is expensive, and ambiguity, where dialogue history alone may not provide enough context to determine the user's intent.

SemiDQG is a novel semi-supervised framework that addresses these issues by leveraging the dialogue response during training. By using a response-augmented model as a teacher to provide high-quality pseudo-labels and reinforcement learning rewards, SemiDQG significantly outperforms large language models like ChatGPT in both cross-domain and low-resource settings.

Methodology

The SemiDQG framework operates in three distinct stages to maximize the utility of unlabeled data:

  1. Stage 1: Supervised Warming: Two T5 models are initialized on a small labeled dataset. The Query Producer (QP) processes only dialogue history, while the Response-Augmented (RA) model sees both history and the eventual response. The RA model serves as an "expert" because responses typically contain the key entities required for an effective query.
  2. Stage 2: Similarity-Based Pseudo-Labeling: The RA model generates queries for unlabeled conversations. To maintain quality, a filtering strategy is employed: pseudo-queries are only kept if the RA's output is sufficiently similar to the QP's output. This prevents the RA from generating queries for topics not present in the user's intent.
  3. Stage 3: RA-Guided Reinforcement Learning: The QP is fine-tuned using the REINFORCE algorithm. The RA model acts as a critic, providing rewards based on the likelihood of a generated query leading to the correct topic. Rank-based rewards were found to be more effective than raw probability scores.
Overview of the SemiDQG framework showing Stage 2 (pseudo-labeling) and Stage 3 (REINFORCE).

Experimental Results

The framework was evaluated on four major benchmarks: English (WoI, WoW) and Chinese (DuSinc, KdConv).

Performance and Efficiency

SemiDQG demonstrates remarkable superiority over large language models. On the WoW dataset, it achieved a 57.12 Unigram F1 score, significantly higher than ChatGPT’s 41.38 (8-shot). Furthermore, the framework excels in low-resource scenarios. As shown in Figure 6, with only 300 labeled samples, SemiDQG performs as well as a standard model trained on 3,000 samples, representing a 10x increase in data efficiency.

Comparison of SemiDQG against baselines in low-resource scenarios.

Key Insights

  • The Response as a "Cheat Sheet": Using the response during training allows the RA model to provide a much stronger signal than history alone, clarifying ambiguities.
  • Filtering is Essential: Similarity-based selection is critical; training on unfiltered RA-generated queries can actually degrade performance by introducing noise.
  • Specialized vs. General Models: A specialized T5-base model (220M parameters) can outperform general-purpose giants like GPT-3.5-turbo when trained with task-specific architectural strategies.

Conclusion

SemiDQG provides a robust solution for dialogue query generation by effectively utilizing unlabeled data through response-augmented signals. While the multi-stage training process and reliance on RA calibration are current limitations, the framework's success in low-resource and cross-domain tasks highlights its potential. Future work will explore more advanced distillation techniques to further bridge the gap between the RA and QP models.

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