Pseudo Outlier Exposure for Out-of-Distribution Detection using Pretrained Transformers
Not on the map. Why?
Abstract (arXiv)
For real-world language applications, detecting an out-of-distribution (OOD) sample is helpful to alert users or reject such unreliable samples. However, modern over-parameterized language models often produce overconfident predictions for both in-distribution (ID) and OOD samples. In particular, language models suffer from OOD samples with a similar semantic representation to ID samples since these OOD samples lie near the ID manifold. A rejection network can be trained with ID and diverse outlier samples to detect test OOD samples, but explicitly collecting auxiliary OOD datasets brings an additional burden for data collection. In this paper, we propose a simple but effective method called Pseudo Outlier Exposure (POE) that constructs a surrogate OOD dataset by sequentially masking tokens related to ID classes. The surrogate OOD sample introduced by POE shows a similar representation to ID data, which is most effective in training a rejection network. Our method does not require any external OOD data and can be easily implemented within off-the-shelf Transformers. A comprehensive comparison with state-of-the-art algorithms demonstrates POE's competitiveness on several text classification benchmarks.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 38 references that are in the map. First posted on arXiv 18 Jul 2023.
Builds on
25 of 38 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2020Supervised Contrastive Learningcited by 2,803
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 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
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
13 more
- 2019How Can We Know What Language Models Know?cited by 953
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2019Attention is not not Explanationcited by 629
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 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
- 2017Training Confidence-calibrated Classifiers for Detecting Out-of-Distribution Samplescited by 389
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
- 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 70
- 2020Pre-Training Transformers as Energy-Based Cloze Modelscited by 52
- 2022News Category Datasetcited by 42
- 2019Interactive Language Learning by Question Answeringcited by 19
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 1.
5 papers.
- 2024Rethinking the Uncertainty: A Critical Review and Analysis in the Era of Large Language Modelscited by 6
- 2025Ensembling Pruned Attention Heads For Uncertainty-Aware Efficient Transformerscited by 5
- 2025Torch-Uncertainty: A Deep Learning Framework for Uncertainty Quantificationcited by 4
- 2024Out-of-Distribution Detection through Soft Clustering with Non-Negative Kernel Regressioncited by 3
- 2026Semantic Flip: Synthetic OOD Generation for Robust Refusal in Embodied Question Answering and Spatial Localizationcited by 2
- 2026Semantic Flip: Synthetic OOD Generation for Robust Refusal in Embodied Question Answering and Spatial Localization15 Jun 2026
- 2025Torch-Uncertainty: A Deep Learning Framework for Uncertainty Quantification13 Nov 2025
- 2025Ensembling Pruned Attention Heads For Uncertainty-Aware Efficient Transformers21 Oct 2025
- 2024Rethinking the Uncertainty: A Critical Review and Analysis in the Era of Large Language Models26 Oct 2024
- 2024Out-of-Distribution Detection through Soft Clustering with Non-Negative Kernel Regression18 Jul 2024