Kernel PCA for Out-of-Distribution Detection: Non-Linear Kernel Selection and Approximation
Not on the map. Why?
Abstract (arXiv)
Out-of-Distribution (OoD) detection is vital for the reliability of deep neural networks, the key of which lies in effectively characterizing the disparities between OoD and In-Distribution (InD) data. In this work, such disparities are exploited through a fresh perspective of non-linear feature subspace. That is, a discriminative non-linear subspace is learned from InD features to capture representative patterns of InD, while informative patterns of OoD features cannot be well captured in such a subspace due to their different distribution. Grounded on this perspective, we exploit the deviations of InD and OoD features in such a non-linear subspace for effective OoD detection. To be specific, we leverage the framework of Kernel Principal Component Analysis (KPCA) to attain the discriminative non-linear subspace and deploy the reconstruction error on such subspace to distinguish InD and OoD data. Two challenges emerge: (i) the learning of an effective non-linear subspace, i.e., the selection of kernel function in KPCA, and (ii) the computation of the kernel matrix with large-scale InD data. For the former, we reveal two vital non-linear patterns that closely relate to the InD-OoD disparity, leading to the establishment of a Cosine-Gaussian kernel for constructing the subspace. For the latter, we introduce two techniques to approximate the Cosine-Gaussian kernel with significantly cheap computations. In particular, our approximation is further tailored by incorporating the InD data confidence, which is demonstrated to promote the learning of discriminative subspaces for OoD data. Our study presents new insights into the non-linear feature subspace for OoD detection and contributes practical explorations on the associated kernel design and efficient computations, yielding a KPCA detection method with distinctively improved efficacy and efficiency.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 60 of its 106 references that are in the map. First posted on arXiv 21 May 2025.
Builds on
60 of 106 references.
References · 60
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2020Supervised Contrastive Learningcited by 2,829
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,355
38 more
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2015Deep Kernel Learningcited by 445
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
- 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
- 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2020Random Features for Kernel Approximation: A Survey on Algorithms, Theory, and Beyondcited by 109
- 2022Is Out-of-Distribution Detection Learnable?cited by 109
- 2021Trustworthy AI: A Computational Perspectivecited by 93
- 2023Identifying and Mitigating the Security Risks of Generative AIcited by 91
- 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
- 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 77
- 2023Nearest Neighbor Guidance for Out-of-Distribution Detectioncited by 64
- 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 59
- 2022RankFeat: Rank-1 Feature Removal for Out-of-distribution Detectioncited by 52
- 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
- 2023LINe: Out-of-Distribution Detection by Leveraging Important Neuronscited by 34
- 2022Block Selection Method for Using Feature Norm in Out-of-distribution Detectioncited by 30
- 2024Kernel PCA for Out-of-Distribution Detectioncited by 24
- 2022Unsupervised Anomaly Localization with Structural Feature-Autoencoderscited by 23
- 2023GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradientscited by 21
- 2020Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Featurescited by 20
- 2014Randomized Nonlinear Component Analysiscited by 18
- 2023VRA: Variational Rectified Activation for Out-of-distribution Detectioncited by 15
- 2024Gradient-Regularized Out-of-Distribution Detectioncited by 13
- 2018Streaming Kernel PCA with tildeO(√n) Random Featurescited by 11
- 2021Statistical Optimality and Computational Efficiency of Nystr"om Kernel PCAcited by 10
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2025: 1.
1 paper.