Unsupervised Out-of-Domain Detection via Pre-trained Transformers
Not on the map. Why?
Abstract (arXiv)
Deployed real-world machine learning applications are often subject to uncontrolled and even potentially malicious inputs. Those out-of-domain inputs can lead to unpredictable outputs and sometimes catastrophic safety issues. Prior studies on out-of-domain detection require in-domain task labels and are limited to supervised classification scenarios. Our work tackles the problem of detecting out-of-domain samples with only unsupervised in-domain data. We utilize the latent representations of pre-trained transformers and propose a simple yet effective method to transform features across all layers to construct out-of-domain detectors efficiently. Two domain-specific fine-tuning approaches are further proposed to boost detection accuracy. Our empirical evaluations of related methods on two datasets validate that our method greatly improves out-of-domain detection ability in a more general scenario.
Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Builds on 21 of its 33 references that are in the map. First posted on arXiv 2 Jun 2021.
Builds on
21 of 33 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 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
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 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
9 more
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
- 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
- 2016Deep Structured Energy Based Models for Anomaly Detectioncited by 113
- 2020Discriminative Nearest Neighbor Few-Shot Intent Detection by Transferring Natural Language Inferencecited by 47
- 2021Incremental Few-shot Text Classification with Multi-round New Classes: Formulation, Dataset and Systemcited by 30
- 2018Deep Weighted Averaging Classifierscited by 9
Built on by
Citing papers per year: 2021: 1; 2022: 9; 2023: 9; 2024: 5; 2025: 6; 2026: 1.
31 papers.
Sort:
By area:
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
- 2024On Large Language Model Continual Unlearningcited by 51
- 2022Predicting Out-of-Distribution Error with the Projection Normcited by 50
- 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
- 2021Are Pretrained Transformers Robust in Intent Classification? A Missing Ingredient in Evaluation of Out-of-Scope Intent Detectioncited by 22
- 2022Learning Discriminative Representations and Decision Boundaries for Open Intent Detectioncited by 15
- 2022Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learningcited by 13
- 2023Fine-Tuning Deteriorates General Textual Out-of-Distribution Detection by Distorting Task-Agnostic Featurescited by 12
- 2022Estimating Soft Labels for Out-of-Domain Intent Detectioncited by 11
19 more
- 2022Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Textcited by 11
- 2024SeTAR: Out-of-Distribution Detection with Selective Low-Rank Approximationcited by 9
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2023Out-of-Domain Intent Detection Considering Multi-Turn Dialogue Contextscited by 6
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detectioncited by 6
- 2022Learning to Classify Open Intent via Soft Labeling and Manifold Mixupcited by 5
- 2023Masked Language Model Based Textual Adversarial Example Detectioncited by 5
- 2023FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Scorecited by 5
- 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Modelscited by 5
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attackscited by 4
- 2024Out-of-Distribution Detection through Soft Clustering with Non-Negative Kernel Regressioncited by 3
- 2024Transformer-based Joint Modelling for Automatic Essay Scoring and Off-Topic Detectioncited by 2
- 2024Improved Out-of-Scope Intent Classification with Dual Encoding and Threshold-based Re-Classificationcited by 2
- 2022Understanding, Detecting, and Separating Out-of-Distribution Samples and Adversarial Samples in Text Classificationcited by 1
- 2023Unsupervised Out-of-Distribution Dialect Detection with Mahalanobis Distancecited by 1
- 2023BED: Bi-Encoder-Based Detectors for Out-of-Distribution Detectioncited by 0
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Spacecited by 0
- 2025DROID: Dual Representation for Out-of-Scope Intent Detectioncited by 0
- 2026Scaling Pretrained Representations Enables Label-Free Out-of-Distribution Detection Without Fine-Tuningcited by 0
- 2026Scaling Pretrained Representations Enables Label-Free Out-of-Distribution Detection Without Fine-Tuning7 May 2026
- 2025DROID: Dual Representation for Out-of-Scope Intent Detection15 Oct 2025
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection7 Oct 2025
- 2025Rotation Control Unlearning: Quantifying and Controlling Continuous Unlearning for LLM with The Cognitive Rotation Space30 Sep 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2025SimLabel: Consistency-Guided OOD Detection with Pretrained Vision-Language Models20 Jan 2025
- 2024Out-of-Distribution Detection through Soft Clustering with Non-Negative Kernel Regression18 Jul 2024
- 2024On Large Language Model Continual Unlearning14 Jul 2024
- 2024SeTAR: Out-of-Distribution Detection with Selective Low-Rank Approximation18 Jun 2024
- 2024Improved Out-of-Scope Intent Classification with Dual Encoding and Threshold-based Re-Classification30 May 2024
- 2024Transformer-based Joint Modelling for Automatic Essay Scoring and Off-Topic Detection24 Mar 2024
19 more
- 2023FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Score8 Oct 2023
- 2023Unsupervised Out-of-Distribution Dialect Detection with Mahalanobis Distance9 Aug 2023
- 2023BED: Bi-Encoder-Based Detectors for Out-of-Distribution Detection15 Jun 2023
- 2023Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detection22 May 2023
- 2023Out-of-Domain Intent Detection Considering Multi-Turn Dialogue Contexts5 May 2023
- 2023A Survey on Out-of-Distribution Detection in NLP5 May 2023
- 2023Masked Language Model Based Textual Adversarial Example Detection18 Apr 2023
- 2023GL-MCM: Global and Local Maximum Concept Matching for Zero-Shot Out-of-Distribution Detection10 Apr 2023
- 2023Fine-Tuning Deteriorates General Textual Out-of-Distribution Detection by Distorting Task-Agnostic Features30 Jan 2023
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representations24 Nov 2022
- 2022Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Text21 Nov 2022
- 2022Estimating Soft Labels for Out-of-Domain Intent Detection10 Nov 2022
- 2022Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learning14 Oct 2022
- 2022POEM: Out-of-Distribution Detection with Posterior Sampling28 Jun 2022
- 2022Learning to Classify Open Intent via Soft Labeling and Manifold Mixup16 Apr 2022
- 2022Understanding, Detecting, and Separating Out-of-Distribution Samples and Adversarial Samples in Text Classification9 Apr 2022
- 2022Learning Discriminative Representations and Decision Boundaries for Open Intent Detection11 Mar 2022
- 2022Predicting Out-of-Distribution Error with the Projection Norm11 Feb 2022
- 2021Are Pretrained Transformers Robust in Intent Classification? A Missing Ingredient in Evaluation of Out-of-Scope Intent Detection8 Jun 2021
- 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 215
- 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
- 2022Predicting Out-of-Distribution Error with the Projection Normcited by 50
- 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
- 2021Are Pretrained Transformers Robust in Intent Classification? A Missing Ingredient in Evaluation of Out-of-Scope Intent Detectioncited by 22
- 2022Learning Discriminative Representations and Decision Boundaries for Open Intent Detectioncited by 15
- 2022Fine-grained Category Discovery under Coarse-grained supervision with Hierarchical Weighted Self-contrastive Learningcited by 13
- 2023Fine-Tuning Deteriorates General Textual Out-of-Distribution Detection by Distorting Task-Agnostic Featurescited by 12
- 2022Estimating Soft Labels for Out-of-Domain Intent Detectioncited by 11
- 2022Multi-Level Knowledge Distillation for Out-of-Distribution Detection in Textcited by 11
12 most cited of 28 All 28 (JSON)
- 2026Scaling Pretrained Representations Enables Label-Free Out-of-Distribution Detection Without Fine-Tuning7 May 2026
- 2025DROID: Dual Representation for Out-of-Scope Intent Detection15 Oct 2025
- 2025Mysteries of the Deep: Role of Intermediate Representations in Out of Distribution Detection7 Oct 2025
- 2025Exploring Gradient-Guided Masked Language Model to Detect Textual Adversarial Attacks8 Apr 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2024Out-of-Distribution Detection through Soft Clustering with Non-Negative Kernel Regression18 Jul 2024
- 2024SeTAR: Out-of-Distribution Detection with Selective Low-Rank Approximation18 Jun 2024
- 2024Improved Out-of-Scope Intent Classification with Dual Encoding and Threshold-based Re-Classification30 May 2024
- 2024Transformer-based Joint Modelling for Automatic Essay Scoring and Off-Topic Detection24 Mar 2024
- 2023FLatS: Principled Out-of-Distribution Detection with Feature-Based Likelihood Ratio Score8 Oct 2023
- 2023Unsupervised Out-of-Distribution Dialect Detection with Mahalanobis Distance9 Aug 2023
- 2023BED: Bi-Encoder-Based Detectors for Out-of-Distribution Detection15 Jun 2023
12 newest of 28 All 28 (JSON)