TL;DR
This paper proposes a generative approach to intent classification in task-oriented dialogue systems by replacing rigid, terse labels with descriptive "canonical forms" (e.g., changing transfer_money to "transfer money to bank account"). By using p-tuning on frozen Large Language Models (LLMs), the authors demonstrate that this method achieves superior zero-shot and few-shot generalization to new domains while being significantly more sample-efficient than traditional BERT-style fine-tuning.
What Problem Does This Paper Address?
Building production-quality task-oriented dialogue (ToD) systems is notoriously difficult and expensive. Developers typically have to define a fixed schema of intents (actions) and slots (parameters) and then collect massive amounts of annotated data to train a classifier.
Traditional NLU (Natural Language Understanding) models, like fine-tuned BERT, struggle with domain adaptation. If you build a system for flight bookings and want to expand to bus bookings, a standard classifier usually fails because it treats intent labels as discrete, opaque IDs. It cannot "understand" that "booking a flight" is semantically similar to "booking a bus." This forces developers to start the data collection process over for every new domain.
Methods
The authors introduce two key shifts in how we handle intent classification:
- Canonical Forms as Labels: Instead of classifying an utterance into a discrete category, the model is asked to generate a descriptive natural language phrase. For example, the intent
check_balanceis rewritten as "check balance in bank account." This allows the model to leverage the semantic knowledge it gained during pre-training. - P-Tuning for Domain Adaptation: Rather than fine-tuning the entire LLM (which is computationally expensive and prone to forgetting), the authors use p-tuning. They keep the LLM (Megatron-GPT, ranging from 345M to 5B parameters) frozen and only train a small prompt encoder (a 14M parameter LSTM). This encoder learns "soft tokens"—mathematical vectors that steer the model toward the specific task of intent generation.
To evaluate a generative model as a classifier, the authors use a nearest-neighbor approach. They take the model's generated text and find the closest predefined canonical form label using Fasttext or Sentence Transformer embeddings.
Datasets
The study utilizes two major benchmarks in the conversational AI field:
- Schema Guided Dialogue (SGD): A massive dataset covering 16 domains (e.g., flights, hotels, weather). The authors used this to test adaptation between "adjacent" domains (e.g., training on flights and testing on buses).
- Virtual Assistant Benchmark: A dataset with 21 domains and 64 intents. This was used for a more challenging "distant" domain adaptation test (e.g., training on general tasks and testing on IOT device control).
Key Insights and Ideas
- Verbosity is a Virtue: Terse labels are "rigid." Descriptive labels allow the model to exploit its internal understanding of language. If a model knows what "booking" and "flight" mean, it can generalize to "booking a bus" much more easily.
- The Compositionality Advantage: By using similar structures for canonical forms across domains (e.g., "book a [service]"), the model learns a compositional logic that facilitates zero-shot transfer.
- Sensitivity to Phrasing: The authors found that the choice of words in the canonical form matters. If a label contains a "spurious correlation" (like the word "ticket" appearing in both flight and bus intents), a small model might get confused. However, they found that adding just a few training samples (few-shot) effectively "cures" this sensitivity.
Key Results
- In-Domain Excellence: On standard benchmarks where training and testing data come from the same distribution, the p-tuned Megatron-GPT (5B) outperformed BERT-Large, reaching up to 95% accuracy on SGD.
- Zero-Shot Power: On the SGD dataset, the model showed impressive zero-shot capabilities when moving to adjacent domains, achieving nearly 79% accuracy without seeing a single example from the new domain.
- Extreme Sample Efficiency: The p-tuned LLM is far more efficient than BERT. With only 30 samples per intent, the Megatron-GPT model achieved 84-91% accuracy, significantly outstripping BERT-Large trained on the same small subset.
Limitations and Future Work
- Domain Distance: While the model excels at adapting to "adjacent" domains (Flight $\rightarrow$ Bus), it still struggles with zero-shot performance on completely unrelated domains (e.g., moving from weather queries to IOT device commands). In these cases, the model's performance was "close to random" without few-shot examples.
- Manual Effort: Currently, canonical forms are manually authored. The authors suggest that future work should explore methods to automate the creation of these forms to further reduce the burden on conversation designers.
- Hallucination: As with all generative models, there is a risk of the model generating "hallucinated" intents that don't exist in the schema, though the nearest-neighbor evaluation method helps mitigate this for practical applications.
Summary updated