Bootstrapping LLM-based Task-Oriented Dialogue Agents via Self-Talk

Dennis Ulmer, Elman Mansimov, Kaixiang Lin, Lijia Sun, Xibin Gao, Yi Zhang

Introduction

Building Task-Oriented Dialogue (TOD) agents typically requires extensive human-labeled datasets to ensure models follow specific multi-step workflows. However, human data collection is often prohibitively expensive or unavailable for specialized domains. This paper introduces a "self-talk" framework where two Large Language Models (LLMs)—a client and an agent—interact to generate high-quality synthetic training data. By employing structured prompting and automated filtering, the authors demonstrate that smaller models can be effectively fine-tuned to handle complex tasks without human intervention.

Methodology: The Self-Talk Framework

The proposed pipeline consists of three primary stages: structured synthetic data generation, automated quality filtering, and supervised fine-tuning (SFT).

The self-talk bootstrapping framework: Client and Agent LLMs generate synthetic data, which is filtered and used for fine-tuning.

Structured Prompting

To maintain coherence during the self-talk phase, the authors utilize a graph-based approach. Text-based workflows are parsed into directed graphs where nodes represent subgoals or questions. A "Workflow Manager" LLM analyzes the client's responses and maps them to the appropriate next node in the graph. This mechanism ensures the agent stays on script and avoids common pitfalls like "hallucinating" dialogue states.

Structured prompting using a workflow graph to guide the conversation and prevent hallucinations.

Automated Filtering and Fine-Tuning

Not all synthetic interactions are suitable for training. The authors developed metrics to assess "Subgoal Completion" (progress through the workflow graph) and "Character Consistency." They found that filtering for the top 5% of dialogues based on completion depth significantly improved performance. The final agent is trained using LoRA (Low-Rank Adaptation) on this high-quality subset, allowing a 7B parameter model to inherit the capabilities of the more complex self-talk setup.

Experimental Setup and Datasets

The study leveraged the LIGHT dataset for diverse personas and generated 15 custom workflows using OpenLlama-13B. A corpus of approximately 9,000 synthetic dialogues was generated. To ensure a challenging training environment, the authors used an asymmetric model setup: a larger MPT-30B model acted as the client, while a smaller MPT-7B model served as the agent.

Key Results and Insights

  • The Importance of Filtering: Training on unfiltered synthetic data can degrade performance as the model learns the errors and verbosity of the generator.
  • Quality Proxies: Subgoal completion depth proved to be a robust proxy for dialogue quality, showing a strong correlation (Kendall’s $\tau = 0.67$) with human annotations.
  • The "Rambling" Penalty: A negative correlation was observed between utterance length and quality. In TOD contexts, concise responses are generally more effective and indicate better task alignment.
  • Human Validation: Human evaluators rated agents trained on the "top 5%" filtered data significantly higher in helpfulness and consistency compared to those trained on random data or baseline models.

Conclusion and Future Work

This research demonstrates that self-talk is a viable strategy for bootstrapping TOD agents. While the current focus is on fixed workflows, future work could explore generalizing this approach to open-ended tasks. Additionally, the authors suggest that "failed" dialogues could serve as negative signals in reinforcement learning frameworks (like DPO) to further refine agent behavior.

Summary updated

BibTeX
@inproceedings{ulmer2024bootstrapping,
  author = {Dennis Ulmer and Elman Mansimov and Kaixiang Lin and Lijia Sun and Xibin Gao and Yi Zhang},
  title = {{Bootstrapping LLM-based Task-Oriented Dialogue Agents via Self-Talk}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.566},
}
Figure