Learning Discriminative Representations and Decision Boundaries for Open Intent Detection

Hanlei Zhang, Hua Xu, Shaojie Zhao, Qianrui Zhou · DOI

Abstract

Open intent detection is a significant problem in natural language understanding, which aims to identify the unseen open intent while ensuring known intent identification performance. However, current methods face two major challenges. Firstly, they struggle to learn friendly representations to detect the open intent with prior knowledge of only known intents. Secondly, there is a lack of an effective approach to obtaining specific and compact decision boundaries for known intents. To address these issues, this paper presents an original framework called DA-ADB, which successively learns distance-aware intent representations and adaptive decision boundaries for open intent detection. Specifically, we first leverage distance information to enhance the distinguishing capability of the intent representations. Then, we design a novel loss function to obtain appropriate decision boundaries by balancing both empirical and open space risks. Extensive experiments demonstrate the effectiveness of the proposed distance-aware and boundary learning strategies. Compared to state-of-the-art methods, our framework achieves substantial improvements on three benchmark datasets. Furthermore, it yields robust performance with varying proportions of labeled data and known categories.

Introduction

In Natural Language Understanding (NLU), intent detection is the task of identifying a user's goal from their utterance (e.g., "Book a flight"). Traditional models typically operate in a "closed-world" setting, assuming all inputs belong to a predefined set of categories. However, real-world applications frequently encounter "out-of-scope" or "open" intents that the model was never trained to handle. Forcing a model to classify these into known categories leads to false positives.

Open intent detection aims to identify these unknown intents while maintaining high accuracy on known ones. Current approaches face two primary hurdles:

  1. Feature Overlap: Learning representations that clearly separate known intents from unknown ones is difficult when only known-intent data is available.
  2. Manual Thresholding: Many systems rely on manually tuned confidence thresholds to reject unknown intents, which lacks adaptability across different datasets.

The DA-ADB Framework

The proposed DA-ADB (Distance-Aware Adaptive Decision Boundary) framework addresses these challenges through a two-stage process: distance-aware representation learning followed by adaptive decision boundary learning.

1. Distance-Aware (DA) Representation Learning

This stage enhances the discriminative power of intent embeddings by incorporating the "hardness" of samples based on their distance to class centroids.

  • Centroid Calculation: The model computes the average feature vector (centroid) for each known intent.
  • Meta-Embedding: For each input, a "distance-aware coefficient" ((\gamma)) is calculated based on its relative distance to the two nearest centroids. This coefficient scales the original embedding to create a "meta-embedding."
  • Cosine Classifier: By focusing on "hard" samples near cluster edges during training, the model learns more compact and discriminative clusters in the feature space.

2. Adaptive Decision Boundary (ADB) Learning

Once features are well-clustered, the model automatically learns optimal decision boundaries.

  • Spherical Boundaries: Spheres are utilized to tightly enclose known data, effectively reserving the remaining "open space" for unknown intents.
  • Learnable Radii: A novel loss function automatically learns the optimal radius ((\Delta)) for each intent by balancing "empirical risk" (covering known samples) and "open space risk" (minimizing the sphere's volume to exclude unknowns).
The overall architecture of the DA-ADB framework, illustrating the four-step process from intent representation to open classification.

Experimental Setup

The framework was evaluated on three benchmark datasets representing diverse NLU challenges:

  • BANKING: 77 fine-grained intents related to banking services.
  • OOS: Specifically designed for out-of-scope prediction, containing 150 in-domain intents.
  • StackOverflow: A dataset of technical question titles from 20 different programming domains.

Results and Discussion

DA-ADB consistently outperformed state-of-the-art baselines across all datasets and metrics, including popular methods like OpenMax and DOC.

  • Significant Accuracy Gains: DA-ADB achieved average accuracy improvements of 4.43% on BANKING, 2.25% on OOS, and 12.78% on StackOverflow.
  • Robustness: The model maintains strong performance even when only 25% of intents are known during training, a scenario where traditional methods often struggle.
  • Balanced Performance: Improvements in Macro F1-scores for both known and open classes indicate that the model does not sacrifice known-class accuracy to detect open intents.
Performance comparison of DA-ADB against state-of-the-art methods across different datasets and known intent proportions.

Conclusion

The DA-ADB framework provides a robust solution for open intent detection by combining distance-aware representation learning with adaptive spherical decision boundaries. By automatically balancing empirical and open space risks, it eliminates the need for manual thresholding and achieves superior performance on diverse NLU tasks. Future work includes extending this approach to multimodal data and exploring its utility in continual learning scenarios.

Summary updated

BibTeX
@article{zhang2023learning,
  author = {Hanlei Zhang and Hua Xu and Shaojie Zhao and Qianrui Zhou},
  title = {{Learning Discriminative Representations and Decision Boundaries for Open Intent Detection}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2023},
  doi = {10.1109/taslp.2023.3265203},
}
Figure