Abstract
Dialogue systems often encounter user intents not seen during training, a challenge known as Open World Classification. Traditional Softmax-based classifiers frequently overfit to known classes, leading to overconfident misclassifications of unknown inputs. This paper proposes a two-stage framework that utilizes Large Margin Cosine Loss (LMCL) to learn highly discriminative features and the Local Outlier Factor (LOF) algorithm for robust unknown intent detection. Experimental results on SNIPS and ATIS datasets demonstrate that this approach significantly outperforms existing state-of-the-art methods.
Introduction
In real-world applications like virtual assistants, identifying "unknown" intents is crucial for maintaining system reliability. Standard intent classifiers using Softmax loss focus on minimizing classification error among known categories, often resulting in overlapping feature spaces. Consequently, unknown intents falling into these regions are incorrectly assigned to known classes. This research addresses the problem by forcing the model to learn compact clusters for known intents, thereby leaving "empty space" in the feature manifold for outliers.
Methodology
The proposed framework consists of two main stages: feature extraction and outlier detection.
Feature Extraction with LMCL
The model employs a Bidirectional LSTM (BiLSTM) to generate sentence-level representations from word embeddings. Instead of standard Softmax, the authors implement Large Margin Cosine Loss (LMCL). LMCL normalizes both features and class weights onto a hypersphere and introduces a margin $m$. This constraint forces the model to maximize intra-class compactness and inter-class discrepancy, creating dense, isolated clusters for known intents.
Outlier Detection with LOF
Following feature extraction, the Local Outlier Factor (LOF) algorithm is applied. LOF is a density-based method that identifies anomalies by comparing the local density of a sample with that of its neighbors. Samples with significantly lower density than their surroundings are flagged as unknown intents.
Experiments and Results
The framework was evaluated on the SNIPS and ATIS datasets. To simulate open-world scenarios, models were trained on varying percentages (25%, 50%, 75%) of known intents, with the remainder treated as unknowns during testing.
Performance Comparison
The proposed LOF (LMCL) method consistently outperformed baselines such as Maximum Softmax Probability (MSP) and Deep Open Classification (DOC). On the SNIPS dataset with 50% known intents, the method achieved a Macro F1-score of 84.1, compared to 67.9 for DOC.
Key Insights
- Discriminative Power: Visualization via t-SNE confirms that LMCL produces much tighter clusters than Softmax, which is essential for density-based outlier detection. Softmax features tend to form messy clouds, while LMCL features form distinct, tight "islands."
- Domain Sensitivity: Performance is generally higher on the balanced and diverse SNIPS dataset compared to the domain-specific and imbalanced ATIS dataset. Semantic similarity between known and unknown intents (e.g., flight-related queries in ATIS) remains a significant challenge.
Conclusion
By combining Large Margin Cosine Loss with density-based outlier detection, this paper provides a robust solution for the Open World Classification problem in dialogue systems. The shift from simple classification to discriminative feature learning proves highly effective for identifying novel user intents. Future work includes exploring end-to-end architectures to further refine the detection of semantically similar unknown intents.
Summary updated