When a model trained on rendered images, such as game-engine frames or CAD renderings, is deployed on real photos, it becomes uncertain on two very different kinds of input. The first kind is objects it knows but that look unfamiliar because real lighting, textures and sensor noise differ from the simulator. The second is objects from categories the simulator never contained. Nearly every current method, whether it filters noisy labels or adapts across domains, detects trouble with a single signal: high loss, high entropy, or isolation in feature space. That signal fires for both kinds of input. The result is a trade-off with no good setting. Aggressive filtering throws away exactly the hard real examples of known classes that adaptation most needs. Lenient filtering lets unknown objects get forced into known classes, and those wrong labels then corrupt self-training.
We propose to separate the two causes with a connectivity test in a feature space that the synthetic labels never touched. A hard-but-known real image should be linked, through a chain of visually similar real images, to real images the source model already labels confidently. A genuinely novel object should sit in a region of real-image space that no confident anchor can reach. We score each uncertain target sample by how easily it can be reached from confident known anchors in a graph built on target-only, self-supervised features. We treat unreachable components as candidate unknown classes, and their count gives an estimate of how many unknown categories are present. This replaces the hand-set cardinality that current methods require.
Core Claim
The claim is that, under a synthetic-to-real gap, uncertainty and anchor-reachability carry different information, and only their combination separates "known under shift" from "unknown." Prior work treats high uncertainty or feature isolation as the signal for noise. Noise-Aware Generalization showed that this conflation is a real failure mode: noisy-label methods discard domain-shifted data, and domain-generalization methods memorize label noise. Its remedy, DL4ND, builds per-domain class prototypes and relabels high-loss samples using the nearest prototype from another domain. That remedy needs explicit domain IDs and assumes every noisy sample has a correct home class. Neither assumption holds in single-source sim-to-real transfer with target-private categories.
Our test needs no domain IDs, because the target domain is simply the set of unlabeled real images. It also handles samples with no home class, because such samples are exactly the unreachable ones.
Stated precisely, let $G$ be a $k$-nearest-neighbor graph over target images, built from an encoder trained only on target images with a self-supervised objective. Let $A_c$ be the set of target images that the source model labels as class $c$ with high confidence (anchors). For an uncertain image $x$, we define its reachability to class $c$ as the stationary mass that a random walk with restart, started on $A_c$, places on $x$. Its overall known-reachability is
$$ R(x) = \max_{c} \; \pi_c(x), \qquad \pi_c = (1-\alpha)\, e_{A_c} + \alpha\, P^\top \pi_c , $$
where $P$ is the row-normalized adjacency of $G$, $e_{A_c}$ is the uniform distribution on the anchors of class $c$, and $\alpha$ is the walk continuation probability.
We then route each uncertain sample by $R(x)$ rather than by its entropy. High $R$ with a consistent maximizing class means the sample is treated as a known sample, pseudo-labeled with that class and kept for training. Low $R$ means it is treated as unknown. The unknown pool is split by the connected components that remain after removing anchor-reachable nodes, and the number of sizeable components estimates the number of unknown categories.
Relation to Prior Work
Three open-set domain adaptation methods motivate the problem and define the bar to clear.
SimT models open-set pseudo-label noise on GTA5→Cityscapes with a non-square transition matrix from $C+n$ true classes to $C$ labels. It must be told $n$, and its anchors come from the source-trained model, so a severe gap weakens them.
Open-Set Domain Adaptation for Semantic Segmentation (BUS) adds a dedicated unknown output head with boundary-aware contrastive losses and cut-and-paste mixing. Its unknown masks start from thresholded pseudo-labels, so known objects the model misclassifies early get pasted as "unknown."
Recall and Refine (RRDA) synthesizes high-entropy feature points to shape an unknown region on VisDA and clusters them into $K'$ hand-set pseudo-classes. It explicitly assumes that unknowns occupy high-entropy regions, and it concedes that this assumption breaks when real known samples are also high-entropy.
All three decide "unknown" using the geometry or confidence of a source-trained model. We decide it using geometry that the source never shaped.
A second group of work supplies our mechanism. NGC filters open-set noise by keeping each class's largest connected component in a $k$-NN graph. SimiFeat flags corrupted labels by neighbor voting in pre-trained features, without training a predictor. S3 selects clean samples with a non-parametric $k$-NN classifier.
We reuse their key insight, that neighborhood structure beats model confidence, but change two things. First, the graph lives in a target-native space. S3 documents that forcing out-of-distribution samples into known classes distorts the learned feature geometry, and a source-trained or noise-trained space has already suffered exactly that distortion. Second, the question we ask of the graph is not "does your neighborhood agree with your label" but "can you be reached from confident knowns at all." Neighbor voting cannot tell a misclassified known from an unknown, because both disagree with their assigned label. Reachability can.
A third group constrains the design. CECL and ARCA23K show that open-set samples need not simply be purged. They can serve as negatives that widen margins between known classes, and real web open-set noise hurt much less than matched random noise in ARCA23K (52.32% versus roughly 36% mAP). We therefore do not discard unreachable samples. We train on them as a separate class group and as contrastive negatives, and we test whether doing so helps under domain shift. That question is currently open.
Research Program
The work proceeds in three stages.
The first stage is diagnostic, and it is worth doing even if the method fails. On benchmarks with real-domain ground truth, we measure how badly uncertainty conflates the two causes. Among target samples above a source-model entropy threshold, we report what fraction are known-class and what fraction are unknown. We then measure how well entropy, SimiFeat-style neighbor disagreement, NGC-style component membership in source-trained features, and our reachability score each separate the two groups. We also measure how that separation changes as the gap shrinks during adaptation, by taking snapshots of a standard self-training run. We expect entropy's separating power to be worst early in adaptation, when the gap is largest and uncertain samples are most numerous, which is when routing decisions matter most. We expect reachability to be comparatively flat, because the target-native graph does not depend on the source model's calibration.
The second stage builds the method. A target-native encoder is trained self-supervised on unlabeled real images. The default is contrastive pre-training from ImageNet initialization, and a frozen CLIP-style encoder is an ablation. A source model produces confident anchors. The random-walk scores route samples, and a self-training loop runs on top of the routing. Known-routed samples receive pseudo-labels. Unknown-routed components receive expanded output heads, one per component, as in the RRDA classifier expansion but with data-driven cardinality. The graph and anchors are refreshed periodically, since anchors grow as adaptation proceeds.
The third stage extends from image classification to pixels. For GTA5→Cityscapes, the graph is built over superpixels or region embeddings, and the reachability score replaces the thresholded initialization that BUS uses for its unknown masks.
Baselines
The naive reference point is the source-only model with entropy rejection: train on synthetic data, then call any target sample above a tuned entropy threshold "unknown." In the source-free setting the closest published version is SHOT with entropy-based rejection. Recall and Refine reports it at 56.0% harmonic open-set score (HOS, the harmonic mean of known-class and unknown accuracy) on VisDA. We run it on the same backbone and tune its threshold on the same held-out split used to tune our $\alpha$ and $k$. Every method gets an equal budget of 20 tuning trials.
The strongest classification competitor is RRDA itself, which reports 78.7% HOS on VisDA in the source-free open-set setting (Recall and Refine). It is the right opponent because it attacks the same weakness of entropy rejection with a different fix, synthetic boundary features. We rerun it from its description with the same backbone, the same downstream adaptation method (SHOT), and the same epochs. Its $K'$ is tuned on the held-out split, which gives it an advantage that our method does not take. Beating it means exceeding its rerun HOS by more than the seed standard deviation over three seeds. A secondary requirement is that the gain comes from higher known-class accuracy rather than traded-off unknown recall, since recovering hard knowns is our specific claim.
For segmentation, the strongest competitor is BUS. It reports a 62.81 H-Score on GTA5→Cityscapes and 44.01 on SYNTHIA→Cityscapes, against DAFormer and HRDA baselines of 23.36 and 20.82 (Open-Set Domain Adaptation for Semantic Segmentation). We use its class split and training schedule and change only how the initial unknown masks are formed. This makes the comparison an intervention on the one component we claim is broken. Beating BUS means a higher H-Score. A second target is fewer known "thing" pixels ending up in pasted pseudo-unknowns, which we can count because Cityscapes has ground truth.
SimT is a secondary comparison on its own 19-shared / 15-open split. It reports 58.9% mIoU in the unsupervised adaptation setting and 54.4% in the source-free setting (SimT). We give it the true $n$, which is an oracle advantage, and compare against our estimated count.
Three ablations isolate the key ingredient. The first builds the reachability graph in the source-trained feature space instead of the target-native one. If that works equally well, the target-native encoder is not the reason for any gain. The second replaces reachability with SimiFeat-style neighbor disagreement in the target-native space. If that works equally well, the connectivity question adds nothing over voting. The third drops the unknown-as-negatives training and simply discards unreachable samples, which directly tests the purge-versus-use tension under domain shift.
Why not just…?
Why not just threshold softmax entropy more carefully, perhaps per class? Per-class thresholds address the imbalance problem that ULC documents, where minority classes have naturally higher loss. They do not address the core problem that, under a large gap, known and unknown samples overlap in entropy. The drop from RRDA's 78.7 to SHOT's 56.0 HOS on VisDA is the published evidence that confidence-based rejection leaves a lot on the table. Our diagnostic stage measures the overlap directly: if a per-class entropy threshold separates known-hard from unknown about as well as reachability, we will report that and the method is unnecessary.
Why not just run SimiFeat or $k$-means on frozen CLIP features? This is the most serious threat, because a strong frozen encoder might already give a clean target-native geometry. Two points answer it. SimiFeat's own analysis says detection quality is bounded by feature quality, and its vote compares neighbors against the assigned label. A known object that the source model misclassified and an unknown object both disagree with their label, so the vote cannot tell them apart. Plain clustering, meanwhile, needs the cluster count and does not say which clusters are known. We run exactly this alternative with CLIP features, and we also run our method on the same CLIP features. If CLIP plus voting or clustering matches us, the contribution collapses into "use a good encoder," and we will say so. If our method on CLIP beats voting on CLIP, the gain is attributable to the reachability test rather than the encoder.
Why not just run standard adaptation first and clean the pseudo-labels afterwards? Running DAFormer or SHOT and then applying SSR or NGC to the resulting pseudo-labels is cheap. The adaptation step, however, trains on unknowns labeled as knowns. S3 shows that this distorts the feature geometry the downstream cleaner relies on, and the BUS paper shows DAFormer and HRDA collapse to H-Scores near 21–23 in open-set segmentation. We include this pipeline as a baseline on VisDA. Our source-trained-graph ablation also tests the mechanism directly: if a cleaner operating in adapted features does as well as one operating in target-native features, this objection wins.
Why not just use RRDA or SimT with a better guess of the unknown count? Tuning $K'$ or $n$ on labeled target data is not available in deployment, and even an oracle count does not fix the entropy-based assumption about where unknowns lie. We give both methods their oracle or tuned count and still compare. If they beat us under the oracle, our remaining contribution is only cardinality estimation, which we evaluate separately.
Proposed Experiments
Classification uses VisDA-C (VisDA): about 152,000 CAD renderings across 12 classes as the source and real COCO-derived images as the target. We use the open-set protocol of RRDA, with HOS, known accuracy, unknown recall, and AUROC for known-versus-unknown separation among high-entropy samples. Office-31, where RRDA reports 94.4% HOS, is a sanity check with a smaller gap. There our advantage over entropy should shrink, which is itself a prediction of the claim.
Segmentation uses GTA5→Cityscapes and SYNTHIA→Cityscapes under the BUS split, reporting H-Score, and the SimT split with its 15 open-set classes, reporting mIoU.
The decisive check has three parts. On VisDA, among target samples in the top entropy quantile, reachability must separate known from unknown with clearly higher AUROC than entropy. The first adaptation snapshot, where the gap is largest, is where the difference should be widest. The separation must survive when the graph uses a frozen CLIP encoder instead of our self-supervised one, and it must disappear or shrink when the graph uses source-trained features. That pattern would confirm that the benefit comes from asking the connectivity question in a space the synthetic labels never shaped.
Cardinality is evaluated on the SimT split. We report the count of sizeable anchor-free components against the true 15, and the purity of those components against Cityscapes labels. No method in the file estimates this number, so there is no prior result to compare against. SimT given the true $n$ serves as the oracle reference.
Failure is informative in both directions. If entropy and reachability turn out equally separating on VisDA, the conflation problem that Noise-Aware Generalization documents across styled domains does not transfer to single-source rendering gaps, and future work can stop designing around it.
References
- Noise-Aware Generalization: Robustness to In-Domain Noise and Out-of-Domain Generalization
- SimT: Handling Open-set Noise for Domain Adaptive Semantic Segmentation
- Open-Set Domain Adaptation for Semantic Segmentation
- Recall and Refine: A Simple but Effective Source-free Open- set Domain Adaptation Framework
- NGC: A Unified Framework for Learning with Open-World Noisy Data
- Detecting Corrupted Labels Without Training a Model to Predict
- S3: Supervised Self-supervised Learning under Label Noise
- Unlocking the Power of Open Set : A New Perspective for Open-set Noisy Label Learning
- ARCA23K: An Audio Dataset for Investigating Open-Set Label Noise
- Uncertainty-Aware Learning against Label Noise on Imbalanced Datasets
- VisDA: The Visual Domain Adaptation Challenge