Skip to main content
QUICK REVIEW

[Paper Review] Out-of-domain Detection for Natural Language Understanding in Dialog Systems

Yinhe Zheng, Guanyi Chen|arXiv (Cornell University)|Sep 9, 2019
Topic ModelingComputer Science47 references8 citations
TL;DR

This paper proposes a novel pseudo OOD sample generation model (POG) that improves out-of-domain detection in NLU by generating high-quality, realistic OOD utterances using an autoencoder, adversarial training, and an auxiliary classifier. The method enhances OOD detection performance by effectively regularizing the model with synthetic OOD data, achieving state-of-the-art results without relying on manually labeled OOD examples.

ABSTRACT

Natural Language Understanding (NLU) is a vital component of dialogue systems, and its ability to detect Out-of-Domain (OOD) inputs is critical in practical applications, since the acceptance of the OOD input that is unsupported by the current system may lead to catastrophic failure. However, most existing OOD detection methods rely heavily on manually labeled OOD samples and cannot take full advantage of unlabeled data. This limits the feasibility of these models in practical applications. In this paper, we propose a novel model to generate high-quality pseudo OOD samples that are akin to IN-Domain (IND) input utterances, and thereby improves the performance of OOD detection. To this end, an autoencoder is trained to map an input utterance into a latent code. and the codes of IND and OOD samples are trained to be indistinguishable by utilizing a generative adversarial network. To provide more supervision signals, an auxiliary classifier is introduced to regularize the generated OOD samples to have indistinguishable intent labels. Experiments show that these pseudo OOD samples generated by our model can be used to effectively improve OOD detection in NLU. Besides, we also demonstrate that the effectiveness of these pseudo OOD data can be further improved by efficiently utilizing unlabeled data.

Motivation & Objective

  • To address the challenge of limited labeled out-of-domain (OOD) data in NLU systems, which hinders effective OOD detection.
  • To develop a method that generates high-quality, realistic OOD utterances indistinguishable from in-domain (IND) inputs to improve OOD detection.
  • To leverage unlabeled data—commonly available in real-world systems—to further enhance the quality and effectiveness of generated OOD samples.
  • To improve the generalization of NLU models under open-world assumptions by optimizing entropy regularization using synthetic OOD data.

Proposed method

  • An autoencoder is trained to map input utterances into a latent code and reconstruct them, preserving semantic and structural properties.
  • A generative adversarial network (GAN) is used to make the latent codes of OOD and IND samples indistinguishable, ensuring generated OOD samples resemble real IND inputs.
  • An auxiliary classifier is introduced to regularize the generated OOD samples to have ambiguous or indistinguishable intent labels, improving their utility for OOD detection.
  • The model is trained end-to-end using a combination of reconstruction loss, adversarial loss, and entropy regularization (ER) to optimize OOD detection.
  • The method is extended to AEPOG (Autoencoder-based Pseudo OOD Generation), which further improves sample quality by incorporating unlabeled data during autoencoder pretraining.
  • The generated pseudo OOD samples are used to train the NLU model with entropy regularization, enhancing its ability to detect true OOD inputs.

Experimental results

Research questions

  • RQ1Can we generate high-quality, realistic OOD utterances in discrete text space that are semantically similar to in-domain inputs but have ambiguous intent?
  • RQ2How effective are these generated pseudo OOD samples in improving OOD detection performance compared to models trained with real OOD data?
  • RQ3Can unlabeled data from real-world deployments be effectively leveraged to improve the quality of generated OOD samples and, consequently, detection performance?
  • RQ4Does adversarial training of latent codes between IND and OOD distributions lead to better separation in feature space for OOD detection?
  • RQ5Can auxiliary supervision on intent labels of generated samples improve the robustness of OOD detection?

Key findings

  • The proposed POG model generates pseudo OOD samples that are grammatically correct and semantically similar to in-domain utterances, making them effective for training.
  • The use of generated pseudo OOD samples significantly improves OOD detection performance, achieving state-of-the-art results on benchmark datasets such as OSQ.
  • The AEPOG variant, which incorporates unlabeled data during autoencoder pretraining, further enhances the quality of generated samples and boosts detection performance.
  • t-SNE visualization confirms that models trained with POG-generated samples produce more separable feature representations between IND and OOD inputs.
  • The auxiliary classifier effectively regularizes the intent ambiguity of generated samples, preventing them from being easily classified as IND.
  • The method reduces reliance on expensive manually labeled OOD data while maintaining or exceeding performance of models trained with real OOD data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.