mlsanityData to 14 Oct 2026

Kernel PCA for Out-of-Distribution Detection: Non-Linear Kernel Selection and Approximation

arXiv 2505.15284 ↗First posted 21 May 2025cs.LG cs.CVcited by 1

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  5. 2022Training language models to follow instructions with human feedbackcited by 15,971
  6. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
  7. 2020Supervised Contrastive Learningcited by 2,829
  8. 2017Billion-scale similarity search with GPUscited by 2,497
  9. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  10. 2013Describing Textures in the Wildcited by 2,125
  11. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  12. 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,355
38 more
  1. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
  2. 2020Energy-based Out-of-distribution Detectioncited by 1,299
  3. 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 927
  4. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  5. 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
  6. 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
  7. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  8. 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
  9. 2015Deep Kernel Learningcited by 445
  10. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  11. 2020Generalized ODIN: Detecting Out-of-distribution Image without Learning from Out-of-distribution Datacited by 408
  12. 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
  13. 2021On the Importance of Gradients for Detecting Distributional Shifts in the Wildcited by 339
  14. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  15. 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
  16. 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
  17. 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
  18. 2020Random Features for Kernel Approximation: A Survey on Algorithms, Theory, and Beyondcited by 109
  19. 2022Is Out-of-Distribution Detection Learnable?cited by 109
  20. 2021Trustworthy AI: A Computational Perspectivecited by 93
  21. 2023Identifying and Mitigating the Security Risks of Generative AIcited by 91
  22. 2021Provable Guarantees for Understanding Out-of-distribution Detectioncited by 78
  23. 2023Scaling for Training Time and Post-hoc Out-of-distribution Detection Enhancementcited by 77
  24. 2023Nearest Neighbor Guidance for Out-of-Distribution Detectioncited by 64
  25. 2023Unsupervised Out-of-Distribution Detection with Diffusion Inpaintingcited by 59
  26. 2022RankFeat: Rank-1 Feature Removal for Out-of-distribution Detectioncited by 52
  27. 2022Boosting Out-of-distribution Detection with Typical Featurescited by 48
  28. 2023LINe: Out-of-Distribution Detection by Leveraging Important Neuronscited by 34
  29. 2022Block Selection Method for Using Feature Norm in Out-of-distribution Detectioncited by 30
  30. 2024Kernel PCA for Out-of-Distribution Detectioncited by 24
  31. 2022Unsupervised Anomaly Localization with Structural Feature-Autoencoderscited by 23
  32. 2023GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradientscited by 21
  33. 2020Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Featurescited by 20
  34. 2014Randomized Nonlinear Component Analysiscited by 18
  35. 2023VRA: Variational Rectified Activation for Out-of-distribution Detectioncited by 15
  36. 2024Gradient-Regularized Out-of-Distribution Detectioncited by 13
  37. 2018Streaming Kernel PCA with tildeO(√n) Random Featurescited by 11
  38. 2021Statistical Optimality and Computational Efficiency of Nystr"om Kernel PCAcited by 10

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.