Introduction
Intent detection is a cornerstone of modern task-oriented dialogue systems, enabling virtual assistants to map user utterances to specific actions like "booking a flight" or "checking a balance." However, scaling these systems to new domains is often hindered by a lack of labeled training data. While Large Language Models (LLMs) offer a potential solution through synthetic data generation, the resulting utterances often suffer from a "synthetic gap"—they are frequently too verbose, repetitive, and lack the natural variation of human speech.
The Generate then Refine Framework
To bridge this gap, this research proposes a two-stage "Generate then Refine" pipeline designed to produce high-quality, human-like synthetic data for zero-shot intent detection.
Stage 1: Zero-shot Generation
In the first stage, an off-the-shelf LLM (such as Llama-3 or Zephyr) is prompted to generate a set of initial utterances based only on an intent label and its context. For example, given the intent "plug type" in a "travel" context, the LLM might generate several candidate sentences. While these are semantically correct, they often contain robotic prefixes or unnecessary explanations.
Stage 2: The Refiner
The core innovation is the introduction of a specialized "Refiner" model. The authors fine-tune a smaller sequence-to-sequence model (Flan-T5-large) to act as an expert editor.
- Training: The Refiner is trained on "seen" domains where both human-authored and LLM-generated utterances are available. It learns to transform the "stiff" LLM output into a more natural, concise human style.
- Cross-Domain Generalization: Crucially, the Refiner learns stylistic transformations that generalize across domains. A Refiner trained on banking data can effectively polish synthetic utterances for the travel or utility domains.
- Diversity through Batching: To prevent repetitive outputs, the Refiner uses a "7-to-1" setting, processing a batch of generated utterances simultaneously to ensure the final refined output is distinct and varied.
Experimental Setup and Datasets
The framework was evaluated on two benchmark datasets:
- CLINC150: 150 intents across 10 diverse domains.
- SGD (Schema-Guided Dialogue): 46 intents across 20 domains, featuring complex and varied user interactions.
The datasets were partitioned into "seen" domains for Refiner training and "unseen" domains for zero-shot evaluation of the final intent classifier.
Results and Analysis
The "Generate then Refine" approach demonstrates significant improvements over standard zero-shot baselines.
Accuracy Gains
As shown in the results table, the Refiner (Llama3) achieved a top accuracy of 76.9% on CLINC150, a notable improvement over the 73.8% achieved by raw Llama-3 data (ZeroGen) and 71.3% from ChatGPT. Similar gains were observed on the more challenging SGD dataset, where the Refiner reached 72.4% accuracy.
Enhancing Diversity
Beyond accuracy, the Refiner significantly improved the lexical diversity of the training data. Using the "Distinct-n" metric, the refined data achieved scores (e.g., Dist-1 of 0.129 on SGD) that closely mirror or even surpass the diversity of real human data (0.125). In contrast, raw LLM outputs were often repetitive and lacked this natural variety.
Qualitative Improvements
Manual analysis revealed that the Refiner effectively "de-noises" the data. It removes common LLM artifacts like "User:" prefixes and strips away verbose explanations, resulting in punchy, realistic queries that better prepare the intent classifier for real-world deployment.
Conclusion
The "Generate then Refine" framework provides a robust solution for zero-shot intent detection by leveraging the generative power of LLMs and the stylistic precision of a specialized Refiner. By narrowing the "synthetic gap," this approach allows developers to bootstrap high-performing dialogue systems for new domains without the need for costly human-labeled data.
Summary updated