Models trained on rendered images, such as game-engine frames or images of 3D object models, lose much of their accuracy on real photographs. Part of the reason is that they latch onto rendering quirks like clean textures, flat lighting and perfect surfaces. On the VisDA 2017 benchmark an AlexNet trained on synthetic renderings falls from 99% to 28% accuracy on real COCO images (VisDA). A separate line of work shows that splitting a network into parallel "streams," for example one reading color and texture and another reading edge maps, helps when a single network cannot attend to conflicting cues at once (EffiXB3 wheat-disease classifier; TS-FashionNet). The cost is doubled early computation and activation memory at deployment.
This note proposes treating the second stream as training-time scaffolding rather than as part of the deployed model. During adaptation, an RGB stream and an edge-map stream label unlabeled real images for each other. Because they look at different evidence, they should make different mistakes on real data. Only the RGB stream ships. The hypothesis is that the benefit of two streams under the synthetic-to-real gap comes from decorrelated errors during self-training, not from extra capacity at inference. If that holds, the robustness of a multi-stream model can be had at single-stream cost.
Core Claim
Self-training means a model labels unlabeled target images with its own confident predictions and then retrains on them. It is among the strongest synthetic-to-real tools available: the VisDA-C challenge winner reached 92.8% using pseudo-labels and a mean teacher, an averaged copy of the model that produces more stable labels (VisDA). Its known weakness is that a model confidently repeats its own shortcut errors. An edge stream fed Canny edge maps cannot see synthetic texture or lighting, so its errors on real images should be driven by different causes, such as clutter edges and missing boundaries.
We claim three things, each of which can be tested:
- Cross-stream pseudo-labels, meaning labels issued by one stream to train the other, have higher precision at matched recall than same-stream mean-teacher labels.
- This advantage tracks a measurable decorrelation of the two streams' errors on real target data.
- After adaptation the RGB stream alone matches or beats a two-stream model run at inference, at roughly half its inference compute.
Relation to Prior Work
Three existing papers keep multiple streams in the deployed model:
- MADAN translates GTA5 and SYNTHIA images with parallel per-source image-translation networks and reaches 41.4% mIoU on Cityscapes. Its authors report it needs multiple high-end GPUs and about twice the training time, and that it fails on thin structures like poles and fences that style transfer cannot reshape (Multi-source Domain Adaptation for Semantic Segmentation).
- MDDA keeps one feature extractor per source, so its inference cost grows linearly with the number of sources (MDDA).
- DRDL keeps separate content and style encoders and was tested only on real-to-real camera shifts (DRDL).
These papers motivate the proposal: they show parallel pathways help adaptation and also show the cost. We differ in two ways. Our streams split by input evidence (texture versus geometry) rather than by source. And the extra stream is discarded before deployment.
The efficiency literature supplies a constraint. AsymTrack collapses training-time branches into a single convolution through structural re-parameterization, reaching 224 FPS on GPU at 60.8% AUC on LaSOT (Two-stream Beats One-stream). That merging only works for linear operations. An edge stream begins with a non-linear Canny operator, so it cannot be folded into the RGB weights. Transfer has to happen through the training signal, which is why we use pseudo-labeling rather than re-parameterization.
Two further papers bound what the edge view can and cannot fix. ASM shows that sensor-level gaps in LiDAR are better handled by learned noise injection than by aligning features with a domain discriminator. A domain discriminator is a classifier trained to tell source features from target features, and in ASM's setting it exploited clean synthetic geometry as a shortcut (ASM). PixelDA concedes that pixel-level translation cannot fix geometric mismatch (PixelDA). Our edge view also cannot repair wrong synthetic geometry. We therefore predict it helps on texture-shortcut errors and not on the pole and fence classes MADAN fails on, and we report per-class results to check this.
Research Program
We train a two-stream network on labeled synthetic data, then adapt it on unlabeled real images.
The RGB stream is a standard backbone. The edge stream is an identical backbone fed a single-channel edge map, following the Canny-input design of EffiXB3. Each stream has its own head, and the streams share no weights, so their errors are not tied together by construction.
On each real image $x$, each stream keeps an exponential-moving-average teacher copy. Pseudo-labels for the RGB student come from the edge teacher, and labels for the edge student come from the RGB teacher. A pixel or image counts only when the issuing teacher's confidence exceeds a threshold $\tau$. The target-domain loss for the RGB stream is
$$ L_{\text{rgb}} = \sum_{x} \mathbb{1}[\max_k p^{e}_k(x) > \tau]\; \mathrm{CE}\big(f_{\text{rgb}}(x),\, \arg\max_k p^{e}_k(x)\big), $$
where $p^{e}(x)$ is the edge teacher's class distribution, $f_{\text{rgb}}$ is the RGB student, and CE is cross-entropy. The edge loss is symmetric. The synthetic-data supervised loss is kept throughout. At deployment the edge stream and both teachers are dropped.
The central analysis measures error decorrelation on a held-out labeled slice of real validation data:
$$ \rho = \mathrm{corr}\big(\mathbb{1}[\text{rgb wrong}],\, \mathbb{1}[\text{edge wrong}]\big), $$
computed per image or per pixel at each adaptation round. We relate $\rho$, and the precision of cross-issued labels, to final accuracy across classes and benchmarks.
A secondary question is how large the domain gap is inside edge space. Synthetic Canny maps are cleaner than real ones. We measure this through source-only accuracy of the edge stream on real data, and we compare raw Canny against blurred-then-Canny inputs.
Baselines
The naive reference point is a source-only RGB model trained on synthetic data and evaluated on real data. The file reports 28% for AlexNet on VisDA-C and 21.4 mIoU on VisDA-S (VisDA), and 25.8% mIoU for GTA5+SYNTHIA→Cityscapes (MADAN). We re-run it on our backbone instead of borrowing these figures. A single-stream feature-alignment baseline in the style of DAN, reported at 51.62% on VisDA-C in the same paper, represents cheap alignment.
The strongest competitor is single-stream mean-teacher self-training. It is the recipe behind the VisDA-C winner at 92.8% accuracy and is closely related to the VisDA-S winner at 47.5 mIoU, which used adversarial discriminators and style transfer (VisDA). It is the right opponent because our method is self-training with one change: who issues the labels. We re-implement it on the same backbone, synthetic data, real unlabeled pool, number of adaptation epochs and confidence-threshold search. Because a two-stream run trains two networks, it receives twice the GPU-hours. Beating it means a higher RGB-only target score at equal deployed compute, and a gain larger than the seed-to-seed spread over three seeds.
For the multi-source setting, MADAN at 41.4% mIoU on Cityscapes is the reference. We run its official code (Luodian/MADAN) where feasible and report its training cost and inference cost alongside accuracy.
Five ablations isolate the key ingredient:
- Two streams at inference. Averaging both streams' predictions gives the compute-unconstrained ceiling.
- Early fusion. A single stream receives RGB plus an edge channel.
- Knowledge distillation. A two-stream teacher trained by joint pseudo-labeling is distilled into an RGB student. This tests whether cross-issuing matters or only having a better teacher.
- Same-input second stream. The edge stream is replaced by a second RGB stream with a different initialization. This tests whether diversity of input evidence matters or merely having two models.
- Stylized second stream. The edge stream is replaced by a second RGB stream trained on heavily stylized, texture-randomized images.
Why not just…?
Why not just run mean-teacher self-training on one stream? This is the most serious threat, given the 92.8% VisDA-C result. Our bet is that its pseudo-labels inherit the RGB model's texture shortcuts, so errors compound across rounds. The proposal settles this directly. If cross-issued labels are no more precise than self-issued ones at matched recall, and $\rho$ between the streams is not meaningfully below that of two RGB models, the idea fails.
Why not just feed the edge map as an extra input channel? Early fusion costs almost nothing at inference. But a single network given both cues can learn to ignore the edge channel whenever texture is predictive on synthetic data. That is exactly the shortcut behavior described in VisDA, and it is the single-stream bottleneck that TS-FashionNet and EffiXB3 report: 98.5% for the dual-stream model versus 95% and 93% for the single backbones. The file contains no evidence that this holds under domain shift, so early fusion runs as a full baseline rather than being dismissed.
Why not just randomize textures in the renderer or stylize the training images? This may remove the texture shortcut equally well, and it also deploys as a single stream. Scaling synthetic diversity alone is not enough: Sim 200k still reaches only 0.4207 mAP on KITTI "Hard" (Driving in the Matrix). That result, however, does not rule out targeted texture randomization. The stylized-second-stream ablation tests whether a genuinely different input modality is needed. If stylized RGB yields equally decorrelated errors and equal accuracy, the conclusion becomes "two differently-biased RGB views suffice." We would report that and drop the edge stream rather than argue for it.
Why not just keep both streams at inference? On edge hardware, doubled early convolutions and linearly growing activation memory are the bottleneck that AsymTrack was built to remove. The comparison reports accuracy against measured latency and peak memory. A gap of more than about a point between the two-stream ceiling and our RGB-only model would mark the price of deployment efficiency.
Proposed Experiments
Classification. The primary test is VisDA-C (synthetic renderings → real COCO validation images). It is classification, so error correlation can be measured cleanly per image.
Segmentation. The dense test is GTA5 → Cityscapes, the VisDA-S setting. Per-class mIoU is reported separately for texture-defined classes (road, vegetation, sky) and geometry-defined thin classes (pole, fence, traffic sign).
Multi-source. The setting is GTA5+SYNTHIA → Cityscapes, compared against MADAN on mIoU, training GPU-hours, inference FLOPs and latency. SynLiDAR → SemanticKITTI is left out because a Canny-style second view has no clean LiDAR analogue. The ASM numbers are cited only as context for how large the remaining gap to a real-data oracle can be: 22.8% versus 55.5% mIoU.
Decisive checks. Three outcomes would decide the question:
- The RGB-only adapted model beats re-implemented single-stream mean-teacher at equal deployed compute on both VisDA-C and Cityscapes.
- Across classes, the per-class gain correlates with how far the cross-stream $\rho$ falls below the RGB-RGB $\rho$.
- The same-input and stylized second streams recover less of the gain than the edge stream.
If the first holds but the second does not, the benefit is real but our explanation is wrong. If the stylized stream matches the edge stream, the result reframes as a statement about differently-biased views rather than about multiple streams.
References
- VisDA: The Visual Domain Adaptation Challenge
- Novel dual-input stream-based hybrid approach for wheat leaf disease classification using edge-aware features
- Texture and Shape Biased Two-Stream Networks for Clothing Classification and Attribute Recognition
- Multi-source Domain Adaptation for Semantic Segmentation
- Multi-Source Distilling Domain Adaptation
- Dual-stream Reciprocal Disentanglement Learning for domain adaptation person re-identification
- Two-stream Beats One-stream: Asymmetric Siamese Network for Efficient Visual Tracking
- Adversarially Masking Synthetic to Mimic Real: Adaptive Noise Injection for Point Cloud Segmentation Adaptation
- Unsupervised Pixel-Level Domain Adaptation with Generative Adversarial Networks
- Driving in the Matrix: Can virtual worlds replace human-generated annotations for real world tasks?