Unknown Intent Detection Using Gaussian Mixture Model with an Application to Zero-shot Intent Classification

Guangfeng Yan, Lu Fan, Qimai Li, Han Liu, Xiaotong Zhang, Xiao-Ming Wu, Albert Y. S. Lam

Researchers from The Hong Kong Polytechnic University and Fano Labs have introduced a novel approach to a persistent challenge in dialogue systems: handling user requests that fall outside the system's training data. By transitioning from standard classification techniques to a "semantic-enhanced" Gaussian Mixture Model (SEG), the authors provide a robust framework for detecting unknown intents and significantly enhancing zero-shot classification performance.

The Challenge of "Unknown" Intents

Most intent classifiers operate under a "closed-world" assumption, expecting every user input to fit into a predefined category seen during training. However, real-world user behavior is unpredictable. When a standard classifier encounters an "unknown" intent, it often assigns it to a known category with high confidence, leading to system errors and poor user experiences.

Detecting these outliers is inherently difficult because deep learning models using Softmax cross-entropy loss typically produce "long and narrow" feature distributions. While effective for separating known classes, these shapes poorly define the boundaries of "known space," making it difficult for anomaly detection algorithms to distinguish between variations of known intents and entirely new ones.

Methodology: The Semantic-Enhanced Gaussian Mixture Model (SEG)

The proposed SEG model learns to group user utterances into dense, "ball-like" clusters centered around the semantic meanings of class labels. The architecture follows three main stages:

  1. Feature Extraction: A Bi-LSTM with a self-attention mechanism converts user utterances into vector embeddings.
  2. The SEG Classifier: Unlike standard models with arbitrary cluster centers, SEG uses the embeddings of class labels or descriptions as the means of a Gaussian mixture distribution. A Large-Margin Cross-Entropy Loss forces utterance embeddings to cluster tightly around these semantic anchors.
  3. Outlier Detection: During inference, the model employs the Local Outlier Factor (LOF) algorithm. LOF assesses the local density of an embedding; if an utterance falls into a low-density region far from the established clusters, it is flagged as an unknown intent.
The SEG architecture for training and testing, illustrating the feature extraction and outlier detection process.

For Zero-Shot Intent Classification, SEG acts as a "gatekeeper." It first determines if an intent is "seen" or "unseen." If seen, it proceeds with standard classification; if unseen, the data is passed to a specialized zero-shot model (such as ReCapsNet) to predict the specific unseen category.

Experimental Setup and Datasets

The model was evaluated on three diverse task-oriented dialogue datasets:

  • SNIPS: An English dataset featuring 7 intent types (e.g., "PlayMusic").
  • ATIS: An English airline travel dataset with 18 intents, characterized by extreme class imbalance.
  • SMP-2018: A Chinese dialogue corpus with 30 intent types, representing a complex multi-class challenge.

Key Results and Insights

The core innovation lies in the geometric organization of the feature space. While Softmax creates "radiating" clusters that leave little room for new intents, Gaussian mixtures create compact "islands," making the "ocean" of unknown intents much easier to identify. By using labels as anchors, the model ensures the feature space is organized logically from the start.

Performance comparison (Macro F1) of SEG against baselines across different datasets and percentages of known intents.

Key findings include:

  • Superior Outlier Detection: SEG consistently outperformed baselines like Maximum Softmax Probability (MSP) and Deep Open Classification (DOC), especially on the complex SMP-2018 dataset.
  • Robustness to Imbalance: On the ATIS dataset, where one class dominates 96% of the data, SEG maintained high Macro F1 scores where traditional supervised methods struggled.
  • Zero-Shot Performance Boost: Integrating SEG with ReCapsNet led to a massive performance leap. On the SNIPS dataset, the overall Macro F1 score doubled from 0.3826 to 0.7674, demonstrating the model's practical utility in generalized zero-shot learning (GZSL).

Conclusion and Future Directions

The SEG model demonstrates that a high-quality "unknown intent identifier" can serve as a powerful binary switch, simplifying subsequent classification tasks. While the model is highly effective at identifying unknown intents, future work could focus on refining the identification of specific new intents without prior examples and applying this Gaussian mixture approach to broader NLP tasks.

Summary updated

BibTeX
@inproceedings{yan2020unknown,
  author = {Guangfeng Yan and Lu Fan and Qimai Li and Han Liu and Xiaotong Zhang and Xiao-Ming Wu and Albert Y. S. Lam},
  title = {{Unknown Intent Detection Using Gaussian Mixture Model with an Application to Zero-shot Intent Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.99},
}
Figure