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