Generate then Refine: Data Augmentation for Zero-shot Intent Detection

I-Fan Lin, Faegheh Hasibi, Suzan Verberne

Introduction

In Task-Oriented Dialogue (TOD) systems, intent detection is the fundamental component that identifies user goals, such as "booking a flight" or "checking a balance." However, developing these systems for new domains often faces a "cold start" problem: developers may have a list of intent labels but lack the real-world user utterances needed to train a classifier.

A recent study presented at EMNLP 2024 by researchers from Leiden and Radboud Universities proposes a two-stage framework, Generate then Refine, to address this data scarcity. The approach leverages Large Language Models (LLMs) to generate initial training data, which is then polished by a specialized "Refiner" model to better reflect human speech patterns.

Methodology: The Generate then Refine Pipeline

The proposed framework consists of a two-stage pipeline designed to bridge the gap between synthetic LLM outputs and natural human language.

  1. Zero-shot Generation: An open-source LLM (e.g., Zephyr-7B or Llama3-8B) generates initial utterances based on a prompt containing the intent label and domain context.
  2. The Refiner: The core innovation is a smaller sequence-to-sequence model (Flan-T5-large, ~783M parameters) fine-tuned to act as a "polisher."

The Refiner is trained on "seen" domains where both human-labeled data and LLM-generated data are available. It learns to transform structured, often repetitive LLM outputs into more natural, concise expressions. During inference on "unseen" domains, the Refiner applies these learned "humanization" patterns to the raw LLM output.

The Generate then Refine pipeline: LLM-generated utterances are polished by a Refiner model before training the intent classifier.

Finally, a standard intent classifier (DistilBERT) is trained on this refined synthetic data and evaluated on real human utterances.

Key Insights

  • De-noising Synthetic Bias: LLMs often produce "robotic" prefixes (e.g., "User: I want to...") or include the intent label directly in the sentence. The Refiner effectively "de-noises" these outputs, making them more representative of actual user behavior.
  • Enhancing Lexical Diversity: Synthetic data often suffers from "lexical collapse," where a few sentence structures are repeated. The Refiner significantly increases lexical diversity (measured by distinct n-grams), sometimes even exceeding the diversity of human-written test sets.
  • Cross-Domain Generalization: The Refiner learns general linguistic transformations that transfer effectively to entirely new domains not seen during its training.

Experimental Results

The "Generate then Refine" approach was evaluated on two major benchmarks: CLINC150 and the Schema-Guided Dialogue (SGD) dataset. It consistently outperformed baselines such as ZeroGen (raw LLM output) and SuperGen (confidence-based filtering).

Intent detection accuracy across different generation and refinement strategies on SGD and Clinc150 datasets.

As shown in the results, using Llama-3 with the Refiner achieved an accuracy of 76.9% on CLINC150, a notable improvement over the 73.8% achieved by raw Llama-3 generation. Furthermore, the Refiner significantly improved lexical diversity on the SGD dataset compared to raw generation. The authors also demonstrated that using Low-Rank Adaptation (LoRA) for the Refiner yielded results nearly identical to full fine-tuning, providing a more compute-efficient implementation path.

Conclusion and Future Work

The "Generate then Refine" framework demonstrates that a relatively small, specialized model can significantly improve the quality of synthetic training data generated by much larger LLMs. While a performance gap remains between synthetic and human-labeled training data (~77% vs. ~95% accuracy on CLINC150), this method provides a robust path forward for zero-shot intent detection. Future research may focus on closing this gap through advanced filtering or more sophisticated sampling techniques during the refinement stage.

Summary updated

BibTeX
@inproceedings{lin2024generate,
  author = {I-Fan Lin and Faegheh Hasibi and Suzan Verberne},
  title = {{Generate then Refine: Data Augmentation for Zero-shot Intent Detection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.768},
}
Figure