Semantic Role Labeling Guided Out-of-distribution Detection

Jinan Zou, Maihao Guo, Yu Tian, Yuhao Lin, Haiyao Cao +3 more
5/29/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Identifying unexpected domain-shifted instances in natural language processing is crucial in real-world applications. Previous works identify the out-of-distribution (OOD) instance by leveraging a single global feature embedding to represent the sentence, which cannot characterize subtle OOD patterns well. Another major challenge current OOD methods face is learning effective low-dimensional sentence representations to identify the hard OOD instances that are semantically similar to the in-distribution (ID) data. In this paper, we propose a new unsupervised OOD detection method, namely Semantic Role Labeling Guided Out-of-distribution Detection (SRLOOD), that separates, extracts, and learns the semantic role labeling (SRL) guided fine-grained local feature representations from different arguments of a sentence and the global feature representations of the full sentence using a margin-based contrastive loss. A novel self-supervised approach is also introduced to enhance such global-local feature learning by predicting the SRL extracted role. The resulting model achieves SOTA performance on four OOD benchmarks, indicating the effectiveness of our approach. The code is publicly accessible via \url{https://github.com/cytai/SRLOOD}.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{zou2023semantic,
  title  = {Semantic Role Labeling Guided Out-of-distribution Detection},
  author = {Jinan Zou and Maihao Guo and Yu Tian and Yuhao Lin and Haiyao Cao and Lingqiao Liu and Ehsan Abbasnejad and Javen Qinfeng Shi},
  year   = {2023},
  eprint = {2305.18026},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.18026v2}
}

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

Discussion