mlsanityData to 7 Oct 2026

Unsupervised Layer-wise Score Aggregation for Textual OOD Detection

arXiv 2302.09852 ↗First posted 20 Feb 2023cs.CL cs.AIcited by 15

Not on the map. Why?

Abstract (arXiv)

Out-of-distribution (OOD) detection is a rapidly growing field due to new robustness and security requirements driven by an increased number of AI-based systems. Existing OOD textual detectors often rely on an anomaly score (e.g., Mahalanobis distance) computed on the embedding output of the last layer of the encoder. In this work, we observe that OOD detection performance varies greatly depending on the task and layer output. More importantly, we show that the usual choice (the last layer) is rarely the best one for OOD detection and that far better results could be achieved if the best layer were picked. To leverage this observation, we propose a data-driven, unsupervised method to combine layer-wise anomaly scores. In addition, we extend classical textual OOD benchmarks by including classification tasks with a greater number of classes (up to 77), which reflects more realistic settings. On this augmented benchmark, we show that the proposed post-aggregation methods achieve robust and consistent results while removing manual feature selection altogether. Their performance achieves near oracle's best layer performance.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 78 of its 119 references that are in the map. First posted on arXiv 20 Feb 2023.

Builds on

78 of 119 references.

References · 78

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  7. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  8. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  9. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  10. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  11. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  12. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
38 more
  1. 2020Energy-based Out-of-distribution Detectioncited by 1,296
  2. 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
  3. 2021Generalized Out-of-Distribution Detection: A Surveycited by 796
  4. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
  5. 2019On the Cross-lingual Transferability of Monolingual Representationscited by 575
  6. 2021Datasets: A Community Library for Natural Language Processingcited by 526
  7. 2020GoEmotions: A Dataset of Fine-Grained Emotionscited by 479
  8. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
  9. 2020Efficient Intent Detection with Dual Sentence Encoderscited by 419
  10. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
  11. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
  12. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
  13. 2019PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identificationcited by 262
  14. 2021MOS: Towards Scaling Out-of-distribution Detection for Large Semantic Spacecited by 233
  15. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 220
  16. 2019Input complexity and out-of-distribution detection with likelihood-based generative modelscited by 186
  17. 2020Contrastive Training for Improved Out-of-Distribution Detectioncited by 186
  18. 2021Zero-Shot Out-of-Distribution Detection Based on the Pre-trained Model CLIPcited by 151
  19. 2022MASSIVE: A 1M-Example Multilingual Natural Language Understanding Dataset with 51 Typologically-Diverse Languagescited by 142
  20. 2018Out-of-Distribution Detection Using an Ensemble of Self Supervised Leave-out Classifierscited by 126
  21. 2021XLM-T: Multilingual Language Models in Twitter for Sentiment Analysis and Beyondcited by 114
  22. 2022Is Out-of-Distribution Detection Learnable?cited by 109
  23. 2021MOOD: Multi-level Out-of-distribution Detectioncited by 94
  24. 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
  25. 2018Extended Isolation Forestcited by 78
  26. 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 70
  27. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 67
  28. 2021Understanding Softmax Confidence and Uncertaintycited by 62
  29. 2021Just Say No: Analyzing the Stance of Neural Dialogue Generation in Offensive Contextscited by 56
  30. 2019Affect-Driven Dialog Generationcited by 50
  31. 2020Feature Space Singularity for Out-of-Distribution Detectioncited by 49
  32. 2018Generalization Error in Deep Learningcited by 46
  33. 2020X-Stance: A Multilingual Multi-Target Dataset for Stance Detectioncited by 42
  34. 2021A Novel Estimator of Mutual Information for Learning to Disentangle Textual Representationscited by 37
  35. 2020Hierarchical Pre-training for Sequence Labelling in Spoken Dialogcited by 36
  36. 2020What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual modelscited by 35
  37. 2021InfoLM: A New Metric to Evaluate Summarization & Data2Text Generationcited by 33
  38. 2020Guiding attention in Sequence-to-sequence models for Dialogue Act predictioncited by 26

50 most cited of 78 All 78 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 9; 2025: 1; 2026: 2.

15 papers.

Sort:

By area: