Generalized Intent Discovery: Learning from Open World Dialogue System

Yutao Mou, Keqing He, Yanan Wu, Pei Wang, Jingang Wang, Wei Wu, Yi Huang, Junlan Feng, Weiran Xu

Abstract

Traditional dialogue systems struggle to handle user queries that fall outside their pre-defined intent categories. This paper introduces Generalized Intent Discovery (GID), a new task and end-to-end framework that simultaneously classifies known in-domain (IND) intents while automatically discovering and recognizing new out-of-domain (OOD) intents. By jointly optimizing clustering and classification, the proposed method significantly outperforms pipeline-based approaches, paving the way for more scalable, open-world dialogue systems.

Introduction

In task-oriented dialogue systems, Intent Classification (IC) models are typically trained to map user queries to a fixed, pre-defined set of in-domain (IND) intents (e.g., BookFlight or PlayMusic). However, in real-world applications, users frequently issue out-of-domain (OOD) queries that the system was not explicitly programmed to handle.

Comparison of traditional OOD handling (Detection/Discovery) vs. the proposed Generalized Intent Discovery (GID) task.

Current systems typically handle this in one of two limited ways: they either use OOD detection to simply reject unknown queries, or they use offline OOD discovery to cluster unknown queries into new groups. Neither approach allows a live system to incrementally expand its recognition scope to handle both old IND intents and newly discovered OOD intents simultaneously. The Generalized Intent Discovery (GID) task aims to bridge this gap by building a single classifier capable of operating in an open-world setting where new intents are continuously integrated.

Proposed Methodology

To tackle the GID task, the authors explore two types of frameworks:

Pipeline-based Baselines

These methods first use a clustering algorithm (like k-means or the state-of-the-art DeepAligned) on unlabeled OOD data to generate pseudo-labels. Subsequently, they train a joint classifier on both the labeled IND data and the pseudo-labeled OOD data. The primary flaw in this approach is that clustering and classification are isolated, preventing the model from using IND knowledge to improve OOD clustering.

End-to-End (E2E) Framework

The authors propose a novel joint learning approach using a shared BERT encoder with two separate projection heads (one for IND, one for OOD).

The proposed End-to-End (E2E) framework architecture for joint intent classification and discovery.

For unlabeled OOD data, the framework uses a "swapped prediction" mechanism on dropout-augmented views of the queries. To prevent degenerate solutions where all queries collapse into a single cluster, they apply the Sinkhorn-Knopp (SK) algorithm to solve an optimal transport problem, generating uniform pseudo-labels. The entire network is optimized simultaneously via a unified cross-entropy loss, allowing deep semantic interaction between IND and OOD data.

Experimental Setup

Because GID is a new task, the authors constructed three benchmark datasets based on the popular CLINC and BANKING intent datasets, varying the ratio of OOD intents (20%, 40%, 60%):

  • GID-SD (Single-Domain): Based on BANKING; tests fine-grained intent discovery within a single domain.
  • GID-MD (Multiple-Domain): Based on CLINC; IND and OOD intents are randomly split and may share overlapping domains.
  • GID-CD (Cross-Domain): Based on CLINC; IND and OOD intents are strictly separated by domain (e.g., IND is "banking", OOD is "travel").
  • Variants: The authors also created GID-noise (injecting garbage queries) and GID-imbalance (skewing OOD class distribution) to simulate real-world conditions.

Key Results and Insights

The proposed End-to-End (E2E) method consistently outperformed all pipeline baselines across all datasets and OOD ratios. On the highly challenging GID-MD-60%, E2E achieved a massive 5.06% boost in OOD F1 over the previous state-of-the-art, DeepAligned.

Critical Insights:

  • Joint Training Prevents Error Propagation: Pipeline methods suffer because early clustering mistakes become permanent pseudo-labels. The E2E method dynamically adjusts clusters while learning to classify, leading to cleaner decision boundaries.
  • Domain Similarity Dictates Transferability: It is significantly easier for a model to discover new OOD intents if they are semantically adjacent to known IND intents.
  • Fine-grained Intents are the Hardest: The single-domain dataset (GID-SD) yielded the lowest performance, indicating that distinguishing between highly nuanced OOD intents in the same domain remains a major challenge.
  • Real-world Distributions Break Assumptions: The SK algorithm relies on the assumption that clusters are roughly uniform. When tested on imbalanced data, performance dropped significantly, highlighting a vulnerability in current optimal transport-based pseudo-labeling.

Conclusion and Future Work

While the E2E framework represents a significant advancement for open-world dialogue systems, several limitations remain. Future research must address the challenges of imbalanced data, improve the algorithmic estimation of the number of clusters (K), and increase robustness against OOD noise (meaningless "garbage" queries) that can impair the formation of clear cluster boundaries.

Summary updated

BibTeX
@inproceedings{mou2022generalized,
  author = {Yutao Mou and Keqing He and Yanan Wu and Pei Wang and Jingang Wang and Wei Wu and Yi Huang and Junlan Feng and Weiran Xu},
  title = {{Generalized Intent Discovery: Learning from Open World Dialogue System}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=-zCxQu2GrCq},
}
Figure