mlsanityData to 14 Oct 2026

How Out-of-Distribution Detection Learning Theory Enhances Transformer: Learnability and Reliability

arXiv 2406.12915 ↗First posted 13 Jun 2024cs.LG math.PRcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformers excel in natural language processing and computer vision tasks. However, they still face challenges in generalizing to Out-of-Distribution (OOD) datasets, i.e. data whose distribution differs from that seen during training. OOD detection aims to distinguish outliers while preserving in-distribution (ID) data performance. This paper introduces the OOD detection Probably Approximately Correct (PAC) Theory for transformers, which establishes the conditions for data distribution and model configurations for the OOD detection learnability of transformers. It shows that outliers can be accurately represented and distinguished with sufficient data under conditions. The theoretical implications highlight the trade-off between theoretical principles and practical training paradigms. By examining this trade-off, we naturally derived the rationale for leveraging auxiliary outliers to enhance OOD detection. Our theory suggests that by penalizing the misclassification of outliers within the loss function and strategically generating soft synthetic outliers, one can robustly bolster the reliability of transformer networks. This approach yields a novel algorithm that ensures learnability and refines the decision boundaries between inliers and outliers. In practice, the algorithm consistently achieves state-of-the-art (SOTA) performance across various data formats.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 67 of its 102 references that are in the map. First posted on arXiv 13 Jun 2024.

Builds on

67 of 102 references.

References · 67

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  7. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  8. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
  9. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  10. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  11. 2013Describing Textures in the Wildcited by 2,125
  12. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
38 more
  1. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  2. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  3. 2018Deep Anomaly Detection with Outlier Exposurecited by 942
  4. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  5. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  6. 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
  7. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
  8. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
  9. 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 386
  10. 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 353
  11. 2022VOS: Learning What You Don't Know by Virtual Outlier Synthesiscited by 300
  12. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
  13. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
  14. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  15. 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
  16. 2022Delving into Out-of-Distribution Detection with Vision-Language Representationscited by 216
  17. 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
  18. 2023OpenOOD v1.5: Enhanced Benchmark for Out-of-Distribution Detectioncited by 179
  19. 2018Universality of Deep Convolutional Neural Networkscited by 176
  20. 2021OpenGAN: Open-Set Recognition via Open Data Generationcited by 135
  21. 2023In or Out? Fixing ImageNet Out-of-Distribution Detection Evaluationcited by 134
  22. 2023Non-Parametric Outlier Synthesiscited by 129
  23. 2022How to Exploit Hyperspherical Embeddings for Out-of-Distribution Detection?cited by 128
  24. 2020ATOM: Robustifying Out-of-distribution Detection Using Outlier Miningcited by 116
  25. 2022Is Out-of-Distribution Detection Learnable?cited by 109
  26. 2022POEM: Out-of-Distribution Detection with Posterior Samplingcited by 108
  27. 2022Denoising diffusion models for out-of-distribution detectioncited by 104
  28. 2021Understanding Failures in Out-of-Distribution Detection with Deep Generative Modelscited by 89
  29. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 83
  30. 2021Types of Out-of-Distribution Texts and How to Detect Themcited by 80
  31. 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
  32. 2023Dream the Impossible: Outlier Imagination with Diffusion Modelscited by 77
  33. 2018Improving Reconstruction Autoencoder Out-of-distribution Detection with Mahalanobis Distancecited by 74
  34. 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 71
  35. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
  36. 2022A Logic for Expressing Log-Precision Transformerscited by 67
  37. 2021Mixture Outlier Exposure: Towards Out-of-Distribution Detection in Fine-grained Environmentscited by 66
  38. 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.