GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradients

Abstract

Detecting out-of-distribution (OOD) data is crucial for ensuring the safe deployment of machine learning models in real-world applications. However, existing OOD detection approaches primarily rely on the feature maps or the full gradient space information to derive OOD scores neglecting the role of \textbf{most important parameters} of the pre-trained network over In-Distribution data. In this study, we propose a novel approach called GradOrth to facilitate OOD detection based on one intriguing observation that the important features to identify OOD data lie in the lower-rank subspace of in-distribution (ID) data.In particular, we identify OOD data by computing the norm of gradient projection on \textit{the subspaces considered \textbf{important} for the in-distribution data}. A large orthogonal projection value (i.e. a small projection value) indicates the sample as OOD as it captures a weak correlation of the in-distribution (ID) data. This simple yet effective method exhibits outstanding performance, showcasing a notable reduction in the average false positive rate at a 95\% true positive rate (FPR95) of up to 8\% when compared to the current state-of-the-art methods.

Cite

Text

Behpour et al. "GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradients." Neural Information Processing Systems, 2023.

Markdown

[Behpour et al. "GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradients." Neural Information Processing Systems, 2023.](https://mlanthology.org/neurips/2023/behpour2023neurips-gradorth/)

BibTeX

@inproceedings{behpour2023neurips-gradorth,
  title     = {{GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradients}},
  author    = {Behpour, Sima and Doan, Thang Long and Li, Xin and He, Wenbin and Gou, Liang and Ren, Liu},
  booktitle = {Neural Information Processing Systems},
  year      = {2023},
  url       = {https://mlanthology.org/neurips/2023/behpour2023neurips-gradorth/}
}