Controllable Dialogue Simulation with In-context Learning

Zekun Li, Wenhu Chen, Shiyang Li, Hong Wang, Jing Qian, Xifeng Yan

Abstract

DIALOGIC is a novel framework that leverages the in-context learning capabilities of Large Language Models (LLMs) like GPT-3 to automate the creation of high-quality, annotated task-oriented dialogue (TOD) datasets. By utilizing a small set of seed dialogues, DIALOGIC generates synthetic data that significantly improves model performance in low-resource settings while reducing costs to a fraction of traditional crowdsourcing methods.

Introduction

Building Task-Oriented Dialogue (TOD) systems—the technology powering digital assistants for tasks like booking flights or reserving tables—is notoriously data-hungry. Traditionally, researchers rely on "Wizard-of-Oz" crowdsourcing, where humans act as both the user and the system. This process is expensive, slow, and difficult to scale.

While user simulators exist to mitigate these issues, they present a "chicken-and-egg" problem: a high-quality simulator often requires a working dialogue system to build, yet the simulator is needed to train the system in the first place. Furthermore, generating entire dialogues with complex, multi-turn annotations, such as belief states and system acts, remains a significant technical challenge for automated methods.

Methods

The DIALOGIC framework treats dialogue simulation as an in-context learning task. The pipeline consists of four main stages designed to ensure diversity and accuracy in the generated data:

  1. Goal Generation: The system creates a "user goal" (e.g., "Book a cheap hotel in the center for 3 people") based on a provided ontology. A "Combination" strategy, which merges goals from different seed dialogues, was found to produce the most diverse results.
  2. In-Context Example Selection: Rather than using random examples, DIALOGIC employs a retrieval-based approach to select seed dialogues with the most similar domain and slot overlaps to the target goal using Jaccard similarity.
  3. Controllable Prompting: GPT-3 is prompted to play both the user and the system. The prompt includes the goal, selected examples, and a specific format that interleaves natural language utterances with structured annotations.
  4. Automatic Revision: To mitigate LLM hallucinations, a dual-check system is implemented. An auxiliary TOD model detects if the LLM omitted required slots, while a rule-based filter removes slots that the LLM claimed to mention but are absent from the text.
The DIALOGIC pipeline: from ontology-based goal generation to GPT-3 prompting and automatic revision.

Datasets and Experimental Setup

The primary benchmark used is MultiWOZ 2.3, a cleaned version of the multi-domain Wizard-of-Oz dataset. The authors specifically evaluated DIALOGIC in "low-resource" settings, using only 1%, 5%, and 10% of the original training data as "seeds" to generate the remainder of the corpus.

Key Insights

  • Synthetic Data Outperforms Human Data in Cold Starts: In the 1% setting (only 85 seed dialogues), models trained on DIALOGIC-simulated data outperformed those trained on the same volume of human-generated data. This suggests the simulator can systematically explore logic flows and slot combinations more effectively than a small human pool.
  • Diversity via Combination: Simple value substitution (swapping names/dates) performed poorly as the LLM tended to replicate original conversation structures. The "Combination" method forced the LLM to synthesize new interactions, leading to better generalization.
  • Hybrid Verification: Even a model trained on very few dialogues can serve as an effective safety net for catching LLM errors. Using a massive LLM for creativity and a specialized model for verification is a powerful pattern for reliable data synthesis.

Key Results

DIALOGIC demonstrated significant performance gains across multiple baseline models, including SimpleTOD, MinTL-T5, and PPTOD. In the 1% resource setting, adding DIALOGIC-generated data resulted in an average 22.6% improvement in the Combined Score (a metric aggregating Inform, Success, and BLEU scores).

Performance comparison across different seed data sizes and models, showing significant improvements with DIALOGIC (Sim.) data.

Beyond performance, the framework is highly efficient. Generating a dialogue with DIALOGIC costs approximately $0.52, compared to the high costs of large-scale crowdsourcing. Furthermore, a large-scale dataset can be simulated in hours rather than the months required for human collection.

Limitations and Future Work

Despite its success, DIALOGIC has limitations. Approximately 6.5% of belief states and 11% of dialogue acts contained errors post-revision. Additionally, long dialogues can hit LLM context window constraints and increase API costs. Future work may explore human-in-the-loop collaboration, where humans review revised annotations to ensure perfect accuracy with minimal manual effort.

Summary updated

BibTeX
@inproceedings{li2022controllable,
  author = {Zekun Li and Wenhu Chen and Shiyang Li and Hong Wang and Jing Qian and Xifeng Yan},
  title = {{Controllable Dialogue Simulation with In-context Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=uOJibA-XvZs},
}
Figure