Abstract
Standard semi-supervised object detection (SSOD) frameworks typically operate under a "closed-set" assumption, where unlabeled data is expected to share the same category distribution as the labeled training set. However, real-world unlabeled data often contains unknown objects, leading to a failure mode termed "semantic expansion." In this scenario, detectors mistakenly assign high-confidence pseudo-labels to out-of-distribution (OOD) objects, polluting the training process. This paper formalizes the Open-Set Semi-Supervised Object Detection (OSSOD) task and introduces a novel framework that utilizes a disentangled, offline OOD detector based on self-supervised Vision Transformers (DINO) to filter these harmful pseudo-labels. Our results demonstrate significant performance gains across various benchmarks, effectively mitigating the risks of semantic expansion.
Introduction
Semi-supervised object detection (SSOD) has emerged as a powerful paradigm for improving detector performance by leveraging large-scale unlabeled datasets. Despite its success, the practical application of SSOD is often hindered by the "closed-set" assumption: the requirement that all objects in the unlabeled data belong to the predefined set of known classes.
In realistic deployments, unlabeled data is inherently "open-set." For example, a model trained to detect domestic animals may encounter wild animals or inanimate objects in an uncurated unlabeled stream. When standard SSOD methods encounter these out-of-distribution (OOD) objects, they often suffer from a performance degradation rather than a gain. This paper investigates this phenomenon and proposes a robust solution for the OSSOD setting.
The Challenge of Semantic Expansion
The primary obstacle in OSSOD is "semantic expansion." Traditional SSOD methods rely on a teacher-student architecture where the teacher generates pseudo-labels for the student based on a confidence threshold. In an open-set environment, the detector lacks a mechanism to say "I don't know." Consequently, it tends to project unknown objects onto the nearest known semantic class.
Because these models are often overconfident, unknown objects (e.g., a bird) are labeled as known classes (e.g., a dog) with high scores. These erroneous pseudo-labels are then used to train the student model, causing the decision boundaries to stretch and encompass OOD features. This creates a negative feedback loop—a downward spiral where the model becomes increasingly confused, leading to a significant drop in mean Average Precision (mAP).
Proposed Methodology: Disentangled Offline OOD Detection
To combat semantic expansion, we propose a framework that vets pseudo-labels before they are used for training. Our research explored two primary architectural strategies:
1. Online OOD Detection
Initially, we integrated an OOD detection branch directly into the object detector (e.g., Faster R-CNN). However, this "online" approach proved unsuccessful. The primary reason is task interference: the model struggled to simultaneously learn localization, classification of knowns, and the rejection of unknowns. The instability of pseudo-labels during the early stages of training further hampered the OOD branch's ability to converge.
2. Offline OOD Detection (OF-DINO)
The successful approach involves a "disentangled" offline module. By separating the OOD detection task from the primary detector, we ensure that the localization and classification tasks are not compromised.
- Self-Supervised Backbone: We utilize DINO, a Vision Transformer (ViT) trained via self-supervision. Unlike models pre-trained on ImageNet labels, DINO learns a more generalized representation of "objectness" and feature geometry that is not biased toward a specific set of human-defined classes.
- The Strategy: The DINO module is fine-tuned on the available labeled data to define the boundaries of "known" classes. During the SSOD process, when the primary detector proposes a pseudo-label, the offline DINO module calculates an OOD score using metrics such as Euclidean distance or Energy scores. If the proposed object is statistically distant from the known class distributions, it is discarded as an OOD instance.
Experimental Results
We evaluated our framework on two new benchmarks designed to simulate open-set conditions: COCO-Open (where a subset of COCO classes are treated as unknown) and COCO-OpenImages (where COCO is the labeled set and the diverse OpenImages dataset is the unlabeled set).
Performance Gains
- Low-Data Scenarios: On the COCO-Open benchmark with only 1,000 labeled images, our method improved the baseline (Unbiased Teacher) from 11.77 mAP to 16.80 mAP, a gain of +5.03 points (and +6.60 over the supervised baseline).
- High OOD Frequency: In scenarios with only 20 known classes (where OOD objects are most frequent), our method provided a +6.54 mAP boost over the labeled-only baseline. In contrast, standard SSOD methods only managed a marginal +1.48 boost, demonstrating their vulnerability to OOD noise.
- Large-Scale Robustness: On the COCO-OpenImages benchmark, our framework achieved 43.14 mAP. Remarkably, this outperformed a model trained with the actual ground-truth labels from OpenImages (42.91 mAP), suggesting that our filtering process produced cleaner training signals than the original human annotations.
Discussion and Future Work
Our findings highlight that disentanglement is key to solving the OSSOD problem. By separating the "what is it?" (classification) from the "is it known?" (OOD detection), we prevent the detector from falling into the semantic expansion trap. Furthermore, the use of self-supervised backbones like DINO provides a neutral and robust foundation for identifying foreground objects without the bias of supervised pre-training.
Despite these gains, limitations remain. The use of an offline module increases the computational overhead during the training phase. Additionally, our current framework does not explicitly address "covariate shift," where the appearance of known classes changes between datasets. Future research will focus on developing more computationally efficient OOD detectors and addressing distribution mismatches to further bridge the gap between laboratory benchmarks and real-world applications.
Summary updated