A Post-processing Method for Detecting Unknown Intent of Dialogue System via Pre-trained Deep Neural Network Classifier

Ting-En Lin, Hua Xu

Abstract

This paper introduces SMDN (SofterMax and Deep Novelty Detection), a flexible post-processing framework designed to help dialogue systems identify "unknown" user intents. By combining calibrated probability scores with density-based outlier detection in the feature space, the authors achieve state-of-the-art results in open-world classification without requiring any examples of unknown intents during the training phase. Evaluations across benchmark datasets like SNIPS, ATIS, and SwDA demonstrate significant improvements in detection accuracy and robustness compared to existing baselines.

Introduction: The Challenge of Open-World Intent Detection

Most modern intent classifiers operate under a "closed-world" assumption, presuming that every user input will fall into one of the pre-defined categories established during training. However, real-world users are unpredictable. When a system encounters an "unknown" intent—one it was never trained to recognize—a standard classifier will often confidently force it into the wrong category. This overconfidence leads to a poor user experience and system errors.

The primary challenge in addressing this is the lack of representative data for "unknowns." By definition, these are the inputs the system did not expect. While existing methods like Deep Open Classification (DOC) attempt to solve this using sigmoid layers and statistical thresholds, they often require specific model architectures or struggle with the inherent overconfidence of deep neural networks. There is a clear need for a flexible, architecture-agnostic solution that can identify novel inputs without retraining the core classifier.

Methodology: The SMDN Framework

The researchers propose a two-pronged post-processing approach called SMDN that operates on top of any pre-trained neural network classifier. The framework consists of three main components: probability calibration, novelty detection in the feature space, and joint prediction.

The SMDN architecture integrated with a BiLSTM classifier, showing the dual-path detection using SofterMax and LOF.

1. SofterMax (Probability Calibration)

Neural networks are notoriously overconfident in their predictions. To mitigate this, SMDN uses Temperature Scaling to "soften" the softmax output, creating a more realistic probability distribution. The system then calculates a per-class decision threshold based on the mean and standard deviation of the training set's scores. If an input fails to meet this tightened boundary, it is flagged as a potential unknown.

2. Deep Novelty Detection (LOF)

Instead of relying solely on the final output (logits), SMDN analyzes the feature representations—the hidden layer immediately preceding the output. The framework applies the Local Outlier Factor (LOF) algorithm here. LOF detects anomalies by comparing the local density of an input to the density of its neighbors in the feature space. If an input resides in a low-density region, it is likely an unknown intent.

3. Joint Prediction

Because probability scores and LOF scores exist on different scales, the authors employ Platt Scaling to transform both into a unified "novelty probability." This allows the two independent detection methods to vote together, resulting in a more robust final decision on whether an intent is known or unknown.

Experimental Setup and Datasets

The researchers evaluated SMDN on three benchmark datasets representing varying levels of complexity and noise:

  • SNIPS: A balanced personal voice assistant dataset with 7 intent types.
  • ATIS (Airline Travel Information System): A highly imbalanced dataset focused on flight reservations with 18 intent types.
  • SwDA (Switchboard Dialog Act Corpus): A multi-turn dialogue dataset with 42 types of dialogue acts, representing a significantly noisier and more challenging environment than single-turn datasets.

Key Insights and Results

The experimental results indicate that SMDN consistently outperforms the previous state-of-the-art (DOC) across all datasets. On the SNIPS dataset, SMDN improved the Macro F1-score for unknown intent detection by 5.1% to 7.3%.

Probability distribution comparison between Softmax and SofterMax, illustrating the reduction in overconfidence for known classes.

A critical insight from the study is that calibration is key. As shown in the comparison between standard Softmax and SofterMax, raw scores are often too high to be useful for out-of-distribution detection. By "softening" these scores, the decision boundaries for known classes become much more reliable. Furthermore, the study confirms that high-level semantic concepts captured in hidden layers are superior to final logits for spotting unknowns, as density in the feature space serves as a powerful proxy for familiarity.

Even on the highly imbalanced ATIS dataset, SMDN maintained superior performance, demonstrating that calibrated thresholds help prevent majority classes from overshadowing unknown detections. The method also proved effective in the multi-turn SwDA dataset, marking a successful attempt to detect unknown intents in complex dialogues without relying on hand-crafted features.

Conclusion and Future Directions

SMDN provides a powerful, "bolt-on" capability for existing intent classifiers, enabling them to handle open-world scenarios without retraining. While the method is robust, the authors noted that performance can dip as the number of known classes increases due to semantic overlap between the known and unknown spaces. Future work may involve utilizing more advanced pre-trained models like BERT to improve feature representation quality, potentially making novelty detection even more precise. Additionally, the logic behind SMDN could be extended to other domains, such as image classification tasks.

Summary updated

BibTeX
@article{lin2019post,
  author = {Ting-En Lin and Hua Xu},
  title = {{A Post-processing Method for Detecting Unknown Intent of Dialogue System via Pre-trained Deep Neural Network Classifier}},
  journal = {Knowledge-Based Systems},
  year = {2019},
  doi = {10.1016/j.knosys.2019.104979},
}
Figure