Controllable Dialogue Simulation with In-Context Learning

Zekun Li, Wenhu Chen, Shiyang Li, Hong Wang, Jing Qian +1 more
10/9/2022
cs.CLcs.AI

Official code: Leezekun/dialogic (33 stars, Python, last commit 2023-02-22).

Abstract

Building dialogue systems requires a large corpus of annotated dialogues. Such datasets are usually created via crowdsourcing, which is expensive and time-consuming.

Show full abstract

In this paper, we propose \textsc{Dialogic}, a novel dialogue simulation method based on large language model in-context learning to automate dataset creation. Seeded with a few annotated dialogues, \textsc{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 \textit{human involvement} and \textit{parameter update} and is thus much more cost-efficient and time-saving than crowdsourcing. Experimental results on the MultiWOZ dataset demonstrate that training a model on the simulated dialogues leads to even better performance than using the same amount of human-generated dialogues under the challenging low-resource settings, with as few as 85 dialogues as a seed. When enough data is available, our method can still serve as an effective data augmentation method. Human evaluation results also show that our simulated dialogues have near-human fluency and annotation accuracy. The code and data are available at \textbf{\url{https://github.com/Leezekun/dialogic}}.

View on arXivView PDF

Code Implementations(1)

Leezekun/dialogicOfficial100%

[EMNLP 2022] Code and data for "Controllable Dialogue Simulation with In-Context Learning"

330Python, ShellAug 29, 20223 years ago

Similar Papers

Cite this paper

@article{li2022controllable,
  title  = {Controllable Dialogue Simulation with In-Context Learning},
  author = {Zekun Li and Wenhu Chen and Shiyang Li and Hong Wang and Jing Qian and Xifeng Yan},
  year   = {2022},
  eprint = {2210.04185},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04185}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.04185.svg)](https://codeofpaper.com/paper/2210.04185)

Discussion