Dual-Graph Regularization of High-Resolution Features Against the Synthetic Texture Trap

Segmentation models trained on video-game imagery and adapted to real street scenes face a dilemma. Thin and small objects such as poles, traffic lights and bicycles need full-resolution features. Yet full-resolution features trained on rendered images pick up rendering artifacts that do not exist in real photos. HRDA named this the "texture trap." Its fix routes most of the decision through a downsampled context view and blends in the high-resolution view only where a learned per-pixel weight allows. That works, but it deliberately underuses the very detail that high resolution exists to provide.

We propose to keep the high-resolution features and constrain how they are organized, instead of hiding them. The constraint is a pair of graphs. The first is a spatial graph, which says which pixels should share a representation. It is computed per image from the domain-robust low-resolution context branch. The second is a channel graph, which says which feature channels normally fire together. It is estimated from real target images only. The high-resolution features are penalized for varying across connected pixels and for activating channel combinations the real world never produces. If the texture trap is mostly a matter of synthetic textures driving channel patterns that are absent in reality, this penalty should let the network trust its high-resolution branch on real images without inheriting simulator quirks.

Core Claim

Our central claim is that the texture trap can be reduced by regularizing high-resolution features with two graphs, one over pixels and one over channels. The spatial graph is learned per image and the channel graph is learned from the target domain. Removing high-resolution information is not necessary. The claim is testable in a sharp way. If it holds, the high-resolution branch alone should segment real images better, and HRDA's learned scale weight should shift toward the high-resolution path on target images. Gains should concentrate on thin classes and boundary pixels, not spread uniformly.

Concretely, let $\hat F \in \mathbb{R}^{N \times C}$ be the high-resolution detail-crop features, with $N$ pixels and $C$ channels, each row normalized to unit length. The regularizer is

$$\mathcal{R}(\hat F) = \mathrm{tr}(\hat F^\top L_s \hat F) + \lambda\, \mathrm{tr}(\hat F L_c \hat F^\top),$$

where $L_s$ is the degree-normalized Laplacian of the spatial graph, $L_c$ is the degree-normalized Laplacian of the channel graph, and $\lambda$ balances the two. A graph Laplacian is a matrix whose quadratic form sums squared differences across connected nodes, so each term rewards smoothness along its graph. The row normalization is not cosmetic. Gu et al. showed that graph-regularized factorizations without a scale constraint can drive the penalty to zero by shrinking one factor. In their experiments accuracy collapsed from about 80% to 37% on CSTR once regularization strength crossed a threshold. Their remedy was a normalized-cut constraint. Unit-norm rows and normalized Laplacians play the same role here, and our sweep over regularization strength checks directly for that "cliff."

Research Program

The method is built on the HRDA codebase lineage, specifically DAFormer and MIC, so that the only change is the regularizer.

The spatial graph borrows the per-sample graph idea from Instance-Adaptive Graph, which generates a separate adjacency for each EEG sample, and the sparse top-$k$ construction from MTGNN, which learns adjacency from node embeddings and keeps only the strongest edges. Both of those works handle at most hundreds of nodes and no domain shift. To make the graph feasible at high resolution, edges exist only within local windows, for example 7×7, with top-$k$ selection. That keeps cost linear in $N$ instead of quadratic. Edge weights come from the low-resolution context features, upsampled and treated as constants with gradients stopped. HRDA found the context branch to be the shape-reliable one, so it is the right teacher for which pixels belong together. The graph is adaptive because those features are learned, not built from fixed color similarity.

The channel graph is $C \times C$ and therefore cheap. It is a sparsified affinity of channel activations on real target crops, maintained as an exponential moving average. A moving average is an evolving running estimate, analogous to the persistent class anchors that DMP keeps across mini-batches. Unlike DMP, the channel graph lives at the pixel level and over channels, not over pooled image vectors on a fixed Grassmann metric. Applied to source features, the channel term penalizes a synthetic pixel that turns on a channel without the partners it has on real data. This is the mechanism hypothesized to suppress renderer-specific texture responses.

This differs from prior dual-manifold work in two ways. Gu et al. and dual-graph dictionary learning impose static two-sided Laplacians on shallow factorizations. Here both graphs are learned, and their sources are deliberately different: one comes from the robust branch and the other from the target domain. The analysis program asks where the gain comes from. It compares per-class IoU for thin classes, accuracy inside a narrow band around ground-truth boundaries, the target accuracy of the high-resolution branch alone, and the distribution of scale-attention weights on target images.

Baselines

The naive reference point is source-only training of the same MiT-B5 HRDA architecture with no adaptation. It shows how much of any gain is adaptation at all. Because no source-only number for this configuration appears in the file, we will measure it ourselves.

The strongest existing method is HRDA combined with MIC's masked-consistency training. MIC trains a student to predict the teacher's labels on heavily masked target images. MIC reports 75.9 mIoU on GTA5→Cityscapes. For SYNTHIA→Cityscapes the file gives 65.8 mIoU for HRDA without MIC. We found no reported result on Lacuna for HRDA+MIC on SYNTHIA→Cityscapes. We will rerun HRDA+MIC from the official code with identical crops, iterations, batch size and three seeds, and add our regularizer on top as a plug-in. It is the strongest competitor because it already addresses both resolution and context and represents the current ceiling on this benchmark. Beating it means a mean gain over three seeds that exceeds the seed spread, with at least +1.0 mIoU on GTA5→Cityscapes and a larger gain on the thin-class average and boundary-band accuracy. Any gain that appears only on large "stuff" classes would not support the claim.

HRDA alone at 73.8 mIoU is the baseline for the cleanest attribution, since our method modifies exactly the HRDA detail branch.

The ablations that isolate the key ingredient are the spatial term alone, the channel term alone, and the channel graph estimated from source rather than target data. The last one tests whether the target origin of the channel graph is what matters. We add a fixed color-distance spatial graph to test whether adaptivity matters, and remove row normalization to reproduce or rule out the scale-collapse cliff. Every variant gets the same tuning budget: a five-point sweep of the regularization weight on a held-out split of the Cityscapes training set.

Why not just…?

Why not just rely on self-attention, which already computes an adaptive graph over tokens? Attention mixes tokens but never constrains which channel combinations are allowed, and it is the channel side that our hypothesis says carries synthetic texture. Transformer backbones still needed extra stabilizers to adapt: DAFormer added rare-class sampling, ImageNet feature distance and warmup. HRDA still observed the texture trap with an attention backbone. The spatial-only ablation is our direct test. If spatial smoothing from context alone matches the full regularizer, the channel graph is unnecessary and the claim reduces to a form of context-guided smoothing.

Why not just low-pass filter or style-randomize the synthetic high-resolution crops? This is the most serious threat. If the trap is just high-frequency artifacts, blurring source crops might fix it more simply. The worry is that blurring also erases poles and sign edges, the details high resolution exists for. AdaIN-style perturbation, as in BiSIDA, operates on global feature statistics rather than local texture. We will run Gaussian low-pass and frequency-randomized source crops inside HRDA+MIC at matched compute. If either matches our thin-class and boundary metrics, we will report that the cheaper fix suffices and drop the channel term.

Why not just match channel covariances across domains? Aligning second-order channel statistics is a degenerate version of our channel term with no spatial coupling and no sparsity. Our channel-only ablation with a dense target covariance graph implements essentially this. The proposal stands only if adding the spatial graph gives a gain beyond it.

Why not just translate synthetic images to look real first? DPL documents that translation distorts object content, and translation-based methods reach 52.8 mIoU against 75.9 for MIC on GTA5→Cityscapes. We do not consider it a competitive route at this level.

Proposed Experiments

We will train on GTA5→Cityscapes and SYNTHIA→Cityscapes at HRDA's crop settings and evaluate mIoU on Cityscapes validation. We will also report per-class IoU for pole, traffic light, traffic sign, person, rider and bicycle, and accuracy within a few pixels of ground-truth boundaries. DarkZurich nighttime adaptation, where MIC reports +4.3 mIoU, serves as a second shift type.

Three checks decide the claim.

The first is the high-resolution-branch test. The high-resolution branch evaluated alone on target images should close a large share of its gap to the fused model. Concurrently, the mean scale-attention weight on the high-resolution path over thin-class pixels should rise relative to HRDA. If mIoU rises but neither of these moves, the gain is not coming from escaping the texture trap.

The second is the stability sweep. Raising the regularization weight across two orders of magnitude should show a plateau with normalization and a collapse without it, mirroring the IGNMTF result.

The third is the transfer probe. The channel graph built on Cityscapes should, when frozen, still help on DarkZurich. If it hurts there, it has encoded Cityscapes-specific co-activations rather than real-world structure. In that case target-graph estimation must be made per domain, which would narrow the claim.

Overhead will be measured against MIC's reported ~1% memory cost. Training time will be measured against DAFormer's reported 16 hours on a single RTX 2080 Ti.