Introduction
In modern conversational AI, intent classification is a foundational task. However, most traditional classifiers operate under a "closed-world" assumption, where every user input is expected to fall into a pre-defined category. In real-world deployments, users frequently provide inputs that the system was never trained to handle. Open Intent Classification (OIC) addresses this by requiring models to accurately classify known intents while gracefully identifying out-of-distribution (OOD) inputs as "Unknown."
This paper introduces CLAB, a two-stage framework designed to overcome the primary hurdles of OIC: feature overlap in latent space and the rigidity of decision boundaries. By integrating K-center contrastive learning with an adjustable decision boundary mechanism, CLAB establishes a new state-of-the-art for robust intent recognition.
The Challenges of Open Intent Classification
Existing OIC methods typically struggle with two core issues:
- Feature Overlap: Standard supervised learning often fails to create distinct separations between classes in the latent space. This results in "fuzzy" clusters where known and unknown intents overlap, making it difficult for the model to distinguish between them.
- Static Boundaries: Previous state-of-the-art approaches, such as the Adjustable Decision Boundary (ADB) method, learned spherical boundaries for each class based solely on the instances within that class. By ignoring the proximity of negative samples (samples from other classes), these models often produced boundaries that were either too loose, leading to false positives, or too tight, leading to false negatives.
Methodology: The CLAB Framework
CLAB (K-center Contrastive Learning and Adjustable Decision Boundary) utilizes a two-stage training process to refine both the feature representations and the classification boundaries.
Stage 1: K-center Contrastive Learning (KCCL)
Standard contrastive learning typically relies on an anchor-based approach, pulling a single sample toward other positive instances. The authors argue that this can lead to imbalanced representations, particularly in datasets with varying class sizes.
CLAB introduces K-center Contrastive Learning (KCCL). Instead of anchor-to-point comparisons, KCCL compares every pair within a set of $K$ positive instances. This group-centric objective encourages the entire set of samples to converge toward a common geometric center. Using a BERT-based encoder, this process results in more compact, robust, and balanced clusters, significantly reducing intra-class variance.
Stage 2: Adjustable Decision Boundary with Expanding and Shrinking (ADBES)
Once the feature space is optimized, the model must define the boundaries for each known class. CLAB improves upon static methods by introducing an Expanding and Shrinking strategy (ADBES) that accounts for the "pressure" exerted by nearby negative samples:
- Shrink: If negative samples (instances from different known classes) are found to be too close to a class boundary, the model shrinks the radius. This prevents the model from misclassifying unknown intents that might fall into these high-pressure zones.
- Expand: Conversely, if negative samples are far away, the model expands the radius to capture a wider range of potential in-class variations, reducing the likelihood of flagging legitimate known intents as unknown.
Experimental Evaluation
The researchers evaluated CLAB against three major benchmarks: BANKING (77 fine-grained intents), OOS (150 intents including specific out-of-domain queries), and StackOverflow (20 technical question classes). To simulate varying degrees of "openness," the team conducted experiments by hiding 25%, 50%, and 75% of the classes during the training phase.
Key Results
CLAB consistently outperformed previous benchmarks like ADB and DeepUnk across all tested scenarios:
- Superior Performance in High Openness: On the BANKING dataset with only 25% of classes known, CLAB improved the Macro F1-score by 4.25% over the previous state-of-the-art.
- High-Accuracy Unknown Detection: The framework proved exceptionally effective at identifying OOD samples. On the StackOverflow benchmark (25% known), CLAB achieved a 95.12 F1-score for the unknown class, a significant jump from ADB’s 90.88.
- Ablation Insights: Ablation studies confirmed that both KCCL and ADBES are critical; removing either component resulted in a sharp decline in performance, indicating that tight feature clustering and adaptive boundaries are complementary requirements for OIC.
Discussion and Future Work
The success of CLAB highlights a vital insight: decision boundaries should be defined not just by what they contain, but also by what they exclude. By utilizing negative samples to "push" the boundary, the model becomes significantly more sensitive to the transition zones between known and unknown data.
While CLAB represents a major step forward, there are avenues for further refinement. Currently, the expanding ($e$) and shrinking ($s$) parameters are manually tuned; future iterations could involve learning these parameters dynamically. Additionally, while the model currently utilizes BERT-base, exploring how these contrastive objectives scale with Large Language Models (LLMs) like Llama or GPT-4 could yield even more distinct latent spaces for complex intent architectures.
Summary updated