Multi-Document Grounded Multi-Turn Synthetic Dialog Generation

Young-Suk Lee, R. Chulaka Gunasekara, Danish Contractor, Ramón Fernandez Astudillo, Radu FlorianarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have revolutionized natural language processing, but their effectiveness in specialized tasks like Retrieval-Augmented Generation (RAG) depends heavily on the availability of high-quality, multi-turn dialog data. Traditional human-annotated datasets are not only prohibitively expensive and slow to produce, but they often fail to capture the inherent complexity and "noise" of real-world RAG systems, where retrieved passages may be irrelevant or contradictory.

IBM Research AI has addressed this gap by developing a novel pipeline for generating high-quality synthetic dialogs grounded in multiple documents. This approach moves beyond simple question-answer pairs to create nuanced, multi-turn conversations that include follow-up questions, clarifications, and corrections, effectively mimicking the dynamics of a production RAG system.

The Synthetic Generation Pipeline

The core of this research is a sophisticated generation pipeline that integrates structured taxonomies with advanced prompting techniques and automated quality control.

Overview of the multi-turn synthetic dialog generation pipeline.

Key innovations in the pipeline include:

  • Taxonomy-Driven Dialog Flow: To ensure diversity, the system uses a specific question taxonomy. Initial turns are categorized as Direct, Comparative, Aggregate, or Unanswerable. Subsequent turns are guided to function as Follow-ups, Clarifications, or Corrections.
  • Chain-of-Thought (CoT) Prompting: Both user queries and agent responses are generated using CoT. This forces the model to "think" through the evidence in the source documents before formulating a response, ensuring high faithfulness to the grounding text.
  • Retriever-in-the-Loop: Unlike static generation methods, this pipeline uses an actual retriever (ELSER) to update the grounding documents after every turn. This introduces realistic retrieval noise, forcing the model to learn how to navigate potentially irrelevant passages.
  • LLM-as-a-Judge: To maintain high data quality, Mixtral-8x7B-Instruct acts as a filter, reviewing every generated turn and discarding dialogs where the answer is incorrect or unsupported by the context.

Experimental Setup

The researchers utilized grounding documents from four major benchmarks: CoQA, MultiDoc2Dial (MD2D), QuAC, and OR-QuAC. They fine-tuned two open-source models—Merlinite-7B and Llama-2-13B-Chat—on the resulting synthetic data. These models were then evaluated against the original human-annotated test sets to determine if synthetic data could effectively replace or augment human effort.

Performance and Human Evaluation

The results demonstrate that synthetic data can not only match but significantly surpass human-annotated data in training effective conversational agents. Models fine-tuned on the proposed synthetic data consistently outperformed those trained on human data across all four benchmarks on metrics such as F1, RougeL, and Bert-Recall.

Human preference comparison between models trained on synthetic data vs. human-annotated benchmarks.

One of the most striking findings was the human preference for synthetic-trained models. In the CoQA benchmark, human evaluators preferred the output of the model trained on synthetic data 66% of the time, compared to a mere 7.4% for the model trained on the original human-annotated "gold-standard" data. This suggests that the synthetic pipeline captures conversational nuances and grounding requirements more effectively than traditional annotation methods.

Furthermore, the synthetic data itself exhibited high quality across several dimensions, with human-verified scores for plausibility (96.7%), diversity (95.6%), and coherency (96.7%). Even before the filtering stage, the pipeline achieved an automated answer correctness rate of 73.1%.

Limitations and Future Directions

While the results are promising, the researchers identified several areas for future work:

  • Teacher Model Dependency: The quality of the synthetic data is currently tied to the capabilities of the teacher model (Mixtral-8x7B). Biases or limitations in the teacher may be distilled into the smaller student models.
  • The "Unanswerable" Challenge: Correctly identifying when a query cannot be answered remains difficult in multi-document settings. Retrievers naturally surface the "most relevant" text, which can act as a distractor, making it hard for models to confidently state they lack sufficient information.
  • Computational Efficiency: While cheaper than human annotation, running high-parameter models for large-scale data generation remains computationally intensive.

In conclusion, this research provides a scalable and effective framework for generating complex, multi-turn dialog data, proving that high-quality synthetic data is a viable—and often superior—alternative to human annotation for training robust RAG systems.

Summary updated

BibTeX
@misc{lee2024multi,
  author = {Young-Suk Lee and R. Chulaka Gunasekara and Danish Contractor and Ramón Fernandez Astudillo and Radu Florian},
  title = {{Multi-Document Grounded Multi-Turn Synthetic Dialog Generation}},
  year = {2024},
  eprint = {2409.11500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.11500},
}
Figure