Learning Discriminative Representations and Decision Boundaries for Open Intent Detection

Hanlei Zhang, Hua Xu, Shaojie Zhao, Qianrui Zhou

TL;DR

The DA-ADB framework tackles the "unknown unknown" problem in intent detection by learning distance-aware representations and automatically tuning compact, spherical decision boundaries. By balancing the need to include known samples while excluding "open space," it significantly outperforms existing methods in identifying both known user intents and previously unseen ones.

What Problem Does This Paper Address?

In Natural Language Understanding (NLU), traditional intent detection operates in a "closed-world" assumption: the system assumes every user query belongs to a pre-defined set of categories. However, real-world users are unpredictable. If a flight-booking bot is asked "What time is it?", it shouldn't try to force that query into a "Booking flight" category.

An example of open intent detection where the system must distinguish between known tasks and "Open" (unknown) queries.

This is the Open Intent Detection (OID) problem. The challenge is twofold:

  1. Representation Gap: How do you learn features that are "friendly" to detecting unknown intents when you've never seen an unknown sample during training?
  2. Boundary Selection: How do you set specific, tight thresholds for known intents without manual tuning? Most systems use a flat confidence threshold (like 0.5), which often fails to separate dense clusters of similar intents from the vast "open space" of unknown queries.

Methods

The authors propose DA-ADB (Distance-Aware Adaptive Decision Boundary), a two-stage pipeline:

1. Distance-aware Representation Learning

Standard training often ignores how "hard" a sample is relative to other classes. DA-ADB introduces a distance-aware coefficient ($\gamma$). For every sample, it calculates the distance to the nearest and next-nearest class centroids.

  • Easy samples (far from the second-nearest class) get a large $\gamma$.
  • Hard samples (confusingly close to two classes) get a small $\gamma$.

By multiplying the original embedding by this coefficient to create a "meta-embedding" and using a cosine classifier, the model is forced to focus more on these "hard" samples during training, leading to more discriminative features that naturally push unknown samples further away.

2. Adaptive Decision Boundary (ADB) Learning

Instead of a one-size-fits-all threshold, DA-ADB learns a unique spherical boundary (a radius $\Delta$) for each known intent.

The overall architecture of DA-ADB, showing the flow from BERT embeddings to representation learning and finally boundary learning.

The authors designed a novel boundary loss function that balances two risks:

  • Empirical Risk: The risk of excluding a known sample (making the boundary too tight).
  • Open Space Risk: The risk of including unknown samples (making the boundary too loose).

This allows the boundaries to automatically "shrink-wrap" around the known intent clusters during a post-processing phase.

Datasets

The framework was evaluated on three challenging real-world datasets:

  • BANKING: A fine-grained dataset with 77 intents related to banking services.
  • OOS (Out-of-Scope): A large-scale dataset with 150 intents specifically designed for out-of-domain evaluation.
  • StackOverflow: A dataset of technical question titles across 20 different classes.

Key Insights and Ideas

  • The Power of Spheres: The authors argue that spherical boundaries are superior to linear classifiers for open-world tasks because they explicitly constrain the "known" area, leaving the rest of the infinite feature space for the "unknown."
  • Distance as a Signal: Incorporating the distance between the two most informative centroids (nearest and next-nearest) into the embedding itself acts as a powerful regularizer for discriminative learning.
  • Automatic Tuning: Perhaps the most practical insight is that decision boundaries can be learned automatically as a post-processing step without changing the underlying model architecture (like BERT).

Key Results

DA-ADB achieved state-of-the-art results across all datasets and various "known class ratios" (testing the system when only 25%, 50%, or 75% of classes are known).

Detailed performance comparison showing DA-ADB consistently outperforming baselines in Accuracy (ACC) and F1-score.
  • Accuracy Boost: On the StackOverflow dataset, DA-ADB improved accuracy by a massive 12.78% over the previous best methods.
  • Robustness: The system remained stable even when the amount of labeled training data was reduced to 20%, whereas density-based methods (like LOF) saw their performance crater.
  • Better Clustering: Visualization using t-SNE showed that DA-ADB's distance-aware strategy forced unknown samples into more concentrated areas far from known clusters, making them much easier to reject.

Limitations and Future Work

While highly effective, the paper notes a few areas for improvement:

  • Semantic Complexity: The performance still dips when intent categories have highly overlapping or complicated semantics.
  • Inference Speed: While the boundary learning is a post-processing step, the initial representation learning still relies on heavy-duty models like BERT, which might be a bottleneck for some real-time edge applications.
  • Future Directions: The authors suggest exploring how to leverage these detected "open" intents to discover and name new intent categories automatically over time.

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