Controllable Dialogue Simulation with In-Context Learning

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

Abstract

Building dialogue systems requires a large corpus of annotated dialogues. Such datasets are usually created via crowdsourcing, which is expensive and time-consuming. In this paper, we propose DIALOGIC, a novel dialogue simulation method based on large language model (LLM) in-context learning to automate dataset creation. Seeded with a few annotated dialogues, DIALOGIC automatically selects in-context examples for demonstration and prompts GPT-3 to generate new dialogues and annotations in a controllable way. Our method can rapidly expand a small set of dialogue data with minimum or zero human involvement and parameter update, making it significantly more cost-efficient than traditional crowdsourcing. Experimental results on the MultiWOZ dataset demonstrate that training a model on DIALOGIC-simulated dialogues leads to superior performance compared to using the same amount of human-generated dialogues under challenging low-resource settings. Human evaluation also confirms that the simulated dialogues possess near-human fluency and high annotation accuracy.

Introduction

Task-Oriented Dialogue (TOD) systems, designed to help users achieve specific goals like booking flights or hotels, are notoriously data-hungry. Traditionally, the industry relies on the "Wizard-of-Oz" (WoZ) framework, where two humans interact—one acting as the user and the other as the system—while manually labeling intents and slots. This process is slow, expensive, and difficult to scale.

While automated user simulators exist, they often present a "chicken-and-egg" problem: building a high-quality simulator typically requires a functional dialogue system and significant amounts of annotated data to begin with. DIALOGIC addresses this bottleneck by leveraging the in-context learning capabilities of Large Language Models (LLMs) to bootstrap the data creation process from a tiny initial seed.

The DIALOGIC Framework

DIALOGIC turns GPT-3 into a dual-agent simulator through a four-stage pipeline designed to ensure diversity and accuracy:

  1. Goal Generation: Rather than replicating existing dialogues, DIALOGIC uses a predefined ontology (domains and slots) to synthesize new, diverse user goals. This ensures the generated data covers a wide range of potential user requests.
  2. In-Context Example Selection: To guide the LLM, the system employs a similarity-based retriever. It identifies seed dialogues from the small available set that most closely match the structure of the new goal, providing the LLM with a relevant "blueprint" for the interaction.
  3. Controllable Generation: GPT-3 is prompted to generate the dialogue turn-by-turn. Crucially, it generates not just the text, but also the hidden "belief states" (user intentions) and "dialogue acts" (system actions), ensuring the data is fully annotated upon creation.
  4. Automatic Revision: To mitigate LLM hallucinations, DIALOGIC includes a sanity-check phase. An auxiliary model trained on the seed data identifies instances of "de-generation" (missing requirements) or "over-generation" (unrequested additions), ensuring the final annotations strictly match the dialogue text.

Experimental Results

The researchers evaluated DIALOGIC using MultiWOZ 2.3, a complex multi-domain benchmark. They focused on low-resource scenarios, using as little as 1% (85 dialogues), 5%, and 10% of the original training set as seeds.

Performance in Low-Resource Settings

The results were striking: in the 1% seed setting, models trained on DIALOGIC-generated data outperformed those trained on the same volume of human-generated data. Across multiple TOD architectures (SimpleTOD, MinTL, and PPTOD), DIALOGIC led to an average 22.6% improvement in the "Combined Score" (a metric balancing task success and language fluency).

Quality and Cost

Human evaluators rated the synthetic dialogues as having 99% grammatical correctness, slightly exceeding the quality of the original human-crowdsourced MultiWOZ dataset (96.3%). Furthermore, the cost-efficiency is substantial: generating a single dialogue via DIALOGIC costs approximately $0.52, a fraction of the cost and time required for a professional crowdsourcing campaign.

Key Insights

  • LLMs as Zero-Shot Simulators: GPT-3 can mimic complex multi-turn logic without fine-tuning. Its ability to follow patterns from just two or three in-context examples allows it to function as an effective dialogue agent out of the box.
  • Complexity and Diversity: DIALOGIC-generated data often features more complex multi-domain "flows" than human data. By combining goals from different dialogues, the system creates challenging training samples that cover the "long tail" of user behavior, leading to more robust models.

Limitations and Future Work

Despite its success, DIALOGIC faces challenges in system consistency. While user-side generation was highly reliable, the system-side responses followed the intended dialogue acts with 73.7% accuracy, compared to 94.1% in human data. GPT-3 occasionally struggled with strict delexicalized formats (e.g., using specific values instead of placeholders like [value_price]).

Future research may explore "human-in-the-loop" configurations, where humans act as high-level editors for synthetic data. This hybrid approach could combine the rapid scalability of LLMs with the absolute reliability of human verification.

Conclusion

DIALOGIC demonstrates that LLM-based simulation is a viable, high-quality alternative to traditional crowdsourcing for TOD data collection. By achieving superior performance with minimal seed data, it paves the way for more rapid development of specialized dialogue systems in domains where data is scarce or expensive to obtain.

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