[Paper Review] A Survey on Out-of-Distribution Detection in NLP
This paper provides a taxonomy and comprehensive survey of OOD detection methods in NLP, categorized by the availability of OOD data, and discusses datasets, metrics, applications, and future directions.
Out-of-distribution (OOD) detection is essential for the reliable and safe deployment of machine learning systems in the real world. Great progress has been made over the past years. This paper presents the first review of recent advances in OOD detection with a particular focus on natural language processing approaches. First, we provide a formal definition of OOD detection and discuss several related fields. We then categorize recent algorithms into three classes according to the data they used: (1) OOD data available, (2) OOD data unavailable + in-distribution (ID) label available, and (3) OOD data unavailable + ID label unavailable. Third, we introduce datasets, applications, and metrics. Finally, we summarize existing work and present potential future research topics.
Motivation & Objective
- Define the problem and motivate OOD detection in NLP under semantic shifts.
- Propose a taxonomy of OOD detection methods based on OOD data availability.
- Review representation learning and scoring methods for OOD detection in NLP.
- Survey datasets, applications, and evaluation metrics for NLP OOD detection.
- Outline future research directions and discuss LLMs’ role in OOD detection.
Proposed method
- Classify OOD detection methods into three categories by OOD data availability: OOD data available, OOD data unavailable with ID labels, and OOD data unavailable with ID labels.
- Subdivide the available-data category into extensive OOD data and few OOD data, detailing discriminative, regularization, and data-generation approaches.
- Describe two-stage pipelines: representation learning (pre-training and fine-tuning) and OOD scoring (output-based, feature-based, ensemble).
- Summarize pseudo-OOD generation techniques (phrase distortion, feature mixup, latent generation, open-domain sampling) and other methods (ensembles, likelihood ratios, reconstruction errors).
- Discuss datasets, applications, and metrics for evaluating OOD detectors in NLP (AUROC, AUPR, FPR@N, F1, Acc).
- Contrast NLP and CV OOD detection, and highlight challenges and future directions, including LLMs’ impact.
Experimental results
Research questions
- RQ1How should OOD detection be defined and categorized specifically for NLP with semantic shifts?
- RQ2What are the pros and cons of OOD detection methods under different data-availability settings in NLP?
- RQ3What datasets, applications, and metrics best capture NLP OOD detection performance?
- RQ4How do NLP-specific characteristics (discrete input, complex outputs, context) influence OOD detection methods compared to CV?
- RQ5What future directions and opportunities exist for integrating OOD detection with domain generalization and LLMs?
Key findings
- Pre-trained language models yield better OOD detection and calibration than non-pretrained models in many settings.
- Representation learning plus robust OOD scoring (output-, feature-, and ensemble-based) improves detection performance.
- Pseudo-OOD data generation and open-domain sampling can enhance detection when labeled OOD data are scarce.
- There are distinct NLP-specific challenges (discrete inputs, sequential outputs, contextual information) not present in CV.
- LLMs offer potential benefits for OOD detection through world knowledge, data augmentation, and descriptive features for ID class names.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.