NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Contrastive Hypergraph Source-free Domain Adaptive Object Detection in Adverse Weathers

Jicheng Yuan, Tung Kieu, Duc Manh Nguyen, Manfred Hauswirth, Danh Le-PhuocNeurIPS 2026

TL;DR

Object detectors trained on sunny days tend to go blind in fog, rain, and snow—and due to privacy or storage constraints, you usually can't access the original training data to fix them in the field. This paper introduces REUNION, a framework that adapts object detectors to nasty weather using only unlabeled target images. By linking murky, low-confidence detections to clearer ones via multi-way "hypergraphs" rather than simple one-to-one comparisons, REUNION rescues objects lost in the gloom without collapsing into noise.

What Problem Does This Paper Address?

Imagine deploying an autonomous vehicle's vision system trained on crisp, clear-weather data. Suddenly, it hits a nighttime rainstorm or a sandstorm. Visibility drops, contrast vanishes, and detection accuracy plummets—especially for vulnerable road users like pedestrians and cyclists.

Standard domain adaptation fixes this by aligning the original sunny "source" data with the new stormy "target" data. However, in the real world, original datasets are often locked away due to privacy laws, licensing, or sheer size. You have to adapt on the fly using only the pre-trained model and unlabeled bad-weather footage—a setup called Source-Free Domain Adaptation (SFDA).

SFDA usually relies on a model generating "pseudo-labels" (educated guesses) for itself, paired with contrastive learning (pulling similar-looking objects together in feature space). Under severe weather, this breaks down in two ways:

  1. Over-pruning: Real objects hidden in fog get low confidence scores and are thrown away, starving the model of crucial examples.
  2. Agreement collapse: Pairwise (one-to-one) comparisons get confused by heavy weather corruption. Two completely different objects shrouded in the same grey fog might look artificially similar, tricking the model into pulling mismatched classes together.
Figure 1: In SFDA, source data is inaccessible, while target images suffer from structured degradation (e.g., fog, rain, night), leading to detection collapse. Existing pairwise contrastive methods fail in such noisy settings. REUNION builds a contrastive hypergraph over object proposals using multi-relation hyperedges (e.g., intra-image context, and cross-condition views) to propagate semantics from confident to low-contrast instances.

Methods

Instead of trusting individual appearances or fragile one-to-one links, REUNION exploits group-level relationships. It starts with a standard Mean-Teacher setup: a slowly updating "teacher" network generates pseudo-labels to train a "student" network, assisted by layout-preserving synthetic weather augmentations generated offline via a frozen diffusion model (FLUX.1 KONTEXT).

What is new is the Contrastive Hypergraph Module placed right in the middle of this pipeline. Unlike a normal graph where an edge connects just two nodes, a hypergraph uses "hyperedges" that can wrap around whole groups of object proposals at once.

Figure 2: Overview of REUNION. Under the source-free setting, we employ a Teacher-Student framework to adapt to adverse weather conditions. The core component is the Contrastive Hypergraph Module (center), which aggregates object proposals into contrastive groups via intra-image, weather-aware, prototype-based, and uncertainty-aware hyperedges. These structural constraints guide the student’s representation learning through a Hyper-InfoNCE loss, effectively aligning features across diverse weather conditions and reuniting fragmented semantics.

REUNION builds two levels of hyperedges across a mini-batch of object proposals:

  • Proposal-Level: Groups objects by local feature similarity, intra-image context (objects sharing the same scene), and weather-aware tags (images sharing the same weather, obtained via metadata or a frozen classifier).
  • Semantic-Level: Maintains stable class prototypes (anchors) for each weather condition, and builds uncertainty-aware hyperedges. Instead of discarding a blurry, high-entropy (uncertain) object, REUNION wires it directly to its 10 closest high-confidence neighbors of the same predicted class and weather.

A Hypergraph Neural Network (HGNN) passes messages across these groups so murky proposals can absorb clean semantics from confident peers. Finally, a Hyper-InfoNCE loss enforces feature consistency across entire hyperedge groups rather than isolated pairs.

Datasets

The authors evaluate REUNION on standard autonomous driving benchmarks, testing two adaptation scenarios (without introducing new datasets):

  • Clear-to-Adverse Real World: Adapting from Cityscapes (clear urban scenes) to Cityscapes-Adverse (encompassing daytime/nighttime rain, snow, fog, clear night, and sandstorms).
  • Sim2Real Adverse: Adapting from Sim10k (synthetic clear driving scenes from Grand Theft Auto V) to Cityscapes-Adverse.

(Note: For fair comparison, all baseline methods in the main benchmark were also given access to the offline FLUX-generated weather variants).

Key Insights and Ideas

  • Context survives when appearance fails: Even if a pedestrian in heavy snow looks like a featureless smudge, driving scenes have higher-order regularities—co-occurring cars, shared lighting statistics, and confident nearby instances. Grouping proposals via hyperedges captures this surviving structure.
  • Don't trash uncertain detections—rehabilitate them: Confidence thresholding throws the baby out with the bathwater. Explicitly tethering high-uncertainty proposals to confident ones (weighted by prediction entropy) turns noisy guesses into useful training signals.
  • Structure alone does heavy lifting: In ablation studies, simply adding the HGNN message-passing step boosted performance from 34.1% to 38.7% AP even before turning on the contrastive loss. The hypergraph acts as a powerful relational regularizer that prevents feature collapse.

Key Results

  • Cityscapes $\rightarrow$ Cityscapes-Adverse: REUNION achieves 40.0% mAP (with Deformable-DETR) and 39.3% mAP (with Faster R-CNN), beating the strongest SFDA baseline (CGSA at 36.7%) by up to 3.3 mAP. Remarkably, without seeing a single source image during adaptation, it outperforms all tested UDA methods that do have access to source data (best UDA baseline ALDI reached 37.7%).
  • Sim2Real (Sim10k $\rightarrow$ Cityscapes-Adverse): Achieves 42.6% AP on cars, beating the top SFDA baseline (IRG at 40.8%) and matching the top source-accessible UDA method (ALDI at 42.4%).
  • Challenging conditions & scales: Gains are most pronounced in brutal visibility like daytime rain, sandstorms, and night-fog, as well as on large objects (34.6 $AP^L$ vs. IRG's 29.4 $AP^L$) where contextual cues shine.

Limitations and Future Work

  • Tiny objects in the dark remain tough: While REUNION improves small-object detection (8.4 $AP^S$ vs. 7.4 $AP^S$ for IRG), gains are modest because extreme visibility loss completely wipes out visual signals for distant/small instances.
  • Discrete weather assumptions & compute: The framework currently relies on discrete weather labels (e.g., "rainy", "foggy"). The authors plan to extend REUNION to handle mixed, compound weather conditions (like rainy low-light), improve pseudo-label calibration under extreme corruption, and design lighter hypergraph message-passing schemes to reduce computational overhead.

Summary updated

BibTeX
@inproceedings{yuan2026contrastive,
  author = {Jicheng Yuan and Tung Kieu and Duc Manh Nguyen and Manfred Hauswirth and Danh Le-Phuoc},
  title = {{Contrastive Hypergraph Source-free Domain Adaptive Object Detection in Adverse Weathers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TAXQQlBzoz},
}
Figure