GOLD: Improving Out-of-Scope Detection in Dialogues using Data Augmentation

Derek Chen, Zhou Yu

Abstract

Detecting out-of-scope (OOS) queries is a fundamental challenge in building robust dialogue systems. While direct training of OOS classifiers is effective, it typically requires large amounts of labeled data. We present GOLD (Generating Out-of-scope Labels with Data augmentation), a framework that leverages a small seed set of OOS examples to "mine" and filter similar utterances from massive external datasets. GOLD enables the training of high-performing OOS detectors even in low-resource "cold start" scenarios.

Introduction

In real-world applications, users frequently provide inputs that fall outside a chatbot's intended domain. Detecting these Out-of-Scope (OOS) moments is critical for maintaining user trust and preventing dialogue breakdowns. Historically, researchers have relied on "indirect" detection—modeling the distribution of in-scope (INS) data and flagging outliers. However, these methods often suffer from a mismatch between the training objective and the actual task of spotting a breakdown. "Direct" detection, which trains a classifier to recognize OOS explicitly, works better but requires a large amount of labeled OOS data, which is expensive and difficult to collect.

The GOLD Framework

GOLD bridges the gap between indirect and direct detection through a multi-step augmentation pipeline designed to generate high-quality pseudo-OOS labels from a tiny initial seed set (as little as 1% of the total training size).

The GOLD pipeline: from source data to the final OOS training set.

The pipeline consists of five key stages:

  1. Sample & Annotate: Creating a small seed set of known OOS labels from target data.
  2. Extract: Using embeddings (e.g., GloVe or BERT) to find similar "matches" in a large, unlabeled source pool (e.g., Quora questions or chit-chat datasets).
  3. Generate: Creating "pseudo-OOS" candidates by taking existing OOS contexts and swapping user utterances with the similar matches found in the extraction phase.
  4. Elect: To filter out potential in-scope matches, an ensemble of baseline OOS detectors (such as MaxProb or Mahalanobis distance) votes on the candidates. Only candidates flagged as OOS by the majority are retained.
  5. Aggregate: Combining the original data with the newly minted, filtered OOS data into a final training set.

Experimental Evaluation

GOLD was evaluated across three diverse benchmarks: STAR (task-oriented with ambiguous responses), FLOW (calendar management with "fenced-in" scenarios), and ROSTD (high-precision OOD recognition). Source pools for augmentation included Quora Question Pairs (QQP), Taskmaster-2, PersonaChat, and Clinc150.

Key Results

GOLD significantly outperformed all existing baselines across all three benchmarks. The top GOLD model achieved relative gains of 52.4%, 48.9%, and 50.3% against median baseline performance on key metrics. On the ROSTD dataset, GOLD achieved a near-perfect AUROC of 0.9990.

Performance (AUROC) of GOLD across different source datasets for STAR, FLOW, and ROSTD benchmarks.

The framework also demonstrated remarkable robustness. Even when the seed set was cut in half, GOLD remained effective by increasing the number of matches extracted per seed, showing its scalability in extremely low-resource environments.

Discussion and Insights

  • The Power of Directness: Training a model directly on what OOS looks like consistently beats trying to define OOS as "anything that isn't in-scope," even when using "weak" pseudo-labels.
  • The "Election" is Mandatory: Skipping the filtering step (Target Election) leads to a significant drop in performance, especially in complex domains where external data might overlap with in-scope intents.
  • Similarity Trade-offs: Surprisingly, using high-powered models to find perfect paraphrases for the seed set performed worse than using simpler methods like GloVe. The authors hypothesize that "too-similar" examples lead to overfitting; effective augmentation requires data that provides broader "coverage" of the OOS space.
  • Dialogue Context Matters: GOLD is particularly effective on the STAR dataset because it can generate multi-turn dialogue breakdowns, whereas many previous methods only looked at single-turn utterances.

Conclusion and Future Work

GOLD represents a major step forward in OOS detection for dialogue systems. While highly effective, the model's performance remains sensitive to the quality of the initial seed set. Future research could explore detecting more granular types of errors (e.g., distinguishing between user rudeness and unsupported features) and automating the selection of the best source pool for a specific target domain.

Summary updated

BibTeX
@inproceedings{chen2021gold,
  author = {Derek Chen and Zhou Yu},
  title = {{GOLD: Improving Out-of-Scope Detection in Dialogues using Data Augmentation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.35},
}
Figure