Generating Hard-Negative Out-of-Scope Data with ChatGPT for Intent Classification

Zhijian Li, Stefan Larson, Kevin Leach
3/8/2024
cs.CL

No official code found. Best implementation: frank7li/Generating-Hard-Negative-Out-of-Scope-Data-with-ChatGPT-for-Intent-Classification (5 stars, last commit 2024-03-04).

Abstract

Intent classifiers must be able to distinguish when a user's utterance does not belong to any supported intent to avoid producing incorrect and unrelated system responses. Although out-of-scope (OOS) detection for intent classifiers has been studied, previous work has not yet studied changes in classifier performance against hard-negative out-of-scope utterances (i.e., inputs that share common features with in-scope data, but are actually out-of-scope). We present an automated technique to generate hard-negative OOS data using ChatGPT. We use our technique to build five new hard-negative OOS datasets, and evaluate each against three benchmark intent classifiers. We show that classifiers struggle to correctly identify hard-negative OOS utterances more than general OOS utterances. Finally, we show that incorporating hard-negative OOS data for training improves model robustness when detecting hard-negative OOS data and general OOS data. Our technique, datasets, and evaluation address an important void in the field, offering a straightforward and inexpensive way to collect hard-negative OOS data and improve intent classifiers' robustness.

View on arXivView PDF

Code Implementations(1)

Similar Papers

Cite this paper

@article{li2024generating,
  title  = {Generating Hard-Negative Out-of-Scope Data with ChatGPT for Intent Classification},
  author = {Zhijian Li and Stefan Larson and Kevin Leach},
  year   = {2024},
  eprint = {2403.05640},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.05640v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.05640.svg)](https://codeofpaper.com/paper/2403.05640)

Discussion