Manuscript Offprint
arXiv:2611.07580Subspace Learning with Outlier Exposure for Out-of-Distribution Detection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Out-of-Distribution (OoD) detection is pivotal for reliable deployments of Deep Neural Networks (DNNs), aiming to distinguish anomalous samples from the In-Distribution (InD) data in training. By introducing outliers as surrogate OoD data to finetune DNNs, Outlier Exposure (OE) has greatly advanced OoD detection in recent years. Existing OE-based research remains predominantly logit-centric, either by generating diverse outliers or by regularizing them with objectives operating at the prediction-output level. Nonetheless, these approaches leave much of the rich information in feature spaces untapped. In this work, we propose an OE-based detection framework, named RecOE, that learns appropriate feature subspaces from InD data and auxiliary outliers, such that the InD-OoD discrepancy can be effectively characterized through the learned feature subspaces. Specifically, the feature subspaces are optimized to capture the dominant variations of InD and outliers by minimizing reconstruction errors therein. Besides, a sample-level objective discourages reconstruction in the opposing subspace, while an orthogonality regularizer reduces subspace overlap, further promoting discriminative subspaces. At inference, the difference in reconstruction errors between the learned subspaces serves as the OoD detection score. Extensive experiments show the superiority of RecOE on multiple benchmarks, in which significant
*Corresponding author.
Email addresses: shenhongxu@bit.edu.cn (Hongxu Shen), kun.fang@polyu.edu.hk (Kun Fang), zhengjh14@tsinghua.org.cn (Jiahui Zheng), sunjian@bit.edu.cn (Jian Sun), qinghua.tao@bit.edu.cn (Qinghua Tao)
These authors contributed equally to this work.
performance gains are achieved over recent strong baselines with only slight extra overhead from two small-size matrices of subspace bases. The source code is available at https://github.com/shenhongxu123/RecOE.
Keywords: Out-of-distribution detection, outlier exposure, principal component analysis, subspace learning
1. Introduction
While deep neural networks (DNNs) have achieved vast success in real-world applications [1, 2], they are known to yield overconfident predictions on samples that deviate from the in-distribution (InD) training data [3], commonly known as Out-of-Distribution (OoD) samples. Such behavior poses substantial risks in safety-critical scenarios, including autonomous driving, medical diagnosis, and financial systems [4], making OoD detection a crucial research problem.
Existing OoD detection methods can be broadly categorized according to whether they require finetuning of a DNN. A series of post-hoc methods [5, 6, 7, 8, 9, 10, 11, 12] have been proposed with the main idea of leveraging the responses from a pretrained model to devise detection scores that capture the InD-OoD discrepancy. Another line of research introduces outliers as surrogate OoD data to finetune the DNN with regularization terms, which effectively promotes detection performance, known as Outlier Exposure (OE) [13]. OE-based methods advance OoD detection in two main aspects: outlier construction and outlier regularization. The former improves auxiliary outliers to provide surrogate OoD supervision through boundary-aware mining [14, 15], ID-outlier mixing [16], and informative extrapolation [17]. The latter develops regularization objectives to finetune the DNN for enhanced InD-outlier separation via energy-based margin regularization [6], gradient regularization of the OoD score function [18], or feature-based geometric constraints [19, 20]. Our work falls into the outlier-regularization category.
Early OE methods rely on the output logit space for both outlier generation and regularization [19]. The logit layer in DNNs primarily encodes coarse-grained knowledge associated with predictive classification probabilities. In contrast, feature spaces of DNNs encode far richer and structured information of data distributions, including hierarchical representations, geometric patterns, and semantics learned across layers. Recent feature-based OE methods promote InD-OoD separation using geometric references de-rived from classifier weights [19] or predefined structures [20]. Please find a detailed discussion in Section 2.1.
In this work, we propose RecOE, an OE-based OoD detection framework that exploits InD-OoD discrepancy through optimizing low-dimensional feature subspaces. We posit that distribution-associated dominant directions of feature variation provide useful structure for distinguishing InD data from outliers. Accordingly, we construct and optimize an InD-associated subspace and an auxiliary-outlier-associated subspace spanned by learnable orthonormal bases and , respectively. As commonly in OE-based detection, auxiliary outliers serve as a surrogate non-InD reference when the open-world OoD distribution is unavailable during training. The subspace spanned by therefore characterizes the structures exposed by these auxiliary training outliers, providing an important reference basis for separating InD data from OoD data.
In our RecOE framework, each subspace is constructed to capture the dominant variations of its corresponding feature distribution while those two subspaces are regularized to remain separated from each other. To this end, we jointly optimize the subspaces and the backbone, allowing the feature representations to adapt to the fitting and separation objectives. We therefore formulate two complementary learning objectives, subspace fitting and subspace separation, detailed as follows.
-
Subspace Fitting. Along with Principal Component Analysis (PCA) [21], we optimize and by minimizing the reconstruction error of training samples on and that of outliers on , such that captures intrinsic InD patterns and maximally describes the outliers to characterize the potential OoD.
-
Subspace Separation. The separation between the two subspaces is optimized at both sample and parameter levels. At the sample level, we deploy the margin-based hinge loss to encourage InD features with large reconstruction errors on the subspace , similarly for outlier features on . This ensures and to retain minimal information from the opposing distribution. At the parameter level, an orthogonality regularizer is imposed to disentangle the two subspaces and .
Notably in optimization, rather than solving an eigenvalue problem in standard PCA, the orthonormal bases can be optimized on Stiefel manifold [22] with Riemannian Adam optimizer [23, 24]. Thus, RecOE flexibly

Figure 1: Experimental exemplification on the effectiveness of RecOE, with CIFAR-10 as InD and iSUN as OoD. We interpolate the distribution of (a) reconstruction errors from a standard PCA on the pretrained DNN and (b) reconstruction contrast score by RecOE.
adapts to the end-to-end manner under OE-based training framework for OoD detection. We further introduce progressive-rank optimization to capture dominant feature variations at low rank before gradually expanding the subspaces to the target rank. This helps reduce interference from poorly estimated directions during early training.
The two optimized subspaces yield contrasting reconstructions of InD and OoD features. Specifically, InD samples are expected to be well reconstructed by and poorly reconstructed by , whereas OoD samples tend to exhibit the opposite behavior. We use the difference between the two reconstruction errors as an effective detection score, as illustrated in Figure 1.
Our main contributions are summarized as follows.
We introduce a feature-subspace perspective for OE regularization, revealing that intrinsic low-dimensional structures of InD and outlier features provide promising discriminative supervision for OoD detection.
We propose RecOE, a new framework that learns distribution-specific feature structures with InD-OoD separability in the subspaces. By fitting each subspace to its own distribution and suppressing information from the opposite one, their relative reconstruction naturally leads to a discriminative detection score. We introduce progressive-rank opti-mization to prioritize dominant feature variations early in training.
- Extensive experimental results validate the superiority of RecOE with state-of-the-art performance gains at only slight extra overhead from two small-size matrices.
2.1. OE-based OoD Detection
In OoD detection, the key is to devise a score function that reflects the likelihood of a test sample belonging to the distribution of training data (InD):
The threshold is chosen such that a large proportion of InD data is correctly classified. Generally, given a target model , its responses w.r.t. the given sample , such as logits and features, are utilized to devise the scoring function . We then outline a series of representative OoD detection methods based on Outlier Exposure (OE) [13], which are closely related.
OE-based methods introduce outliers as regularization to finetune with the following learning objective:
In Eq. (2), and denote the training dataset and the auxiliary outlier dataset, respectively, and denotes the cross-entropy loss. The performance of on outliers is regularized through an OE regularization loss , which is typically defined as the KL divergence between the outlier predictions and a uniform distribution. In this way, outliers act as surrogates for OoD data, allowing to be trained with the regularization term that strengthens the separation between InD and OoD samples.
A series of OE-based methods explore in different ways to generate diverse outliers. MixOE [16] conducts pixel-level interpolation between training samples and outliers; DivOE [17] introduces adversarial perturbations on outliers; DREAM-OOD [25] leverages diffusion models in the latent space to generate photo-realistic outliers. Meanwhile, another line of OE-based research focuses on designing advanced regularization terms to finetune the DNN.
In [26], a balanced Energy regularization loss is introduced by minimizing the Energy margins between InD training data and outliers; GReg [18] imposes gradient penalties to incorporate local information of data for finetuning.
Comparison with related methods. Among OE regularization methods, approaches in feature space use auxiliary outliers to shape representation geometry. PFS [19] imposes separation constraints using the subspace spanned by classifier weights and its orthogonal complement, whereas VPC [20] uses predefined geometric references. RecOE learns separate subspaces for InD and auxiliary-outlier features, each fitted to the dominant variations of the corresponding distribution. On the other hand, subspace structure is also used in post-hoc detection with pretrained backbones. ViM [27] combines principal-subspace residuals with classification logits, while KPCA [11] measures reconstruction errors in kernel space. WDiscOOD [28] combines scores from discriminative and residual subspaces obtained through whitened linear discriminant analysis of InD features. These methods derive their subspace references from InD features while keeping the backbone fixed. RecOE uses auxiliary outliers as a proxy for OoD data and jointly optimizes both subspace bases and the backbone. This joint learning shapes the representations to preserve distribution-specific structure and promote InD-outlier separation.
2.2. PCA Techniques
PCA [21] has long been a fundamental tool to analyze high-dimensional data. It seeks a low-dimensional subspace that preserves the dominant variations of data and has been widely used for dimensionality reduction and feature representation analysis [11].
Given a centered data/feature vector (i.e., ), PCA seeks a linear projection matrix , typically with , that maps onto a -dimensional principal subspace. The matrix contains a set of orthonormal bases spanning the projected subspace, such that , which can also be regarded as residing in the celebrated Stiefel manifold [22]. PCA can be equivalently optimized through maximizing the projection variation or minimizing the reconstruction error onto the subspace, the latter of which is adopted in our method.
Approaching from the reconstruction-based optimization, is projected into the subspace and then mapped, i.e., . The discrepancy lost during this process is formally defined as the reconstruction error:
(3) which quantifies the residual energy of the feature vector lying orthogonal to the learned subspace. Small values indicate better reconstructions, i.e., the most intrinsic patterns of are well retained in this subspace. Conversely, a large reconstruction error implies that the feature contains significant variations falling outside this subspace. This inherent property is crucial for motivating the optimization and also the inference in our method as introduced in Section 3.
Notation. DNNs with standard -class classification settings are considered. Let denote the input space and denote the label space. We denote the InD training dataset and auxiliary outlier dataset by and , respectively. A DNN is defined as , where denotes the backbone encoder and denotes the classifier head. For an input sample , we denote its penultimate-layer feature as .
3. Methodology
In this section, we present RecOE, an end-to-end feature-subspace learning framework for OE-based OoD detection. As illustrated in Figure 2, our framework characterizes the intrinsic patterns of InD and OoD samples through the optimization with two feature subspaces. We first elaborate the subspace modeling, and then introduce our optimization scheme.
3.1. Subspace Modeling
Feature Preprocessing. Following previous feature-space modeling methods [9, 19], we apply centered normalization before learning the subspaces. Each feature is first normalized as . For each distribution , we compute the mean of its normalized features in the current mini-batch : . During training, this batch mean is used for centering and to update a distribution-specific exponential moving average (EMA) center . Each EMA center is initialized from the first batch mean and subsequently updated as . The centered representation used by subspace is

Figure 2: Illustration of our RecOE for OE-based OoD detection. In training, RecOE seeks separation between InD and outliers through two subspaces spanned by and , which are optimized not only to capture maximal information of InD data and OoD data respectively (i.e., ), but also to encode minimal information from the opposing data distribution (i.e., ), together with an orthogonality term (i.e., ) to further refine the two subspaces. At inference, the difference of reconstruction errors in the learned two subspaces is naturally utilized as detection scores.
The center is always selected according to the subspace performing reconstruction, including when evaluating features from the opposing distribution. During inference, the EMA centers remain fixed, so centering does not depend on the composition of the test batch.
The two preprocessing operations serve complementary purposes. The normalization removes differences in feature magnitude, making projection and reconstruction-error measurements depend on the normalized representations rather than their original scales. Mean centering follows the principle used in PCA, removing the distribution mean before identifying principal directions of variation. Each subspace therefore models deviations around its distribution-specific center. When a feature is evaluated against the opposing distribution's subspace, using that subspace's center measures reconstruction relative to the corresponding distribution.
Feature Subspace. We construct two subspaces to model the dominant variations of InD features and OoD features, respectively. Since the complete open-world OoD distribution is unavailable during training, outliers are used to learn a proxy OoD subspace that captures non-InD structures observed during training. Along with the spirits in PCA, we learn each subspace by minimizing reconstruction errors for its associated distribution, while encouraging separation between the two subspaces.
We denote that the subspaces are spanned by two orthonormal bases and , naturally residing on the Stiefel manifold , i.e., and . For an input with feature , let denote its normalized feature centered using the center associated with subspace , as defined in Feature Preprocessing. Following Eq. (3), we define
For each subspace , measures the squared residual that remains after orthogonal projection onto the corresponding subspace. A smaller indicates that the subspace better explains the feature relative to its distribution-specific center.
Detection Score. Given the learned subspaces, we define the detection score for a test sample x as
This score compares how well the two subspaces reconstruct the feature relative to their respective centers. The learning objective encourages InD features to have lower reconstruction errors in the InD subspace than in the proxy OoD subspace, yielding higher scores. Lower scores indicate greater relative compatibility with the proxy OoD subspace and are used to identify OoD samples.
3.2. Subspace Optimization
We now elaborate our optimization strategy to obtain the aforementioned desired feature subspaces and . The optimization enforces two complementary principles: each feature distribution is well aligned with its corresponding subspace, while the two learned subspaces are explicitly separated from each other.
Subspace Fitting. The two feature subspaces and are primarily designed to capture the intrinsic patterns of their respective data distributions, similar to the principal components in PCA. We establish the objective of minimizing the reconstruction errors on the InD training samples onto and the outliers onto , respectively. This design enables each subspace to encode the information most relevant to its own data. To be specific, this loss is given by:
Subspace Separation. For OoD detection, we encourage each subspace to distinguish features from its corresponding distribution from those of the opposing distribution. Specifically, we penalize reconstruction errors below a prescribed margin when features are projected onto the opposing subspace, yielding the following hinge loss:
where is the margin in hinge loss. Minimizing encourages cross-subspace reconstruction errors to reach or exceed , with no further penalty once the margin is satisfied. Together with , this objective encourages each feature to be reconstructed more accurately by its corresponding subspace. We further penalize overlap between the two subspaces through . This parameter-level regularizer complements sample-level separation objective by discouraging shared directions between the two learned bases.
Joint Optimization. With the aforementioned schemes for subspace fitting and subspace separation, we formulate the overall optimization objective for our subspace-based OE regularization as follows:
where , is the standard cross-entropy loss, and coefficients and penalize the corresponding loss terms. During training, jointly updates the two subspace bases and the backbone g, allowing

Figure 3: T-SNE visualization of the learned features for InD and OoD data. RecOE achieves a clearer separation between InD (blue) and OoD (red and green) features compared to the Pretrained Model and the OE Model. By regularizing the network with subspace loss term, the network is able to output more distinguishable InD and OoD features. This distinct feature separation inherently facilitates the subsequent OoD detection based on reconstruction errors.
the feature representations to adapt to the subspace fitting and separation objectives. Meanwhile, encourages the retention of class-discriminative information. This joint optimization promotes separation between InD and OoD features within the learned representation space. The feature visualization in Figure 3 further illustrates the resulting separation between InD and OoD samples.
The parameters in optimization include the pretrained DNN and the two orthonormal matrices and . We adopt standard stochastic gradient descent optimizer to update the network parameters in , in line with the settings in existing OE-based methods, while using the Riemannian Adam optimizer [23, 24] to update the two matrices and constrained on the Stiefel manifold, i.e., and .
3.3. Progressive-Rank Optimization
During optimization, the subspace bases adapt to the evolving feature representations produced by the backbone. We therefore introduce subspace capacity progressively, allowing a smaller set of directions to be optimized before additional directions are incorporated.
Let denote the target rank and the shared active rank of the two subspaces at stage . Starting from , we expand both subspaces every optimization steps according to
This schedule gradually introduces the remaining directions until the target rank is reached.
At each expansion, we preserve the learned subspace and initialize additional directions in its orthogonal complement. The expanded basis remains orthonormal, and all directions continue to be jointly optimized. This procedure increases the representation capacity while retaining the subspace learned in preceding stages. Training uses the current-rank bases, whereas inference uses the final rank- bases. The initialization, expansion procedure, optimization settings and complete algorithm are detailed in Appendix A.2.
4. Experiments
In this section, we present extensive numerical experiments to evaluate the proposed RecOE with comparisons to a series of classic and strong baselines covering post-hoc and OE-based methods in Section 4.2. We also conduct multiple ablation studies on the roles of our optimized subspaces and the mechanisms fundamental to accurate detections in Section 4.3.
4.1. Experimental Setups
The main protocol in our experiments mainly follows [17], covering data, models, and training strategies.
Datasets. With the established protocols in [17, 13, 29], we experiment on CIFAR-10 [30] and ImageNet-1K [31] benchmarks. For CIFAR-10 as InD, we assess OoD detection performance using Textures [32], Places365 [33], iSUN [34], LSUN_Crop [35], and LSUN_Resize [35] as OoD datasets, as typically adopted in the community. Tiny_ImageNet [36] is utilized as the auxiliary surrogate OoD dataset during OE-based training. For ImageNet, we use ImageNet-1K as the InD dataset and ImageNet-21K_p [37] as the surrogate OoD data. The OoD data for ImageNet are iNaturalist [38], SUN [39], Places [33], and Textures [32].
Implementation. We employ WideResNet40-2 [40] and ResNet50 [41] as backbones for CIFAR and ImageNet, respectively. Following previous OE methods [17], we finetune for 10 epochs on CIFAR-10 and 4 epochs on ImageNet, respectively. For RecOE, the backbone is optimized using SGD with
| Method | FPR95↓ | AUROC↑ | ID-ACC↑ |
|---|---|---|---|
| Post-hoc methods | |||
| MSP | 52.21 | 90.61 | 94.84 |
| ODIN | 32.84 | 90.67 | 94.84 |
| Mahalanobis | 36.27 | 92.69 | 94.84 |
| Energy | 32.82 | 91.99 | 94.84 |
| ASH | 33.01 | 92.11 | 94.84 |
| PCA | 69.84 | 74.82 | 94.84 |
| KPCA (CoP) | 40.22 | 91.28 | 94.84 |
| KPCA (CoRP) | 31.82 | 93.80 | 94.84 |
| Mahalanobis++ | 19.56 | 95.90 | 94.84 |
| OE-based methods | |||
| OE | |||
| EnergyOE | |||
| POEM | |||
| MixOE | |||
| DivOE | |||
| GReg | |||
| PFS | |||
| VPC | |||
| RecOE (ours) | |||
Table 1: OOD detection results on CIFAR-10 (%). Results are reported as mean ± standard deviation over three trials when available.
cosine annealing, while the matrices and are learned with the Riemannian Adam optimizer [23, 24].
Baselines. We compare our proposed RecOE with two main categories of classic and recent strong baselines: (i) Post-hoc methods, including MSP [5], ODIN [42], Mahalanobis [7], Energy [6], ASH [43], PCA [44], KPCA (CoP and CoRP) [11], and Mahalanobis++ [10]; (ii) OE-based methods, including standard OE [13], EnergyOE [6], POEM [15], MixOE [16], DivOE [17], GReg [18], PFS [19] and VPC[20]. Three typical metrics are employed for evaluating detection results: (i) FPR95, the false positive rate of OoD samples at a 95% true positive rate for InD test data; (ii) AUROC, the area under the receiver operating characteristic curve; and (iii) ID-ACC, the classification accuracy on InD test data. Further experimental details are provided in Appendix A.1 and Appendix A.3.
| Method | FPR95↓ | AUROC↑ | ID-ACC↑ |
|---|---|---|---|
| Post-hoc methods | |||
| MSP | 75.23 | 76.67 | 68.72 |
| ODIN | 67.61 | 80.36 | 68.72 |
| Mahalanobis | 83.41 | 58.47 | 68.72 |
| Energy | 71.44 | 79.52 | 68.72 |
| ASH | 73.51 | 77.03 | 68.72 |
| PCA | 84.36 | 57.44 | 68.72 |
| KPCA (CoP) | 58.40 | 83.86 | 68.72 |
| KPCA (CoRP) | 48.60 | 87.53 | 68.72 |
| Mahalanobis++ | 49.54 | 88.14 | 68.72 |
| OE-based methods | |||
| OE | |||
| EnergyOE | |||
| POEM | |||
| MixOE | |||
| DivOE | |||
| GReg | |||
| PFS | |||
| VPC | 56.50 | 84.70 | 76.11 |
| RecOE (ours) | |||
Table 2: OOD detection results on ImageNet-1K (%). Results are reported as mean ± standard deviation over three trials when available.
4.2. Main Comparisons
The main comparisons of our RecOE with representative OoD detection methods on the CIFAR-10 and ImageNet-1K benchmarks are presented in Table 1 and Table 2. The reported results are averaged across multiple OoD test datasets, while the results on individual datasets are provided in Appendix B. In Tables 1 and 2, post-hoc results are checkpoint-specific point estimates, as each setting is evaluated on a single fixed checkpoint without independent repeated trials. OE results are reported as mean ± standard deviation over three trials when available; published results lacking these statistics are retained as point estimates. For VPC [20], we reproduce the CIFAR-10 results and use the published ImageNet-1K results. The published ImageNet-1K setting uses five fine-tuning epochs, compared with four epochs in our experiments, and does not report standard deviations.
As illustrated, RecOE significantly outperforms the compared baselines in both FPR95 and AUROC by a substantial margin, while maintaining competitive InD classification accuracy. This joint strength on OoD robustness and InD performance is challenging for the baseline methods. For instance, our method yields substantial improvements over the very recent VPC [20] on ImageNet with FPR95 reduced by 20.18 percentage points and AUROC boosted by 6.36 percentage points, despite VPC's readily strong performance with 56.50% on FPR95 and 84.70% on AUROC. Such improvements validate our effectiveness through subspaces optimized for InD and OoD. This result demonstrates great potential of this new perspective of proceeding outlier regularization on feature principal spaces, rather than the output logit space.
To evaluate RecOE under different degrees of distributional proximity, we further evaluate the tasks on far-OoD and near-OoD with the ImageNet-1K benchmark and compare with strong baselines, following protocols in [19]. Table 3 shows that RecOE achieves competitive far-OoD performance, with FPR95 of 31.46% and AUROC of 93.60%, although it trails Mahalanobis++ by 3.53 percentage points and 1.18 percentage points, respectively. On near-OoD datasets, RecOE significantly reduces FPR95 by 22.07 percentage points and improves AUROC by 6.21 percentage points upon the strongest VPC. These results demonstrate the particular effectiveness of RecOE in distinguishing OoD samples lying close to InD, which is commonly considered as more challenging settings for OoD detection.
| Method | Far-OoD | Near-OoD | ||
|---|---|---|---|---|
| FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | |
| KPCA (CoRP) | 29.66 | 93.75 | 67.85 | 81.33 |
| Mahalanobis++ | 27.93 | 94.78 | 71.16 | 81.51 |
| PFS | 52.23 | 85.62 | 68.16 | 80.92 |
| VPC | 49.75 | 87.10 | 63.25 | 82.30 |
| RecOE (ours) | 31.46 | 93.60 | 41.18 | 88.51 |
Table 3: OoD detection results on the detection tasks of far-OoD and near-OoD.
Computation Cost. Our method additionally optimizes two basis matrices, and , for subspace projections. Together, these matrices require storing coefficients at rank . We compare the computational cost of RecOE with that of standard OE using WideResNet-40-2 on CIFAR-10, reporting trainable parameter counts and mean fine-tuning time per epoch. As shown in Table 4, RecOE achieves lower FPR95 and higher AUROC, with an 18.4% increase in per-epoch fine-tuning time and a 0.71% increase in trainable parameters. These results demonstrate a favorable trade-off between OOD detection performance and the additional training time and parameter overhead introduced by RecOE.
| Method | Parameters | Time | FPR95↓ | AUROC↑ |
|---|---|---|---|---|
| OE | 2.244M | 14.10 ± 0.30 | 13.76 ± 0.23 | 97.53 ± 0.03 |
| RecOE | 2.260M | 16.70 ± 1.19 | 4.36 ± 0.76 | 98.68 ± 0.24 |
Table 4: Training cost and detection performance on CIFAR-10 with WideResNet-40-2. RecOE parameters are counted at the target rank. Time (s/epoch) and detection metrics are mean ± standard deviation.
4.3. Ablation Study
To better understand the mechanisms underlying the improved detection performance of RecOE, we ablate individual loss terms on CIFAR-10 and evaluate single-subspace variants on ImageNet-1K. We further evaluate the progressive-rank optimization strategy on both CIFAR-10 and ImageNet-1K to assess its effectiveness in improving OOD detection performance.
Individual loss terms. We conduct a leave-one-out ablation study on the losses regarding optimizing our subspaces, i.e., , with results reported in Table 5. The results show that removing either or leads to a substantial degradation in OoD detection performance, demonstrating that both strategies are essential to our subspace learning framework. Without , the learned subspaces fail to adequately capture the dominant variations of their corresponding feature distributions. In contrast, removing prevents the model from explicitly distinguishing each distribution from the opposing subspace, leading to increased overlap between the two learned subspaces. The comparatively smaller performance drop after removing indicates that plays a complementary role by reducing the overlap between the two subspaces.
| Loss Terms | OoD Detection Results | |||
|---|---|---|---|---|
| FPR95↓ | AUROC↑ | |||
| — | ✓ | ✓ | 14.89 | 95.83 |
| ✓ | — | ✓ | 29.19 | 94.57 |
| ✓ | ✓ | — | 4.77 | 98.40 |
| ✓ | ✓ | ✓ | 4.36 | 98.68 |
Table 5: Leave-one-out ablation of the subspace loss terms on CIFAR-10 (%).
Single Subspace. We evaluate the dual-subspace design on ImageNet-1K by varying the subspaces used during training and testing, with all other experimental settings unchanged. We first compare RecOE with the variants trained and tested using a single subspace. As shown in Table 6, RecOE outperformed both variants in FPR95 and AUROC. Compared with the stronger InD-only variant, RecOE reduces FPR95 by 1.86 percentage points and increases AUROC by 0.48 percentage points. The results in this ablation demonstrate the indispensableity of our two subspace construction and its optimization, in which the contrast reconstruction between subspaces and effectively yields discriminative separation in OoD detection.
| Training | Testing | FPR95↓ | AUROC↑ |
|---|---|---|---|
| InD-only | InD-only | 38.18 | 90.58 |
| Auxiliary-only | Auxiliary-only | 76.61 | 70.06 |
| Dual-subspace | InD-only | 44.24 | 88.70 |
| Dual-subspace | Auxiliary-only | 39.05 | 88.74 |
| Dual-subspace | Dual-subspace (RecOE) | 36.32 | 91.06 |
Table 6: Subspace ablation on ImageNet-1K (%). Training and testing columns specify the subspaces used at each stage.
To isolate the role of reconstruction contrast at inference, we retain the trained dual-subspace model and use either subspace alone at test time. Both variants perform worse than contrast scoring, indicating that an individual reconstruction error does not fully exploit the information available in the learned subspace pair. By contrasting reconstruction errors between and
, RecOE evaluates each sample's relative compatibility with the two distributions. This comparison supports the effectiveness of jointly using both subspaces at inference for OoD detection.
Progressive-Rank Optimization.. We compare the progressive-rank strategy with a fixed-rank variant that initializes and optimizes all target-rank directions from the beginning. Both configurations use the same final subspace rank. As shown in Table 7, progressive-rank optimization achieved modest improvements in both FPR95 and AUROC on the two benchmarks, indicating that directly optimizing the full-rank subspaces is less effective. By first learning compact subspaces and then gradually introducing additional directions, progressive-rank optimization prioritizes dominant feature variations and reduces the interference caused by poorly estimated directions during early training. These results validate the effectiveness of the proposed progressive-rank pipeline in facilitating stable and discriminative subspace learning.
| Method | CIFAR-10 | ImageNet-1K | ||
|---|---|---|---|---|
| FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | |
| RecOE (fixed rank) | 4.51 | 98.65 | 38.46 | 90.72 |
| RecOE | 4.36 | 98.68 | 36.32 | 91.06 |
Table 7: Ablation study of progressive-rank optimization on CIFAR-10 and ImageNet-1K.
4.4. Experiments with an Alternative Auxiliary Dataset
To further evaluate the generalizability of our method, we construct a more challenging setting in which both the InD data and the auxiliary outliers are drawn from ImageNet-1K. Specifically, 100 ImageNet-1K classes are used as InD data, while 800 disjoint classes serve as surrogate OoD data. We adopt the same test OoD datasets as in the setting where ImageNet-1K serves as the InD dataset and report the averaged results across multiple datasets. As shown in Table 8, although RecOE results in a decrease in AUROC from 85.78% to 80.78%, it reduces FPR95 from 69.17% to 63.57% and improves InD accuracy from 77.26% to 78.90%. These results indicate that the learned subspaces retain their discriminative capability in the challenging same-source setting, despite the trade-off in AUROC, where the InD and surrogate OoD samples are drawn from the same large-scale dataset. They further suggest that the effectiveness of RecOE does not depend solely on access to a diverse auxiliary dataset such as ImageNet-21K_p [37].
| Methods | FPR95↓ | AUROC↑ | ID-ACC↑ |
|---|---|---|---|
| OE | 69.17 | 85.78 | 77.26 |
| RecOE | 63.57 | 80.78 | 78.90 |
Table 8: OoD detection performance using 100 ImageNet-1K classes as InD data and 800 ImageNet-1K classes as surrogate OoD data.
4.5. Efficient variants of RecOE without Backbone Finetuning
In OE-based methods, finetuning is applied to the entire network () for updating the parameters that facilitate OoD detection. In the optimization with RecOE given in Eq. (9) in the main paper, we introduce two matrices and in addition to the pretrained . Because these learned subspaces play a central role in separating InD and OoD features, we further investigate lightweight settings in which the backbone is frozen and only the subspace matrices, either alone or together with the classification head , are optimized. For simplicity, we collectively denote the two subspace matrices by . To further simplify the optimization, these variants employ the fixed-rank subspace learning strategy. Specifically, we consider the following two lightweight variants of RecOE:
-
RecOE (): The subspace loss is used to only update and , with the entire pretrained frozen.
-
RecOE (): The linear head is optimized using , whereas the two basis matrices and are optimized solely through . The backbone remains frozen throughout training.
Table 9 reports the results obtained with ResNet50 on ImageNet-1K. Both lightweight variants substantially reduce the number of trainable parameters and training time while maintaining competitive detection performance. Specially, RecOE () uses 92.4% fewer trainable parameters and requires 89.7% less training time per epoch than the full RecOE. Despite the slight performance drop, the lightweight variants of our proposed RecOE still achieves advantageous results; for instance, simply updating leads to a lower FPR95 (46.78%) than the competitive post-hoc baseline Mahalanobis++ (49.54%) and OE-based baseline VPC (56.50%), and also attains higher AUROC than both. Nevertheless, freezing the backbone results in a drop in InD classification accuracy. Despite this trade-off, such lightweight variants further demonstrate the flexibility and practicality of RecOE, enabling its deployment in resource-constrained or time-sensitive scenarios.
| Updated parameters | Time (s/epoch) | Trainable parameters | FPR95↓ | AUROC↑ | ID-ACC↑ |
|---|---|---|---|---|---|
| RecOE (U) | 449 | 2.10M | 46.78 | 88.18 | 68.72 |
| RecOE (h, U) | 453 | 4.15M | 44.97 | 88.55 | 71.09 |
| RecOE | 4351 | 27.66M | 36.32 | 91.06 | 75.69 |
Table 9: Comparisons among variants of RecOE on ImageNet-1K. The trainable parameters and training time (s) per epoch are recorded, together with their detection results and ID-ACC.
4.6. Hyperparameter Sensitivity
Using CIFAR-10 as InD, we examine the sensitivity of RecOE to the subspace-loss weight , orthogonality regularization weight , separation margin , and subspace dimension . We use the validation set from [13] and vary one hyperparameter at a time, keeping the others at their default values. Figure 4 shows the resulting AUROC.
-
Subspace weight : This coefficient governs the trade-off between the classification task on InD data () and the subspace learning for the OoD detection task (). Experiments suggest that an excessively large may overemphasize the subspace-based objective and interfere with learning semantic representations from InD data.
-
Orthogonal regularization weight : The hyperparameter is related to penalizing correlation between the two subspaces, ensuring that the correspondingly learned two sets of bases capture complementary variations rather than redundant information. By reducing subspace overlap, it balances structural separation with the preservation of semantically meaningful representations.

Figure 4: Hyperparameter sensitivity analysis. From left to right: subspace-loss weight , orthogonality regularization weight , separation margin , and subspace dimension .
-
Subspace separation margin : The margin relates to the separation tolerance by penalizing samples whose reconstruction error relative to the opponent subspace falls below the threshold. A larger encourages a more distinct gap by pushing features apart across domains, whereas an excessively large margin can impose an overly restrictive constraint.
-
Subspace dimension : The dimension , i.e., the rank of the projection space, determines the granularity of the captured structural information. Empirical evidence suggests that a relatively low dimensionality is more effective; it successfully distills the essential characteristics of InD data while effectively filtering out OoD noise that lacks such low-rank consistency.
5. Conclusion and Discussion
In this work, we move beyond the mainstream logit-output space and introduce a feature subspace learning perspective into the OE-based framework. Unlike previous feature-based OE methods building up the model for features with additionally prescribed structures or modules, RecOE learns two distribution-specific subspaces, and , to capture the dominant variations of InD and OoD features while explicitly separating their distributional structures. In inference, the contrast between the reconstruction errors induced by the two subspaces provides an effective criterion for OoD detection. Extensive experiments across multiple benchmarks and settings further validate the effectiveness and generalizability of our method. Overall, our method offers new insights into feature subspace learning for OE-based OoD detection, achieving substantial performance gains with only minor computational overhead.
Several aspects of the current framework warrant further investigation. RecOE uses a shared InD subspace across classes, while its detection performance has not been examined at the class level. Future work could assess class-level differences and explore whether class-aware reconstruction scores improve detection consistency. In addition, the fitting and separation objectives provide a geometric basis for reconstruction contrast, but generalization guarantees for unseen OoD distributions remain to be established. Further theoretical analysis could clarify how reconstruction margins, subspace overlap, and auxiliary-outlier coverage influence detection error.
Acknowledgments
This work is supported by the National Natural Science Foundation of China (Grant No 62503051) and the Beijing Natural Science Foundation (L2607017).
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
During the preparation of this work, the authors used DeepSeek for language refinement and assistance with research code implementation. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
Supplementary Material
This supplementary material provides additional implementation details, extended experimental results and further discussions complementary to the main manuscript.
Appendix A. Implementation Details
Appendix A.1. Training and Hyperparameter Settings
Following the setting commonly adopted in OE-based methods [13, 17], we finetune pretrained backbones rather than training the complete networks from scratch. For the CIFAR experiments, we employ a WideResNet-40-2 [40] backbone initialized from a checkpoint obtained by training on CIFAR-10 for 100 epochs on the standard classification task. For the ImageNet-1K experiments, we utilize a ResNet-50 [41] architecture initialized with standard PyTorch pretrained weights. During finetuning, the backbone parameters are optimized using stochastic gradient descent (SGD) with a momentum of 0.9 and a weight decay of . The learning rate of SGD is updated at every training iteration using cosine annealing [45] and the initial learning rates are set to for CIFAR-10 and for ImageNet-1K. The two orthonormal subspace bases are optimized using Riemannian Adam [23, 24]. Optimization details for and are provided in Appendix A.2.
We use mini-batch sizes of 128 and 64 and finetune the networks for 10 and 4 epochs on CIFAR-10 and ImageNet-1K, respectively. Unless otherwise specified, the target rank of each subspace is set to 64 for CIFAR-10 and 512 for ImageNet-1K. For CIFAR-10, we set the separation margin to , the orthogonality regularization weight to , and the subspace-loss weight to . For ImageNet-1K, the corresponding values are set to , , and . Following prior work [13, 17], we select hyperparameters based on their overall performance across all three evaluation metrics on the validation set.
Appendix A.2. Progressive-Rank Subspace Optimization
The InD and auxiliary subspaces follow the same active-rank schedule, and their bases are initialized and expanded independently. We describe the procedure using a generic basis satisfying , where is the feature dimension and is the current active rank.
Initialization. Given a target rank , the basis starts at rank . We sample a Gaussian matrix with independent standard normal entries and initialize
where returns the orthonormal factor of a reduced QR decomposition.
Subspace expansion. The active rank increases every K optimization steps according to Eq. (10). For example, a target rank of k = 64 gives the sequence
When the rank increases from to , where is the rank increment, we retain the current basis and sample with independent standard normal entries. We project these new directions onto the orthogonal complement of the current subspace:
We then orthonormalize the projected directions and construct the expanded basis:
The expanded basis satisfies and contains the previously learned subspace. All directions remain trainable after expansion, and the columns are not ordered by explained variance.
Optimization. Each rank expansion changes the dimensions of the subspace parameters. We replace each Stiefel parameter with the expanded basis and reinitialize Riemannian Adam for both bases. Optimization proceeds in stages, each with a fixed active rank r. The subspace learning rate follows a cosine schedule within each stage, with maximum value
where is the initial maximum learning rate and controls its decay as the rank increases. At step of the current stage, the learning rate is
(A.5) where counts the optimization steps since the stage began and is the minimum learning rate. The counter starts at zero. While , each stage performs optimization steps with before the next rank expansion. Each expansion starts a new stage, resets to zero, and updates using the new active rank. Once , no further expansion occurs, and the counter continues to increase. The learning rate follows the same schedule and remains at for . Progressive-rank subspace optimization is summarized in Algorithm 1.
Algorithm 1 Progressive-Rank Subspace Optimization
Require: Subspace loss ; feature dimension ; target rank ; expansion interval ; total optimization steps ; learning-rate parameters .
Ensure: Optimized bases .
1: ; ;
2: for do
3: Sample with i.i.d. entries
4:
5: end for
6: Initialize Riemannian Adam for both bases
7: for do
8: if and then
9:
10: for do
11: Sample with i.i.d. entries
12:
13:
14: end for
15: ;
16: Replace the Stiefel parameters and reinitialize Riemannian Adam
17: end if
18:
19:
20: Compute gradients of with respect to both bases
21: Update both bases by Riemannian Adam with learning rate
22:
23: end for
| Setting | CIFAR-10 | ImageNet-1K |
|---|---|---|
| Target rank | 64 | 512 |
| Initial rank | 32 | 256 |
| Expansion interval | 500 | 1000 |
| Initial maximum learning rate | 5 | 10 |
| Minimum learning rate | ||
| Rank-dependent decay exponent | 0.5 | 0.5 |
Table A.1: Progressive-rank optimization settings. The expansion interval is measured in optimization steps, and the settings apply to each subspace basis.
Parameter settings. Table A.1 lists the subspace optimization settings. The backbone follows its original optimization schedule.
Appendix A.3. Computing Environment
All experiments are conducted on a workstation running Ubuntu 24.04, equipped with an Intel Core i9-14900K CPU and two NVIDIA GeForce RTX 4090 GPUs. The CIFAR-10 experiments use a single GPU, whereas the ImageNet-1K experiments use both GPUs. The installed NVIDIA driver is version 580.142. The experiments are implemented using Python 3.7 and PyTorch 1.12 built against CUDA 11.6. Riemannian optimization of the subspace parameters is implemented using Geoopt [24].
Appendix B. Detailed Results on Individual Datasets
In the main paper, we report the averaged OoD detection performance and standard deviations across multiple datasets for concise comparison. To provide a more detailed analysis of the effectiveness of RecOE under diverse OoD scenarios, we further report results for each OoD test dataset in this supplementary material. The detailed results on the CIFAR-10 and ImageNet-1K benchmarks are presented in Tables B.1 and B.2, respectively.
Following the experimental settings of DivOE [17], we reproduce PCA [44], KPCA (CoP and CoRP) [9], Mahalanobis++ [10], GReg [18], and PFS [19]. For CIFAR-10, we additionally reproduce VPC [20]; results for the remaining baselines are taken from DivOE. For ImageNet-1K, Table B.2 reports our reproduced baseline results and the published VPC results.
These detailed results highlight the substantial performance gains of our proposed framework over representative baselines across varied OoD datasets.
| Method | OoD dataset | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Textures | Places365 | iSUN | LSUN_Resize | LSUN_Crop | ||||||
| FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | |
| MSP | 59.27 | 88.50 | 60.77 | 88.13 | 56.79 | 89.53 | 53.60 | 91.02 | 30.55 | 95.68 |
| ODIN | 54.84 | 80.28 | 48.89 | 85.66 | 28.68 | 93.85 | 23.17 | 95.05 | 9.96 | 97.90 |
| Mahalanobis | 16.99 | 96.69 | 69.96 | 82.54 | 31.62 | 94.44 | 32.41 | 94.70 | 30.50 | 95.06 |
| Energy | 53.17 | 85.40 | 40.22 | 89.91 | 34.60 | 92.44 | 28.48 | 93.85 | 8.12 | 98.35 |
| PCA | 57.62 | 83.93 | 91.54 | 61.23 | 90.21 | 66.36 | 89.89 | 66.33 | 19.95 | 96.27 |
| KPCA (CoP) | 38.30 | 91.86 | 55.98 | 85.83 | 42.83 | 91.23 | 39.10 | 92.37 | 24.89 | 95.14 |
| KPCA (CoRP) | 36.60 | 93.49 | 41.34 | 91.05 | 31.52 | 93.64 | 25.64 | 95.02 | 23.98 | 95.80 |
| Mahalanobis++ | 15.73 | 96.99 | 45.33 | 89.19 | 18.63 | 96.67 | 16.61 | 96.99 | 1.52 | 99.69 |
| OE | 21.81 | 96.15 | 44.86 | 91.77 | 0.00 | 100.00 | 0.00 | 100.00 | 0.99 | 99.85 |
| EnergyOE | 33.59 | 85.47 | 58.39 | 68.32 | 0.00 | 100.00 | 0.00 | 100.00 | 0.31 | 99.83 |
| POEM | 34.73 | 85.28 | 57.82 | 67.93 | 0.00 | 100.00 | 0.00 | 100.00 | 0.43 | 99.74 |
| MixOE | 22.23 | 95.74 | 39.45 | 92.86 | 0.26 | 99.92 | 0.27 | 99.92 | 4.40 | 99.21 |
| DivOE | 12.28 | 97.73 | 44.97 | 91.51 | 0.07 | 99.98 | 0.02 | 99.99 | 3.03 | 99.47 |
| GReg | 22.28 | 93.96 | 41.18 | 91.21 | 0.00 | 100.00 | 0.00 | 100.00 | 0.00 | 100.00 |
| PFS | 14.93 | 91.74 | 21.20 | 89.16 | 3.72 | 98.44 | 4.50 | 98.11 | 0.38 | 99.68 |
| VPC | 38.30 | 91.22 | 29.17 | 94.16 | 4.10 | 98.50 | 3.53 | 99.00 | 0.52 | 99.70 |
| RecOE (ours) | 11.32 | 96.67 | 8.27 | 97.73 | 0.78 | 99.68 | 0.62 | 99.72 | 0.82 | 99.60 |
Table B.1: OoD detection performance on five OoD test datasets with CIFAR-10 as the InD data.
| Method | OoD dataset | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| iNaturalist | SUN | Places | Textures | ||||||
| FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | FPR95↓ | AUROC↑ | ||
| PCA | 95.44 | 51.98 | 97.96 | 44.83 | 97.98 | 45.15 | 46.05 | 87.79 | |
| KPCA (CoP) | 67.29 | 83.42 | 75.52 | 80.03 | 82.49 | 73.67 | 8.31 | 98.32 | |
| KPCA (CoRP) | 50.23 | 89.33 | 62.45 | 83.77 | 72.61 | 78.86 | 9.10 | 98.17 | |
| Mahalanobis++ | 50.15 | 90.74 | 66.23 | 84.13 | 76.08 | 78.89 | 5.71 | 98.82 | |
| GReg | 50.42 | 91.61 | 71.38 | 81.45 | 73.97 | 79.59 | 60.67 | 81.01 | |
| PFS | 44.25 | 89.76 | 64.07 | 82.11 | 72.24 | 79.73 | 60.21 | 81.49 | |
| VPC | 43.50 | 91.20 | 60.20 | 83.10 | 66.30 | 81.50 | 56.00 | 83.00 | |
| RecOE (ours) | 7.85 | 98.39 | 30.67 | 91.29 | 51.69 | 85.74 | 55.08 | 88.80 | |
Table B.2: OoD detection performance on four OoD test datasets with ImageNet-1K as the InD data. VPC results are taken from the original publication [20]; the remaining results are obtained from our experiments.
Notably, RecOE significantly reduces the FPR95 on complex OoD datasets where the compared methods typically struggle, such as Textures[32] and Places365[33] for CIFAR-10, and iNaturalist[38] for ImageNet-1K. While OE-based frameworks often exhibit slight performance trade-offs across different datasets, our approach achieves a better overall balance. For example, although RecOE performs slightly worse than some OE baselines on iSUN and LSUN_Resize, where performance is already near saturation, it achieves better overall performance across the full set of OoD datasets.
References
[1] I. Goodfellow, Y. Bengio, A. Courville, Deep Learning, MIT Press, 2016.
[2] J. Gu, Z. Wang, J. Kuen, L. Ma, A. Shahroudy, B. Shuai, T. Liu, X. Wang, G. Wang, J. Cai, T. Chen, Recent advances in convolutional neural networks, Pattern Recognition 77 (2018) 354–377. doi:10.1016/j.patcog.2017.10.013.
[3] A. Nguyen, J. Yosinski, J. Clune, Deep neural networks are easily fooled: High confidence predictions for unrecognizable images, in: CVPR, 2015, pp. 427–436.
[4] T. Schlegl, P. Seeböck, S. M. Waldstein, U. Schmidt-Erfurth, G. Langs, Unsupervised anomaly detection with generative adversarial networks to guide marker discovery, in: International Conference on Information Processing in Medical Imaging, Vol. 10265, 2017, pp. 146–157.
[5] D. Hendrycks, K. Gimpel, A baseline for detecting misclassified and out-of-distribution examples in neural networks, in: ICLR, 2017.
[6] W. Liu, X. Wang, J. Owens, Y. Li, Energy-based out-of-distribution detection, in: NeurIPS, Vol. 33, 2020, pp. 21464–21475.
[7] K. Lee, K. Lee, H. Lee, J. Shin, A simple unified framework for detecting out-of-distribution samples and adversarial attacks, in: NeurIPS, 2018, pp. 7167–7177.
[8] Y. Sun, Y. Ming, X. Zhu, Y. Li, Out-of-distribution detection with deep nearest neighbors, in: ICML, Vol. 162, PMLR, 2022, pp. 20827–20840.
[9] K. Fang, Q. Tao, K. Lv, M. He, X. Huang, J. Yang, Kernel PCA for out-of-distribution detection, in: NeurIPS, Vol. 37, 2024, pp. 134317–134344.
[10] M. Müller, M. Hein, Mahalanobis++: Improving OOD detection via feature normalization, in: ICML, PMLR, 2025, pp. 45151–45184.
[11] K. Fang, Q. Tao, M. He, K. Lv, R. Yang, H. Hu, X. Huang, J. Yang, L. Cao, Kernel PCA for out-of-distribution detection: Non-linear kernel selection and approximation, IEEE Transactions on Pattern Analysis and Machine Intelligence (2026) 1–16doi:10.1109/TPAMI.2026.3705778.
[12] I. Sevillano-García, J. Luengo, F. Herrera, STOOD-X: Explainable out-of-distribution detection via nonparametric statistical testing on large-scale datasets, Pattern Recognition 177 (2026) 113254. doi:10.1016/j.patcog.2026.113254.
[13] D. Hendrycks, M. Mazeika, T. Dietterich, Deep anomaly detection with outlier exposure, in: ICLR, 2019.
[14] J. Chen, Y. Li, X. Wu, Y. Liang, S. Jha, ATOM: Robustifying out-of-distribution detection using outlier mining, in: Joint European Conference on Machine Learning and Knowledge Discovery in Databases, Springer, 2021, pp. 430–445.
[15] Y. Ming, Y. Fan, Y. Li, POEM: Out-of-distribution detection with posterior sampling, in: ICML, PMLR, 2022, pp. 15650–15665.
[16] J. Zhang, N. Inkawich, R. Linderman, Y. Chen, H. Li, Mixture outlier exposure: Towards out-of-distribution detection in fine-grained environments, in: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2023, pp. 5531–5540.
[17] J. Zhu, Y. Geng, J. Yao, T. Liu, G. Niu, M. Sugiyama, B. Han, Diversified outlier exposure for out-of-distribution detection via informative extrapolation, in: NeurIPS, Vol. 36, 2023, pp. 22702–22734.
[18] S. Sharifi, T. Entesari, B. Safaei, V. M. Patel, M. Fazlyab, Gradient-regularized out-of-distribution detection, in: ECCV, Springer, 2024, pp. 459–478.
[19] Y. Wu, R. Yu, X. Cheng, Z. He, X. Huang, Pursuing feature separation based on neural collapse for out-of-distribution detection, in: ICLR, 2025.
[20] K. Xia, X. Yue, Z. Wei, Y. Peng, Z. Li, J. Zhu, J. Shi, P. Xu, Let OOD feature exploring vast predefined classifiers, in: ICLR, 2026.
[21] K. Pearson, LIII. on lines and planes of closest fit to systems of points in space, The London, Edinburgh, and Dublin philosophical magazine and journal of science 2 (11) (1901) 559–572.
[22] A. Edelman, T. A. Arias, S. T. Smith, The geometry of algorithms with orthogonality constraints, SIAM Journal on Matrix Analysis and Applications 20 (2) (1998) 303–353.
[23] G. Bécigneul, O.-E. Ganea, Riemannian adaptive optimization methods, in: ICLR, 2019.
[24] M. Kochurov, R. Karimov, S. Kozlukov, Geoopt: Riemannian optimization in PyTorch (2020). arXiv:2005.02819.
[25] X. Du, Y. Sun, J. Zhu, Y. Li, Dream the impossible: Outlier imagination with diffusion models, in: NeurIPS, Vol. 36, 2023, pp. 60878–60901.
[26] H. Choi, H. Jeong, J. Y. Choi, Balanced energy regularization loss for out-of-distribution detection, in: CVPR, 2023, pp. 15691–15700.
[27] H. Wang, Z. Li, L. Feng, W. Zhang, ViM: Out-of-distribution with virtual-logit matching, in: CVPR, 2022, pp. 4921–4930.
[28] Y. Chen, Y. Lin, R. Xu, P. A. Vela, WDiscOOD: Out-of-distribution detection via whitened linear discriminant analysis, in: ICCV, 2023, pp. 5298–5307.
[29] Q. Wang, J. Ye, F. Liu, Q. Dai, M. Kalander, T. Liu, J. Hao, B. Han, Out-of-distribution detection with implicit outlier transformation, in: ICLR, 2023.
[30] A. Krizhevsky, Learning multiple layers of features from tiny images, Tech. rep., University of Toronto (2009).
[31] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, L. Fei-Fei, ImageNet: A large-scale hierarchical image database, in: CVPR, IEEE, 2009, pp. 248–255.
[32] M. Cimpoi, S. Maji, I. Kokkinos, S. Mohamed, A. Vedaldi, Describing textures in the wild, in: CVPR, 2014, pp. 3606–3613.
[33] B. Zhou, A. Khosla, A. Lapedriza, A. Torralba, A. Oliva, Places: An image database for deep scene understanding (2016). arXiv:1610.02055.
[34] P. Xu, K. A. Ehinger, Y. Zhang, A. Finkelstein, S. R. Kulkarni, J. Xiao, Turkergaze: Crowdsourcing saliency with webcam based eye tracking (2015). arXiv:1504.06755.
[35] F. Yu, A. Seff, Y. Zhang, S. Song, T. Funkhouser, J. Xiao, LSUN: Construction of a large-scale image dataset using deep learning with humans in the loop (2016). arXiv:1506.03365.
[36] Y. Le, X. Yang, et al., Tiny ImageNet visual recognition challenge, CS 231N 7 (7) (2015) 3.
[37] T. Ridnik, E. Ben-Baruch, A. Noy, L. Zelnik-Manor, ImageNet-21K pretraining for the masses (2021). arXiv:2104.10972.
[38] G. Van Horn, O. Mac Aodha, Y. Song, Y. Cui, C. Sun, A. Shepard, H. Adam, P. Perona, S. Belongie, The iNaturalist species classification and detection dataset, in: CVPR, 2018, pp. 8769–8778.
[39] J. Xiao, J. Hays, K. A. Ehinger, A. Oliva, A. Torralba, SUN database: Large-scale scene recognition from abbey to zoo, in: CVPR, IEEE, 2010, pp. 3485–3492.
[40] S. Zagoruyko, N. Komodakis, Wide residual networks (2017). arXiv:1605.07146.
[41] K. He, X. Zhang, S. Ren, J. Sun, Deep residual learning for image recognition, in: CVPR, 2016, pp. 770–778.
[42] S. Liang, Y. Li, R. Srikant, Enhancing the reliability of out-of-distribution image detection in neural networks, in: ICLR, 2018.
[43] A. Djurisic, N. Bozanic, A. Ashok, R. Liu, Extremely simple activation shaping for out-of-distribution detection, in: ICLR, 2023.
[44] X. Guan, Z. Liu, W.-S. Zheng, Y. Zhou, R. Wang, Revisit PCA-based technique for out-of-distribution detection, in: ICCV, 2023, pp. 19431–19439.
[45] I. Loshchilov, F. Hutter, SGDR: Stochastic gradient descent with warm restarts, in: ICLR, 2017.