Models for street-scene segmentation are often trained on rendered video-game images (GTA5, SYNTHIA) and then adapted to real photos (Cityscapes) without real labels. A common fix for the gap is to regenerate the synthetic images so they look real: translate every pixel of every frame with an image-to-image generator. That is expensive. Multi-source translation needs several high-end GPUs and roughly doubles training time (Multi-source Domain Adaptation for Semantic Segmentation). Much of the effort is also wasted: sky and road get re-rendered even though the adapting model already handles them, while thin, rare classes such as poles, signs and fences stay broken. Separately, domain-adaptation research has shown that a model's own uncertainty identifies which features transfer and which do not. That signal has only ever been used to reweight training losses after the data already exists.
This note proposes using that uncertainty to decide what to generate. A domain discriminator is a small network trained to tell source features from target features. While the adapting segmentation model trains, two signals come almost for free. The first is the entropy of its class predictions on real target images, which shows which classes are failing on the target. The second is the confidence of the domain discriminator on source pixels, which shows which source regions still look "synthetic" to the network. The proposal regenerates only regions that score high on both, using a diffusion model (a generator that produces images by gradually denoising random noise) to inpaint them in a realistic style while keeping their label layout. The rest of the synthetic corpus is left untouched. The question is whether this targeted, closed-loop synthesis reaches better target accuracy than uniform full-frame translation at a fraction of the generation GPU-hours. A second question is whether it beats the free alternative of simply oversampling the hard source images that already exist.
Core Claim
Under a fixed generation budget, allocating synthesis to source regions by the product of target-class difficulty and source-region domain-specificity gives higher target mIoU than three alternatives. The first is uniform translation at the same budget. The second is resampling existing data. The third is difficulty signals computed from a classifier alone. The gain should concentrate on the rare thin classes that existing methods leave behind.
The design also addresses a tension in the literature. Conditional adversarial adaptation down-weights high-entropy target samples because they confuse alignment (Conditional Adversarial Domain Adaptation). Work on generating training data argues the opposite: easy samples are redundant, and a generator should be pushed toward harder ones, though only to medium difficulty, scores 0.5–0.75 (Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data). Here the two uncertainty signals have separate jobs, so the two rules no longer collide. Target classifier entropy says which classes need new source variation, so the system generates there. Discriminator entropy says which source regions are already domain-blind, so the system leaves those alone and keeps the conditional-adversarial logic of not disturbing what already transfers.
For a source region $r$ with label $c(r)$, the allocation score is
$$ a(r) = u_{c(r)} \cdot \big(1 - \bar{H}_D(r)\big), $$
where $u_c$ is the mean prediction entropy over target pixels the current model assigns to class $c$, normalized to $[0,1]$. $\bar{H}_D(r)$ is the discriminator's binary entropy averaged over the region's pixels, normalized so that 1 means fully domain-ambiguous. Regions are regenerated in descending order of $a(r)$ until the GPU-hour budget is spent.
Relation to Prior Work
The closest prior work is Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data. It conditions a diffusion model on a difficulty score $1-c$ from a pre-trained classifier on labeled real data. It reports peak ImageNet accuracy with 10% extra synthetic data and a saving of 63.4 GPU hours. That paper supplies the motivating evidence that targeted synthesis beats brute force, and the constraint that extreme difficulty hurts. It differs from this proposal in three ways. Its signal is static, computed once before generation. It is supervised, with no target domain and no discriminator. And it operates on whole images for classification. This proposal uses a signal that changes as adaptation proceeds, adds the discriminator term, and edits regions for dense prediction.
Uncertainty-guided adaptation methods supply the second ingredient. Transferable Attention for Domain Adaptation and Harmonizing Transferability and Discriminability for Adapting Object Detectors weight regions by discriminator entropy so that transferable foreground dominates alignment. Attending to Discriminative Certainty for Domain Adaptation obtains a similar signal through Monte Carlo dropout, which means repeated forward passes and a latency cost. This proposal deliberately avoids that cost by using single-pass entropies, so the uncertainty itself does not eat into the budget. All of these methods reweight losses over fixed data. None feeds the signal back to a generator.
Three segmentation papers are the nearest competitors on the benchmark. Uncertainty-aware Pseudo Label Refinery for Domain Adaptive Semantic Segmentation, called UncerDA, already uses target-class entropy to oversample source images containing hard classes. It is therefore the most direct test of whether new pixels are needed at all. DADA: Depth-Aware Domain Adaptation in Semantic Segmentation weights its discriminator with entropy times inverse depth, again only downstream. MADAN and Semantic Nighttime Image Segmentation with Synthetic Stylized Data, Gradual Adaptation and Uncertainty-Aware Evaluation translate full frames with CycleGAN, an unpaired image-to-image translation network, with no uncertainty guidance. The latter reports visible translation artifacts, which is a warning that generated pixels can hurt. That warning motivates a check on label fidelity.
Research Program
The system alternates between adaptation and synthesis in a small number of rounds, planned at three to five.
In each adaptation phase, the system trains an entropy-regularized adversarial segmentation model on the current source set plus unlabeled Cityscapes. This adaptation recipe is held fixed across all compared methods. At the end of the phase, it records the per-class target entropies $u_c$ and per-pixel discriminator entropies on source images. Both come from forward passes the training loop already performs.
In each synthesis phase, connected regions of each source label map are scored by $a(r)$. The top-scoring regions are inpainted by a pre-trained text-to-image diffusion model, prompted toward realistic urban photography and conditioned on the region's label mask, so the semantic layout is preserved and the existing label remains valid. Following the medium-difficulty finding, the denoising strength is tuned on a held-out split. The aim is for regenerated regions to land at medium confidence under the current model, not at maximal entropy.
Every GPU-second is logged in three buckets: generation, any filtering, and adaptation training. Results are therefore reported as accuracy against total cost, not accuracy alone.
The main analyses are three. The first is mIoU and per-class IoU against generation GPU-hours. The second is how the allocation shifts across rounds, to test whether the loop actually moves budget toward newly failing classes. The third is a label-fidelity measurement: the agreement between the original label and an oracle-free consistency check inside regenerated regions. Any compute spent on that check is charged to the budget.
Baselines
The naive reference points are source-only training and the fixed adaptation recipe on the unmodified GTA5 or SYNTHIA corpus with zero generation. Every other method must justify its GPU-hours against these two.
The strongest existing method on this question is UncerDA. It reports 52.6% mIoU on GTA5 → Cityscapes (Uncertainty-aware Pseudo Label Refinery for Domain Adaptive Semantic Segmentation), above FDA at 50.5% and SIM at 49.2% as reported there. It is the strongest competitor because it uses the same target-entropy signal to rebalance hard classes with no generation at all. The comparison will be run twice. First, UncerDA's full pipeline is reproduced under our backbone and schedule, and our method is added on top, so any gain is additive. Second, a controlled comparison holds the adaptation recipe fixed, and the only difference is whether hard-class regions are oversampled or regenerated. Total training compute is matched: the oversampling arm gets extra adaptation iterations equal to the generation GPU-hours of our method. Beating UncerDA means a mean mIoU gain over three seeds larger than the seed spread, with the gain concentrated on pole, sign, fence and motorcycle. For SYNTHIA → Cityscapes, the reference is DADA's reported 42.6% mIoU (DADA: Depth-Aware Domain Adaptation in Semantic Segmentation). The file gives no UncerDA number for that pair (no reported result found on Lacuna for UncerDA on SYNTHIA → Cityscapes), so it will be reproduced.
The brute-force generation baseline applies the same diffusion translator to whole frames chosen uniformly at random until the same GPU-hour budget is spent. It also runs at full-corpus scale to locate the ceiling. MADAN's reported 41.4% mIoU on multi-source (GTA-V + SYNTHIA) → Cityscapes (Multi-source Domain Adaptation for Semantic Segmentation) serves as the CycleGAN-translation reference, using the Luodian/MADAN code. Its setting differs, so it is a context point, not a head-to-head comparison.
Three ablations isolate the key ingredient, all at equal budget. The first, a classifier-difficulty-only variant, drops the discriminator term ($a(r)=u_{c(r)}$). This is the direct transfer of the difficulty-controlled diffusion idea to adaptation. The second drops the target term and keeps only discriminator confidence. The third regenerates randomly chosen regions with the same total area and class distribution as our selection. This last ablation separates "uncertainty picks the right regions" from "inpainting any regions helps." Finally, a static variant computes the scores once at round zero, which tests whether closing the loop matters.
Why not just…?
Why not just oversample the hard-class source images that already exist? This is the real threat. It costs nothing to generate, and UncerDA shows it already improves rare classes. The argument for generation is that oversampling repeats the same few poles and fences, so the model sees more gradient steps on identical appearance, not new appearance. The compute-matched oversampling arm settles it. If oversampling equals or beats targeted regeneration, especially on the thin classes, the proposal's premise is wrong and we will report it as such.
Why not just translate everything, or generate more? DISCO: Distilling Counterfactuals with Large Language Models found that 75,000 targeted examples beat over a million unverified ones. The difficulty-controlled diffusion work found that uniform generation mostly reproduces easy modes. Both findings are from other tasks, though. The accuracy-versus-GPU-hours curve here tests the claim directly: uniform translation would win if its curve crosses ours at the full-corpus budget.
Why not just use classifier difficulty, as the diffusion-difficulty paper does? That is simpler and needs no discriminator. Its blind spot is regions of hard classes that are already domain-ambiguous. Regenerating those spends budget where alignment already works, and conditional adversarial adaptation suggests it could perturb features that transfer. The classifier-only ablation measures whether the discriminator term earns its place. If the two score functions perform the same, the simpler one should be preferred.
Why not just filter generated regions by a fixed confidence threshold? UncerDA reports that fixed thresholds starve tail classes, whose absolute confidences are lower. A threshold filter also throws away pixels after paying to generate them. Our method instead controls difficulty through denoising strength before generation. We will include a threshold-filter variant with its discarded compute charged to the budget.
Proposed Experiments and Decisive Checks
The main experiments use GTA5 → Cityscapes and SYNTHIA → Cityscapes. Budgets are set at 5%, 10%, 25% and 100% of the GPU-hours needed to diffusion-translate the entire source corpus. Results report mIoU, per-class IoU, and total GPU-hours over three seeds. A secondary check on Cityscapes → Foggy-Cityscapes detection asks whether the allocation rule carries over to object detection. It compares against HTCN's reported 39.8% mAP (Harmonizing Transferability and Discriminability for Adapting Object Detectors), with regions taken from boxes instead of masks.
The decisive results come in four parts. First, at the 10% budget, targeted regeneration must beat compute-matched oversampling and the random-region ablation on thin-class IoU. Without this, the method is just "more data." Second, it must match or beat full-corpus uniform translation while using a small fraction of its GPU-hours. Third, the dual-signal score must beat the classifier-only score; otherwise the discriminator adds nothing. Fourth, regenerated regions must keep label fidelity high enough that the per-class gains are not label-noise artifacts. Without that last check, a gain could come from the generator quietly changing what the regions depict.
References
- Multi-source Domain Adaptation for Semantic Segmentation
- Conditional Adversarial Domain Adaptation
- Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data
- Transferable Attention for Domain Adaptation
- Harmonizing Transferability and Discriminability for Adapting Object Detectors
- Attending to Discriminative Certainty for Domain Adaptation.
- Uncertainty-aware Pseudo Label Refinery for Domain Adaptive Semantic Segmentation
- DADA: Depth-aware Domain Adaptation in Semantic Segmentation
- Semantic Nighttime Image Segmentation with Synthetic Stylized Data, Gradual Adaptation and Uncertainty-Aware Evaluation
- DISCO: Distilling Counterfactuals with Large Language Models