Kernel PCA for Out-of-Distribution Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Fang, Kun, Tao, Qinghua, Lv, Kexin, He, Mingzhen, Huang, Xiaolin, Yang, Jie
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929656277499904
author Fang, Kun
Tao, Qinghua
Lv, Kexin
He, Mingzhen
Huang, Xiaolin
Yang, Jie
author_facet Fang, Kun
Tao, Qinghua
Lv, Kexin
He, Mingzhen
Huang, Xiaolin
Yang, Jie
contents Out-of-Distribution (OoD) detection is vital for the reliability of Deep Neural Networks (DNNs). Existing works have shown the insufficiency of Principal Component Analysis (PCA) straightforwardly applied on the features of DNNs in detecting OoD data from In-Distribution (InD) data. The failure of PCA suggests that the network features residing in OoD and InD are not well separated by simply proceeding in a linear subspace, which instead can be resolved through proper non-linear mappings. In this work, we leverage the framework of Kernel PCA (KPCA) for OoD detection, and seek suitable non-linear kernels that advocate the separability between InD and OoD data in the subspace spanned by the principal components. Besides, explicit feature mappings induced from the devoted task-specific kernels are adopted so that the KPCA reconstruction error for new test samples can be efficiently obtained with large-scale data. Extensive theoretical and empirical results on multiple OoD data sets and network structures verify the superiority of our KPCA detector in efficiency and efficacy with state-of-the-art detection performance.
format Preprint
id arxiv_https___arxiv_org_abs_2402_02949
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Kernel PCA for Out-of-Distribution Detection
Fang, Kun
Tao, Qinghua
Lv, Kexin
He, Mingzhen
Huang, Xiaolin
Yang, Jie
Machine Learning
Out-of-Distribution (OoD) detection is vital for the reliability of Deep Neural Networks (DNNs). Existing works have shown the insufficiency of Principal Component Analysis (PCA) straightforwardly applied on the features of DNNs in detecting OoD data from In-Distribution (InD) data. The failure of PCA suggests that the network features residing in OoD and InD are not well separated by simply proceeding in a linear subspace, which instead can be resolved through proper non-linear mappings. In this work, we leverage the framework of Kernel PCA (KPCA) for OoD detection, and seek suitable non-linear kernels that advocate the separability between InD and OoD data in the subspace spanned by the principal components. Besides, explicit feature mappings induced from the devoted task-specific kernels are adopted so that the KPCA reconstruction error for new test samples can be efficiently obtained with large-scale data. Extensive theoretical and empirical results on multiple OoD data sets and network structures verify the superiority of our KPCA detector in efficiency and efficacy with state-of-the-art detection performance.
title Kernel PCA for Out-of-Distribution Detection
topic Machine Learning
url https://arxiv.org/abs/2402.02949