Abstract
Natural Language Understanding (NLU) systems often operate under a "closed-world" assumption, leading to failures when encountering out-of-domain (OOD) user inputs. This paper introduces Pseudo OOD Generation (POG), a framework that generates high-quality synthetic OOD samples in a continuous latent space to improve model robustness. By employing an adversarial training strategy and incorporating unlabeled data (AEPOG), the proposed method effectively sharpens decision boundaries. Experimental results on the OSQ and IPA datasets demonstrate that AEPOG significantly outperforms existing baselines, reducing the False Positive Rate (FPR95) to 23.70% on the OSQ benchmark.
Introduction
Modern dialog systems frequently encounter user requests that fall outside their pre-defined set of supported intents. Without effective OOD detection, these systems often misclassify such inputs into known categories, resulting in nonsensical responses. While Entropy Regularization (ER) is a common technique to handle uncertainty, it typically relies on large, manually labeled OOD datasets which are costly to obtain.
This research addresses the challenge of OOD detection by generating "near-domain" pseudo-OOD samples. These samples act as "hard examples" that force the NLU model to learn more precise boundaries between supported and unsupported intents without requiring extensive human labeling.
Methodology
The core of the proposed framework is the Pseudo OOD Generation (POG) model, which operates in a latent space to avoid the complexities of generating discrete text.
The architecture consists of three primary components:
- Autoencoder: An encoder maps input utterances into a continuous latent space, while a decoder reconstructs them. This provides a smooth representation for adversarial training.
- Adversarial Generation: A generator creates synthetic latent codes designed to mimic in-domain (IND) data, while a discriminator attempts to distinguish between real and generated samples. This ensures the pseudo-OOD data is "near" the IND distribution.
- Auxiliary Classifier (AC): The AC regularizes the generator by penalizing low-entropy outputs, ensuring the generated samples do not strongly align with any specific IND intent.
To bridge the gap between continuous latent codes and discrete text, the authors utilize a "soft token" approximation and temperature scaling, enabling end-to-end differentiability. The framework is further enhanced in AEPOG by using unlabeled data to enrich the latent space, making the generated samples more representative of real-world noise.
Results and Discussion
The ER+AEPOG method consistently outperformed state-of-the-art baselines across multiple metrics, including AUROC, AUPR, and FPR.
On the OSQ dataset, ER+AEPOG reduced the FPR95 to 23.70%, a substantial improvement over the Maximum Softmax Probability (MSP) baseline (~39.72%). On the real-world IPA dataset, the model achieved an 11% relative improvement in FPR90. Qualitative analysis revealed that the generated pseudo-OOD samples were grammatically plausible yet intent-neutral (e.g., "How much is this payments please"), serving as ideal boundary cases for training.
Conclusion
The POG and AEPOG frameworks offer a robust solution for OOD detection in dialog systems by generating high-quality synthetic training data. By operating in a latent space and leveraging unlabeled data, the approach minimizes the need for expensive manual labeling while significantly improving system reliability. Future work includes extending this framework to longer text sequences and integrating it into other dialog pipeline components like Dialogue State Tracking.
Summary updated