ACL 2021short66 citations

Modeling Discriminative Representations for Out-of-Domain Detection with Supervised Contrastive Learning

Zhiyuan Zeng, Keqing He, Yuanmeng Yan, Zijun Liu, Yanan Wu, Hong Xu, Huixing Jiang, Weiran Xu

Abstract

Detecting Out-of-Domain (OOD) or unknown intents from user queries is essential in a task-oriented dialog system. A key challenge of OOD detection is to learn discriminative semantic features. Traditional cross-entropy loss only focuses on whether a sample is correctly classified, and does not explicitly distinguish the margins between categories. In this paper, we propose a supervised contrastive learning objective to minimize intra-class variance by pulling together in-domain intents belonging to the same class and maximize inter-class variance by pushing apart samples from different classes. Besides, we employ an adversarial augmentation mechanism to obtain pseudo diverse views of a sample in the latent space. Experiments on two public datasets prove the effectiveness of our method capturing discriminative representations for OOD detection.

BibTeX
@inproceedings{zeng-etal-2021-modeling,
    title = "Modeling Discriminative Representations for Out-of-Domain Detection with Supervised Contrastive Learning",
    author = "Zeng, Zhiyuan  and
      He, Keqing  and
      Yan, Yuanmeng  and
      Liu, Zijun  and
      Wu, Yanan  and
      Xu, Hong  and
      Jiang, Huixing  and
      Xu, Weiran",
    editor = "Zong, Chengqing  and
      Xia, Fei  and
      Li, Wenjie  and
      Navigli, Roberto",
    booktitle = "Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)",
    month = aug,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.acl-short.110/",
    doi = "10.18653/v1/2021.acl-short.110",
    pages = "870--878"
}
Modeling Discriminative Representations for Out-of-Domain Detection with Supervised Contrastive Learning · ACL 2021