Aerial and satellite images are too large for GPU memory. Models therefore cut them into tiles, predict each tile on its own, and stitch the results back together. Pixels near a tile's edge see only half their surroundings, so predictions there are less confident and objects crossing the cut get split in two. Separately, a model trained on one city and deployed on another has to cope with buildings, street widths and road networks that are shaped differently, not just colored differently. We argue these two problems compound. When the model adapts to the new city by training on its own predictions ("self-training with pseudo-labels"), the pseudo-labels are generated tile by tile. The resulting errors pile up along tile borders, and topology-cleaning steps then read artificial tile cuts as real road ends.
The proposal is to make the adapted model's prediction for a pixel independent of where that pixel falls inside a tile. On the unlabeled target city, the prediction a pixel receives when it sits at the center of a crop becomes the teacher for the prediction it receives when it sits near a crop edge. Pseudo-label cleanup runs on the stitched city-scale mosaic rather than inside each crop. If this works, a model adapted this way can be deployed with cheap non-overlapping tiling and lose little accuracy at the seams. That matters because overlapping tiles multiply inference cost by roughly the overlap factor.
Core Claim
We make two claims. The first is diagnostic: the accuracy penalty near tile borders is larger under cross-city structural shift than in-domain. At a border the model has lost the surrounding scene layout and must lean on local appearance and shape cues, which are exactly what change between cities. The second is methodological: enforcing position invariance on target data during self-training shrinks this border penalty more than cleaning pseudo-labels alone does. Only the model-side fix still helps at deployment, when inference uses no overlap.
Several papers motivate this. The Inria benchmark paper Can semantic labeling methods generalize to any city? shows that cross-city evaluation exposes large failures: about 53.82% IoU for an FCN and about 60% for a multi-resolution network. It proposes no adaptation and does not examine tiling. Leveraging Topology for Domain Adaptive Road Segmentation supplies the closest method. It adds a road-skeleton decoder, a loss forcing the road surface to contain the skeleton, and connectivity-based pseudo-label pruning, and it reports gains on SpaceNet→DeepGlobe of at least 6.6 IoU and 9.8 APLS points over competing methods. It works entirely on pre-cropped patches, however, so its connectivity filter cannot tell a road that ends from a road cut by a tile edge. We reuse its skeleton decoder and pruning, but move the pruning to the mosaic and add the position-consistency term. The edge-confidence drop itself has been reported in microscopy mosaics (Semantic segmentation of reflectance confocal microscopy mosaics). Its root cause, missing context at borders, is described in SwinIR. Neither work studies it under domain shift.
Research Program
Training alternates two steps on the unlabeled target city. In the first step, a slowly updated copy of the model (an exponential moving average, used as the teacher) predicts the full target mosaic with a randomly shifted tiling. For each pixel it keeps only the prediction from the crop in which that pixel was most central. The stitched map is skeletonized and pruned with 8-neighbor connectivity at mosaic scale. As a result, a road segment is removed only if it is genuinely isolated in the city, not merely truncated by a tile.
In the second step, the student trains on randomly placed crops. Alongside the usual pseudo-label loss, it receives a position-consistency loss. Let $u$ be a pixel, $d(u)$ its distance to the nearest border of the student's crop, $q(u)$ the teacher's prediction for $u$ from a crop where it is central, and $p(u)$ the student's prediction. The loss is
$$\mathcal{L}_{pos} = \sum_{u} w(d(u))\, \mathrm{KL}\big(q(u)\,\|\,p(u)\big),$$
where $w$ decreases with $d$, so that border pixels, where the student is starved of context, are pulled hardest toward the context-rich prediction. The loss explicitly trains the network to infer what lies beyond the crop edge from partial structure. A road heading toward the border should keep its width, and a roof cut in half should keep a straight edge. Source-domain supervision follows the topology paper, and a boundary-aware term follows Boundary Loss for Remote Sensing Imagery Semantic Segmentation. That term is a differentiable boundary-F1 surrogate, reported at 93.85% versus 92.56% IoU on Potsdam in-domain. We use it only on labeled source data, because on the target it would sharpen whatever errors the pseudo-labels contain.
The diagnostic study comes first and gates everything else. For in-domain and cross-city models, we bin test error by distance to the tile border and compare the slopes. If the border penalty is not larger under shift, the first claim fails. The work then reduces to a general tiling fix, which is a smaller contribution.
Baselines
The naive reference is source-only training evaluated with non-overlapping tiles on the target city. It sets the floor and gives the unadapted border penalty curve.
The strongest existing competitor for roads is the topology-aware UDA method of Leveraging Topology…, run as published on per-crop patches. It is strongest because it already targets structural shift and topology, the two things our method claims to improve at seams. On the file's record, it outperforms competing UDA methods on SpaceNet→DeepGlobe by at least 6.6% IoU, 6.7% F1 and 9.8% APLS. The file gives no absolute value, so we will reproduce it rather than quote one. For buildings, the adaptation competitor is DATA, which trains an adversarial image generator for Inria/Massachusetts transfer. No reported result was found on Lacuna for its cross-dataset IoU, so it too will be rerun. As an in-domain ceiling reference we cite BPT (Boundary-Enhanced Patch-Merging Transformer), which reports 77.1% mIoU on Inria in a supervised setting. It is not a direct competitor. All methods share one backbone, one crop size, one iteration and tuning budget (the same number of hyperparameter trials each), and one inference protocol. Every method is reported under both zero-overlap and 50%-overlap inference.
Two ablations isolate the key ingredient. The first is center-crop pseudo-labeling with mosaic-level pruning but without $\mathcal{L}_{pos}$. It tests whether cleaner pseudo-labels alone explain any gain. The second is $\mathcal{L}_{pos}$ with per-crop pruning, which tests the mosaic pruning step.
Beating the baselines means lower border-zone error and higher mosaic APLS than the topology UDA method under zero-overlap inference, with the gap to our own 50%-overlap result being smaller than theirs.
Why not just…?
Why not just use overlapping tiles with blended predictions? Blending averages two low-confidence border predictions and does not restore missing context. The file reports that linear averaging on OpenEarthMap was clearly outperformed by treating seams as inpainting (Learnable Prompt for Few-Shot Semantic Segmentation). Overlap also raises inference cost roughly in proportion to tile count (The Power of Tiling). We report overlap-blended versions of every baseline, so if blending closes the gap at acceptable cost, the result will show it.
Why not just discard border pixels when making pseudo-labels? This is the real threat. It is also exactly our first ablation, and it may recover most of the pseudo-label quality gain. It cannot change how the deployed model behaves at edges under zero-overlap inference, which is the regime where we expect $\mathcal{L}_{pos}$ to matter. If the ablation matches the full method under both inference protocols, we will report that the contribution is the diagnostic plus mosaic-level pruning, and that the consistency loss is unnecessary.
Why not just use a larger-context model or downsample the whole scene? Downsampling erases small structures; tiling raised VisDrone mAP from 11% to 36% compared with processing the full frame at once (The Power of Tiling). Global-context refiners such as CRM (High Quality Segmentation for Ultra High-resolution Images) and BPT are supervised and in-domain. BPT's clustering has not been tested under shift. We will run BPT source-only on cross-city Inria to check whether architectural context alone removes the shift-amplified border penalty.
Why not just apply appearance adaptation first? Style and spectral alignment do not change geometry. The Inria cross-city failures are attributed to architectural differences between cities, not to lighting (Can semantic labeling…). We include a Fourier amplitude-matching preprocessing baseline to confirm this.
Proposed Experiments
Building extraction uses Inria Aerial with city-held-out splits: Austin/Chicago→Vienna/Innsbruck and the reverse. Road extraction uses SpaceNet→DeepGlobe. Evaluation is always on full stitched target mosaics. Metrics are IoU and boundary F1, IoU stratified by distance to the tile border, a seam discontinuity rate (the fraction of predicted structures whose label flips across a tile edge), APLS on the full-mosaic road graph, and inference cost in operations per square kilometer.
Two checks are decisive. The first is whether the border penalty slope is steeper cross-city than in-domain. The second is whether, at zero overlap, the full method beats the center-crop pseudo-label ablation on border-zone IoU and mosaic APLS across three seeds. A secondary check shifts the inference tiling by random offsets. A position-invariant model should produce nearly identical mosaics, measured by agreement between runs, whereas baselines should not.
References
- Can semantic labeling methods generalize to any city? the inria aerial image labeling benchmark
- Leveraging Topology for Domain Adaptive Road Segmentation in Satellite and Aerial Imagery
- Semantic segmentation of reflectance confocal microscopy mosaics of pigmented lesions using weak labels
- SwinIR: Image Restoration Using Swin Transformer
- Boundary Loss for Remote Sensing Imagery Semantic Segmentation
- Domain Adaptive Transfer Attack-Based Segmentation Networks for Building Extraction From Aerial Images
- Ultra-High Resolution Segmentation via Boundary-Enhanced Patch-Merging Transformer
- Learnable Prompt for Few-Shot Semantic Segmentation in Remote Sensing Domain
- The Power of Tiling for Small Object Detection
- High Quality Segmentation for Ultra High-resolution Images