[Paper Review] Deep Unknown Intent Detection with Margin Loss
This paper proposes a two-stage deep learning method for unknown intent detection in dialogue systems, using BiLSTM with large margin cosine loss (LMCL) to learn discriminative intent features and local outlier factor (LOF) for novelty detection. The approach achieves consistent improvements over baselines, with a 16.2% macro F1-score gain on SNIPS under 50% known intent settings.
Identifying the unknown (novel) user intents that have never appeared in the training set is a challenging task in the dialogue system. In this paper, we present a two-stage method for detecting unknown intents. We use bidirectional long short-term memory (BiLSTM) network with the margin loss as the feature extractor. With margin loss, we can learn discriminative deep features by forcing the network to maximize inter-class variance and to minimize intra-class variance. Then, we feed the feature vectors to the density-based novelty detection algorithm, local outlier factor (LOF), to detect unknown intents. Experiments on two benchmark datasets show that our method can yield consistent improvements compared with the baseline methods.
Motivation & Objective
- Address the challenge of detecting unknown user intents not present in training data in dialogue systems.
- Overcome limitations of existing methods that rely on out-of-domain data or adversarial generation, which often fail in discrete text spaces.
- Leverage known intent labels to improve detection of unknown intents by modeling semantic compactness and separation.
- Improve feature representation for novelty detection by replacing standard softmax loss with margin loss to enhance inter-class separation and intra-class compactness.
- Develop a robust, end-to-end framework applicable to real-world dialogue datasets with varying intent distributions.
Proposed method
- Use a bidirectional LSTM (BiLSTM) as a feature extractor to encode utterances into dense vector representations.
- Replace the standard softmax loss with large margin cosine loss (LMCL) to maximize inter-class angular margin and minimize intra-class variance in the embedding space.
- Apply LMCL by optimizing the cosine similarity between feature vectors and class centers with a margin hyperparameter m=0.35 and scaling factor s=30.
- Feed the resulting discriminative features into the local outlier factor (LOF) algorithm for density-based novelty detection.
- Use macro F1-score as evaluation metric, with known intents selected via weighted random sampling to preserve class imbalance in training.
- Train the BiLSTM-LMCL model for 200 epochs with early stopping, using pre-trained GloVe word embeddings.
Experimental results
Research questions
- RQ1Can margin loss improve deep feature learning for unknown intent detection compared to standard softmax loss?
- RQ2How effective is the combination of BiLSTM with LMCL and LOF in detecting unknown intents across diverse dialogue datasets?
- RQ3Does the method generalize well under varying proportions of known intents (25%, 50%, 75%)?
- RQ4How does the method perform on datasets with high semantic similarity among known intents, such as ATIS?
- RQ5Can the proposed method outperform state-of-the-art open-world classification baselines like DOC and MSP?
Key findings
- The proposed method achieves a 16.2% improvement in macro F1-score over the DOC baseline on the SNIPS dataset when 50% of the classes are used as known intents.
- On the ATIS dataset, performance degrades significantly as the number of known intents increases, due to high semantic similarity among intents (e.g., flight vs. flight_no).
- The method outperforms LOF (Softmax), a variant using standard softmax loss, demonstrating the superiority of LMCL in learning compact and separable features.
- t-SNE visualization confirms that LMCL produces more intra-class compact and inter-class separated features compared to softmax loss.
- The method shows consistent gains across all known intent proportions (25%, 50%, 75%) on SNIPS, indicating robustness to varying training data composition.
- The approach is effective even when unknown intents are semantically close to known ones, due to enhanced feature discrimination from margin loss.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.