Search-Engine-augmented Dialogue Response Generation with Cheaply Supervised Query Production

Ante Wang, Linfeng Song, Qi Liu, Haitao Mi, Longyue Wang, Zhaopeng Tu, Jinsong Su, Dong Yu · DOI

TL;DR

This paper introduces a novel approach to dialogue response generation that dynamically retrieves information from search engines, overcoming the limitations of static knowledge sources. Their key innovation is a "query producer" trained with "cheap noisy supervision," enabling chatbots to generate more informative and relevant responses without requiring expensive human-annotated queries.

What Problem Does This Paper Address?

Current knowledge-aided dialogue systems often rely on pre-defined knowledge bases or static article collections. This approach fails to capture the dynamic, ever-changing nature of real-world information. Chatbots need to access up-to-date knowledge to provide truly informative and engaging responses. The challenge lies in how to efficiently and effectively retrieve this dynamic knowledge, especially when the exact information needed isn't explicitly stated in the dialogue. This paper tackles the problem of building dialogue systems that can actively query external knowledge sources, like search engines, to enrich their responses.

Methods

The core of the proposed system is a dialogue model that integrates a query producer and a response generator.

  • Query Producer: This module is responsible for generating search queries based on the dialogue context. The authors explore two approaches:
  • Extraction-based (QP-Ext): Extracts text spans from the dialogue context as queries.
  • Generation-based (QP-Gen): Generates queries from scratch using a sequence-to-sequence model.
  • Cheap Noisy Supervision: The key innovation for training the query producer. Instead of relying on human-annotated gold queries, they use the dialogue's next response as a proxy for query quality. A scoring function compares retrieved articles with the gold response. This signal is then used for both pre-training (using it as a gold label) and reinforcement learning fine-tuning (using it as a reward). This method avoids costly human annotation and makes the system more transferable.
  • Search Space Pruning: To manage the computational cost of querying search engines during training, they employ methods like "TagMe" (dictionary-based) and "YAKE!" (metric-based) to reduce the number of candidate queries.
  • Response Generator: Takes the dialogue context and retrieved articles from the search engine to generate the final response. They implement two types of generators:
  • Rank-Gen: Selects the best article using a ranker before generating a response.
  • Merge-Gen: Concatenates information from multiple retrieved articles to generate a response.

Datasets

The primary dataset used for evaluation is Wizard-of-Wikipedia (WoW). This dataset provides dialogues with annotated relevant knowledge (Wikipedia article titles). The authors use the WoW unseen test set for evaluation. They also utilize a free vertical search engine, Wikipedia Search, to retrieve articles.

Key Insights and Ideas

  • Dynamic Knowledge is Crucial: The paper strongly emphasizes that static knowledge sources are insufficient for modern dialogue systems. Accessing continuously updated information from search engines is essential.
  • "Cheap Noisy Supervision" is Effective: The core contribution is demonstrating that training a query producer with signals derived from the next dialogue response (rather than explicit gold queries) is highly effective and significantly reduces annotation costs.
  • Search Engine Agnosticism: The proposed training method is designed to be transferable to different search engines and domains without requiring domain-specific human annotations.
  • Query Production Quality Matters: The results consistently show that improving the quality of generated queries directly leads to better knowledge retrieval and, consequently, better response generation.
  • Merge-Gen Outperforms Rank-Gen: The Merge-Gen approach, which utilizes multiple retrieved articles, generally yields better results than Rank-Gen, which relies on a single ranked article. This highlights the benefit of leveraging a broader set of information and avoiding single points of failure in ranking.

Key Results

  • Query Production Performance: The proposed QP-Ext query producer achieved R@1 and R@5 rates of 62.4% and 74.8% for retrieving gold knowledge on the WoW test set. This significantly outperforms simpler methods like TF-IDF.
  • Response Generation Improvement: The overall model, using the proposed query producers, generated better responses than strong knowledge-aided baselines, including a BART model.
  • Efficiency: The proposed method is more efficient in knowledge fetching compared to baselines that query search engines more frequently.
  • Human Evaluation: Human evaluations showed that the models with QP-Ext and QP-Gen significantly improved "knowledgeable" aspects of responses compared to baselines, with QP-Ext showing particular strength in query soundness and knowledge coverage.

Limitations and Future Work

  • Hallucination: Despite improvements, the models can still suffer from hallucination, generating responses that conflict with facts, or failing to cover all necessary facts from retrieved passages.
  • Query Producer Limitations: The generation-based query producer, while powerful, can degenerate into a ranking model when search space pruning is applied, limiting its ability to generate novel queries.
  • Balancing Naturalness and Knowledge: The authors note that their current model struggles to perfectly balance the "naturalness" of a response with its "knowledgeable" content.
  • Future Work: The authors suggest further exploring how to improve query production, especially for generation-based models, and addressing the challenge of balancing naturalness and knowledgeability in responses. They also point to the need for further research into handling web content updates and improving the robustness of the system.

Summary updated

BibTeX
@article{wang2023search,
  author = {Ante Wang and Linfeng Song and Qi Liu and Haitao Mi and Longyue Wang and Zhaopeng Tu and Jinsong Su and Dong Yu},
  title = {{Search-Engine-augmented Dialogue Response Generation with Cheaply Supervised Query Production}},
  journal = {Artificial Intelligence},
  year = {2023},
  doi = {10.1016/j.artint.2023.103874},
}
Figure