Abstract
Generalized zero-shot intent detection (GZID) aims to recognize the labels of utterances from both seen and unseen intents by utilizing the knowledge learned from seen intents. Enhancing the generalization ability from seen intents to unseen intents is a key challenge in the GZID setting. Existing methods attempt to tackle this challenge by distinguishing unseen intents from seen intents or focusing on enhancing the model discriminability. However, the challenge is not solved substantially as they ignore to promote the representation learning ability of the model itself and neglect to strengthen the model adaptability to new tasks, resulting in overfitting on the seen intents. In this paper, we propose a pairwise prompt-based tuning model with parameter efficient fast adaptation which involves two training steps. In the first step, we leverage hybrid contrastive learning in discriminant space and masked language modeling to make predictions at both sentence and token levels, which can enhance the model discriminability and representation learning ability respectively. In the second step, we design a pipeline for generating and filtering unseen data by only providing unseen intent labels, and utilize parameter-efficient fine-tuning to quickly adapt to unseen intents. Experiments on four intent detection datasets demonstrate that our two-step training method has better comprehension and generalization capabilities.
Introduction
In conversational AI, "intents" represent the goals behind a user's utterance, such as book_hotel or check_balance. While standard models perform well on intents present in their training data, they often struggle with new, emerging topics. This challenge is addressed by Generalized Zero-Shot Intent Detection (GZID), where a model must distinguish between a mix of "seen" and "unseen" intents during inference.
The primary obstacle in GZID is "seen-class bias," where models overfit on training data and tend to misclassify new utterances into familiar categories. Current solutions often fail to balance discriminative power with the ability to adapt quickly to new tasks without extensive retraining.
Methodology
The proposed framework utilizes a two-step "Pairwise Prompt-Based Tuning" approach to enhance both representation learning and task adaptability.
Step 1: Base Model Training
The model treats intent detection as a binary matching task rather than a standard multi-class classification. User utterances are concatenated with natural language templates (e.g., "The user wants to book a hotel") to determine if they match.
- Hybrid Contrastive Learning (HCL): A hard-negative sampling strategy is employed to refine the model's discriminant space. By selecting semantically similar but incorrect intents, the model learns to identify fine-grained differences.
- Masked Language Modeling (MLM): A token-level loss is incorporated to predict masked words within utterance-intent pairs, deepening the model's understanding of the relationship between specific tokens and the overall intent.
Step 2: Parameter-Efficient Fast Adaptation
To address unseen intents, the framework generates synthetic data and adapts the model efficiently.
- Data Generation: GPT-3.5 generates synthetic utterances based on unseen intent descriptions. A SimCSE filter is then used to remove noisy or irrelevant samples.
- P-Tuning: Instead of full fine-tuning, the model uses P-tuning to learn "soft prompts" (continuous vector representations) via a small prompt encoder. This allows for rapid adaptation to new intents while keeping the base model frozen, preventing catastrophic forgetting.
Experiments and Results
The model was evaluated on four benchmarks: Atis, MultiWoZ, Clinc150, and Banking77.
The proposed method consistently outperformed state-of-the-art baselines like AGCR and LTA. As shown in the Atis results, the model achieved an overall F1 score of 85.54%, significantly higher than the best baseline of 81.23%. The most notable gains were in unseen intent accuracy; for instance, on Banking77, accuracy reached 62.82%, surpassing traditional methods that often fall below 50%.
Key Insights
- Pairwise Matching: Shifting to a "match/no-match" paradigm allows the model to leverage the semantic meaning of intent labels, improving generalization.
- MLM Regularization: Ablation studies indicate that the MLM loss is crucial for preventing over-reliance on sentence-level patterns, forcing the model to understand underlying logic.
- Efficiency: Combining LLM-generated data with Parameter-Efficient Fine-Tuning (PEFT) enables fast task adaptation with minimal computational overhead.
Conclusion
This two-step framework effectively mitigates seen-class bias in GZID. While the approach currently relies on manual templates and faces potential inference bottlenecks as intent spaces grow, it sets a new standard for robust and adaptable intent detection. Future work will explore automated template generation and scaling inference efficiency.
Summary updated