Types of Out-of-Distribution Texts and How to Detect Them
Not on the map. Why?
Abstract (arXiv)
Despite agreement on the importance of detecting out-of-distribution (OOD) examples, there is little consensus on the formal definition of OOD examples and how to best detect them. We categorize these examples by whether they exhibit a background shift or a semantic shift, and find that the two major approaches to OOD detection, model calibration and density estimation (language modeling for text), have distinct behavior on these types of OOD data. Across 14 pairs of in-distribution and OOD English natural language understanding datasets, we find that density estimation methods consistently beat calibration methods in background shift settings, while performing worse in semantic shift settings. In addition, we find that both methods generally fail to detect examples from challenge data, highlighting a weak spot for current methods. Since no single method works well across all settings, our results call for an explicit definition of OOD examples when evaluating different detection methods.
Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). Builds on 43 of its 60 references that are in the map. First posted on arXiv 14 Sep 2021.
Builds on
43 of 60 references.
References · 43
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2016Concrete Problems in AI Safetycited by 1,582
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
31 more
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2019Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classificationcited by 396
- 2020Calibration of Pre-trained Transformerscited by 307
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
- 2020Selective Question Answering under Domain Shiftcited by 228
- 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
- 2018Stress Test Evaluation for Natural Language Inferencecited by 211
- 2020Contrastive Training for Improved Out-of-Distribution Detectioncited by 186
- 2017Style Transfer in Text: Exploration and Evaluationcited by 145
- 2020Evaluating Factuality in Generation with Dependency-level Entailmentcited by 122
- 2020Hybrid Models for Open Set Recognitioncited by 109
- 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 70
- 2018A Survey of Domain Adaptation for Neural Machine Translationcited by 64
- 2019Out-of-domain Detection for Natural Language Understanding in Dialog Systemscited by 62
- 2019Detecting semantic anomaliescited by 50
- 2019Hybrid Models with Deep and Invertible Featurescited by 41
- 2019Out-of-Domain Detection for Low-Resource Text Classification Taskscited by 36
- 2017Exposure: A White-Box Photo Post-Processing Frameworkcited by 27
- 2020Hybrid Discriminative-Generative Training via Contrastive Learningcited by 24
- 2020Domain Divergences: a Survey and Empirical Analysiscited by 24
- 2020Misinformation Has High Perplexitycited by 15
- 2020Natural Language Processing with Deep Learning for Medical Adverse Event Detection from Free-Text Medical Narratives: A Case Study of Detecting Total Hip Replacement Dislocationcited by 6
Built on by
Citing papers per year: 2022: 20; 2023: 35; 2024: 11; 2025: 9; 2026: 5.
80 papers.
Sort:
By area:
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 193
- 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 99
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 91
- 2024Safeguarding Large Language Models: A Surveycited by 73
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
- 2023Uncertainty in Natural Language Processing: Sources, Quantification, and Applicationscited by 44
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Modelscited by 40
38 more
- 2023GL-MCM: Global and Local Maximum Concept Matching for Zero-Shot Out-of-Distribution Detectioncited by 36
- 2023A Survey on Out-of-Distribution Detection in NLPcited by 31
- 2023Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detectioncited by 29
- 2025Estimating LLM Uncertainty with Evidencecited by 26
- 2022Exploring Predictive Uncertainty and Calibration in NLP: A Study on the Impact of Method & Data Scarcitycited by 24
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advancescited by 24
- 2022Exploring The Landscape of Distributional Robustness for Question Answering Modelscited by 23
- 2022Rainproof: An Umbrella To Shield Text Generators From Out-Of-Distribution Datacited by 21
- 2023A Survey on Out-of-Distribution Evaluation of Neural NLP Modelscited by 20
- 2023ReadMe++: Benchmarking Multilingual Language Models for Multi-Domain Readability Assessmentcited by 19
- 2025Semantic Volume: Quantifying and Detecting both External and Internal Uncertainty in LLMscited by 19
- 2024Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoningcited by 18
- 2023NLG Evaluation Metrics Beyond Correlation Analysis: An Empirical Metric Preference Checklistcited by 16
- 2023Unsupervised Layer-wise Score Aggregation for Textual OOD Detectioncited by 15
- 2023How Good Are LLMs at Out-of-Distribution Detection?cited by 15
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
- 2022Measures of Information Reflect Memorization Patternscited by 12
- 2023Mask-then-Fill: A Flexible and Effective Data Augmentation Framework for Event Extractioncited by 12
- 2023Fine-Tuning Deteriorates General Textual Out-of-Distribution Detection by Distorting Task-Agnostic Featurescited by 12
- 2022Active Learning Over Multiple Domains in Natural Language Taskscited by 11
- 2022Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Textcited by 11
- 2023Few-shot Anomaly Detection in Text with Deviation Learningcited by 11
- 2025Confidence-Guided Stepwise Model Routing for Cost-Efficient Reasoningcited by 9
- 2022Benchmarking Long-tail Generalization with Likelihood Splitscited by 8
- 2023Reliable Gradient-free and Likelihood-free Prompt Tuningcited by 8
- 2022Holistic Sentence Embeddings for Better Out-of-Distribution Detectioncited by 6
- 2023Counterfactuals of Counterfactuals: a back-translation-inspired approach to analyse counterfactual editorscited by 6
- 2024Generalizing Trust: Weak-to-Strong Trustworthiness in Language Modelscited by 6
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detectioncited by 6
- 2022Self-Supervised Losses for One-Class Textual Anomaly Detectioncited by 5
- 2022SimSCOOD: Systematic Analysis of Out-of-Distribution Generalization in Fine-tuned Source Code Modelscited by 5
- 2023DeepLens: Interactive Out-of-distribution Data Detection in NLP Modelscited by 5
- 2023Classical Out-of-Distribution Detection Methods Benchmark in Text Classification Taskscited by 5
- 2023Pseudo Outlier Exposure for Out-of-Distribution Detection using Pretrained Transformerscited by 5
- 2023Generative Data Augmentation using LLMs improves Distributional Robustness in Question Answeringcited by 5
- 2023FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Scorecited by 5
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forwardcited by 5
- 2023MSAC: Multiple Speech Attribute Control Method for Reliable Speech Emotion Recognitioncited by 4
50 most cited of 80 All 80 (JSON)
- 2026Evidence-Consistent Generative Detection under Scenario-Level Distribution Shift21 Aug 2026
- 2026Not All Layers Are Equal: Dynamic Layer Routing for Reliable CLIP OOD Detection30 Jul 2026
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectories30 Apr 2026
- 2026Vision Also You Need: Navigating Out-of-Distribution Detection with Multimodal Large Language Model20 Jan 2026
- 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forward19 Jan 2026
- 2025Confidence-Guided Stepwise Model Routing for Cost-Efficient Reasoning9 Nov 2025
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection7 Oct 2025
- 2025INSIGHT: INference-time Sequence Introspection for Generating Help Triggers in Vision-Language-Action Models1 Oct 2025
- 2025Translationese-index: Using Likelihood Ratios for Graded and Generalizable Measurement of Translationese16 Jul 2025
- 2025Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Data10 Jun 2025
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generation31 May 2025
- 2025Semantic Volume: Quantifying and Detecting both External and Internal Uncertainty in LLMs28 Feb 2025
38 more
- 2025Text Classification Under Class Distribution Shift: A Survey18 Feb 2025
- 2025Estimating LLM Uncertainty with Evidence1 Feb 2025
- 2024Generalizing Trust: Weak-to-Strong Trustworthiness in Language Models31 Dec 2024
- 2024'No' Matters: Out-of-Distribution Detection in Multimodality Long Dialogue31 Oct 2024
- 2024Out-of-Distribution Detection: A Task-Oriented Survey of Recent Advances18 Sep 2024
- 2024Counterfactuals As a Means for Evaluating Faithfulness of Attribution Methods in Autoregressive Language Models21 Aug 2024
- 2024One Stone, Four Birds: A Comprehensive Solution for QA System Using Supervised Contrastive Learning12 Jul 2024
- 2024KPC-cF: Aspect-Based Sentiment Analysis via Implicit-Feature Alignment with Corpus Filtering29 Jun 2024
- 2024How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliability13 Jun 2024
- 2024Safeguarding Large Language Models: A Survey3 Jun 2024
- 2024On the Noise Robustness of In-Context Learning for Text Generation27 May 2024
- 2024Embedding Trajectory for Out-of-Distribution Detection in Mathematical Reasoning22 May 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2023Detecting out-of-distribution text using topological features of transformer-based language models22 Nov 2023
- 2023Latent Feature-based Data Splits to Improve Generalisation Evaluation: A Hate Speech Detection Case Study16 Nov 2023
- 2023DA3: A Distribution-Aware Adversarial Attack against Language Models14 Nov 2023
- 2023Zero-Shot Cross-Lingual Sentiment Classification under Distribution Shift: an Exploratory Study11 Nov 2023
- 2023Principles from Clinical Research for NLP Model Generalization7 Nov 2023
- 2023LUNA: A Model-Based Universal Analysis Framework for Large Language Models22 Oct 2023
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models9 Oct 2023
- 2023FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Score8 Oct 2023
- 2023Meta Semantic Template for Evaluation of Large Language Models1 Oct 2023
- 2023Generative Data Augmentation using LLMs improves Distributional Robustness in Question Answering3 Sep 2023
- 2023Few-shot Anomaly Detection in Text with Deviation Learning22 Aug 2023
- 2023How Good Are LLMs at Out-of-Distribution Detection?20 Aug 2023
- 2023MSAC: Multiple Speech Attribute Control Method for Reliable Speech Emotion Recognition8 Aug 2023
- 2023Pseudo Outlier Exposure for Out-of-Distribution Detection using Pretrained Transformers18 Jul 2023
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Models16 Jul 2023
- 2023Classical Out-of-Distribution Detection Methods Benchmark in Text Classification Tasks13 Jul 2023
- 2023A Survey on Out-of-Distribution Evaluation of Neural NLP Models27 Jun 2023
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluations7 Jun 2023
- 2023Uncertainty in Natural Language Processing: Sources, Quantification, and Applications5 Jun 2023
- 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning2 Jun 2023
- 2023Semantic Role Labeling Guided Out-of-distribution Detection29 May 2023
- 2023Counterfactuals of Counterfactuals: a back-translation-inspired approach to analyse counterfactual editors26 May 2023
- 2023ReadMe++: Benchmarking Multilingual Language Models for Multi-Domain Readability Assessment23 May 2023
- 2023Out-of-Distribution Generalization in Text Classification: Past, Present, and Future23 May 2023
- 2023Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detection22 May 2023
50 newest of 80 All 80 (JSON)
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2022Out-of-Distribution Detection and Selective Generation for Conditional Language Modelscited by 193
- 2023LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learningcited by 107
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 99
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 96
- 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 91
- 2022GLUE-X: Evaluating Natural Language Understanding Models from an Out-of-distribution Generalization Perspectivecited by 72
- 2023Uncertainty in Natural Language Processing: Sources, Quantification, and Applicationscited by 44
- 2023Look Before You Leap: An Exploratory Study of Uncertainty Measurement for Large Language Modelscited by 40
- 2023GL-MCM: Global and Local Maximum Concept Matching for Zero-Shot Out-of-Distribution Detectioncited by 36
12 most cited of 73 All 73 (JSON)
- 2026Evidence-Consistent Generative Detection under Scenario-Level Distribution Shift21 Aug 2026
- 2026Not All Layers Are Equal: Dynamic Layer Routing for Reliable CLIP OOD Detection30 Jul 2026
- 2026Useful Features, Backward Scores: OOD in Language-Model Trajectories30 Apr 2026
- 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forward19 Jan 2026
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection7 Oct 2025
- 2025Translationese-index: Using Likelihood Ratios for Graded and Generalizable Measurement of Translationese16 Jul 2025
- 2025Merging Smarter, Generalizing Better: Enhancing Model Merging on OOD Data10 Jun 2025
- 2025Dual Debiasing for Noisy In-Context Learning for Text Generation31 May 2025
- 2025Semantic Volume: Quantifying and Detecting both External and Internal Uncertainty in LLMs28 Feb 2025
- 2025Text Classification Under Class Distribution Shift: A Survey18 Feb 2025
- 2025Estimating LLM Uncertainty with Evidence1 Feb 2025
- 2024Generalizing Trust: Weak-to-Strong Trustworthiness in Language Models31 Dec 2024
12 newest of 73 All 73 (JSON)