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).
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.
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