Manuscript Offprint
arXiv:2611.03421Circumventing Magnitude Collapse via Modular Two-Stage Open-Set Recognition
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Preprint. Accepted for publication at the British Machine Vision Conference (BMVC) 2026.
Circumventing Magnitude Collapse via Modular Two-Stage Open-Set Recognition
Laurin van den Bergh¹,²
Halil Bisgin³
Andres Palechor¹,†
Mike Suter¹,†
Manuel Günther¹,²,†
¹ Department of Informatics University of Zurich Zurich, Switzerland
² Digital Society Initiative University of Zurich Zurich, Switzerland
³ College of Innovation & Technology University of Michigan-Flint Michigan, USA
arXiv:2611.03421v1 [cs.CV]
Abstract
Open-set recognition (OSR) requires neural networks to classify known classes while rejecting unknown samples, which is critical for real-world deployment. So far, OSR research studied and developed representation learning and postprocessing methods independently and their interactions remain un-explored. In this paper, we reconsider OSR as a modular two-stage pipeline and present the first systematic study of interactions between representation learning and postprocessing methods across dataset scales and usage of known unknown data. First, we discover a failure mode we term magnitude collapse, where representation learning methods that utilize known unknown data can suffer performance degradation at large scale and irreversibly destroy discriminative information, despite excelling at small scale. Second, we study the modular interactions and reveal when they can be leveraged for modular performance gains via two-stage processing and where interaction effects amplify performance degradation due to magnitude collapse. Third, we show how these findings can be used to achieve state-of-the-art performance with a simple class classifier baseline and magnitude-aware postprocessing while circumventing magnitude collapse. Finally, our results demonstrate that small-scale evaluations with known unknown data are not predictive of large-scale performance, invalidating current best practices in OSR research. Code available at https://github.com/TwoDigitsOneNumber/Two-Stage-OSR.
© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.
†Work done while at the University of Zurich.

Figure 1: OPEN-SET RECOGNITION FRAMEWORK. The modular two-stage OSR framework separates representation learning and postprocessing, and reveals additional performance gains, by leveraging interaction effects between the two. Undesirable interaction effects exist for magnitude-manipulating representation learning (red) combined with magnitude-aware postprocessors (blue), while beneficial effects are observed for class classifiers and magnitude-aware postprocessors. Small-scale benchmarks are not predictive of large-scale performance and do not exhibit similar behavior due to limited similarity between known and known unknown classes.
handle unknown inputs for the reliability and safety of these systems [11, 23, 25]. This task is typically studied under the two closely-related problem formulations: Open-set Recognition (OSR) and Out-of-Distribution (OOD) detection. Both aim to improve the robustness of classifiers by detecting test-time distributional shifts.
While the categorization of OSR methods into representation learning and post-processing methods is commonly understood, current OSR methods are studied in isolation or compared as standalone methods, neglecting their differences and modular nature and potential for improvements through combinations. Since the interaction effects between representation learning and postprocessors have neither been explored nor formalized for OSR methods, we ask: can representation learning methods enhance or shape feature representations to amplify downstream postprocessors performance? Or vice versa: is the optimal choice of postprocessor dependent on the representation learning training objective?
In both representation learning and postprocessing methods, the feature magnitude has been identified as a crucial factor for performance with unknown data observing smaller feature magnitudes [0, 0, 0, 0, 0]. For instance, Wang et al. [60] highlight that magnitude-aware (MA) OOD postprocessing generally outperforms alternatives. This raises the question: do MA postprocessors synergize with representation learning methods that purposefully manipulate feature magnitudes during training? We identify a sub-category of representation learning methods, which we term magnitude-manipulating (MM), that utilize known unknown data to separate known and known unknown classes during training based on feature magnitude. However, MM methods tend to be sensitive to known unknown data distribution at large scale, with performance falling below baselines, despite their success on small-scale datasets [1], [2]. This raises concerns about their real-world applicability, and we seek to understand the underlying causes of this performance degradation at scale.
Our analysis reveals the mechanism behind the performance degradation of MM methods as the interplay of magnitude-manipulation and high similarity between known unknown and known classes, a scenario not found on small-scale benchmarks. This causes a magnitude collapse in similar known classes and creates an undesirable linear dependency between feature magnitudes and class-wise accuracy, leading to systematically imbalanced class-wise detection performance. We show that magnitude collapse can be avoided by using an additional output node (a class) for known unknown data, a simple and effective baseline that consistently outperforms other methods across scales and does not require hyperparameter tuning. This performance degradation of MM methods is further amplified by MA postprocessing, which otherwise experiences desirable interaction effects when combined with non-MM representation learning methods and outperforms other postprocessors. Moreover, our experiments suggest that representation learning without known unknown data and postprocessors are highly independent components of OSR systems with clear separation of responsibilities, enabling modular additive performance gains.
Overall, our study advances the understanding of OSR systems and provides actionable guidelines for researchers and practitioners. First, leverage the modularity of OSR systems by augmenting non-MM representation learning methods with MA postprocessors to achieve additional performance gains almost for free. Second, when training or fine-tuning a classifier with known unknown data that is visually similar to known classes, avoid MM representation learning methods. Instead, use a class classifier as baseline to mitigate magnitude collapse and leverage positive interaction effects. Finally, validate OSR methods on large-scale benchmarks before deployment, as small-scale evaluations are not predictive of large-scale performance.
In summary, our contributions are as follows:
-
For the first time in OSR literature, we explore the modularity and interaction effects of representation learning and postprocessing methods through two-stage OSR, revealing where modular performance gains can be achieved and where to avoid negative synergies.
-
We discover the magnitude collapse mechanism behind performance degradation at scale and how it impacts interaction effects.
-
We demonstrate how interaction effects and known unknown data can be leveraged at scale to achieve state-of-the-art performance regardless of known unknown data distribution with the simple class baseline and two-stage processing of OSR techniques.
-
Our experiments highlight that small-scale evaluations are not predictive of large-scale performance when using known unknown data.
2 Related work
OSR and Relation to OOD Detection. OSR is formalized as the task of accurately classifying samples from known classes while rejecting samples from semantically unknown classes [20], thereby detecting test-time semantic shift [20]. OOD
4 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
detection is a broader task [☐] that aims to detect general distribution shift, which can include semantic or covariate shifts [☐, ☐, ☐] and is often posed as a binary classification problem [☐, ☐, ☐, ☐, ☐]. As a result, OSR and OOD detection differ in their evaluation protocols [☐, ☐]: OSR partitions a single dataset into known and unknown classes to mitigate covariate shifts [☐, ☐], while OOD detection typically uses different datasets for in-distribution (ID) and OOD classes [☐]. Despite these differences, it has been indicated that methods that perform well on one task tend to perform well on the other [☐, ☐, ☐].
Known Unknown Data in OSR. Known unknown samples serve as a proxy for unknown classes during training and are distinct from known or ID classes [☐, ☐]. Known unknown samples are also referred to as outlier images [☐], natural adversarial examples [☐], and negative samples [☐]. Real known unknown data is used for OOD detection [☐, ☐] and OSR [☐, ☐], dating back to the earliest approaches [☐]. While a large attention in OSR research is paid to artificially generate known unknown samples [☐, ☐, ☐, ☐], in this study we exclude generative methods and instead use real known unknown data. The standard small-scale benchmarks MNIST, CIFAR, SVHN, and TinyImageNet partition all classes into known and unknown [☐], therefore do not allow any known unknown classes. The large-scale Semantic Shift Benchmark (SSB) [☐] uses the entire ImageNet-1K dataset as known classes and selects unknowns from a set of disjoint classes from ImageNet-21K-P.
Differences and Similarities to Prior Art. Wang et al. [☐] recently acknowledged the distinction between representation learning and postprocessors and the potential for combined approaches in the context of disentangling OSR and OOD methods and benchmarks without analyzing component interactions. However, they focus primarily on OOD detection methods, with 10 out of 12 methods being post-processing, leaving modern OSR methods and their interaction effects unexplored.
3 Modular two-stage framework for OSR
We disentangle OSR methods into two modular sequential components: representation learning (classifier training) and postprocessing (of pre-computed representations). Within this two-stage framework, every OSR system can be viewed as a combination of one representation learning method and one postprocessor , denoted as , e.g., our baseline combines Cross-Entropy (CE) training with Maximum SoftMax Probability (MSP) postprocessing. Figure 2 provides an overview of the two-stage framework. We summarize key characteristics relevant to this study of representation learning and postprocessing methods in Table 1. Appendix A.1 discusses how methods from Table 1 can be formalized in this framework.
Representation learning methods train or fine-tune a classifier and extract the representations for sample , where are discriminative deep features, are the logits, and the probability distribution over the known classes. They methods can modify the training process in various ways, typically by adapting the loss function [☐, ☐, ☐, ☐], involving data augmentation,

Figure 2: TWO-STAGE PROCESSING FRAMEWORK FOR OSR. An image is presented to the backbone network , which extracts deep features that are then processed with a linear layer to logits , and further with SoftMax to probabilities . Solid lines indicate (potentially) learnable connections, while dashed lines highlight non-learnable connections. The postprocessor takes the deep features, logits, or probabilities as input and outputs a class prediction and a OOD score .
such as mixup [65, 68] or generative methods [0, 1, 12, 18, 25, 30, 40], or combinations thereof [30]. They are trained on a dataset , where for input is the set of known samples with known class labels , and is the set of known unknown samples. Evaluation uses , where denotes unknown samples. Note that while known unknown and unknown samples do not require a specific target label, they are required to not share the label space with known classes [40].
Postprocessors operate post-hoc on representations to add open-set capabilities to a pre-trained closed-set classifier, making them a cheap alternative to expensive representation learning training. However, postprocessors cannot undo any damage to the feature representation learned by the pre-trained network, e.g., when deep feature distributions from known and unknown classes overlap, no postprocessor is able to separate those samples. Postprocessors can involve training a secondary classifier [27, 50], employing a statistical model [0], modifying the inputs [15], or simply returning elements of [11, 13]. We formalize postprocessors as follows: for test sample with , we require a postprocessor to produce two outputs , where is the prediction of a known class label and is an OOD score, where high scores indicate known classes. In an operational setting with a threshold , the OSR decision function can be defined as:
Attributing performance contributions. To isolate and evaluate the performance contributions of individual components, we propose to measure the effect of
Note that most postprocessors perform class predictions based on the argmax of the logits (or monotonic transformations thereof) and therefore yield identical class predictions and closed-set accuracy, addressing exclusively the separation between known and unknown classes.
6 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
| Method | Known unknown | MM | Output |
|---|---|---|---|
| Cross-Entropy (CE) | none | ||
| ARPL [☐] | none | ||
| class [☐] | real | Yes | |
| Objectosphere (OS) [☐] | real | Yes | |
| Outlier Exposure (OE) [☐] | real | Yes |
(a) Representation Learning
| Method | Trainable | MA | Inputs |
|---|---|---|---|
| Maximum Softmax (MSP) [☐] | y | ||
| MaxLogits/MLS [☐, ☐] | Yes | z | |
| OpenMax [☐] | Yes | φ | |
| PostMax [☐] | Yes | Yes | φ, z |
| GHOST [☐] | Yes | Yes | φ, z |
(b) Postprocessing
Table 1: KEY CHARACTERISTICS. We list key characteristics of (a) representation learning f and (b) postprocessing g methods for OSR. Representation learning methods highlight which types of known unknown data they use, whether they are Magnitude-Manipulating (MM), and whether they use an additional output node for the unknown class. For postprocessors, we list whether they require training, are Magnitude-Aware (MA), and which types of inputs they operate on.
representation learning or postprocessing by computing contribution deltas of the respective components, for a given metric . We compute the representation learning contribution delta to the CE baseline as a function of the postprocessor. Similarly, we separate improvements of postprocessors by computing the postprocessor contribution delta to the MSP baseline. We define the representation learning and postprocessor contribution deltas as follows:
This allows us to decompose the performance improvement of any two-stage OSR system over the baseline into representation learning and postprocessing contributions as follows:
4 Study Design and Experimental Setup
We choose five representation learning approaches, based on whether the method requires known unknown data and whether it (explicitly or implicitly) manipulates the feature magnitude. As such we selected the following methods: Cross-Entropy (CE), ARPL [☐], class [☐], Outlier Exposure (OE) [☐], and Objectosphere (OS) [☐]. We also choose five postprocessors, based on whether they take the feature magnitude into account, i.e., whether they are magnitude-aware. We select MSP [☐], MaxLogits/MLS [☐, ☐], OpenMax [☐], PostMax [☐] and GHOST [☐].
Datasets. We conduct small-scale experiments on the standard OSR CIFAR+N benchmarks with [☑]. These protocols randomly sample 4 known classes from CIFAR-10 and N unknown classes from CIFAR-100 [☑]. To allow training with known unknown samples, we randomly sample N known unknown classes from the remaining classes in CIFAR-100. Large-scale experiments are conducted on the ImageNet protocols , and [☑] based on the ILSVRC 2012 dataset [☑]. These protocols offer increasing levels of difficulty from to by increasing semantic similarity between known, known unknown, and unknown classes based on the WordNet hierarchy [☑]. While poses an easy open-set task with low similarity between known and known unknown classes, and pose increasingly difficult open-set tasks with high similarity between known and known unknown classes.
Evaluation Metrics. To evaluate the binary unknown rejection and the closed-set performance in isolation, we use the Area Under the Receiver Operating Characteristics (AUROC) curve and closed-set accuracy, respectively. To evaluate OSR performance we use Correct Classification Rate (CCR) [☐] and False Positive Rate (FPR) and their single-valued derivations: Area Under the Open-Set Classification Rate (AUOSCR) curve [☑], which provides a threshold-agnostic measure, and the Operational Open-set Accuracy (OOSA) [☐], which equally weights known and unknown samples and measures performance at an operational threshold. For detailed descriptions of all metrics, please refer to Appendix A.6. Given knowns , unknowns , predictions , and threshold we compute CCR and FPR following Rabinowitz et al. [☑] to allow for arbitrary OOD scores :
To evaluate our methods we use multiple metrics to capture different aspects of performance. AUOSCR and OOSA lack the interpretability of closed-set accuracy and AUROC, and therefore should not be solely relied upon. On the other hand, the latter do not measure OSR performance holistically [☑]. For example, closed-set accuracy is incapable of measuring interaction effects because all postprocessors except OpenMax exclusively rely on the logit order from upstream representation learning methods to produce predictions and ignore , resulting in identical accuracy scores (Figure 13d in the Supplemental). AUROC measures the ability to separate known and unknown samples across all thresholds via and ignores , thereby directly measuring the discriminative ability of the postprocessor and indirectly of the representation learning method. AUOSCR and OOSA however jointly measure the quality of and for any given threshold via CCR( ) and FPR( ). As such we rely primarily on AUOSCR and OOSA to answer our research questions but draw complementary insights from closed-set accuracy and AUROC.
Training Details. We train all networks from scratch, both to prevent leakage from pre-training on unknown classes and to isolate representation learning from
We use the same class allocations as Chen et al. [☐] for comparability.
8 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 3: OSR PERFORMANCE. We show OSR performance for combinations across datasets in AUOSCR (top) and OOSA (bottom). The color of each heatmap is normalized independently and centered at the baseline, where blue shows an increase and red a decrease. Single-stage methods are surrounded by a black border. Results for CIFAR+N are averaged over 5 trials.
fine-tuning effects. All networks are trained using SGD with momentum of 0.9 and an initial learning rate of 0.1 with cosine annealing schedule [☑]. For large-scale experiments we train ResNet50 for 120 epochs with batch size of 32 and weight decay of 1e-4. The small-scale experiments are trained with the CNN architecture from Neal et al. [☑] and Chen et al. [☐] for 100 epochs with batch size of 128 and weight decay of 5e-4. We perform early stopping according to validation confidence [☑]. For CE and ARPL, we compute validation confidence on known classes only since including known unknowns yielded unreliable results. Where possible, we rely on recommended hyperparameters for each representation learning and postprocessing method. Others are optimized on the validation set via grid search. Optimal hyperparameters and their ranges are reported in Appendix A.5.
5 Results and Discussion
5.1 Representation Learning with Known Unknown Data
The first set of experiments aims at answering if representation learning with known unknown data can improve OSR performance on large-scale datasets, despite recent studies that suggest otherwise [☑]. We compare the performance of representation learning methods with known unknown data ( class, OE, and OS) to methods that only utilize known classes (CE and ARPL) across datasets. Here, we ignore interaction effects and consider MSP postprocessing or aggregate results over all postprocessors. The AUOSCR and OOSA for every combination are shown in Figure 3, other metrics are reported in Tables 3 and 4 in the Supplemental.
Small-Scale Training Excels on Known Unknown Data. On CIFAR+N, all representation learning methods utilizing known unknown data systematically outperform those that do not by up to 5.9 percentage points in AUOSCR with MSP. State-of-the-art ARPL achieves consistent but negligible improvements over CE for any given postprocessor. With known classes being held constant between CIFAR+10

Figure 4: AGGREGATED RESULTS. The representation learning performance contribution in AUOSCR is shown as distributions over postprocessors and across protocols. Methods that use known unknown data are marked with blue background. CIFAR+N results are averaged over 5 trials.
and CIFAR+50, we can see that additional known unknown data consistently improves AUOSCR by over 2 percentage points, even when evaluated on more unknown classes. For all representation learning methods, the variations across postprocessors are comparably small, suggesting that representation learning contributes more toward overall performance than postprocessors on small-scale benchmarks, likely due to the limited diversity between known classes and the large distributional gap between known and unknown classes that can easily be exploited by representation learning methods with known unknown data. Only MaxLogits provides substantial gains, up to 2.2 percentage points of AUOSCR over MSP for CE.
Performance Degradation at Large Scale. On large-scale ImageNet protocols, this outperformance from using known unknown data vanishes, even underperforming the baseline on for most postprocessors, in line with Wang et al. [60]. Figure 4 depicts the representation learning contribution deltas for each representation learning method across datasets as distribution over all postprocessors . The representation learning contribution delta for MM methods OE and OS degrades and turns negative with increasing similarity of known and known unknown classes on and , destroying performance across most postprocessors. Wang et al. [60] attribute their findings of poor OE performance to low correlation between known unknown and unknown classes or high correlation between known and unknown classes. However, the class classifier does not experience this performance degradation with identical data, demonstrating that it cannot be explained by the data distributions alone but by the interplay between data distributions and training objective. Strong OOD detection performance with MSP (see AUROC in Figure 13c) and high correlation between AUOSCR and closed-set accuracy (cf. Figure 13d in Supplemental) suggest that the performance degradation can partially be explained by a loss of discriminative information for known classes.
10 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 5: FEATURE MAGNITUDES. We plot feature magnitude distributions of known, known unknown, and unknown classes on protocols , , and EMNIST. OE and OS experience feature magnitude collapse on and EMNIST, pulling their feature magnitudes towards zero. For EMNIST, we show distributions for known classes 1 and 9 (black and grey) that are highly similar to known unknown classes, and other known classes (blue) separately.
Magnitude Collapse. To understand why MM methods degrade in accuracy, AU-OSCR, and OOSA, we analyze the feature magnitude distributions of known, known unknown, and unknown samples (Figure 5). With highly similar known unknown samples, MM methods inadvertently draw features of known classes towards the origin of the feature space, resulting in magnitude collapse and effectively overlapping them with known unknown, unknown, and other known samples. We analyze the relationship between feature magnitude and class-wise CCR [☑] at the operational threshold, , see Appendix A.6, and perform linear regression against the class-wise average feature magnitude for each known class (Figure 15 in the Supplemental). On CIFAR+N, only MM methods exhibit a statistically significant positive correlation between average feature magnitude and , with large effect sizes of up to 80%. On the easily separable , most models exhibit significant positive correlations, but often with meaningless effect sizes below 10%. However, with increasing similarity in known and known unknown samples on and , MM methods learn much stronger and statistically significant relationships, resulting in practically significant effect sizes of up to 38% on (Figure 6). This shows how magnitude-manipulation increases the dependency between feature magnitude and CCR by systematically reducing performance on a few classes in a trade-off to maintain overall high binary ID-vs-OOD separation via MSP (see AUROC Figure 13c) and increasing the minimal class-wise CCR.
In contrast, class counteracts magnitude collapse by learning sufficiently
All regression assumptions are reasonably met.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 11

| f: | CE | ARPL | K+1 | OE | OS |
|---|---|---|---|---|---|
| g: | MSP | OpenMax | MaxLogits | PostMax | GHOST |
Figure 6: CCR vs. MAGNITUDE. We exhibit a linear relationship between class-wise CCR, , at the operational threshold and class-wise average feature magnitude for known classes on . We perform regression for each representation learning method independently and over all postprocessors.
large feature magnitudes to achieve high SoftMax probabilities for the additional output node during training. Since class is trained via CE loss, it forces probabilities corresponding to any output node (known or known unknown) to be close to 1 for samples of the respective class. Formally, we want the trained network to be able to achieve for any sample and output class , for some small . This holds if (but not only if) the difference between the maximal two logits surpasses a lower bound , which is equivalent to (see Appendix A.3):
where is the difference logits divided by their feature magnitude. Note that is constant for any dataset, loss and , and is generally small because weight magnitudes are minimized through weight decay and the cosines are bounded between -1 and 1. This provides upward pressure on feature magnitudes during training and requires deep feature magnitudes to exceed a lower bound for any sample given a trained classifier. In other words, learning sufficiently large feature magnitudes is a sufficient condition to achieve high confidence for some class given trained classifier weights . This training incentive prevents magnitude collapse in class and ensures that class learns feature magnitude distributions similar to CE and ARPL. Surprisingly, despite training on known unknown data, class learns lower feature magnitudes for known unknown and unknown classes while maintaining sufficiently large feature magnitudes to achieve high confidences for known and known unknown classes. The difference in feature magnitudes between known, known unknown, and unknown classes is analogous to CE but slightly more pronounced on , see Figure 12. This provides theoretical support for combinations of class with MA postprocessors, because high level magnitude distribution statistics are similar to CE, for which those postprocessors were designed.
Qualitative Analysis on Class Similarity. We replicate and qualitatively investigate the feature collapse for MM methods at small scale by curating a hard
12 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 7: INTERACTION EFFECTS. We indicate interaction effects of representation learning and postprocessing components as correlation between representation learning contribution and postprocessor contribution for AUOSCR (top row) and OOSA (bottom row).
EMNIST benchmark that includes known unknown classes which are highly similar to known class 1 and often indistinguishable to class 9 without context (see Appendix A.4 for details). Experiments are identical to CIFAR+N but networks are trained for 50 epochs. Observable from Figure 5 (right), for MM methods, the feature representations of digits 1 and 9 are pulled towards the origin. We compute per representation learning method for classes 1, 9, and rest (all other known classes). For OS and OE combined, these classes experience in the range [58.1%, 88.7%] (digit 1) and [93.6%, 97.2%] (digit 9), while other digits achieve over 96.7% CCR, showing dramatically imbalanced detection performance on known classes. See Table 5 in the Supplemental for all representation learning methods. Non-MM methods have evenly distributed between 83.8% and 98% over all postprocessors. This demonstrates how high similarity between known and known unknown classes, combined with magnitude-manipulation, irreparably damages feature representations and ruins classification of visually similar known classes.
5.2 Interaction Effects
The second set of experiments aims to answer whether the optimal postprocessor should be informed by the representation learning method, and whether magnitude-manipulating representation learning can enhance the performance of magnitude-aware postprocessors. We analyze the relationship and interactions between representation learning and postprocessor contributions by plotting the representation learning contribution delta against the postprocessing contribution delta for each combination in Figure 7.
Independent Contributions Without Known Unknown Data. Across all evaluation metrics and protocols, all experiments reveal that postprocessor contri-
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 13
butions are almost perfectly independent from representation learning contributions, when trained without known unknown data, e.g., the postprocessor contribution of GHOST is independent of the used representation learning method: . This suggests that OSR system components have separate responsibilities when trained on known classes only, with representation learning addressing the ID classification and postprocessors addressing the open-set capabilities.¹ This allows to freely combine representation learning and postprocessor, with magnitude-aware postprocessors consistently favored, supporting Wang et al. [40], to achieve performance gains without risking undesirable interactions.
Interaction Effects With Known Unknown Data. Representation learning methods that train with known unknown data only show interaction effects with high similarity of known and known unknown classes. Interaction effects are characterized by a correlation between and in Figure 7. On ImageNet benchmarks, representation learning methods with known unknown data show interaction effects, with particularly MA postprocessors strongly amplifying positive and negative gains from representation learning. While magnitude-aware postprocessors consistently outperform others for non-MM methods, they can amplify performance degradation for MM methods due to their sensitivity to the magnitude collapse. In particular, PostMax, and to a lesser extent GHOST, demonstrate both the highest gains for non-MM methods (8.3 percentage points or +11.7% for class), as well as the most severe performance degradation for MM methods (-1.2 percentage points or -1.5% for OS) on . These interaction effects are even clearer when evaluated via OOSA, which equally weights known and unknown test samples.
5.3 Robustness to Backbone Architecture
To ensure that our findings are not specific to the ResNet architecture, we replicate the experiments on using a Swin-B transformer [42]. Protocol balances difficulty and computational cost and provides a good trade-off between the two [42], allowing us to evaluate the generalizability of our findings to a transformer-based architecture. Training is conducted with identical hyperparameters to the ResNet-50 experiments, except for a reduced learning rate of to account for a lower batch size of 90. We trained 300 epochs with the AdamW optimizer and weight decay of 0.05 to ensure convergence.
Overall we observe similar relative performance as with ResNet-50 (Figure 8). Particularly, the magnitude-manipulating methods OE and OS experience performance degradation to the baseline when using MSP postprocessing, and combined with magnitude-aware postprocessors they experience further degradation or mixed postprocessing contributions when evaluated via OOSA. For AUOSCR and AUROC, the performance degradation is less severe. As expected, class systematically outperforms all other combinations when combined with magnitude-aware postprocessors across all metrics. The absolute performance of all methods is lower compared to ResNet-50 backbones, likely due to the increased data requirement of a transformer coupled with a larger model and limited data set sizes due to the protocols containing only a fraction of the ImageNet dataset classes. Interestingly, the training of the reciprocal points (ARPL) proved to be unstable under the AdamW optimizer, while the backbone training remained stable, resulting in significantly lower
14 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 8: SWIN BACKBONE. We show OSR performance on with a Swin-B backbone, showing accuracy, AUROC, and AUOSCR metrics. Similar interaction effects between representation learning and postprocessing methods are observed as with ResNet-50 backbones.
accuracy and consequently lower AUOSCR, OOSA, and AUROC. While future work is needed to investigate better training methods for ARPL with transformers, we observe that magnitude-aware postprocessors nonetheless can recover most of the performance gap to CE for binary ID-vs-OOD separation, as shown by the AUROC results, highlighting the practical importance and utility of a two-stage approach to OSR by combining representation learning with postprocessing.
6 Conclusion
In this study, we adopt a two-stage framework for modularly combining representation learning and postprocessing methods for Open-Set Recognition (OSR). We show that representation learning without known unknown data leads to independent OSR components, that can be freely combined to achieve additive performance gains, whereas representation learning with known unknown data can experience interaction effects with postprocessors that can improve or degrade OSR performance. We explain this performance degradation and the key role of feature magnitude in interaction effects via the magnitude collapse mechanism, revealing several insights. First, the similarity between known unknown and known classes is a key factor for performance degradation at scale, a scenario that does not occur on small-scale benchmarks. Second, magnitude collapse creates an undesirable linear dependency between feature magnitude and class-wise detection performance on the in-distribution and OSR task, leading to systematically imbalanced detection across known classes. Furthermore, we demonstrate how magnitude collapse can be circumvented by the simple yet effective baseline class and that, contrary to recent findings, training with known unknown data can improve OSR performance at any scale and regardless of known unknown data selection. Our findings invalidate current best practices in OSR, demonstrating that small-scale evaluations with known unknown data do not translate to large-scale performance. Generally, small-scale experiments are primarily driven by representation learning via inclusion of known unknown data and favor the simpler postprocessors like MaxLogits, while large-scale experiments benefit from combining representation learning and postprocessing, mainly through joining class with MA postprocessors like PostMax or GHOST. As such, representation learning methods considered state-of-the-art based on CIFAR benchmarks, such as Outlier Exposure, can degrade significantly below baselines at scale.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 15
Acknowledgements
We thank the University of Zurich and the Digital Society Initiative for financing this research through a research scholarship. Furthermore, we thank the University of Zurich for providing the computational resources.
References
[1] Abhijit Bendale and Terrance E. Boult. Towards open set deep networks. In Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 2016.
[2] Guangyao Chen, Limeng Qiao, Yemin Shi, Peixi Peng, Jia Li, Tiejun Huang, Shiliang Pu, and Yonghong Tian. Learning open set network with discriminative reciprocal points. In European Conference on Computer Vision (ECCV). Springer, 2020.
[3] Guangyao Chen, Peixi Peng, Xiangqian Wang, and Yonghong Tian. Adversarial reciprocal points learning for open set recognition. Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 44(11), 2021.
[4] Gregory Cohen, Saeed Afshar, Jonathan Tapson, and André van Schaik. EMNIST: Extending MNIST to handwritten letters. In International Joint Conference on Neural Networks (IJCNN), 2017.
[5] Steve Cruz, Ryan Rabinowitz, Manuel Günther, and Terrance E. Boult. Operational open-set recognition and postmax refinement. In European Conference on Computer Vision (ECCV), 2024.
[6] Akshay Raj Dhamija, Manuel Günther, and Terrance E. Boult. Reducing network agnostophobia. In Advances in Neural Information Processing Systems (NeurIPS), 2018.
[7] Akshay Raj Dhamija, Manuel Günther, Jonathan Ventura, and Terrance E. Boult. The overlooked elephant of object detection: Open set. In Winter Conference on Applications of Computer Vision (WACV), 2020.
[8] Andrija Djurisic, Nebojsa Bozanic, Arjun Ashok, and Rosanne Liu. Extremely Simple Activation Shaping for Out-of-Distribution Detection. In The Eleventh International Conference on Learning Representations, 2023.
[9] Zongyuan Ge, Sergey Demyanov, and Rahil Garnavi. Generative OpenMax for multi-class open set classification. In British Machine Vision Conference (BMVC), 2017.
[10] Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations (ICLR), 2017.
[11] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich. Deep anomaly detection with outlier exposure. In International Conference on Learning Representations (ICLR), 2019.
16 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
[12] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In Conference on Computer Vision and Pattern Recognition (CVPR), 2021.
[13] Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joseph Kwon, Mohammadreza Mostajabi, Jacob Steinhardt, and Dawn Song. Scaling out-of-distribution detection for real-world settings. In International Conference on Machine Learning (ICML). PMLR, 2022.
[14] Hongzhi Huang, Yu Wang, Qinghua Hu, and Ming-Ming Cheng. Class-specific semantic reconstruction for open set recognition. Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 45(4), 2023.
[15] Rui Huang, Andrew Geng, and Yixuan Li. On the importance of gradients for detecting distributional shifts in the wild. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
[16] Shu Kong and Deva Ramanan. Opengan: Open-set recognition via open data generation. In International Conference on Computer Vision (ICCV), 2021.
[17] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
[18] Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. In International Conference on Learning Representations (ICLR), 2017.
[19] Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
[20] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In International Conference on Computer Vision (ICCV), 2021.
[21] Ilya Loshchilov and Frank Hutter. Sgdr: Stochastic gradient descent with warm restarts. In International Conference on Learning Representations (ICLR), 2017.
[22] George A Miller. WordNet: An electronic lexical database. MIT press, 1998.
[23] Lawrence Neal, Matthew Olson, Xiaoli Fern, Weng-Keen Wong, and Fuxin Li. Open set learning with counterfactual images. In European Conference on Computer Vision (ECCV), 2018.
[24] Andres Palechor, Annesha Bhoumik, and Manuel Günther. Large-scale open-set classification protocols for imagenet. In Winter Conference on Applications of Computer Vision (WACV), 2023.
[25] Ryan Rabinowitz, Steve Cruz, Manuel Günther, and Terrance E. Boult. GHOST: Gaussian hypothesis open-set technique. In AAAI Conference on Artificial Intelligence, 2025.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 17
[26] Jie Ren, Peter J Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark Depristo, Joshua Dillon, and Balaji Lakshminarayanan. Likelihood ratios for out-of-distribution detection. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
[27] Ethan M. Rudd, Lalit P. Jain, Walter J. Scheirer, and Terrance E. Boult. The extreme value machine. Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2017.
[28] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115(3), 2015.
[29] Walter J. Scheirer, Anderson de Rezende Rocha, Archana Sapkota, and Terrance E. Boult. Towards open set recognition. Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 35(7), 2013.
[30] Walter J. Scheirer, Lalit P. Jain, and Terrance E. Boult. Probability models for open set recognition. Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 36(11), 2014.
[31] Yiyou Sun, Chuan Guo, and Yixuan Li. ReAct: Out-of-distribution detection with rectified activations. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
[32] Sagar Vaze, Kai Han, Andrea Vedaldi, and Andrew Zissermann. Open-set recognition: A good closed-set classifier is all you need? In International Conference on Learning Representations (ICLR), 2022.
[33] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David Lopez-Paz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In International Conference on Machine Learning (ICML). PMLR, 2019.
[34] Hongjun Wang, Sagar Vaze, and Kai Han. Dissecting out-of-distribution detection and open-set recognition: A critical analysis of methods and benchmarks. International Journal of Computer Vision (IJCV), 133(3), 2025.
[35] Zitai Wang, Qianqian Xu, Zhiyong Yang, Yuan He, Xiaochun Cao, and Qingming Huang. Openauc: Towards auc-oriented open-set recognition. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
[36] Samuel Wilson, Tobias Fischer, Feras Dayoub, Dimitry Miller, and Niko Sünderhauf. SAFE: Sensitivity-aware features for out-of-distribution object detection. In International Conference on Computer Vision (ICCV), 2023.
[37] Jingkang Yang, Kaiyang Zhou, Yixuan Li, and Ziwei Liu. Generalized out-of-distribution detection: A survey. International Journal of Computer Vision (IJCV), 132(12), 2024.
18 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
[38] Hongyi Zhang, Moustapha Cissé, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In International Conference on Learning Representations (ICLR), 2018.
[39] Da-Wei Zhou, Han-Jia Ye, and De-Chuan Zhan. Learning placeholders for open-set recognition. In Conference on Computer Vision and Pattern Recognition (CVPR), 2021.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 19
A Supplemental
A.1 Method Selection and Background
An overall view of the two-stage processing pipeline, including the nomenclature as used in this section, is given in Figure 2. Below, we provide details for the representation learning and postprocessors that we investigate in this work as well as a discussion on method selection to answer our research questions.
A.1.1 Representation Learning Methods
Methods Selection. Our model selection for representation learning aims to cover a representative set of methods that reflect the current state of the art in OSR as well as OOD detection while simultaneously adhering to a set of constraints given by our rigorous experimental setup to ensure that we can adequately test our research questions and hypotheses. We selected representation learning methods that satisfy the following criteria:
-
We require methods that utilize no or only natural known unknown samples as this is at the core of our analysis.
-
Our modularization of OSR methods requires classification-based (discriminative) representation learning methods since most postprocessors rely on output logits or probabilities to perform classification.
-
representation learning methods must be able to be trained from scratch on the ImageNet protocols without pre-training in order to prevent information leakage from training on classes that our protocols declare as unknown.
Following, we discuss each method and its formalization in the two-stage framework in more detail. For a systematic overview including method characteristics, see Table 1a.
CE. Our baseline [□] training-based approach is the categorical Cross-Entropy (CE) loss trained only on samples from known classes. For an input sample and an arbitrary backbone network we obtain the deep features for some deep feature dimension . These features are then passed through a fully-connected logit layer with output logits . The logits are then turned into probabilities through SoftMax activation:
Based on these, the CE loss is computed as:
Note that we can express the logit for class through the angle of the feature to the class center as , where is the -th row vector of and is the angle between and .
20 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
OE. We include Outlier Exposure (OE) [☐] as state-of-the-art representation learning method from the OOD detection literature that utilize known unknown data [☐]. OE adds a regularization term to (10) that maximizes the entropy for known unknown samples by computing the CE loss between the uniform distribution and the SoftMax confidences of the network:
OE essentially is equivalent to the Entropic Open-Set (EOS) loss proposed by [☐], with the only exception that OE provides a more intuitive way to weight the impact of known unknown samples to the training (with for computer vision tasks), whereas EOS does so via class weighting (set to 1). From [☐] we know that EOS and, by extension, OE implicitly manipulate feature magnitudes, by encouraging the network to learn small feature magnitudes for known unknown samples and large magnitudes for known samples.
OS. We employ the ObjectoSphere (OS) loss as an extension to the EOS loss which explicitly manipulates feature magnitudes. It learns vanishing vectors for known unknown samples and large magnitudes for known samples by using the following regularization term combined with the EOS loss:
where the hyperparameter is the lower bound for the feature magnitude of known samples.
class. We use a class classifier as representation learning baseline for OSR and OOD methods that utilize known unknown data. class uses the known data as in CE, and known unknown data to train an additional output node , so that we have a total of outputs, creating a default class for all known unknown and unknown samples. It is trained with the standard CE loss (10) with label for known unknown samples. While this is a common approach in object detection models [☐], which collect a lot of background samples, it is only rarely applied directly to OSR problems [☐, ☐] or as component of more complex architectures such as PROSER or G-OpenMax [☐, ☐]. Depending on the context, a class classifier is known as Background Class [☐, ☐, ☐] or Dummy Classifier [☐]. Note that for computing OOD scores (see A.1.2) for the class classifier, we follow Ren et al. [☐] and ignore the unknown class or if it exists. A low probability for the unknown class does not indicate a high probability for any of the known classes. On the other hand, due to Softmax requiring probabilities sum up to 1, a large probability enforces low probabilities for all known classes. Therefore, does not add any new information.
ARPL. Finally, we include the Adversarial Reciprocal Point Learning (ARPL) loss , which currently is the state of the art for OSR and trained solely on the known
Note that we do not use ARPL+CS with the generator for confusing samples (CS), since it is prohibitively expensive to train at large scale [☐].
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 21
data . Unlike most training-based methods, ARPL does not learn a prototype for a class , but a reciprocal point in deep feature space, i. e., a point that represents everything but class . The ARPL objective maximizes the distance between the reciprocal point and the features of samples from the respective class by computing logits via distance measures between deep features and the reciprocal points :
which are used via SoftMax (9) in the CE loss (10). To constrain open space, the distance between deep features and reciprocal points is bound by a learnable constant via the regularization term with weight :
A.1.2 Postprocessing Methods
Method Selection. We selected postprocessors to cover a split between representative magnitude-aware and magnitude-unaware methods. Furthermore, we aim to cover both trainable and non-trainable methods to include methods that can specifically adjust to differently learned representations. Following, we discuss each method and its formalization in the two-stage framework in more detail. For a systematic overview including method characteristics, see Table 1b.
MSP. The Maximum Softmax Probability (MSP) [☐] is the de-facto default post-processor for OSR and OOD detection and serves as our baseline. Class predictions and OOD scores are computed from probabilities for known classes as:
MSP is not magnitude-aware since SoftMax (9) normalizes the logits and only considers their relative differences.
MaxLogits. MaxLogits [☐] or MLS [☑] exploit the magnitude of the logits , which contains useful information for OSR and OOD detection that is lost during softmax. MLS is magnitude-aware since logit magnitude is linked to feature magnitude [☑]. Class predictions and OOD scores are computed from known logits as:
OpenMax [☐] uses deep features , referred to as Activation Vectors (AVs), to statistically model probabilities for an additional output node for the unknown class. During training, for each known class , the Mean Activation Vector (MAV) is computed by averaging the deep features extracted from all correctly classified training samples. Then, the cosine distances of the MAV to all the AVs of the same class are computed. Here, we make use of a twist implemented in the VAST
22 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
package of the original authors. instead of using the original distances to model the distribution, we multiply the cosine distances by a factor , which allows modeling more compact class representations:
Then, a per-class Weibull distribution is fitted to the top largest cosine distances . For features of a test sample, the class-wise Weibull distributions estimate a logit for the unknown class, as well as modifying the logits for the top classes, giving newly estimated logits . From these, the output is computed via softmax (9) and the output is computed as:
OpenMax is not magnitude-aware since the cosine distance ignores the feature magnitude.
PostMax. Postnormalization of Maxima (PostMax) [☐] uses Extreme Value Theory (EVT) by applying a Generalized Pareto Distribution (GPD) to maximum logits post-normalized by the feature magnitude. Based on their findings that unknown samples have larger feature magnitude than known samples on large-scale data, they normalize logits by dividing them by their deep feature magnitude to further increase the separation between known and unknown samples:
This makes it an explicitly magnitude-aware method. We modify the original implementation to shift the magnitudes by 1 to avoid issues with magnitudes which reverse the desired effect of normalization. This occurs consistently for features from magnitude-manipulating representation learning methods, but not for others. The class-agnostic GPD is fitted only on the maximum normalized logits of correctly classified known training samples, which is then used to compute a probability of the sample being known. Following [☐], the scores are computed as:
GHOST. The Gaussian Hypothesis Open-Set Technique (GHOST) [☐] models each class in deep feature space as a multivariate Gaussian distribution with the intuition that features from known and unknown samples deviate by feature magnitude even if the angular direction overlaps, making it magnitude-aware. During training, GHOST fits a Gaussian distribution for each known class based
https://github.com/Vastlab/vast
We also tried different normalization techniques, including to multiply with the norm, which seems more reasonable for MM representation learning methods. However, the detrimental effects of MM representation learning with PostMax for large-scale evaluations was present in any case. This modification does not harm performance with non-MM representation learning methods.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 23
on the deep features of correctly classified training samples. During inference, GHOST first computes a class prediction from the logits:
as well as z-score for each sample and corresponding Gaussian . This is then used to compute the score by dividing the original logit:
A.2 Derivation of Performance Decomposition
Here we provide the derivation for the performance decomposition of the performance increase of a over into the sum of the individual performance gains of the representation learning method and postprocessor. For the decomposition as in Equation (4) we have: We start with the performance of and add and subtract the baseline and the intermediate :
By rearranging and using definitions of the contribution deltas and (Equations (2) and (3)) we have:
By rearranging we have:
Analogously for the decomposition as in Equation (5) we have: We start with the performance of and add and subtract the baseline and the intermediate :
24 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
By rearranging and using definitions of the contribution deltas and (Equations (2) and (3)) we have:
A.3 Derivation for Feature Magnitude Incentive
Here, we provide the derivation for the training incentive of CE with (or ) to learn “sufficiently large” feature magnitudes:
For some small and class , we want the trained network to be able to achieve the maximum probability over all classes for any sample. Note that we have .
By binding the LogSumExp above, we get a sufficient condition such that . We have the upper bound of the LogSumExp function:
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 25
From this we get:
This provides a lower bound on the difference between the maximal two logits. Using footnote 4 we have
where .
A.4 EMNIST Benchmark
We perform qualitative small-scale experiments on the EMNIST protocol [☐] to replicate settings of high similarity between known and known unknown classes at small scale. This benchmark contains a wide spectrum of clearly attributable visual similarities between known and known unknown classes because the samples do not contain any image background. It consists of EMNIST MNIST split as knowns, the first half of EMNIST letters (a-m) as known unknown data, and the second half (n-z) as unknowns. While most digits (known) do not contain any visually similar letters, digits 1 and 9 contain known unknown classes (“i”, “l” and “g”, “q” respectively) that are visually very similar or indistinguishable without context depending on handwriting and capitalization.
To visualize how magnitude collapse and known class classification interacts, we repeat the EMNIST experiments with a 2D bottleneck deep feature layer, following Dhamija et al. [☐]. These can illustrate how different representation learning methods structure the feature space and how this affects postprocessors, however, the low dimensionality limits not only the representational capacity but also changes the geometry of the feature space and the behavior, so extrapolation to high dimensional feature spaces is limited. Experiments are otherwise identical to those in Section 4.
A.5 Hyperparameter Optimization
For most methods, we rely on the hyperparameters as provided by the according papers. Few methods however do not provide any, namely: and for ObjectoSphere and , , and for OpenMax, where we perform hyperparameter optimization on the validation set using grid search, based on the maximum AUOSCR. For OpenMax
Contrary to [☐] we use EMNIST MNIST instead of the original MNIST because the preprocessing, while similar, is not exact [☐]. EMNIST MNIST and letters contain noticeably softer and thicker digits than MNIST. In order to focus on semantic shift and not introduce easily learnable covariate shift through softness and sharpness, we use EMNIST MNIST.
26 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 9: FEATURE VISUALIZATION. We provide 2D feature visualizations of EM-NIST experiments with different representation learning methods.
| Method | Parameter | CIFAR+N | ImageNet | |||
|---|---|---|---|---|---|---|
| CIFAR+10 | CIFAR+50 | |||||
| fOS | ||||||
| 10/10/10/10/10 | 20/10/10/10/10 | 30 | 20 | 10 | ||
| 3/3/3/1/3 | 3/2/3/3/3 | 5 | 5 | 2 | ||
| 1.5/1.5/2.3/2/1.7 | 1.7/1.5/2.3/1.5/2.3 | 2.3 | 2.3 | 2 | ||
| 100/100/250/10/100 | 250/100/500/100/100 | 750 | 750 | 100 | ||
| 3/3/1/3/3 | 3/2/3/3/3 | 5 | 3 | 2 | ||
| 1.5/2.3/2/1.5/1.7 | 2/1.5/1.5/1.5/1.5 | 2.3 | 2.3 | 2.3 | ||
| 100/250/10/100/100 | 100/100/100/100/100 | 750 | 750 | 10 | ||
| 1/1/1/1/1 | 1/1/1/1/1 | 5 | 3 | 5 | ||
| 1.5/2/2.3/1.7/2 | 1.7/2/1.5/1.5/2.3 | 1.7 | 2.3 | 2 | ||
| 100/250/100/100/100 | 250/500/250/250/250 | 750 | 750 | 100 | ||
| 1/2/1/3/3 | 3/3/1/2/1 | 3 | 2 | 2 | ||
| 1.5/1.7/2/2/2 | 2.3/1.5/1.5/2/1.5 | 1.7 | 1.5 | 2.3 | ||
| 10/100/10/100/250 | 100/100/10/100/10 | 10 | 10 | 10 | ||
| 1/1/3/2/2 | 3/2/3/3/2 | 10 | 5 | 10 | ||
| 1.5/2.3/1.5/1.5/2.3 | 2.3/1.7/2/2.3/2 | 2.3 | 2.3 | 2 | ||
| 10/10/10/10/10 | 100/10/10/100/10 | 10 | 10 | 10 | ||
Table 2: HYPERPARAMETERS. This table include the optimized hyperparameter values for each method and protocol. CIFAR+N results are reported for each trial separately.
the parameter optimization is performed for each upstream representation learning method separately to ensure optimal settings, since the feature representations differ significantly. The considered hyperparameter ranges are as follows:
The best hyperparameter values for each method and protocol are summarized in Table 2.
A.6 Performance Metrics
CCR@FPR computes the CCR at a specific FPRs and provides insights into the classification performance at various tolerances for errors caused by missed rejections. It is therefore highly relevant for practical applications where a fixed threshold is required, which is typically selected based on a certain FPR. It is computed as:
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 27
where is the threshold that yields . for resembles closed-set accuracy.
AUOSCR. The OSCR curve [☐] simultaneously evaluates classification of known samples via CCR as well as the rejection of unknown samples via FPR over all possible thresholds. It is computed by varying the threshold from the smallest to the largest possible score value, and plotting the CCR over the FPR, i. e., computing CCR@FPR at all thresholds. The Area Under the OSCR curve (AUOSCR) is computed by integrating the OSCR curve from to . Since the OSCR curve is a monotonically increasing function, the AUOSCR is maximized at and bounded by the closed-set accuracy.
OOSA. The Operational Open-set Accuracy (OOSA) [☐] evaluates the open-set performance at a fixed operational threshold , determined on the validation set, and provides insights into the performance of a method in a real-world setting. It is defined as a trade-off between the CCR and the Unknown Rejection Rate (URR), :
where is the operational threshold that maximizes this equation on the validation set. We follow Cruz et al. [☐] and set to equally weight known and unknown test samples.
AUROC. In order to evaluate the OOD detection capabilities independently of the ID classification task, we use the Area Under the Receiver Operating Characteristics (AUROC) curve [☐, ☐, ☐, ☐, ☐, ☐, ☐]. AUROC concerns how well known and unknown classes can be distinguished by computing FPR (6), as well as the True Positive Rate (TPR):
The ROC is computed by varying , and the area under that curve is determined.
A.7 Experiments on Additional Postprocessing Methods
To assess the generalizability of our findings, we conducted additional experiments on four widely used postprocessing methods that were not included in the main paper. Particularly, we include Energy [☐], ODIN [☐], ReAct+Energy [☐], and ASH-S [☐]. The AUOSCR heatmaps for combinations on CIFAR+N and ImageNet are shown in Figure 13 and Figure 11, respectively. For Energy and ODIN we observe nearly identical effects as previous postprocessors, while ReAct+Energy and ASH-S struggled with high-similarity setting (shifting the color-map and slightly hiding the
28 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

Figure 10: CIFAR+N OSR PERFORMANCE. We show OSR performance for combinations across datasets in AUOSCR. The color of each heatmap is normalized independently and centered at the baseline, where blue shows an increase and red a decrease. Single-stage methods are surrounded by a black border. Results depict the average performance standard deviation over 5 trials.

Figure 11: IMAGENET OSR PERFORMANCE. We show OSR performance for combinations across datasets in AUOSCR. The color of each heatmap is normalized independently and centered at the baseline, where blue shows an increase and red a decrease. Single-stage methods are surrounded by a black border.
effect). On the smaller CIFAR+N dataset, we observe that ReAct+Energy and ASH-S can exhibit high variation in performance, dragging down the average performance significantly, while other poseprocessors are highly stable.
A.8 Additional Figures and Tables
The main paper contained only a subset of evaluation metrics and visualizations. Here we provide remaining figures and tables containing the exact results.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 29
| Dataset | f | g | CCR@0.01 | CCR@0.1 | CCR@1 | CCR@10 | CCR@100 | AUOSCR | AUROC | OOSA |
|---|---|---|---|---|---|---|---|---|---|---|
| CIFAR+10 | CE | MSP | ||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| ARPL | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| K+1 | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| OE | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| OS | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| CIFAR+50 | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| ARPL | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| K+1 | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| OE | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST | ||||||||||
| OS | MSP | |||||||||
| OpenMax | ||||||||||
| MaxLogits | ||||||||||
| PostMax | ||||||||||
| GHOST |
Table 3: SMALL-SCALE EVALUATION. This table includes a performance overview of all representation learning and postprocessing methods on the small-scale protocols. Metrics include CCR@ for , AUOSCR, AUROC, and OOSA. All scores are reported in percent and CCR@100 is the closed-set accuracy. Performance metrics are reported as mean standard deviation over 5 randomized trials. The best performing combination for each protocol and metric w.r.t. mean score is highlighted in bold. The best performing postprocessor for each representation learning method and metric w.r.t. mean score is highlighted in italic.
| Dataset | f | g | CCR@0.01 | CCR@0.1 | CCR@0.1 | CCR@100 | AUOSCR | AUROC | OOSA |
|---|---|---|---|---|---|---|---|---|---|
| P1 | CE | MSP | 7.8 | 22.7 | 53.4 | 71.8 | 77.4 | 75.6 | 95.3 |
| OpenMax | 13.2 | 34.4 | 65.0 | 76.6 | 77.0 | 76.5 | 98.7 | ||
| MaxLogits | 6.1 | 31.3 | 64.1 | 76.6 | 77.4 | 76.8 | 98.5 | ||
| PostMax | 14.0 | 33.0 | 65.9 | 75.9 | 77.4 | 76.7 | 98.0 | ||
| GHOST | 18.3 | 44.9 | 71.4 | 77.0 | 77.4 | 77.1 | 99.1 | ||
| ARPL | MSP | 10.6 | 27.2 | 54.8 | 72.5 | 78.2 | 76.4 | 95.6 | |
| OpenMax | 8.0 | 44.6 | 66.0 | 77.4 | 77.3 | 76.8 | 98.8 | ||
| MaxLogits | 27.8 | 35.1 | 66.3 | 77.4 | 78.2 | 77.7 | 98.7 | ||
| PostMax | 20.6 | 41.5 | 65.6 | 76.8 | 78.2 | 77.5 | 98.1 | ||
| GHOST | 21.1 | 48.9 | 72.3 | 77.9 | 78.2 | 77.9 | 99.2 | ||
| K+1 | MSP | 11.6 | 32.2 | 62.2 | 77.4 | 78.4 | 77.5 | 97.9 | |
| OpenMax | 16.2 | 41.5 | 65.5 | 77.8 | 78.3 | 77.7 | 98.7 | ||
| MaxLogits | 17.1 | 39.4 | 72.6 | 78.1 | 78.4 | 78.1 | 99.3 | ||
| PostMax | 14.5 | 35.9 | 67.3 | 77.0 | 78.4 | 77.7 | 98.4 | ||
| GHOST | 19.7 | 51.3 | 74.8 | 78.1 | 78.4 | 78.2 | 99.5 | ||
| OE | MSP | 5.6 | 27.9 | 62.7 | 77.6 | 78.1 | 77.4 | 98.2 | |
| OpenMax | 5.6 | 28.2 | 62.4 | 77.4 | 78.0 | 77.3 | 98.2 | ||
| MaxLogits | 16.1 | 36.7 | 73.1 | 77.7 | 78.1 | 77.8 | 99.0 | ||
| PostMax | 8.8 | 27.2 | 63.3 | 77.1 | 78.1 | 77.4 | 98.2 | ||
| GHOST | 12.1 | 48.0 | 74.4 | 77.8 | 78.1 | 77.8 | 99.1 | ||
| OS | MSP | 18.0 | 34.2 | 64.9 | 77.8 | 78.3 | 77.7 | 98.6 | |
| OpenMax | 22.5 | 33.4 | 64.6 | 77.6 | 78.0 | 77.4 | 98.6 | ||
| MaxLogits | 16.4 | 46.0 | 73.9 | 78.0 | 78.3 | 78.0 | 99.3 | ||
| PostMax | 21.4 | 41.4 | 70.7 | 78.0 | 78.3 | 77.9 | 99.1 | ||
| GHOST | 19.5 | 54.5 | 75.9 | 78.0 | 78.3 | 78.0 | 99.4 | ||
| P2 | CE | MSP | — | — | 21.8 | 50.5 | 74.0 | 64.9 | 80.1 |
| OpenMax | 2.5 | 3.6 | 24.5 | 51.5 | 73.7 | 66.3 | 83.4 | ||
| MaxLogits | 7.6 | 8.4 | 25.6 | 58.8 | 74.0 | 68.5 | 87.8 | ||
| PostMax | 6.0 | 7.4 | 30.5 | 59.9 | 74.0 | 68.8 | 88.2 | ||
| GHOST | 8.1 | 10.3 | 30.3 | 61.3 | 74.0 | 69.1 | 88.9 | ||
| ARPL | MSP | — | — | 24.4 | 49.9 | 75.4 | 66.1 | 80.7 | |
| OpenMax | 2.6 | 4.1 | 29.5 | 52.2 | 73.8 | 66.7 | 83.6 | ||
| MaxLogits | 3.1 | 3.7 | 26.9 | 58.5 | 75.4 | 69.2 | 87.5 | ||
| PostMax | 5.7 | 13.6 | 34.5 | 59.8 | 75.4 | 69.8 | 88.3 | ||
| GHOST | 4.5 | 13.3 | 34.5 | 60.1 | 75.4 | 70.1 | 88.9 | ||
| K+1 | MSP | — | — | 25.8 | 55.8 | 76.9 | 68.5 | 84.5 | |
| OpenMax | 3.5 | 5.9 | 33.6 | 59.1 | 76.4 | 70.5 | 87.2 | ||
| MaxLogits | 2.3 | 4.3 | 33.0 | 62.0 | 76.9 | 71.5 | 89.2 | ||
| PostMax | 8.3 | 11.0 | 34.5 | 63.4 | 76.9 | 71.8 | 89.4 | ||
| GHOST | 10.1 | 10.6 | 40.1 | 64.4 | 76.9 | 72.2 | 90.3 | ||
| OE | MSP | — | 5.0 | 20.9 | 54.8 | 74.3 | 66.9 | 84.5 | |
| OpenMax | — | 3.3 | 21.5 | 55.1 | 74.5 | 67.1 | 84.6 | ||
| MaxLogits | 2.5 | 2.7 | 23.1 | 55.7 | 74.3 | 66.9 | 85.1 | ||
| PostMax | 2.3 | 8.3 | 24.5 | 57.8 | 74.3 | 67.9 | 85.9 | ||
| GHOST | 4.7 | 10.3 | 27.3 | 57.9 | 74.3 | 67.6 | 85.9 | ||
| OS | MSP | 3.1 | 4.4 | 25.1 | 56.5 | 74.9 | 67.8 | 85.1 | |
| OpenMax | 4.2 | 4.7 | 25.7 | 57.1 | 74.9 | 67.9 | 85.3 | ||
| MaxLogits | 6.3 | 6.5 | 26.8 | 58.2 | 74.9 | 68.0 | 85.9 | ||
| PostMax | 5.8 | 9.3 | 27.9 | 58.6 | 74.9 | 68.4 | 85.8 | ||
| GHOST | 7.5 | 10.0 | 32.3 | 58.5 | 74.9 | 68.1 | 86.0 | ||
| P3 | CE | MSP | — | — | 21.4 | 64.9 | 85.7 | 78.1 | 86.4 |
| OpenMax | — | — | 20.9 | 64.6 | 85.3 | 77.9 | 86.4 | ||
| MaxLogits | 1.2 | 3.2 | 14.6 | 62.6 | 85.7 | 77.9 | 87.7 | ||
| PostMax | 0.1 | 1.9 | 17.7 | 66.3 | 85.7 | 78.9 | 88.7 | ||
| GHOST | 0.4 | 2.3 | 20.1 | 65.9 | 85.7 | 78.8 | 88.6 | ||
| ARPL | MSP | — | 6.8 | 21.5 | 64.5 | 86.5 | 78.4 | 86.0 | |
| OpenMax | — | 6.8 | 21.7 | 64.4 | 86.3 | 78.3 | 86.0 | ||
| MaxLogits | 0.5 | 2.5 | 15.8 | 62.0 | 86.5 | 78.4 | 87.6 | ||
| PostMax | 1.4 | 4.8 | 17.4 | 65.4 | 86.5 | 79.3 | 88.6 | ||
| GHOST | 2.3 | 3.4 | 19.5 | 65.0 | 86.5 | 79.2 | 88.5 | ||
| K+1 | MSP | — | 3.7 | 24.5 | 65.6 | 85.6 | 77.8 | 86.5 | |
| OpenMax | — | — | 22.5 | 65.6 | 85.6 | 78.5 | 87.0 | ||
| MaxLogits | 1.0 | 3.2 | 19.1 | 66.0 | 85.6 | 78.7 | 88.5 | ||
| PostMax | 2.1 | 4.2 | 23.5 | 69.1 | 85.6 | 79.7 | 89.5 | ||
| GHOST | 0.5 | 4.7 | 25.4 | 68.8 | 85.6 | 79.6 | 89.4 | ||
| OE | MSP | — | — | 21.8 | 66.9 | 84.6 | 77.7 | 87.5 | |
| OpenMax | — | — | 21.7 | 66.7 | 84.7 | 77.8 | 87.5 | ||
| MaxLogits | 1.1 | 2.7 | 17.7 | 65.0 | 84.6 | 77.1 | 87.2 | ||
| PostMax | 0.3 | 1.5 | 12.7 | 61.5 | 84.6 | 77.0 | 86.8 | ||
| GHOST | 0.1 | 2.6 | 22.6 | 67.3 | 84.6 | 77.8 | 87.8 | ||
| OS | MSP | — | — | 26.6 | 67.4 | 84.9 | 78.1 | 87.8 | |
| OpenMax | — | — | 26.1 | 67.2 | 84.8 | 78.0 | 87.8 | ||
| MaxLogits | 0.8 | 2.7 | 20.1 | 66.9 | 84.9 | 77.6 | 87.6 | ||
| PostMax | — | 1.4 | 11.4 | 60.6 | 84.9 | 76.9 | 86.3 | ||
| GHOST | 1.1 | 4.8 | 25.2 | 68.5 | 84.9 | 78.3 | 88.4 |
Table 4: LARGE-SCALE EVALUATION. This table repeats the performance overview of Table 3 on large-scale protocols. — indicates that at no threshold for corresponding FPR could be achieved.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 31

Figure 12: MAGNITUDES. Feature magnitude distributions of known, known unknown, and unknown classes on all protocols and for all representation learning methods, complete version of Figure 5. OE and OS experience feature magnitude collapse on and EMNIST, pulling their feature magnitudes towards zero. For EMNIST, we show distributions for known classes 1 and 9 (black and grey) that are highly similar to known unknown classes, and other known classes (blue) separately.
32 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION
| Model | Class 1 | Class 9 | Knowns Except 1 and 9 | |||
|---|---|---|---|---|---|---|
| min | max | min | max | min | max | |
| CE | 94.1 | 97.6 | 89.5 | 91.9 | 86.7 | 97.9 |
| ARPL | 86.7 | 96.9 | 89.5 | 92.2 | 83.8 | 98.0 |
| K+1 | 67.0 | 94.8 | 92.4 | 95.6 | 95.2 | 99.5 |
| OE | 65.7 | 86.6 | 94.2 | 97.2 | 96.7 | 99.8 |
| OS | 58.1 | 88.7 | 93.6 | 95.3 | 97.7 | 99.6 |
Table 5: CLASS-WISE CCR. EMNIST ranges of class-wise CCR are given at the operational threshold, , for classes 1, 9, and rest (all other known classes) per representation learning method.

(d) Accuracy
Figure 13: ABSOLUTE PERFORMANCE. These heatmaps show the absolute values for evaluations of (a) AUOSCR, (b) OOSA, (c) AUROC, and (d) Accuracy. Each heatmap is normalized independently and centered around CE+MSP, where blue shows an increase and red a decrease. Baseline representation learning and post-processing methods are surrounded by a black border. Results for CIFAR+N are averaged over 5 trials.
VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION 33

(d) Accuracy
Figure 14: INTERACTION EFFECTS. This figure shows the interaction effects of representation learning and postprocessing components as correlation between representation learning performance contribution and postprocessor contribution in terms of (a) AUOSCR, (b) OOSA, (c) AUROC, and (d) Accuracy. Results for CIFAR+N are averaged over 5 trials.
34 VAN DEN BERGH ET AL.: MODULAR TWO-STAGE OPEN-SET RECOGNITION

(a) CIFAR+10

(b) CIFAR+50

(c)

(d)

f: CE + ARPL + K+1 + OE + OS
g: MSP + OpenMax + MaxLogits + PostMax + GHOST
(e)
Figure 15: REGRESSION ANALYSIS. Linear regressions of class-wise CCR at the operational threshold, , against class-wise average feature magnitude for known classes. Regression is performed for each representation learning method independently and over all postprocessors. For CIFAR+N results are reported for the first trial only.