[Paper Review] Out-Of-Distribution Detection With Subspace Techniques And Probabilistic Modeling Of Features
This paper proposes a novel out-of-distribution (OOD) detection method that leverages subspace techniques—both linear (e.g., PCA) and nonlinear (e.g., autoencoders)—to reduce high-dimensional deep features into lower-dimensional manifolds, followed by probabilistic modeling of these embeddings. It demonstrates that feature reconstruction error and log-likelihood scores in the reduced subspace significantly outperform baseline methods, achieving up to 13 percentage points higher AUROC and AUPR on CIFAR10, CIFAR100, and SVHN.
This paper presents a principled approach for detecting out-of-distribution (OOD) samples in deep neural networks (DNN). Modeling probability distributions on deep features has recently emerged as an effective, yet computationally cheap method to detect OOD samples in DNN. However, the features produced by a DNN at any given layer do not fully occupy the corresponding high-dimensional feature space. We apply linear statistical dimensionality reduction techniques and nonlinear manifold-learning techniques on the high-dimensional features in order to capture the true subspace spanned by the features. We hypothesize that such lower-dimensional feature embeddings can mitigate the curse of dimensionality, and enhance any feature-based method for more efficient and effective performance. In the context of uncertainty estimation and OOD, we show that the log-likelihood score obtained from the distributions learnt on this lower-dimensional subspace is more discriminative for OOD detection. We also show that the feature reconstruction error, which is the $L_2$-norm of the difference between the original feature and the pre-image of its embedding, is highly effective for OOD detection and in some cases superior to the log-likelihood scores. The benefits of our approach are demonstrated on image features by detecting OOD images, using popular DNN architectures on commonly used image datasets such as CIFAR10, CIFAR100, and SVHN.
Motivation & Objective
- To address the challenge of out-of-distribution (OOD) detection in deep neural networks, where models must identify data outside their training distribution.
- To overcome the limitations of high-dimensional feature spaces, where traditional probabilistic models suffer from the curse of dimensionality.
- To improve OOD detection performance by modeling features in a lower-dimensional subspace that better reflects the true data manifold.
- To evaluate the effectiveness of feature reconstruction error as a confidence score for OOD detection, independent of likelihood-based methods.
- To demonstrate robustness of the method when trained on limited data, relevant for real-world deployment.
Proposed method
- Apply linear dimensionality reduction (e.g., PCA) and nonlinear manifold learning (e.g., autoencoders) to compress high-dimensional deep features into a lower-dimensional subspace.
- Learn class-conditional probability distributions (e.g., multivariate Gaussian) on the reduced subspace to compute log-likelihood scores.
- Compute feature reconstruction error as the L2-norm between the original high-dimensional feature and its pre-image in the original space after dimensionality reduction.
- Use both log-likelihood and reconstruction error as confidence scores for OOD detection, enabling modular design choices.
- Train the subspace models and probability distributions on a fraction of the training data to assess robustness to data scarcity.
- Evaluate performance using standard metrics AUROC and AUPR on standard benchmarks (CIFAR10, CIFAR100, SVHN) with multiple network architectures.
Experimental results
Research questions
- RQ1Can dimensionality reduction of deep features into a lower-dimensional subspace improve OOD detection performance compared to modeling in the original high-dimensional space?
- RQ2Is feature reconstruction error a more effective OOD confidence score than log-likelihood in the reduced subspace?
- RQ3Does the homoscedasticity assumption (shared covariance) in multivariate Gaussian modeling of features remain valid in deep feature spaces, and does violating it degrade OOD detection performance?
- RQ4How does the performance of the proposed method scale when training data is limited, such as 20% of the full dataset?
- RQ5Do nonlinear subspace techniques consistently outperform linear ones, especially in deeper network layers with complex feature structures?
Key findings
- The proposed method achieves up to 13 percentage points higher AUROC and AUPR compared to baseline methods on CIFAR10, CIFAR100, and SVHN datasets.
- Feature reconstruction error in the reduced subspace is highly effective for OOD detection and often outperforms log-likelihood scores, especially in deeper layers.
- Nonlinear subspace modeling (e.g., autoencoders) consistently outperforms linear methods (e.g., PCA) in deeper network layers, where feature manifolds exhibit complex nonlinearity.
- The method remains robust even when trained on only 20% of the training data, with AUROC dropping by less than 1% in most cases and rarely exceeding 5% drop.
- The homoscedasticity assumption (shared covariance) in baseline Mahalanobis-based methods is often violated in deep features, leading to performance worse than even Softmax scores in some cases.
- The subspace-based approach enables the use of richer, more complex generative models on the reduced space, opening new avenues for improved uncertainty estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.