Manuscript Offprint
arXiv:2608.27214CODE: Cross-Modal Calibration and Dynamic Suppression for Open World Object Detection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Open World Object Detection (OWOD) built on multimodal foundation models often suffers from semantic ambiguity caused by unidirectional text-to-vision matching, while rigid outlier penalties may over-suppress unknown objects near known-class decision boundaries. We propose CODE (Cross-Modal CalibratiOn and Dynamic SupprEssion), a unified inference-time framework with three complementary components. Cross-Modal Joint Confidence Calibration injects global visual prototypes to calibrate text-driven known-class predictions. Uncertainty-Guided Universal Objectness Enhancement measures classification hesitation from local visual responses to strengthen potential unknown objects. Dynamic Outlier Suppression via Confidence Margin replaces rigid suppression with a margin-aware adjustment that preserves ambiguous out-of-distribution instances. Experiments on the Real-World Detection benchmark demonstrate that, with the OWL-ViT L/14 backbone, CODE achieves 21.7 U-mAP and 40.8 K-mAP in Task 1, surpassing the previous state of the art by 2.6 and 2.3 points, respectively.
CCS Concepts
• Computing methodologies → Object detection; Neural networks.
ACM Reference Format:
Hao Xu, Zhaoning Shi, Hehe Jin, and Bo Ma. 2026. CODE: Cross-Modal Calibration and Dynamic Suppression for Open World Object Detection. In Proceedings of the 34th ACM International Conference on Multimedia (MM '26), November 10–14, 2026, Rio de Janeiro, Brazil. ACM, New York, NY, USA, 20 pages. https://doi.org/10.1145/3767308.3836545

This work is licensed under a Creative Commons Attribution 4.0 International License. MM '26, Rio de Janeiro, Brazil
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2213-4/2026/11
https://doi.org/10.1145/3767308.3836545
Zhaoning Shi
Beijing Institute of Technology
Beijing, China
Bo Ma
Beijing Institute of Technology
Beijing, China
(a) Text-to-Vision Methods

Attribute Text
Text
Encoder
Outlier
Suppression
(b) Ours CODE

Vision
Encoder
Visual
Similarity
Test Image
Vision
Encoder
Calibration
Attribute Text
Text
Encoder
Cross-Modal
Prob
Dynamic
Suppression
Figure 1: Paradigm comparison between attribute-based OWOD methods and CODE. Existing methods derive text-driven probabilities followed by fixed outlier suppression, whereas CODE introduces known-class visual references for cross-modal calibration and dynamic suppression.
1 Introduction
Object detection, a cornerstone of computer vision, has traditionally operated under a “closed-world” assumption where the categories encountered during inference are strictly limited to those seen during training [14, 45]. However, real-world environments are inherently dynamic and unpredictable, frequently presenting novel objects that fall outside pre-defined taxonomies [14, 18]. Open World Object Detection (OWOD) has emerged to address this challenge, requiring models to accurately identify known categories while simultaneously localizing and flagging unknown objects without conflating them with the background or known classes [14, 37, 45].
Hao Xu et al.
The advent of multimodal foundation models, such as CLIP [30] and OWL-ViT [27], has introduced rich open-vocabulary knowledge learned from large-scale image-text pairs into OWOD. To bridge the domain gap between generic pre-training and downstream applications, recent methods employ fine-grained, class-agnostic attributes as intermediate semantic representations [35, 37, 45].
As illustrated in Figure 1(a), existing attribute-driven methods independently encode the test image and attribute descriptions, derive text-driven probabilities, and subsequently apply an outlier suppression mechanism. This unidirectional text-to-vision process lacks a direct visual reference when textual attributes are insufficient or visually ambiguous. In contrast, CODE introduces visual embeddings obtained from known-category data to calibrate the text-driven probabilities and replaces rigid suppression with a dynamic mechanism, as shown in Figure 1(b).
Despite their potential, existing attribute-based OWOD paradigms face three limitations. First, unidirectional text-to-vision matching can produce semantic ambiguity: discriminative visual attributes may become unnoticeable under occlusion, blur, viewpoint changes, or poor illumination, while textual attributes alone may be insufficiently specific to distinguish hard objects from visually similar known categories or background regions. Second, existing methods often estimate universal objectness from the maximum attribute response, which cannot reliably separate ambiguous unknown objects from background distractors. Finally, the rigid Maximum Concept Matching (MCM) mechanism [28] may over-penalize boundary unknown objects. Because these objects can share attributes with several known categories, a suppression term determined only by the maximum known-class probability may incorrectly remove them as background.
To overcome these challenges, we propose CODE (Cross-Modal Calibration and Dynamic Suppression), a unified framework for cross-modal joint inference. Our method introduces three core components designed to balance the precision of known targets with the robust recall of unknowns. First, we implement Cross-Modal Joint Confidence Calibration (CMJCC), which explicitly injects global visual prototypes to provide a robust visual-to-visual reference, effectively calibrating text-driven confidences. Second, we design the Uncertainty-Guided Universal Objectness Enhancement (UGUOE) module. By quantifying classification “hesitation” via the variance of local visual responses, UGUOE actively boosts the response of potential unknown objects located in “semantic vacuums”. Finally, we introduce Dynamic Outlier Suppression via Confidence Margin (DOSCM), which replaces rigid penalties with a margin-based adjustment. By evaluating the exclusivity of known predictions through the probability gap between the primary and secondary Softmax responses, DOSCM protects ambiguous out-of-distribution objects from over-suppression.
We evaluate our framework on the Real-World Detection (RWD) benchmark [45], which spans five diverse scenarios: Aquatic, Aerial, Game, Medical, and Surgery. CODE achieves the best overall performance under both OWL-ViT backbones. Notably, with the L/14 backbone, CODE improves Task 1 U-mAP and K-mAP by 2.6 and 2.3 points over the previous state of the art, respectively, demonstrating that unknown-object discovery can be improved without sacrificing known-class recognition.
The main contributions of this work are summarized as follows:
• We propose Cross-Modal Joint Confidence Calibration (CMJCC), which injects class-level visual prototypes as visual-to-visual references to calibrate text-driven known-class predictions and alleviate semantic ambiguity.
• We introduce Uncertainty-Guided Universal Objectness Enhancement (UGUOE), which estimates local classification hesitation from the distribution of visual prototype responses and enhances potential unknown objects that receive weak or ambiguous textual activation.
• We develop Dynamic Outlier Suppression via Confidence Margin (DOSCM), which uses the probability gap between the two most likely known classes to dynamically regulate outlier suppression. Together, the three components form a lightweight inference-time framework that improves both known- and unknown-object detection across diverse real-world scenarios.
2 Related Works
2.1 Open-World Object Detection with Multi-modal Foundation Models
Open World Object Detection (OWOD) aims to alleviate the strict closed-set assumptions of standard detectors, requiring models to simultaneously identify known classes and discover unseen objects [14]. Early pioneering works, such as ORE [14], OW-DETR [9], PROB [46], and others [18, 21–23, 34, 41], primarily rely on pseudolabeling or contrastive clustering to define decision boundaries. Recently, the rise of multi-modal foundation models has catalyzed Open-Vocabulary Object Detection (OVOD), which leverages rich visual-language knowledge for zero-shot generalization. Representative OVOD methods include ViLD [7], RegionCLIP [42], OWL-ViT [27], and F-VLM [16], among others [25, 38, 39]. Although OVD models demonstrate remarkable zero-shot generalization to novel concepts, they rely entirely on explicit text prompts (i.e., category names) and fundamentally fail to handle the core OWOD challenge: detecting "unknowns" without any prior category information.
To bridge this gap, an attribute-driven OWOD paradigm has recently emerged as the state-of-the-art. Methods such as FOMO [45], UMB [35], and PASS [37] utilize Large Language Models to decompose abstract categories into fine-grained, class-agnostic attributes (e.g., shape, texture, material). By learning these intermediate semantic representations, these models identify unknown objects that share visual or functional characteristics with known base classes. Although these methods enhance the discriminability of novel targets and provide explainability, they still struggle to detect objects characterized by semantic ambiguity in attribute mapping. Consequently, we propose CMJCC to resolve mapping ambiguities and UGUOE to facilitate robust unknown discovery.
Open-ended object detection. Recent open-ended detection methods extend open-vocabulary detection beyond a fixed query set through region-language pre-training or bidirectional visual-semantic alignment. GenerateU [20] employs generative region-language modeling to discover open-ended categories, whereas Open-Det [2] improves visual-language alignment through a dedicated training framework. In contrast, CODE targets attribute-driven OWOD and performs lightweight inference-time calibration.
using pre-computed textual attributes and visual prototypes, without online language-model decoding or additional bidirectional detector training.
2.2 Cross-modal OOD Detection and Unknown Probability Modeling
A fundamental challenge in OWOD is the evaluation of an object's Out-of-Distribution (OOD) score, or "unknownness," to effectively distinguish it from known categories and background noise. Traditional unimodal OOD detection often relies on post-hoc scores calculated from the internal activations of a trained vision model. Representative approaches include Maximum Softmax Probability (MSP) [11], energy-based scores [24], and MaxLogit [10], as well as other established techniques such as ODIN [19], ReAct [31], and Grad-Norm [13], among others [6, 15]. While these methods provide a statistical basis for identifying outliers, they are primarily confined to a single modality and often struggle with the complex semantic shifts inherent in open-world environments.
With the integration of multi-modal representations, cross-modal OOD evaluation has emerged as a powerful alternative. Maximum Concept Matching (MCM) [28] establishes a zero-shot OOD baseline by aligning visual features with known textual concepts through scaled softmax. Subsequent works have further expanded this boundary: CLIPN [33] introduces negative prompts to explicitly model the rejection of known classes, while PEFT-MCM [29] utilizes parameter-efficient fine-tuning to refine the OOD decision boundary, supported by additional cross-modal studies [5, 25, 36, 43]. Furthermore, recent Dual-Pattern Matching (DPM) [40] frameworks fuse textual similarity with visual distribution patterns to bridge the modality gap. Despite their efficacy, these methods often employ rigid suppression strategies that lead to the over-suppression of boundary unknown targets. To mitigate this, we propose DOSCM, which adaptively protects ambiguous out-of-distribution instances by assessing the exclusivity of predictions through probability margins.
3 Methodology
Our proposed framework, CODE (Cross-Modal Calibration and Dynamic Suppression), is built upon the attribute-based OWL-ViT baseline [27]. As illustrated in Figure 2, CODE uses pre-computed optimized attribute embeddings and known-class visual prototypes. CMJCC calibrates text-derived known logits, UGUOE enhances the unknown logit from local visual-response dispersion, and DOSCM adjusts outlier suppression using the top-1/top-2 confidence margin. Attribute generation and prototype construction are both completed offline and are not invoked during test-time inference.
3.1 Preliminary: Attribute-based OWOD Baseline
Following the prevalent OWOD paradigms based on multi-modal foundation models (e.g., OWL-ViT [27]), our framework utilizes the attribute semantic space as an intermediate representation to map visual features of candidate regions to category labels.
Attribute Selection and Adaptation. Given K known categories, the model first prompts a Large Language Model (LLM) to generate a rich set of fine-grained attribute descriptions. These generated attributes are processed by a text encoder to form an initial attribute pool. To extract and adapt a highly discriminative subset from this redundant pool, previous methods [37] optimize the attribute embeddings A and the mapping weights W. During the training phase, this is achieved by minimizing a comprehensive loss function comprising four components:
Here, is the standard cross-entropy classification loss. represents the partial optimal transport distance used to select the most relevant attributes. is the Mean Squared Error loss applied to align the text-derived attributes with the average vision-derived class embeddings, which ensures stable refinement under limited supervision. Finally, applies L1 regularization to the mapping weights W to encourage sparsity.
Logits Representation. After selection and adaptation, we obtain optimized attribute embeddings, , where denotes the fixed number of attributes retained after attribute selection and adaptation. Its value is specified in the implementation details. We define the classification mapping matrix as , where the first columns correspond to the known categories and the last column corresponds to the semantic projection of the unknown category. For the visual embedding of a candidate region, its unified logits are computed as:
where denotes the cosine similarity. Thus, the text-driven logits for known categories are denoted as , and the corresponding component for the unknown category is .
Inference. During the inference stage, the baseline method computes the classification probabilities for known and unknown targets separately:
- Known Target Probability ( ): By applying the Sigmoid activation function to the known components, the confidence score of the candidate region belonging to a known class is obtained:
- Unknown Target Probability ( ): The determination of an unknown target relies not only on its classification logit but is also modulated by task relevance ( ) and unknownness ( ):
where measures the matching degree between the visual features and any known attributes:
and implements out-of-distribution outlier suppression based on the Maximum Concept Matching (MCM) mechanism [28]. Instead of using the independent classification probabilities, MCM penalizes the unknown score using the highest normalized probability derived from applying the Softmax function to the known logits:
Hao Xu et al.

Figure 2: Inference architecture of CODE. CMJCC calibrates known logits with cached visual prototypes, UGUOE enhances unknown logits from visual uncertainty, and DOSCM converts confidence margins into dynamic OOD scores.
3.2 Cross-Modal Joint Confidence Calibration
As analyzed in Sec. 1, the text-driven logits derived from unidirectional attribute mapping are susceptible to semantic ambiguity, particularly when visual attributes are partially occluded or the visual-textual alignment is weak. To address this limitation, we propose the Cross-Modal Joint Confidence Calibration (CMJCC) framework. Unlike previous methods that rely solely on textual descriptions, CMJCC explicitly incorporates global visual prototypes to provide a robust visual-to-visual reference, effectively calibrating the confidence of known categories.
Visual Prototype Calculation. For each dataset, we construct a visual prototype bank offline using the frozen OWL-ViT visual encoder. For a known category , let denote the set of region embeddings extracted from the ground-truth boxes of class in the labeled training or support split. The visual prototype is defined as the normalized centroid of these embeddings:
The prototypes are computed and cached before inference and are never updated using test images. In Task 1, prototypes are constructed strictly from annotated known categories, without using unknown-category labels. In Task 2, prototypes of previously known categories remain frozen, while prototypes of newly introduced categories are computed from their available labeled samples and appended to the prototype bank.
The collective visual base matrix is then constructed as . This prototype injection ensures that the model captures the intrinsic visual distribution of each class, compensating for potential gaps in textual attribute coverage.
Visual Similarity and Gating. For a candidate region , we compute its direct visual-level similarities to the known-category prototypes as
To suppress background and irrelevant visual responses, we compute a candidate-specific activation threshold:
where is the similarity between candidate and prototype , is a fixed scalar margin, and is the minimum activation floor. Since the mean is computed only over the prototypes of the current candidate, is independent of the composition and size of the inference batch.
The corresponding visual boost is obtained by applying a ReLU gate:
For notational simplicity, we omit the candidate index i in the following equations.
Joint Logit Calibration. To ensure that the visual boost is consistent with the logit distribution of the pre-trained foundation model, we introduce an absolute scaling factor , also referred to as the reverse temperature. Following the intrinsic temperature setting of the foundation model, the scaling factor is defined as:
The final calibrated logits for known categories, , are formulated by fusing the original text-driven logits with the visually-guided boost component:
where is a modulation coefficient that balances the contribution of the visual prior. By mapping the visual similarity back to a sharp decision probability gradient through , CMJCC preserves the discriminative power of the original feature space while providing the necessary cross-modal calibration.
3.3 Uncertainty-Guided Universal Objectness Enhancement
While the calibration mechanism in Sec. 3.2 improves the reliability of known classes, the detection of unknown objects remains challenging due to the lack of explicit supervision. Previous methods [35, 37, 45] often rely on a generic objectness score derived from the maximum attribute response, which fails to distinguish between background noise and ambiguous unknown targets. To bridge this gap, we propose an Uncertainty-Guided Universal Objectness Enhancement (UGUOE) module. By analyzing the local distribution of visual similarities, UGUOE quantifies the model's classification uncertainty to generate a robust universal objectness prior, actively boosting the response of potential unknown objects.
Local Visual Response Aggregation. For a candidate region , we consider its Top- nearest visual prototypes from to capture its local semantic neighborhood. Let be the set of the largest similarity values in . The base visual-driven unknown response is defined as the average of these local similarities:
A high indicates that the region exhibits strong object-like visual characteristics, even if it does not strictly align with a single known category.
Uncertainty Modeling via Variance. A key observation is that for a clearly defined known object, its visual similarity will be highly concentrated on a specific prototype, resulting in a high variance within . Conversely, an unknown object often exhibits ambiguous, low-variance responses across multiple related known prototypes. We quantify this "hesitation" or classification uncertainty using the unbiased variance :
We then formulate the uncertainty-guided weight using an exponential decay function to penalize high-certainty (known) regions and favor low-variance (ambiguous) candidates:
where controls the sensitivity to uncertainty, and clips the weight to a stable range.
Enhanced Universal Objectness and Logit Fusion. To extract the pure universal objectness activation, we first apply a thresholding function to the base visual response:
where is the activation threshold used to filter out background distractors. The final enhanced logit for the unknown category, , is then obtained by injecting this uncertainty-weighted universal objectness into the original text-driven unknown logit :
where is a scaling coefficient. This formulation ensures that objects located in the "semantic vacuum" between known classes receive a significant universal objectness boost, thereby increasing their probability before the outlier suppression phase.
3.4 Dynamic Outlier Suppression via Confidence Margin
Through the CMJCC and UGUOE modules, we have obtained the calibrated known probabilities and the enhanced unknown logits . The final step in the OWOD inference pipeline is to determine the Out-of-Distribution (OOD) outlier score to distinguish genuine unknown objects from known categories.
Revisiting the MCM Bottleneck. As formulated in Sec. 3.1, the standard MCM mechanism utilizes the highest Softmax-normalized probability for suppression: . However, this rigid penalty strategy introduces a severe flaw at the decision boundary. A high Top-1 probability in the Softmax distribution does not necessarily guarantee absolute exclusivity; if the Top-2 probability is also high, the model is actually experiencing semantic confusion between two known classes. In such boundary scenarios, the region is highly likely to be a hard unknown instance sharing attributes with multiple known categories. The standard MCM blindly applies a massive penalty, erroneously suppressing these hard unknowns into the background.
Confidence Margin Calculation. To address this over suppression, we propose the Dynamic Outlier Suppression via Confidence Margin (DOSCM). We argue that strong suppression should only be triggered when the model exhibits absolute, exclusive certainty about a single known class. To quantify this exclusivity, we extract the Top-1 and Top-2 probabilities from the Softmax-normalized distribution of the calibrated logits, denoted as :
We then define the confidence margin as the gap between the most confident and the second most confident predictions:
A large indicates exclusive certainty towards a specific known class, whereas a small signifies boundary ambiguity.
Dynamic Suppression and Final Inference. We modulate the baseline MCM penalty using this confidence margin to compute the effective suppression score :
Consequently, the dynamic OOD suppression score is formulated as:
Finally, substituting and the enhanced unknown logit back into the baseline inference framework, the ultimate probability for the unknown target is derived as:
By decoupling the absolute maximum Softmax response from the penalty mechanism and introducing the margin-based dynamic adjustment, DOSCM effectively protects ambiguous unknown objects located in the semantic margins, thereby significantly improving
Hao Xu et al.
the recall of hard out-of-distribution targets without compromising the precision of known classes.
4 Experiments
4.1 Experimental Setup
4.1.1 Datasets. We evaluate CODE on the Real-World Detection (RWD) benchmark [45], which contains five practical scenarios: Aquatic, Aerial, Game, Medical, and Surgery. Following the official RWD protocol, each dataset is evaluated in two stages. Task 1 measures unknown-object discovery from annotated known categories, whereas Task 2 evaluates Previously Known (PK) and Currently Known (CK) categories after the model is jointly retrained using all samples available at that stage. Thus, Task 2 represents an expanded-category evaluation rather than a strictly sequential incremental-learning setting. We follow the official category splits, image partitions, and evaluation protocol.
4.1.2 Evaluation Metrics. To comprehensively measure the balance between the accurate identification of known classes and the robust recall of unknown classes, we employ the following quantitative metrics:
• K-mAP and U-mAP: In Task 1, we calculate the mean Average Precision (mAP) for Known and Unknown categories, respectively.
• PK-mAP and CK-mAP: In Task 2, we evaluate the detection performance on Previously Known (PK) categories and Currently Known (CK) categories newly introduced in the task.
Unlike early OWOD works that primarily focused on Recall for unknown objects, we strictly adopt mAP as the primary metric. This ensures a more rigorous evaluation of the detector's classification accuracy and its ability to suppress background noise.
4.1.3 Implementation Details. Architecture and Environment. All experiments are conducted on NVIDIA GeForce RTX 4090 GPUs using PyTorch. We employ frozen OWL-ViT B/16 and L/14 models as the multimodal foundation backbones. Following FOMO [45], GPT-3.5 is used only offline to generate the initial fine-grained attribute descriptions. The resulting attributes are encoded and cached before inference, and GPT-3.5 is not invoked during test-time detection. The known-category visual prototypes are also pre-computed and cached before inference according to the protocol described in Sec. 3.2.
Hyperparameter Settings. The number of retained attribute embeddings is set to N = 25 for all datasets. In CMJCC, the scalar margin for visual similarity gating is set to m = 0.2, and the minimum activation floor is . Following the original OWL-ViT configuration [27], the temperature coefficient is fixed at , corresponding to , while the cross-modal calibration coefficient is set to .
In UGUOE, we retain the top local visual responses. The uncertainty sensitivity factor is set to , and the universal objectness threshold is set to . For numerical stability, the uncertainty weight is clamped to . During attribute optimization, the linear projection layers and calibration weights are optimized using AdamW. Unless otherwise stated, the same hyperparameter configuration is used across the five RWD datasets.
Overall Performance. As shown in Table 1, CODE achieves the best overall performance under both backbones. With OWL-ViT L/14, CODE obtains 21.7 U-mAP and 40.8 K-mAP in Task 1, together with 43.6 PK-mAP and 36.2 CK-mAP in Task 2. Compared with PASS, these results correspond to improvements of +2.6, +2.3, +4.7, and +0.2 points, respectively. With B/16, CODE also improves the four overall metrics by +1.6, +0.6, +2.0, and +2.4 points. The consistent improvements across the two backbones demonstrate that CODE benefits both known-category recognition and unknown-object discovery.
Analysis of Task 1. CODE improves U-mAP on four of the five RWD scenarios. The largest gain occurs on Surgery, where U-mAP increases by +9.1 points. It also improves Aquatic, Aerial, and Medical by +3.1, +2.9, and +0.6 points, respectively. These gains support the effectiveness of UGUOE, which uses the dispersion of local visual responses to activate potential unknown objects that receive ambiguous known-category responses.
CODE also raises the overall K-mAP from 38.5 to 40.8, including gains of +8.8, +5.7, and +0.8 points on Aquatic, Aerial, and Medical. This result indicates that CMJCC compensates for semantic ambiguity by introducing direct visual references from known categories. DOSCM further preserves boundary unknowns by adjusting suppression according to the confidence margin, thereby alleviating the conventional trade-off between known precision and unknown discovery.
On Game, CODE decreases U-mAP and K-mAP by 2.8 and 1.7 points. Our feature-space analysis gives a high average inter-class cosine similarity of 0.82 on this domain, supporting the interpretation that some boundary unknowns are confused with nearby known-category clusters.
Analysis of Task 2. Since Task 2 jointly retrains the model using all samples available at that stage, the results reflect its capacity to represent the expanded category set rather than a strictly sequential incremental-learning process. Under L/14, CODE improves the overall PK-mAP and CK-mAP by +4.7 and +0.2 points. In particular, PK-mAP increases by +8.7 on Aquatic and +10.3 on Medical, with corresponding CK-mAP gains of +1.3 and +6.3 points. CODE also improves both metrics on Aerial and Game.
These gains demonstrate the importance of CMJCC in Task 2. When the category space is expanded, the visual prototypes provide direct class-level references that calibrate the text-driven representations of both previously and currently known categories. On Surgery, CODE remains below PASS in Task 2. Its high inter-class cosine similarity of 0.87 indicates that highly overlapping fine-grained categories remain challenging even after visual calibration.
4.2 Generalization to Standard Benchmarks
We further evaluate CODE beyond RWD. On M-OWODB Task 1 [14], CODE achieves 86.0 U-Recall and 70.0 mAP, outperforming MAVL [25] (50.1/64.0), DEUS [12] (65.1/66.2), and OrthogonalDet [32] (24.6/61.3), where each pair denotes U-Recall/mAP. On LVIS [8], CODE obtains 32.0 AP , compared with 22.3 for GenerateU [20] and 31.2 for Open-Det [2]. These results support generalization beyond the small-category RWD scenarios. Because multimodal foundation
Table 1: OWOD results on the five RWD datasets. We report U- and K-mAP in Task 1 and PK- and CK-mAP in Task 2. Results of previous methods are taken from their original papers, while CODE uses our final unified configuration. The rows report CODE minus PASS; positive values indicate improvements. GT baselines use ground-truth class names to detect unknown objects and serve as an open-vocabulary upper reference.
| Dataset (→) | Aquatic | Aerial | Game | Medical | Surgery | Overall | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task ID (→) | Task 1 | Task 2 | Task 1 | Task 2 | Task 1 | Task 2 | Task 1 | Task 2 | Task 1 | Task 2 | Task 1 | Task 2 | ||||||||||||
| U | K | PK | CK | U | K | PK | CK | U | K | PK | CK | U | K | PK | CK | U | K | PK | CK | U | K | PK | CK | |
| B/16 Backbone: | ||||||||||||||||||||||||
| BASE-ZS+GT | 29.8 | 45.0 | 45.0 | 36.7 | 1.3 | 5.7 | 5.7 | 1.4 | 15.0 | 0.4 | 0.4 | 0.1 | 0.5 | 0.0 | 0.0 | 0.1 | 5.6 | 1.5 | 1.4 | 0.3 | 10.4 | 10.5 | 10.5 | 7.7 |
| BASE-ZS | 6.2 | 45.0 | 45.0 | 36.7 | 0.9 | 5.7 | 5.7 | 1.4 | 15.7 | 0.4 | 0.4 | 0.1 | 0.2 | 0.0 | 0.0 | 0.1 | 1.4 | 1.5 | 1.4 | 0.3 | 4.9 | 10.5 | 10.5 | 7.7 |
| BASE-ZS+IN | 26.5 | 45.1 | 45.1 | 36.7 | 1.9 | 5.7 | 5.7 | 1.4 | 2.4 | 0.3 | 0.3 | 0.0 | 0.6 | 0.0 | 0.0 | 0.1 | 1.7 | 1.4 | 1.0 | 0.3 | 6.6 | 10.5 | 10.4 | 7.7 |
| BASE-ZS+LLM | 24.7 | 45.1 | 45.1 | 36.5 | 1.4 | 5.7 | 5.7 | 1.4 | 15.1 | 0.4 | 0.4 | 0.1 | 0.6 | 0.0 | 0.0 | 0.1 | 8.9 | 1.5 | 1.3 | 0.3 | 10.2 | 10.5 | 10.5 | 7.7 |
| BASE-FS | 7.1 | 41.1 | 41.1 | 31.9 | 1.2 | 10.4 | 10.1 | 4.0 | 16.0 | 4.6 | 4.8 | 3.9 | 0.6 | 6.1 | 6.1 | 3.3 | 1.3 | 11.9 | 11.3 | 10.9 | 5.2 | 14.8 | 14.7 | 10.8 |
| FOMO [45] | 3.5 | 43.8 | 44.1 | 40.8 | 0.9 | 12.0 | 12.6 | 5.4 | 13.3 | 3.8 | 4.4 | 4.1 | 2.1 | 6.4 | 5.5 | 11.5 | 6.1 | 12.7 | 12.9 | 11.0 | 5.2 | 15.7 | 15.9 | 14.6 |
| PASS [37] | 5.2 | 43.4 | 43.2 | 46.6 | 1.9 | 14.0 | 16.0 | 7.0 | 21.5 | 10.0 | 7.7 | 9.0 | 4.9 | 8.4 | 6.8 | 12.1 | 14.3 | 15.6 | 13.1 | 14.7 | 9.6 | 18.3 | 17.4 | 17.9 |
| CODE (Ours) | 10.4 | 40.2 | 43.5 | 52.4 | 2.9 | 17.6 | 18.7 | 7.1 | 25.2 | 13.4 | 9.1 | 11.9 | 3.0 | 8.7 | 7.4 | 7.9 | 14.6 | 14.4 | 18.1 | 22.4 | 11.2 | 18.9 | 19.4 | 20.3 |
| Δ | +5.2 | -3.2 | +0.3 | +5.8 | +1.0 | +3.6 | +2.7 | +0.1 | +3.7 | +3.4 | +1.4 | +2.9 | -1.9 | +0.3 | +0.6 | -4.2 | +0.3 | -1.2 | +5.0 | +7.7 | +1.6 | +0.6 | +2.0 | +2.4 |
| L/14 Backbone: | ||||||||||||||||||||||||
| BASE-ZS+GT | 34.8 | 36.0 | 36.0 | 42.3 | 1.0 | 7.9 | 7.2 | 0.8 | 12.4 | 0.9 | 0.8 | 0.3 | 2.4 | 0.2 | 0.2 | 0.3 | 2.4 | 0.2 | 2.6 | 1.3 | 10.6 | 9.0 | 9.4 | 9.0 |
| BASE-ZS | 0.7 | 35.9 | 36.0 | 42.3 | 9.1 | 8.2 | 7.2 | 0.8 | 6.8 | 0.9 | 0.8 | 0.3 | 0.0 | 0.2 | 0.2 | 0.3 | 3.6 | 2.9 | 2.6 | 1.3 | 4.1 | 9.6 | 9.4 | 9.0 |
| BASE-ZS+IN | 19.6 | 35.8 | 35.8 | 41.8 | 2.3 | 7.2 | 6.9 | 0.9 | 15.8 | 0.9 | 0.8 | 0.3 | 0.9 | 0.1 | 0.1 | 0.2 | 3.1 | 2.1 | 1.9 | 1.1 | 8.3 | 9.2 | 9.1 | 8.8 |
| BASE-ZS+LLM | 24.7 | 35.8 | 35.8 | 42.2 | 0.6 | 7.6 | 7.2 | 0.8 | 12.5 | 0.9 | 0.8 | 0.2 | 1.6 | 0.1 | 0.1 | 0.2 | 12.6 | 2.6 | 2.5 | 1.3 | 10.4 | 9.4 | 9.3 | 9.0 |
| BASE-FS | 2.4 | 43.6 | 42.9 | 42.8 | 9.7 | 23.7 | 21.9 | 13.0 | 8.2 | 10.4 | 10.2 | 13.4 | 1.1 | 23.2 | 21.7 | 24.2 | 3.6 | 26.0 | 25.0 | 7.4 | 5.0 | 25.4 | 24.3 | 20.2 |
| FOMO [45] | 18.2 | 50.1 | 48.1 | 47.1 | 6.0 | 25.3 | 23.7 | 16.0 | 30.4 | 10.7 | 9.9 | 11.2 | 9.4 | 21.8 | 19.9 | 34.6 | 12.0 | 29.0 | 28.9 | 8.5 | 15.2 | 27.4 | 26.1 | 23.5 |
| PASS [37] | 21.7 | 53.9 | 56.6 | 58.3 | 8.4 | 34.2 | 36.1 | 20.2 | 36.0 | 24.3 | 23.7 | 26.3 | 13.1 | 34.3 | 30.0 | 32.0 | 16.6 | 45.6 | 47.9 | 43.3 | 19.1 | 38.5 | 38.9 | 36.0 |
| CODE (Ours) | 24.7 | 62.7 | 65.3 | 59.6 | 11.3 | 39.9 | 37.2 | 20.4 | 33.2 | 22.6 | 28.7 | 27.0 | 13.7 | 35.1 | 40.3 | 38.3 | 25.7 | 43.9 | 46.3 | 35.6 | 21.7 | 40.8 | 43.6 | 36.2 |
| Δ | +3.1 | +8.8 | +8.7 | +1.3 | +2.9 | +5.7 | +1.1 | +0.2 | -2.8 | -1.7 | +5.0 | +0.7 | +0.6 | +0.8 | +10.3 | +6.3 | +9.1 | -1.7 | -1.6 | -7.7 | +2.6 | +2.3 | +4.7 | +0.2 |
Table 2: Incremental ablation on Surgery Task 1 using OWL-ViT L/14.
| Configuration | U-mAP | K-mAP |
|---|---|---|
| Baseline | 16.2 | 43.0 |
| + CMJCC | 17.0 | 45.0 |
| + CMJCC + UGUOE | 22.4 | 42.3 |
| + CMJCC + UGUOE + DOSCM | 25.7 | 43.9 |
Table 3: Removal-based ablation on Aquatic and Surgery Task 1 using OWL-ViT L/14.
| Configuration | Aquatic | Surgery | ||
|---|---|---|---|---|
| U | K | U | K | |
| CODE Full | 24.7 | 62.7 | 25.7 | 43.9 |
| w/o CMJCC | 20.6 | 54.3 | 23.7 | 41.5 |
| w/o UGUOE | 9.1 | 63.0 | 2.3 | 44.2 |
| w/o DOSCM | 8.3 | 62.0 | 22.4 | 42.3 |
models may have encountered common benchmark categories during pre-training, we retain RWD as the primary benchmark.
4.3 Ablation Study
We first conduct an incremental ablation on Surgery to examine how the three modules interact, followed by removal-based ablations on Aquatic and Surgery. All experiments in this subsection use OWL-ViT L/14.
Table 2 shows how the three modules progressively contribute to the final performance. Adding CMJCC to the baseline improves
Table 4: Sample-size sensitivity of visual prototypes using OWL-ViT L/14. Values are U-/K-mAP on Task 1.
| Dataset | 10-shot | 50-shot | 75-shot | 100-shot |
|---|---|---|---|---|
| Aquatic | 18.0/35.3 | 21.0/62.5 | 20.5/63.0 | 24.7/62.7 |
| Surgery | 13.5/39.8 | 26.1/42.2 | 27.4/43.5 | 25.7/43.9 |
U-/K-mAP from 16.2/43.0 to 17.0/45.0, confirming that visual prototypes strengthen known-class discrimination. UGUOE then raises U-mAP from 17.0 to 22.4, although K-mAP decreases to 42.3, reflecting its primary role in activating potential unknown objects. Finally, DOSCM further increases U-mAP to 25.7 and recovers K-mAP to 43.9, demonstrating that margin-aware suppression complements uncertainty-guided enhancement.
The removal results in Table 3 provide consistent evidence. Without CMJCC, U-/K-mAP decreases from 24.7/62.7 to 20.6/54.3 on Aquatic and from 25.7/43.9 to 23.7/41.5 on Surgery. Removing UGUOE causes the largest U-mAP degradation, reaching only 9.1 on Aquatic and 2.3 on Surgery, while K-mAP slightly increases because fewer ambiguous candidates are activated as unknown. Removing DOSCM also reduces U-mAP to 8.3 and 22.4, respectively, and lowers K-mAP in both datasets. Together, the two ablation protocols confirm that CMJCC, UGUOE, and DOSCM address complementary stages of known calibration, unknown activation, and boundary suppression.
4.4 Alternative Uncertainty and OOD Scores
We compare CODE with standard alternatives on Surgery Task 1 using L/14. DOSCM achieves 25.7 U-mAP, compared with 21.2 for Energy [24], 2.8 for MaxLogit [10], and 1.0 for global entropy [3].
Hao Xu et al.

Figure 3: Qualitative comparison on five RWD datasets. Rows show ground truth, PASS, and CODE; blue and yellow boxes denote known and unknown objects, respectively. Columns show Aquatic and Surgery (Task 1), and Aerial, Medical, and Game (Task 2).
UGUOE also obtains 25.7 U-mAP, whereas replacing visual-response variance with known-logit entropy yields 17.0. Thus, local visual dispersion and margin-aware suppression better preserve ambiguous unknown objects than the tested global logit statistics.
4.5 Prototype Sensitivity and Efficiency
Table 4 shows that prototype estimation is sensitive under extreme scarcity, particularly at 10 shots. With 50 or more samples, K-mAP becomes substantially more stable, while Aquatic U-mAP reaches 24.7 at 100 shots. This experiment isolates sample-size sensitivity rather than a complete long-tailed or noisy-label setting.
For retained attributes on Aquatic, CODE obtains U-/K-mAP values of 15.5/59.0, 18.9/62.9, 24.7/62.7, and 21.1/62.5, respectively. K-mAP is stable once , while U-mAP is highest at ; we therefore use as the accuracy-efficiency balance. The additional prototype matching has complexity , accounts for less than 0.1% of the transformer backbone FLOPs, and increases latency by less than 5% on a single RTX 4090.
4.6 Qualitative Results and Visualization
Figure 3 compares CODE with PASS across the five RWD datasets. In Task 1, CODE recovers the camouflaged stingray in Aquatic and the blurred scalpel in Surgery, supporting the ability of UGUOE to activate difficult unknown objects. In Task 2, CODE retrieves the missed basketballcourt in Aerial and more fine-grained targets in Medical, illustrating the benefit of visual-prototype calibration. Game remains challenging: although CODE recalls more foreground instances, highly overlapping representations can still cause category confusion. Overall, the examples support the quantitative improvements in both unknown activation and known-class calibration.
5 Conclusion
We presented CODE, a unified inference-time framework for attribute-driven open-world object detection. CMJCC uses known-class visual prototypes to calibrate text-driven predictions, UGUOE enhances potential unknowns through local visual uncertainty, and DOSCM protects ambiguous boundary instances through margin-aware suppression. Together, these components improve unknown-object discovery and known-class recognition across diverse domains and backbone scales, highlighting the benefit of combining direct visual references with uncertainty-aware inference.
Limitations. CODE relies on dataset-specific visual prototypes, whose representativeness may decrease under extreme data scarcity, long-tailed or noisy annotations, and cross-domain distribution shift. Our few-shot study isolates sample scarcity but does not cover all these conditions. Highly overlapping fine-grained categories, as observed in Game and Surgery, also remain challenging.
Acknowledgments
This work was supported by the Joint Funds of the National Natural Science Foundation of China (No. U2441206).
References
[1] David Bouget, Rodrigo Benenson, Mohamed Omran, Laurent Riffaud, Bernt Schiele, and Pierre Jannin. 2015. Detecting surgical tools by modelling local appearance and global shape. IEEE transactions on medical imaging 34, 12 (2015), 2603–2617.
[2] Guiping Cao, Tao Wang, Wenjian Huang, Xiangyuan Lan, Jianguo Zhang, and Dongmei Jiang. 2025. Open-Det: An efficient learning framework for open-ended detection. arXiv preprint arXiv:2505.20639 (2025).
[3] Robin Chan, Matthias Rottmann, and Hanno Gottschalk. 2021. Entropy maximization and meta classification for out-of-distribution detection in semantic segmentation. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE, 5108–5117.
[4] Floriana Ciaglia, Francesco Saverio Zuppichini, Paul Guerrie, Mark McQuade, and Jacob Solawetz. 2022. Roboflow 100: A rich, multi-domain object detection benchmark. arXiv preprint arXiv:2211.13523 (2022).
[5] Sepideh Esmaeilpour, Bing Liu, Eric Robertson, and Lei Shu. 2022. Zero-shot out-of-distribution detection based on the pre-trained model clip. In Proceedings of the AAAI conference on artificial intelligence, Vol. 36. 6568–6576.
[6] Stanislav Fort, Jie Ren, and Balaji Lakshminarayanan. 2021. Exploring the limits of out-of-distribution detection. Advances in neural information processing systems 34 (2021), 7068–7081.
[7] Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. 2021. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921 (2021).
[8] Agrim Gupta, Piotr Dollar, and Ross Girshick. 2019. Lvis: A dataset for large vocabulary instance segmentation. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 5351–5359.
[9] Akshita Gupta, Sanath Narayan, KJ Joseph, Salman Khan, Fahad Shahbaz Khan, and Mubarak Shah. 2022. Ow-detr: Open-world detection transformer. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 9235–9244.
[10] Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joe Kwon, Mohammadreza Mostajabi, Jacob Steinhardt, and Dawn Song. 2019. Scaling out-of-distribution detection for real-world settings. arXiv preprint arXiv:1911.11132 (2019).
[11] Dan Hendrycks and Kevin Gimpel. 2016. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv preprint arXiv:1610.02136 (2016).
[12] Jun-Woo Heo, Keonhee Park, and Gyeong-Moon Park. 2026. Detecting Unknown Objects via Energy-based Separation for Open World Object Detection. arXiv preprint arXiv:2603.29954 (2026).
[13] Rui Huang, Andrew Geng, and Yixuan Li. 2021. On the importance of gradients for detecting distributional shifts in the wild. Advances in Neural Information Processing Systems 34 (2021), 677–689.
[14] KJ Joseph, Salman Khan, Fahad Shahbaz Khan, and Vineeth N Balasubramanian. 2021. Towards open world object detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 5830–5840.
[15] Rajat Koner, Poulami Sinhamahapatra, Karsten Roscher, Stephan Günnemann, and Volker Tresp. 2021. Oodformer: Out-of-distribution detection transformer. arXiv preprint arXiv:2107.08976 (2021).
[16] Weicheng Kuo, Yin Cui, Xiuye Gu, AJ Piergiovanni, and Anelia Angelova. 2022. F-vlm: Open-vocabulary object detection upon frozen vision and language models. arXiv preprint arXiv:2209.15639 (2022).
[17] Ke Li, Gang Wan, Gong Cheng, Liqiu Meng, and Junwei Han. 2020. Object detection in optical remote sensing images: A survey and a new benchmark. ISPRS journal of photogrammetry and remote sensing 159 (2020), 296–307.
[18] Yiming Li, Yi Wang, Wenqian Wang, Dan Lin, Bingbing Li, and Kim-Hui Yap. 2024. Open world object detection: A survey. IEEE Transactions on Circuits and Systems for Video Technology 35, 2 (2024), 988–1008.
[19] Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. 2017. Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv preprint arXiv:1706.02690 (2017).
[20] Chuang Lin, Yi Jiang, Lizhen Qu, Zehuan Yuan, and Jianfei Cai. 2024. Generative region-language pretraining for open-ended object detection. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 13958–13968.
[21] Haomiao Liu, Hao Xu, Chuhuai Yue, and Bo Ma. 2024. UOA-RCNN: Detect Anything with Unknown Object Aware RCNN. In International Conference on Neural Information Processing. Springer, 63–77.
[22] Haomiao Liu, Hao Xu, Chuhuai Yue, and Bo Ma. 2025. Adaptive objectness learning for enhanced unknown object detection: H. Liu et al. The Visual Computer 41, 10 (2025), 7433–7446.
[23] Haomiao Liu, Hao Xu, Chuhuai Yue, and Bo Ma. 2025. UN-DETR: Promoting objectness learning via joint supervision for unknown object detection. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 39. 5442–5450.
[24] Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. 2020. Energy-based out-of-distribution detection. Advances in neural information processing systems 33 (2020), 21464–21475.
[25] Muhammad Maaz, Hanoona Rasheed, Salman Khan, Fahad Shahbaz Khan, Rao Muhammad Anwer, and Ming-Hsuan Yang. 2022. Class-agnostic object detection with multi-modal transformer. In European conference on computer vision. Springer, 512–531.
[26] Sachit Menon and Carl Vondrick. 2022. Visual classification via description from large language models. arXiv preprint arXiv:2210.07183 (2022).
[27] Matthias Minderer, Alexey Gritsenko, Austin Stone, Maxim Neumann, Dirk Weissenborn, Alexey Dosovitskiy, Aravindh Mahendran, Anurag Arnab, Mostafa Dehghani, Zhuoran Shen, et al. 2022. Simple open-vocabulary object detection. In European conference on computer vision. Springer, 728–755.
[28] Yifei Ming, Ziyang Cai, Jiuxiang Gu, Yiyou Sun, Wei Li, and Yixuan Li. 2022. Delving into out-of-distribution detection with vision-language representations. Advances in neural information processing systems 35 (2022), 35087–35102.
[29] Yifei Ming and Yixuan Li. 2024. How does fine-tuning impact out-of-distribution detection for vision-language models? International Journal of Computer Vision 132, 2 (2024), 596–609.
[30] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. In International conference on machine learning. PmLR, 8748–8763.
[31] Yiyou Sun, Chuan Guo, and Yixuan Li. 2021. React: Out-of-distribution detection with rectified activations. Advances in neural information processing systems 34 (2021), 144–157.
[32] Zhicheng Sun, Jinghan Li, and Yadong Mu. 2024. Exploring orthogonality in open world object detection. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). IEEE, 17302–17312.
[33] Hualiang Wang, Yi Li, Huifeng Yao, and Xiaomeng Li. 2023. Clipn for zero-shot ood detection: Teaching clip to say no. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 1802–1812.
[34] Xing Xi, Yangyang Huang, Jinhao Lin, and Ronghua Luo. 2024. KTCN: Enhancing Open-World Object Detection with Knowledge Transfer and Class-Awareness Neutralization.. In IJCAI. 1462–1470.
[35] Xing Xi, Yangyang Huang, Zhijie Zhong, and Ronghua Luo. 2024. Umb: Understanding model behavior for open-world object detection. Advances in Neural Information Processing Systems 37 (2024), 74233–74261.
[36] Hao Xu, Yiding Liang, Haomiao Liu, Chuhuai Yue, and Bo Ma. 2024. TGTrack: Text Modality Autoregression and Generative Template Updating for Visual Object Tracking. In International Conference on Neural Information Processing. Springer, 259–273.
[37] Muli Yang, Gabriel James Goenawan, Huaiyuan Qin, Kai Han, Xi Peng, Yanhua Yang, and Hongyuan Zhu. 2025. Detecting Open World Objects via Partial Attribute Assignment. In Proceedings of the Computer Vision and Pattern Recognition Conference. 20318–20328.
[38] Lewei Yao, Jianhua Han, Xiaodan Liang, Dan Xu, Wei Zhang, Zhenguo Li, and Hang Xu. 2023. Detclipv2: Scalable open-vocabulary object detection pre-training via word-region alignment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 23497–23506.
[39] Alireza Zareian, Kevin Dela Rosa, Derek Hao Hu, and Shih-Fu Chang. 2021. Open-vocabulary object detection using captions. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 14393–14402.
[40] Zihan Zhang, Zhuo Xu, and Xiang Xiang. 2024. Vision-language dual-pattern matching for out-of-distribution detection. In European Conference on Computer Vision. Springer, 273–291.
[41] Xiaowei Zhao, Yuqing Ma, Duorui Wang, Yifan Shen, Yixuan Qiao, and Xianglong Liu. 2023. Revisiting open world object detection. IEEE transactions on circuits and systems for video technology 34, 5 (2023), 3496–3509.
[42] Yiwu Zhong, Jianwei Yang, Pengchuan Zhang, Chunyuan Li, Noel Codella, Liunian Harold Li, Luowei Zhou, Xiyang Dai, Lu Yuan, Yin Li, et al. 2022. Regionclip: Region-based language-image pretraining. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 16793–16803.
[43] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. 2022. Conditional prompt learning for vision-language models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 16816–16825.
[44] Orr Zohar, Shih-Cheng Huang, Kuan-Chieh Wang, and Serena Yeung. 2023. Lovm: Language-only vision model selection. Advances in Neural Information Processing Systems 36 (2023), 33120–33132.
[45] Orr Zohar, Alejandro Lozano, Shelly Goel, Serena Yeung, and Kuan-Chieh Wang. 2023. Open world object detection in the era of foundation models. arXiv preprint arXiv:2312.05745 (2023).
[46] Orr Zohar, Kuan-Chieh Wang, and Serena Yeung. 2023. Prob: Probabilistic objectness for open world object detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 11444–11453.
Hao Xu et al.
Appendix Contents
A Dataset Details ..... 10
A.1 Benchmark Composition ..... 10
A.2 Statistical Summary ..... 10
A.3 Task Formulation ..... 10
A.4 Evaluation Tasks ..... 10
B Implementation Details ..... 10
B.1 Attribute Generation and Prompt Templates ..... 10
B.2 Model Training and Optimization ..... 11
C Additional Experimental Results and Analysis ..... 12
C.1 Intra-module Ablations ..... 13
C.2 Comprehensive Parameter Sensitivity Analysis ..... 14
C.3 Advanced Visualizations and In-depth Analysis ..... 15
D Limitations and Future Work ..... 19
A Dataset Details
We evaluate our framework on the Real-World Object Detection (RWD) benchmark, following the experimental protocol established by FOMO [45]. The RWD benchmark is designed to assess object detectors' ability to handle known and unknown objects across diverse and challenging domains.
A.1 Benchmark Composition
The benchmark consists of five datasets representing different complex scenarios. Following the RWD setup [45]:
-
Aquatic, Game, and Medical: These datasets are derived from RoboFlow100 [4], specifically the aquarium, team-fight-tactics, and xray-rheumatology subsets. They represent underwater environments, synthetic game snapshots with diverse avatars, and hand X-ray images for bone detection, respectively.
-
Aerial: This dataset is sourced from DIOR [17], consisting of high-resolution aerial imagery of structures such as stadiums, storage tanks, and ships.
-
Surgery: Taken from the NeuroSurgicalTools dataset [1], these images were captured via neurosurgical microscopes and contain various fine-grained surgical instruments.
A.2 Statistical Summary
Table S1 provides a comprehensive statistical overview of the RWD benchmark. This includes the total image count (training and testing), the class split between known (K) and unknown (U) categories for Task 1, the size of the attribute pool generated via LLMs, and the percentage of class names that exist within the vision-language tokenizer's vocabulary.
A.3 Task Formulation
Open World Object Detection (OWOD) requires a model to simultaneously detect known objects, discover unknown objects, and incrementally learn these novel categories over time. Formally, the OWOD process is divided into a series of subtasks . At a specific task stage , the model is trained on a set of known object classes denoted as .
During evaluation, the model is expected to detect all categories it has encountered so far (i.e., ), as well as discover unlabeled but interesting unknown categories, denoted as .
After discovering the unknown object classes, the model can be updated with the knowledge of these new classes using annotations from an oracle (e.g., a human annotator) in the subsequent task . Consequently, the model's known category set expands to include both previously seen classes and the newly introduced ones: . This readies the model to detect the newly updated known classes alongside additional unknown classes for the next task cycle. This formulation describes the general OWOD paradigm. In the RWD evaluation used in this work, however, Task 2 follows the benchmark protocol described in Sec. 4.1.1 of the main paper: the model is jointly retrained using all samples available at that stage. Therefore, our Task 2 results should be interpreted as evaluation over an expanded category set rather than as strictly sequential incremental learning.
Table S1: Comprehensive summary of the RWD benchmark datasets. We report the total images, class distribution for Task 1, attribute pool size, and tokenizer vocabulary coverage (%).
| Dataset | Total Images | Classes (K+U) | Attributes | % in Tokenizer |
|---|---|---|---|---|
| Aquatic | 637 | 7 (4+3) | 385 | 100.0 |
| Aerial | 10,000 | 20 (10+10) | 1,229 | 55.0 |
| Game | 1,575 | 59 (30+29) | 390 | 35.6 |
| Medical | 182 | 12 (6+6) | 390 | 15.4 |
| Surgery | 1,829 | 13 (6+7) | 808 | 7.69 |
A.4 Evaluation Tasks
Following the scarcity-based split motivated by long-tailed recognition, each dataset is divided into two subsets: the 50% most common classes (Known) and the 50% least common classes (Unknown). Within our specific two-stage evaluation protocol:
-
Task 1: Detectors are trained on known classes and must generalize to detect novel, unlabeled unknown objects. All categories in the test set that belong to the subsequent task are treated as unknown classes .
-
Task 2: Previously unknown classes are revealed and added to the expanded known-category set . Following the RWD protocol used in the main paper, the model is jointly retrained using all samples available at this stage. The categories from Task 1 are evaluated as Previously Known (PK), while the newly introduced categories are evaluated as Currently Known (CK).
B Implementation Details
B.1 Attribute Generation and Prompt Templates
To provide a fine-grained semantic foundation for attribute reasoning, we utilize LLMs to decompose abstract category labels into class-agnostic attributes, following the protocols established by previous works [35, 37, 45]. This process allows the model to establish an initial semantic baseline for discovering unknown objects.
B.1.1 LLM-based Decomposition. We prompt GPT-3.5 to generate descriptive characteristics for each known class within the RWD benchmark. The following prompt template is employed to ensure that the generated attributes remain visually or functionally discriminative:
“I am using a language-vision model to identify {Category}. List the {Type} attributes of {Category}, which will be used for detection.”
where {Category} denotes the specific class name and {Type} refers to one of the ten semantic dimensions. This methodology leverages the extensive internal knowledge of LLMs to facilitate the reasoning of unknown objects that share latent characteristics with known classes.
B.1.2 Attribute Taxonomy. To ensure a comprehensive characterization of objects across diverse and complex domains, the generated attributes are categorized into ten distinct dimensions:
• Shape: e.g., flat disc-like, pointed tips, knobby.
• Color: e.g., silver color, turquoise, yellow.
• Texture: e.g., matte skin, ridged, fissured.
• Size: e.g., asymmetric, large, proportionality.
• Context: e.g., underwater, surgical bone mallet, wrist bones.
• Features: e.g., rounded snout, tension adjustment, cortical bone.
• Appearance: e.g., shiny, presence of parking lots, visible joints.
• Behavior: e.g., swimming, stabilizing, extension.
• Environment: e.g., artificial reef, surgical tools, sparse.
• Material: e.g., collagen, bony, hydroxyapatite.
B.1.3 Encoding for Attribute Reasoning. To align the raw attribute descriptions with the pre-training distribution of the foundation model, we wrap each attribute into a structured descriptive sentence [26, 44]:
"Object which (is/has/etc) {Type} is {Attribute}."
These formatted descriptions are then encoded into high-dimensional embeddings using the frozen text encoder of OWL-ViT [27]. This procedure constructs the necessary semantic space for the model's attribute reasoning, providing a structured textual prior that enables the detection of potential unknown objects based on their constituent properties.
B.2 Model Training and Optimization
B.2.1 Training and Loss Functions. The training process of CODE is supervised by a composite objective function (Eq. 1 in the main text), formulated as:
where the empirical trade-off coefficients are set to , , and across all experiments. Each component is detailed as follows:
• Partial Optimal Transport Loss ( ): Following the assignment strategy in [37], conventional Optimal Transport (OT) assumes identical total probability mass between two distributions ( ). However, this fails in our scenario because only a small subset of the large generated attribute pool A aligns with the visual object embeddings V. To address this, relaxes the equal mass assumption, transporting only the in-distribution mass between V and A while explicitly filtering out redundant OOD attributes. This is formulated with asymmetric marginal constraints:
Unlike traditional POT, this introduces an equality constraint on the visual distribution V and an inequality constraint on A. The loss is computed as , where is an entropic constraint added to accelerate convergence.
• Cross-Entropy Loss ( ): After acquiring the selected attributes via POT, we learn a mapping matrix to assign these attributes to K known object classes. The prediction probability is computed via a softmax function over the similarity between visual embeddings and the reweighted attributes. The standard cross-entropy loss is then applied to supervise the optimization of both the mapping matrix and the selected attributes:
where is the one-hot label vector for the visual patch , and M is the number of known image patches.
• Mean Squared Error Loss ( ): Applied to align the text-derived attributes with the average vision-derived class embeddings. This ensures stable feature refinement and cross-modal semantic consistency under limited bounding-box supervision.
• L1 Regularization ( ): Applied to the attribute mapping weights W (i.e., ) to induce sparsity. This encourages the model to selectively activate only the most discriminative attributes rather than redundantly using the entire pool.
B.2.2 Inference Pipeline. The complete inference pipeline of our proposed framework is summarized in Algorithm 1. By sequentially executing CMJCC, UGUOE, and DOSCM, our method elegantly resolves the semantic ambiguity of known objects and the over-suppression of unknown targets within a unified, end-to-end inference pass. Specifically, the CMJCC module first provides visual-to-visual calibration, followed by UGUOE for boosting potential unknown regions, and finally DOSCM to dynamically protect boundary targets.
B.2.3 Hyperparameters, Environment, and Strategy. All experiments are conducted on a server equipped with NVIDIA RTX 4090 GPUs. We use the AdamW optimizer with a weight decay of . The text encoder of the pre-trained OWL-ViT remains frozen during training to preserve its zero-shot generalization capabilities. For the B/16 backbone, the batch size is set to 10 with input images resized to . For the L/14 backbone, we use a batch size of 1 and resize images to . During both training and inference, the maximum number of predicted bounding boxes per image is fixed at 100.
For few-shot training, we follow [37, 45] to feed an image and its corresponding ground truth bounding box into the pre-trained OWL-ViT [27] model to generate predicted bounding boxes and class embeddings. The class embeddings are filtered based on their
Hao Xu et al.
Algorithm 1: Inference Procedure of CODE for OWOD
Input: Candidate visual embedding , visual prototypes , text-driven known logits , text-driven unknown logit , task relevance score .
Output: Calibrated known probability , final unknown probability .
// Cross-Modal Joint Confidence Calibration (CMJCC)
1 Compute visual similarities: ;
2 Calculate candidate-specific threshold:
;
3 Compute visual boost: ;
4 Calibrate known logits:
;
5 Calculate calibrated known probabilities:
;
// For brevity, the candidate index is omitted below.
// Uncertainty-Guided Universal Objectness Enhancement (UGUOE)
6 Extract Top- local similarities from ;
7 Compute base unknown response and local variance following the definitions in Sec. 3.3;
8 Calculate hesitation weight and clamp to ;
9 Calculate universal objectness:
;
10 Enhance unknown logit:
;
// Dynamic Outlier Suppression via Confidence Margin (DOSCM)
11 Extract Top-1 and Top-2 probabilities from :
;
12 Calculate confidence margin: ;
13 Compute effective suppression penalty:
;
14 Compute dynamic OOD score: ;
15 Calculate final unknown probability:
;
16 return ;
associated bounding boxes, ensuring that only those with an intersection over union (IoU) of at least 0.8 with the ground-truth object are retained. Prompt ensembling is also used to produce the final attribute embeddings by averaging the text embeddings obtained from the 7 most effective CLIP prompt templates [27, 30].
Additional prototype extraction detail. As described in Sec. 3.2 of the main paper, visual prototypes are constructed only from labeled data available at the corresponding stage. In implementation, the image and its ground-truth bounding boxes are passed through the frozen OWL-ViT model, and region embeddings associated with predicted boxes whose IoU with the corresponding ground-truth box is at least 0.8 are retained for class-wise prototype estimation. The caching and Task 1/Task 2 prototype-bank protocol follows Sec. 3.2.
To adapt to the diverse data distributions in the RWD benchmark, we select the optimization and inference hyperparameters through grid search. For training, the learning rate is searched over , and the maximum number of iterations over . The remaining CODE hyperparameters are selected in the same grid-search manner, with the final settings reported in Sec. 4.1.3 of the main paper.
For the quantitative comparison in the main paper, results of previous methods are taken from their original publications, while CODE is evaluated using our final configuration. Reproduced baseline predictions, where used in the qualitative visualizations of this appendix, are used only for visualization and are not substituted for the published quantitative results.
Baseline Implementations: To comprehensively evaluate the effectiveness of our CODE framework, we compare it against state-of-the-art OWOD methods alongside several strong baselines adapted from Open-Vocabulary Object Detection (OVOD) using the OWL-ViT foundation model (Tab. 1 in the main text). These baselines are configured as follows:
-
BASE-ZS: Operates in a pure zero-shot setting by using a generic prompt (e.g., “object” or “a photo of an object”) to detect unknown targets [25].
-
BASE-ZS+IN: Utilizes the comprehensive ImageNet vocabulary as proposals for unknown objects, explicitly removing the names of the currently known classes to prevent overlap.
-
BASE-ZS+LLM: Leverages an LLM to predict potential unknown object categories based on the semantic context of the given known classes. These generated names are then used as text queries for zero-shot detection.
-
BASE-ZS+GT: Employs the actual ground-truth class names for the unknown objects. This configuration acts as the theoretical upper bound for text-conditioned (zero-shot) OVOD approaches, as it assumes oracle access to the exact identities of the unknown targets.
-
BASE-FS: A few-shot baseline that receives the same level of visual supervision as our method. It uses image exemplars to extract vision-derived object embeddings, which are averaged per class to generate visual class prototypes. It then applies a generic text prompt to identify unknown objects. Because text-based embeddings inherently exhibit different cosine similarity scales compared to image-derived counterparts, the predictions for known and unknown objects are ranked and selected separately.
C Additional Experimental Results and Analysis
The main paper already reports the incremental module ablation (Table 2), alternative uncertainty and OOD-score comparisons (Sec. 4.4), prototype sample-size and attribute-number sensitivity (Table 4 and Sec. 4.5), computational overhead, and generalization to standard benchmarks (Sec. 4.2). To avoid duplicating these results, this appendix focuses on complementary intra-module ablations, controlled parameter sweeps, and additional visual analyses.
C.1 Intra-module Ablations
To further validate the precise architectural design within our proposed framework, we conduct detailed intra-module ablation studies. Here, we investigate the core mechanisms within two critical modules: the dynamic thresholding gate in the Cross-Modal Joint Confidence Calibration (CMJCC) module, and the internal components of the Uncertainty-Guided Universal Objectness Enhancement (UGUOE) module. All experiments are conducted using the L/14 backbone across two representative datasets: Aquatic and Surgery.
C.1.1 CMJCC Module Ablation. The CMJCC module explicitly injects global visual prototypes to calibrate text-driven confidences. A core component of this module is the candidate-specific dynamic thresholding gate , which dictates how the visual similarity is transformed into the visual boost . To isolate the contribution of this dynamic gating, we compare the full CODE framework against two degraded variants under the Task 2 evaluation protocol:
-
w/ Fixed Only: We remove the candidate-specific component and rely solely on the static threshold floor to gate the similarities.
-
w/o Threshold (Direct ): We completely remove the subtraction of and the ReLU activation, directly using the raw visual similarity for enhancement.
Table S2: Ablation study of the CMJCC module's dynamic gating mechanism. We report PK-mAP (PK) and CK-mAP (CK) on the Aquatic and Surgery datasets under Task 2 evaluation using the L/14 backbone.
| Dataset (→) | Aquatic | Surgery | ||
|---|---|---|---|---|
| Method Variant | PK | CK | PK | CK |
| CODE Full (Ours) | 65.3 | 59.6 | 46.3 | 35.6 |
| w/ Fixed Only | 61.7 | 55.6 | 42.3 | 27.6 |
| w/o Threshold (Direct ) | 59.9 | 49.1 | 42.1 | 25.4 |
Analysis: As shown in Table S2, the dynamic gating strategy is crucial for maintaining high performance under the expanded-category Task 2 setting. First, replacing the adaptive threshold with a fixed leads to a significant performance drop, particularly for Currently Known (CK) objects (e.g., dropping from 35.6 to 27.6 on the Surgery dataset). This indicates that a rigid threshold fails to adapt to the candidate-specific distribution of visual similarities, leading to either under-activation of valid visual priors or the unintended inclusion of background noise. As clarified in Sec. 3.2, the dynamic threshold is computed independently for each candidate and therefore does not depend on inference-batch composition.
Second, completely removing the gating threshold (Direct ) results in severe performance degradation across all metrics (e.g., CK drops to 49.1 on Aquatic and 25.4 on Surgery). Without the ReLU-based filtering mechanism, background noise and irrelevant local visual responses are indiscriminately injected into the calibration process. This pollutes the original text-driven logits , exacerbating the semantic ambiguity rather than resolving it. Therefore, the proposed adaptive thresholding precisely isolates high-confidence visual priors, ensuring that effectively compensates for textual gaps without introducing detrimental noise.
C.1.2 UGUOE Module Ablation. The UGUOE module is specifically designed to bridge the gap in unknown object discovery by boosting the responses of potential unknown targets located in the “semantic vacuum”. To validate its internal mechanisms, we ablate its two core components: the base universal objectness activation and the uncertainty-guided weight . Experiments are conducted on Task 1 using the L/14 backbone across the Aquatic and Surgery datasets. We compare the full CODE framework with two variants:
-
w/o (No Enhancement): We completely remove the universal objectness injection, reverting the unknown logit to the pure text-driven baseline ().
-
w/o (No Uncertainty Weight): We remove the variance-based hesitation modeling, treating all regions with high visual similarity equally by setting .
Table S3: Ablation study of the UGUOE module's internal components. We report U-mAP (U) and K-mAP (K) on the Aquatic and Surgery datasets under Task 1 evaluation.
| Dataset (→) | Aquatic | Surgery | ||
|---|---|---|---|---|
| Method Variant | U | K | U | K |
| CODE Full (Ours) | 24.7 | 62.7 | 25.7 | 43.9 |
| w/o (No Enhancement) | 9.1 | 63.0 | 2.3 | 44.2 |
| w/o (No Uncertainty Weight) | 20.1 | 62.9 | 23.9 | 43.5 |
Analysis: As detailed in Table S3, both the base objectness enhancement and the uncertainty-guided weighting are indispensable for robust OWOD.
First, removing the universal objectness enhancement entirely (w/o ) leads to a substantial collapse in the detection of unknown objects. For instance, the U-mAP on the Surgery dataset drops from 25.7 to 2.3, while the Aquatic U-mAP drops from 24.7 to 9.1. This severe degradation confirms our hypothesis that relying solely on a generic, text-derived attribute response is insufficient to separate ambiguous unknown targets from complex background noise. Explicitly injecting aggregated local visual similarities () is essential to recall these unlabeled instances.
Second, discarding the uncertainty modeling (w/o ) consistently reduces U-mAP, while the known-class performance remains largely unchanged. On Aquatic, U-mAP decreases from 24.7 to 20.1 while K-mAP changes only from 62.7 to 62.9; on Surgery, U-mAP decreases from 25.7 to 23.9 and K-mAP from 43.9 to 43.5. Without the variance-based penalty (), the module indiscriminately boosts any region with high local visual similarity. This inevitably over-boosts clearly defined known objects or textured backgrounds, causing them to interfere with the delicate text-driven prediction space. By formulating as an exponential decay function of
Hao Xu et al.
local variance, UGUOE correctly identifies the model's "classification hesitation" and selectively targets only the ambiguous regions, thus protecting known class precision while steadily improving unknown recall.
C.2 Comprehensive Parameter Sensitivity Analysis
In this section, we comprehensively investigate the sensitivity of the CODE framework to critical hyper-parameters introduced in two core modules: CMJCC and UGUOE. For the CMJCC module, we analyze the visual gating margin and the visual prior modulation coefficient under the Task 2 evaluation protocol. For the UGUOE module, we evaluate the local neighborhood size , the uncertainty sensitivity factor , and the unknown activation threshold under the Task 1 setting. All evaluations are conducted using the L/14 backbone across the representative Aquatic and Surgery datasets. All reported hyperparameters were selected through grid search. The tables below retain the values obtained in their corresponding controlled parameter sweeps and are intended to characterize relative sensitivity within each sweep; the final full-system performance is reported separately in the main paper.
Table S4: Parameter sensitivity analysis of the visual gating margin and modulation coefficient . Default parameter values are highlighted in bold in the Value column, while the best metric values within each parameter sweep are highlighted in bold. PK and CK indicate Previously Known and Currently Known mAP, respectively.
| Parameter | Value | Aquatic | Surgery | ||
|---|---|---|---|---|---|
| PK | CK | PK | CK | ||
| Gating Margin () | 0 | 50.2 | 41.3 | 40.0 | 23.4 |
| 0.1 | 64.0 | 58.0 | 41.8 | 27.6 | |
| 0.2 | 65.3 | 59.6 | 46.3 | 35.6 | |
| 0.3 | 65.2 | 59.6 | 46.4 | 36.3 | |
| 0.4 | 62.4 | 58.4 | 43.3 | 32.4 | |
| Modulation Coef () | 0.1 | 59.5 | 57.6 | 46.4 | 35.4 |
| 0.25 | 64.4 | 60.8 | 46.8 | 36.5 | |
| 0.5 | 65.3 | 59.6 | 46.3 | 35.6 | |
| 1.0 | 63.2 | 55.5 | 45.2 | 34.2 | |
| 5.0 | 37.2 | 20.2 | 24.7 | 10.5 | |
C.2.1 Sensitivity Analysis for CMJCC. Impact of the Visual Gating Margin (): The margin directly controls the strictness of the candidate-specific dynamic threshold , dictating how much local visual similarity is allowed to boost the text-driven logits. As observed in Table S4, removing the margin entirely () leads to a severe performance collapse (e.g., Surgery CK drops to 23.4). This occurs because a completely loose threshold fails to filter out background noise or uninformative textures, leading to massive false-positive visual boosts that exacerbate semantic ambiguity. Conversely, setting the margin too high () overly restricts the visual prior, preventing valid visual clues from calibrating boundary objects. The optimal balance is achieved when , where the gate effectively isolates high-confidence visual similarities.
Impact of the Modulation Coefficient (): The coefficient balances the contribution of the injected visual prior against the original text-driven logits. To ensure that the visual boost is consistent with the logit distribution of the pre-trained foundation model, we introduce an absolute scaling factor , adopting the intrinsic temperature of the foundation model. Because this scaling operation explicitly aligns the magnitude of the visual and textual modalities, the framework is highly robust to variations in , provided it is not set to extreme values. However, when is set excessively large (e.g., ), performance drastically plummets (Aquatic CK drops to 20.2). This is because an overwhelming reliance on the visual modality overshadows the zero-shot generalization capabilities of the frozen vision-language foundation model, causing the network to overfit to the visual prototypes of known categories and lose its open-vocabulary reasoning ability. Setting provides a robust trade-off, ensuring that the visual prior acts as a helpful calibrator rather than a disruptive override.
Table S5: Parameter sensitivity analysis of the UGUOE module. We evaluate the local neighborhood size , sensitivity factor , and activation threshold . Default parameter values are highlighted in bold in the Value column, while the best metric values within each parameter sweep are highlighted in bold. U and K denote U-mAP and K-mAP under Task 1, respectively.
| Parameter | Value | Aquatic | Surgery | ||
|---|---|---|---|---|---|
| U | K | U | K | ||
| Local Size () | 1 | 20.4 | 63.0 | 16.4 | 43.4 |
| 3 | 20.1 | 63.0 | 25.7 | 43.9 | |
| All | 17.4 | 63.0 | 18.7 | 44.0 | |
| Half | 18.8 | 62.9 | 21.5 | 44.0 | |
| Sensitivity () | 10 | 20.2 | 62.8 | 24.0 | 43.9 |
| 100 | 20.1 | 63.0 | 25.7 | 43.9 | |
| 200 | 18.2 | 63.0 | 28.1 | 43.9 | |
| Threshold () | 0.25 | 20.1 | 63.0 | 25.7 | 43.9 |
| 0.5 | 18.3 | 62.9 | 27.5 | 43.5 | |
C.2.2 Sensitivity Analysis for UGUOE. Impact of Local Visual Response Aggregation (): The parameter defines the extent of the local semantic neighborhood used to calculate and . As shown in Table S5, using a minimal neighborhood () achieves the highest U-mAP on the Aquatic dataset but performs poorly on the complex Surgery dataset due to insufficient uncertainty estimation. Notably, we provide an adaptive alternative referred to as Half, where is set to half the number of known classes. This strategy yields a competitive performance balance (e.g., 21.5 U-mAP on Surgery), offering a robust option that does not rely on a fixed constant across different class pool sizes.
Sensitivity to Uncertainty Factor (): The factor modulates the penalty for high-certainty regions. We observe that as increases to 200, the detection performance for unknown objects in the Surgery dataset is further enhanced, reaching its peak at 28.1 U-mAP. This suggests that more aggressive penalization of "certain" known categories helps the model better identify ambiguous targets in fine-grained medical scenarios. Despite this localized improvement, the overall performance remains relatively stable across a wide range of values ( ), demonstrating the robustness of our uncertainty-guided weighting mechanism.
Impact of Activation Threshold ( ): The threshold acts as a filter for background distractors. While a higher threshold ( ) slightly improves the discovery of unknown tools in the Surgery dataset by suppressing low-confidence artifacts, the default value of 0.25 remains more effective for the Aquatic domain. This trade-off confirms that a moderate threshold is generally sufficient to prevent universal objectness from over-activating in semantic vacuums.
C.3 Advanced Visualizations and In-depth Analysis
C.3.1 Evolution of Known and Unknown Logit Distributions. To intuitively understand how our proposed framework refines the semantic space and rescues targets from being erroneously filtered, we visualize the logit distributions of both known and unknown targets before and after applying our method. Figure S1 illustrates these distribution changes across three challenging scenarios: the Aquatic, Medical, and Surgery datasets.
Distribution Analysis and Logit Enhancement: Under the previous purely attribute-driven paradigms, a large number of targets suffer from relatively low attribute similarity due to semantic gaps, occlusions, or complex backgrounds. Consequently, their logit distributions are predominantly trapped in the negative region (< 0), indicating insufficient confidence for reliable detection.
In contrast, our CODE framework explicitly enhances reliable target confidence through the synergistic application of the CMJCC and UGUOE modules. As depicted in Figure S1, our method drives a conspicuous rightward distribution shift for both known and unknown objects. By paying special attention to the difference density in the positive region (logits > 0), it is evident that a massive amount of probability mass has been successfully pushed across the activation threshold. This fundamental logit enhancement directly contributes to the simultaneous improvements in both Known AP and Unknown AP.
Insight into the Surgery Dataset: Furthermore, these visualizations offer an intuitive explanation for a specific empirical observation in the Surgery dataset. As shown in the bottom row of Figure S1, while the unknown distribution in Surgery is drastically enhanced, its known distribution exhibits extremely minimal changes before and after the application of our method—especially when compared to the pronounced known-shifts seen in the Aquatic and Medical datasets. This marginal enhancement in the known distribution, coupled with the aggressive rightward expansion of the unknown distribution, is consistent with the relatively weaker known-class performance on Surgery; in the final main comparison, CODE is 1.7 K-mAP points below PASS on this dataset. It suggests that the massive activation of ambiguous unknown surgical tools introduces a minor but unavoidable interference into the previously established known decision boundaries.
C.3.2 Visualization of Dynamic Outlier Suppression (DOSCM). To intuitively demonstrate how the DOSCM module protects boundary unknown targets and shapes the decision boundary, we visualize the correlation between the semantic confidence margin ( ) and the effective suppression penalty in Figure S2.
Analysis: As illustrated in the scatter plots, the x-axis represents the Top-1 known Softmax probability (MCM base), and the y-axis is the final Out-of-Distribution score ( ). The purple line represents the rigid, linear suppression bottleneck of the baseline MCM, which forcefully penalizes boundary unknown objects, misclassifying them as background simply because they share visual traits with a known class.
In contrast, the green curve represents the dynamic suppression boundary generated by DOSCM. By modulating the penalty based on the exclusivity gap , DOSCM dynamically shrinks the penalty for ambiguous targets. Consequently, their scatter points are successfully pulled upward from the rigid purple baseline, preserving their enhanced unknown probabilities. This dynamic rescue mechanism is remarkably vital in complex domains like Surgery (Figure S2, right), where it safely lifts a dense cluster of hard medical instruments above the suppression threshold.
Insight into the Game Dataset (False Positives): However, this dynamic relaxation introduces an inherent trade-off in certain highly synthetic domains. As observed in the Game dataset (Figure S2, middle), which consists of synthetic avatars with extreme inter-class similarity, lifting the suppression boundary rescues hard unknowns but simultaneously elevates the OOD scores of some ambiguous known objects. This over-relaxation allows these known objects to cross the unknown decision boundary, resulting in an increase in unknown false positives (i.e., genuine known objects being misclassified as unknowns). This observation is also consistent with the feature-space analysis reported in the main paper, where Game exhibits an average inter-class cosine similarity of 0.82. This visual phenomenon provides a clear mathematical explanation for why the CODE framework experiences a performance degradation in Unknown AP (U-mAP) on the Game dataset, highlighting the unique challenges of dynamic margin tuning in synthetic environments.
C.3.3 Qualitative Analysis on Task 1 Discovery. To further evaluate the discovery capability of our framework, we provide a qualitative comparison between the baseline PASS [37] and our proposed CODE on the Aerial and Surgery datasets under Task 1. As shown in Figure S3, CODE demonstrates a significant advantage in recalling challenging unknown objects that are frequently missed by existing SOTA methods.
Analysis of Recalled Unknown Objects: By comparing the bottom row (CODE) with the middle row (PASS) from left to right, we observe that CODE successfully recovers several critical unknown instances where the baseline fails. For instance, in the first and third columns of the Aerial scenario, PASS misses the “Tennis Court” because it shares high semantic and geometric similarity with the known “Basketball Court” category, causing it to be either misclassified or suppressed. Our UGUOE module effectively identifies the model’s classification hesitation in this semantic vacuum, while DOSCM provides a dynamic margin to protect these boundary targets. Similarly, in the middle column, CODE successfully recalls the “Harbor”—a target typically cluttered with numerous “Ship” instances that cause severe occlusion and visual complexity.
Hao Xu et al.

Known Class Logits Distribution
Unknown Class Logits Distribution
Known Class Logits Distribution
Unknown Class Logits Distribution
Figure S1: Logit distribution comparisons on the Aquatic (top), Medical (middle), and Surgery (bottom) datasets. For each dataset, the left plot illustrates the known logit distribution, while the right plot displays the unknown logit distribution. CODE significantly shifts the probability mass rightward into the high-confidence region (> 0).
Dynamic Outlier Suppression via Confidence Margin

Dynamic Outlier Suppression via Confidence Margin

Dynamic Outlier Suppression via Confidence Margin

Figure S2: Scatter visualizations of DOSCM on the Aquatic (left), Game (middle), and Surgery (right) datasets. The x-axis represents the Top-1 known Softmax probability, and the y-axis is the final OOD score ( ). The purple line denotes the rigid baseline suppression bottleneck, while the green curve illustrates our dynamic suppression boundary.

Figure S3: Qualitative detection results on the Aerial and Surgery datasets for Task 1. Top row: Ground Truth annotations. Middle row: Predictions by the SOTA baseline PASS. Bottom row: Predictions by our proposed CODE framework. Blue boxes denote known categories, while yellow boxes denote unknown categories.
By leveraging visual prototypes and uncertainty-guided enhancement, our method distinguishes the harbor's global context from the dense local ship responses. Furthermore, in the surgical scenario (right column), CODE successfully discovers the unknown "Scissors". This object is particularly challenging as its metallic texture and slender structure closely resemble the known "Suction Tube" category. While the rigid suppression mechanism in the baseline tends to filter such ambiguous instances, CODE maintains a high objectness response for the scissors by quantifying the local visual variance and applying a soft confidence margin. Ultimately, these qualitative results provide strong visual evidence that the synergy of UGUOE and DOSCM effectively mitigates the rigid over-suppression bottleneck, ensuring a much higher recall for hard-to-detect objects in complex real-world environments.
C.3.4 Qualitative Analysis on Task 2. In the Task 2 evaluation, we analyze the model's detection performance after joint retraining on the expanded category set containing the categories from both Task 1 and Task 2. As shown in Figure S4, the ground-truth annotations for the CK (Currently Known) categories are denoted by yellow boxes, and the model is expected to predict them as known categories (blue boxes). The results demonstrate that, benefiting from the visual reference provided by the Cross-Modal Joint Confidence Calibration (CMJCC) module, the CODE framework significantly improves the recall rate of these targets.
Specifically, in the first column (Aerial), CODE successfully identifies more “Basketball Court” instances than the baseline. However, due to the extremely high geometric and semantic overlap between tennis courts and basketball courts, some omissions of the “Tennis Court” still occur. In the second column (Game), our framework correctly identifies the known class “Cho-Gath”; however, as previously analyzed, it hallucinates an incorrect known category nearby. This reflects the challenge of precise semantic differentiation in synthetic environments characterized by extreme inter-class visual similarity. In the third column (Medical), CODE effectively localizes more targets than the baseline, including various “Metacarpal Bones” and “Phalanges,” although the “Radius” is still missed. Finally, in the fourth column (Surgery), CODE accurately identifies the “Bipolar Forceps Down” category, which is missed by the baseline PASS. The baseline’s failure is primarily due to the inconspicuous attribute features of these tools, which makes
Hao Xu et al.

Figure S4: Qualitative detection results on Task 2 across the Aerial, Game, Medical, and Surgery datasets. Top row: Ground Truth annotations, where yellow boxes indicate Currently Known (CK) classes. Middle row: Predictions by the baseline PASS. Bottom row: Predictions by our CODE framework. CODE recalls significantly more known targets (blue boxes) through visual-to-visual calibration.
the pure text-driven logic difficult to activate effectively. CMJCC successfully compensates for this lack of visual-textual alignment by injecting global visual prototypes, ensuring the successful recall of the targets.
In summary, these visualization results confirm that by aggregating global visual prototypes and injecting them into the inference pipeline, CMJCC provides a robust visual calibration reference. Although challenges remain when dealing with objects exhibiting extreme inter-class similarity or significant scale variations, the improvement in known class recall across multiple domains in Task 2 proves the effectiveness of our cross-modal joint calibration strategy when handling the full set of known data.
C.3.5 Qualitative Analysis on Class Confusion and Limitations. To provide a comprehensive and transparent evaluation, we further analyze scenarios involving severe semantic confusion and discuss the inherent limitations of our framework. Figure S5 presents a qualitative comparison on the Aquatic (left two columns) and Aerial (right two columns) datasets under Task 1.
Mitigating Semantic Confusion: A major challenge in OWOD is the semantic overlap between novel targets and established categories. As observed in the second and fourth columns of Figure S5, the baseline method frequently struggles with this confusion. For the unknown “Stingray” (second column), the baseline predicts both an unknown bounding box and a hallucinated known box, indicating a failure to decisively separate the semantic spaces. In contrast, CODE elegantly resolves this confusion, isolating the target purely as unknown without overlapping known predictions. Similarly, in the fourth column, the baseline rigidly misclassifies the unknown “Chimney” as a known “Storage Tank” due to their cylindrical geometric similarities. By leveraging UGUOE to capture classification hesitation and applying DOSCM to adjust the suppression boundary, CODE successfully rescues the chimney into the correct unknown category.
Error Analysis and Limitations: Despite these robust advantages, the dynamic nature of our modules introduces specific tradeoffs, leading to certain failure cases shown in the first and third columns.
• False Positives on Unknowns (Aquatic): In the first column, while CODE successfully recalls more targets that blend seamlessly into the complex background (e.g., the fish in the top right corner missed by the baseline), it incorrectly classifies a genuine known fish as an unknown object. This over-activation is a side effect of the UGUOE module. When a known object shares intense visual similarities with the




Figure S5: Qualitative detection results focusing on class confusion and error cases on the Aquatic and Aerial datasets for Task 1. Top row: Ground Truth annotations. Middle row: Predictions by the SOTA baseline PASS. Bottom row: Predictions by our proposed CODE framework. Blue boxes denote known categories, while yellow boxes denote unknown categories.
background, its local visual variance increases, causing the uncertainty-guided mechanism to misinterpret it as an ambiguous target and erroneously assign it an unknown label.
• Hallucination of Known Classes (Aerial): In the third column, CODE correctly discovers the complex unknown “Expressway Toll Station”. However, it simultaneously produces a false positive prediction for the known “Dam” category on the same structure. We attribute this to the Cross-Modal Joint Confidence Calibration (CMJCC) module. While the injection of visual prototypes effectively calibrates and enhances the recall of known classes, it may inadvertently over-boost the known logits of background regions or unknown targets that share intense textural or structural similarities with the known prototypes.
These failure cases highlight the delicate balance required in Open World Object Detection. While dynamic margins and uncertainty-guided enhancements significantly boost overall performance and unknown recall, refining the cross-modal calibration to prevent over-boosting in extreme boundary cases remains an important direction for future research.
D Limitations and Future Work
Limitations: Despite the improvements achieved by the CODE framework, several limitations remain. As discussed in Sec. 4.5 of the main paper, the few-shot experiment isolates the effect of sample scarcity but does not constitute a complete evaluation under long-tailed class distributions or noisy annotations. Moreover, because the visual prototypes are dataset-specific estimates, substantial cross-domain distribution shift may reduce their representativeness.
Hao Xu et al.
First, semantic aliasing persists in extreme domains; as observed in the Game and Surgery datasets, high inter-class visual similarity can cause the UGUOE module to over-boost ambiguous regions, leading to unknown false positives. Second, the granularity of visual prototypes is currently limited, as representing each category with a single centroid may fail to capture intra-class diversity such as variations in viewpoint or occlusion. Finally, the framework is subject to a fundamental dependency on pre-trained models. Since CODE functions as a calibration layer atop frozen vision-language foundation models like OWL-ViT, its overall performance ceiling is inherently constrained by the zero-shot generalization and inherent discriminative capabilities of these underlying models.
Future Work: For future research, we identify several promising directions. We aim to explore dynamic and multi-prototype representations by incorporating clustering techniques (e.g., K-Means) to maintain multiple prototypes per category, thereby enhancing the model's robustness to intra-class variance. While the current CODE framework performs attribute generation offline, we further consider Dynamic Attribute Generation as a future direction. Instead of relying on static, offline attribute pools, this approach would leverage Large Multimodal Models (LMMs) to generate descriptive and judgmental attributes in real-time, conditioned on the specific visual context of the input image. Finally, we intend to investigate cross-domain adaptation for OWOD. By integrating unsupervised domain adaptation (UDA) techniques, the framework could better generalize across the diverse data distributions of the RWD benchmark without requiring exhaustive few-shot exemplars for every novel scenario, ultimately moving towards more autonomous and life-long open-world perception.