Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemble

Hyunsoo Cho, Choonghyun Park, Jaewook Kang, Kang Min Yoo, Taeuk Kim +1 more
10/20/2022
cs.CLcs.LG

Official code: HyunsooCho77/LaCL-official (2 stars, Python, MIT, last commit 2022-11-18).

Abstract

Out-of-distribution (OOD) detection aims to discern outliers from the intended data distribution, which is crucial to maintaining high reliability and a good user experience. Most recent studies in OOD detection utilize the information from a single representation that resides in the penultimate layer to determine whether the input is anomalous or not.

Show full abstract

Although such a method is straightforward, the potential of diverse information in the intermediate layers is overlooked. In this paper, we propose a novel framework based on contrastive learning that encourages intermediate features to learn layer-specialized representations and assembles them implicitly into a single representation to absorb rich information in the pre-trained language model. Extensive experiments in various intent classification and OOD datasets demonstrate that our approach is significantly more effective than other works.

View on arXivView PDF

Code Implementations(1)

MIT

Layer-agnostic contrastive learning

20PythonJun 28, 20224 years agoMIT

Similar Papers

Cite this paper

@article{cho2022enhancing,
  title  = {Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemble},
  author = {Hyunsoo Cho and Choonghyun Park and Jaewook Kang and Kang Min Yoo and Taeuk Kim and Sang-goo Lee},
  year   = {2022},
  eprint = {2210.11034},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11034}
}

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/2210.11034.svg)](https://codeofpaper.com/paper/2210.11034)

Discussion