@inproceedings{xu-etal-2023-contrastive,
    title = "Contrastive Novelty-Augmented Learning: Anticipating Outliers with Large Language Models",
    author = "Xu, Albert  and
      Ren, Xiang  and
      Jia, Robin",
    editor = "Rogers, Anna  and
      Boyd-Graber, Jordan  and
      Okazaki, Naoaki",
    booktitle = "Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.acl-long.658",
    doi = "10.18653/v1/2023.acl-long.658",
    pages = "11778--11801",
    abstract = "In many task settings, text classification models are likely to encounter examples from novel classes on which they cannot predict correctly. Selective prediction, in which models abstain on low-confidence examples, provides a possible solution, but existing models are often overly confident on unseen classes. To remedy this overconfidence, we introduce Contrastive Novelty-Augmented Learning (CoNAL), a two-step method that generates OOD examples representative of novel classes, then trains to decrease confidence on them. First, we generate OOD examples by prompting a large language model twice: we prompt it to enumerate relevant novel classes, then generate examples from each novel class matching the task format. Second, we train a classifier with a novel contrastive objective that encourages lower confidence on generated OOD examples than training examples. When trained with CoNAL, classifiers improve in their ability to detect and abstain on novel class examples over prior methods by an average of 2.3{\%} in terms of accuracy under the accuracy-coverage curve (AUAC) and 5.5{\%} AUROC across 4 NLP datasets, with no cost to in-distribution accuracy.",
}

In many task settings, text classification models are likely to encounter examples from novel classes on which they cannot predict correctly. Selective prediction, in which models abstain on low-confidence examples, provides a possible solution, but existing models are often overly confident on unseen classes. To remedy this overconfidence, we introduce Contrastive Novelty-Augmented Learning (CoNAL), a two-step method that generates OOD examples representative of novel classes, then trains to decrease confidence on them. First, we generate OOD examples by prompting a large language model twice: we prompt it to enumerate relevant novel classes, then generate examples from each novel class matching the task format. Second, we train a classifier with a novel contrastive objective that encourages lower confidence on generated OOD examples than training examples. When trained with CoNAL, classifiers improve in their ability to detect and abstain on novel class examples over prior methods by an average of 2.3{\%} in terms of accuracy under the accuracy-coverage curve (AUAC) and 5.5{\%} AUROC across 4 NLP datasets, with no cost to in-distribution accuracy.
Xu, Albert Ren, Xiang Jia, Robin
Contrastive Novelty-Augmented Learning: Anticipating Outliers with Large Language Models