Remote-sensing models that combine aerial photographs with a height map are usually described as robust by construction. Height is a physical signal that color cannot fake: a concrete roof and a concrete parking lot look alike from above but sit at different heights. This proposal starts from the opposite worry. A network that is given height may learn a crude rule such as "anything taller than a few meters is a building" and then stop looking at the image. That rule is a shortcut, meaning a simple feature that predicts the label in the training data but is not what the label actually means. It fails on low garages and sheds, on tall trees next to houses, and in any region whose buildings are shaped differently from the training cities.
The proposal is to find these height shortcuts and remove them with counterfactual height maps: real photographs paired with deliberately edited, physically plausible heights. The edits are made by simple rules on the height raster, with no generative model involved. They are targeted at the tiles where an early-stopped model fails, which is the "error set" idea from shortcut-robustness work. The bet is that the costly part of multimodal synthetic data is rendering realistic images, and that for this kind of shortcut the image never needs to be rendered. If that holds, most of the robustness benefit of synthetic data would come at a small fraction of its generation cost.
Core Claim
In RGB-plus-height segmentation, we claim three things. First, fusion models trained with ordinary loss minimization rely on height-magnitude shortcuts. This reliance can be measured with groups defined for free from the height map itself: object class crossed with height band. Second, label-preserving edits to heights inside object masks, applied to real imagery, remove much of that reliance. The edits rescale buildings into atypical height ranges and transplant height profiles between instances of the same class. The result should be higher worst-group accuracy under geographic shift than reweighting methods can reach, because reweighting only reuses rare combinations that already exist, while edits create combinations that are absent from the training data. Third, this benefit costs orders of magnitude less generation compute than full-scene synthesis.
The mechanism comes from the shortcut literature. Distributionally Robust Neural Networks shows that large networks fit every group in training yet generalize poorly on rare groups. Spurious Correlations in High Dimensional Regression shows analytically that overparameterization and standard regularization can increase reliance on simple spurious features. A single height channel is exactly such a simple, low-dimensional feature.
Relation to Prior Work
The fusion papers motivate the problem without studying it. BuildSeg stacks LiDAR height with imagery in SegFormer and ConvNeXt encoders and reports large IoU gains. FusAtNet uses LiDAR as a spatial attention guide over hyperspectral features. Bringing SAM to new heights (BalSAM) adds a trainable surface-model encoder to a frozen Segment Anything backbone for tree crowns. All three measure average accuracy and treat height as uniformly helpful. None asks which subgroups the height channel makes worse.
On the synthetic-data side, SynRS3D builds 69,667 full synthetic scenes from procedural scripts, GPT-4 texture prompts, and Stable Diffusion rendering, then adapts to real data. The authors acknowledge an appearance gap. Severing Spurious Correlations with Data Pruning shows that networks exploit even rare artifacts, which suggests that rendered textures could become new shortcuts. We avoid synthetic pixels entirely: every photograph in our training set is real.
The method borrows from two sources. DISCO distills counterfactuals from GPT-3 for natural language inference. It targets ambiguous seed examples and filters generations with a teacher model, and it shows that a curated 75,000-example set beats larger noisy sets. We keep its "target the boundary, then edit" logic. We replace the expensive language-model generator and teacher filter with rule-based edits on a physical raster, where the label is preserved by construction rather than checked afterward. From Just Train Twice (JTT) we take the early-stopped error set as the guide for where to spend the editing budget. JTT upweights that set. We instead generate edited copies of it.
Research Program
The first step is diagnostic. On MapAI (Norwegian and Danish cities, aerial RGB plus LiDAR, the benchmark used by BuildSeg), we define groups automatically. Each pixel or object is assigned to a cell of class crossed with height band. Examples are buildings under 3 m, ordinary buildings, vegetation over 5 m, and flat ground. Because groups come from the normalized surface model (height above ground) and existing labels, group annotation costs nothing. This also removes JTT's need for a separately group-labeled validation set.
We then measure shortcut reliance in two ways. The first is worst-group IoU. The second is a conflict probe: we swap each object's height profile with that of an object from a different class and record how often the prediction follows the height rather than the image. We will also build geographic shift splits by training on some cities and testing on others. In these splits the train-test difference in height distributions, such as low-rise versus dense mid-rise areas, is measured and reported.
The second step is the edit library. It contains three rule-based operations, each applied only inside ground-truth object masks.
The first operation rescales an instance's height above ground into a band that is rare for its class, clipped to plausible ranges.
The second transplants the height profile of another instance of the same class, resampled to the target mask.
The third adds canopy-like texture to vegetation height, or flattens it, so that tall vegetation and roofs overlap in height statistics.
None of these operations changes the label. Their weakness is that they can contradict the image, since shadow length encodes height. We therefore bound the rescaling ratio, and we report a separate arm that excludes tiles with strong shadows. That arm tests whether image-height contradictions push the model into ignoring height altogether, which would collapse it to an RGB-only model.
The third step is targeting. A briefly trained fusion model marks tiles with high error on any group. The editing budget, fixed as a number of edited tiles, goes preferentially to those tiles and to the edits that most change the model's prediction. For every method we log generation cost as GPU-seconds and wall-clock time per retained training sample.
The secondary testbed is forestry. We use the BalSAM datasets (Quebec Plantations, Quebec Trees, and BCI in Panama) with train-on-boreal/temperate, test-on-tropical splits. In this setting tree height and crown class correlate differently across biomes. SelvaBox serves as an additional tropical evaluation set (SelvaBox, resource).
Baselines
The naive reference is plain loss minimization on RGB plus height using BuildSeg's early-fusion SegFormer-B5 recipe with its standard flips, crops and color jitter. On MapAI, BuildSeg reports IoU 0.8506 and boundary IoU 0.7461 with LiDAR, against 0.7902 and 0.6185 for imagery alone. We will reproduce these numbers, so that average accuracy is not traded away unnoticed. No reported worst-group or height-stratified result was found on Lacuna for MapAI or any other height-fusion benchmark. Establishing that number is part of the contribution. An RGB-only model is also reported, because it bounds how much the height channel helps or hurts each group.
The strongest competitor is Group DRO from Distributionally Robust Neural Networks, with strong weight decay, early stopping, and the group-size adjustment. It is usually impractical because it needs group labels for every example. Here our height-derived groups make it essentially free, so it becomes the most dangerous alternative. On Waterbirds it reports 90.5% worst-group accuracy with group adjustments, versus 60.0% for loss minimization.
JTT is run as the no-oracle reweighting baseline. It reports 81.1% worst-group accuracy on CelebA, versus 47.2% for loss minimization. It is run with the same stage-one model and error set that our targeting uses, so the only difference between the two is upweighting versus editing.
Full-scene synthesis is represented by pretraining the same fusion model on SynRS3D's RGB plus height scenes before fine-tuning on MapAI. We report its generation cost only as documented by the authors. No compute-cost figure for SynRS3D was found on Lacuna.
All methods share the SegFormer-B5 backbone, the training tiles, the number of optimizer steps, and a tuning budget of the same number of trials on a validation city that is held out from both training and test. Beating the baselines means higher worst-group IoU on held-out cities than both Group DRO and JTT, with average IoU within one point of the naive fusion model and generation cost at least a hundred times lower per retained sample than full-scene synthesis.
Two ablations isolate the key ingredients. The first applies the same edits to randomly chosen tiles at the same budget. The second applies unstructured random height jitter to all tiles. The first tests the value of targeting. The second tests whether mask-aware, class-specific edits matter at all.
Why not just…?
Why not just run Group DRO, now that the groups are free? This is the real threat. If the training cities contain enough low buildings and tall vegetation, reweighting may be all that is needed. Our argument is that under geographic shift the rare combinations may be nearly absent from training. Reweighting a group with a handful of members mostly amplifies noise, which is the overfitting regime that Group DRO's own paper has to regularize against. The experiment decides it. We sort held-out cities by how rare their dominant height-class combinations are in training. If Group DRO matches the edits even for the rarest combinations, we will report that editing adds nothing beyond reweighting. We will also test the combination of the two, which may be the practical outcome.
Why not just add random height noise or modality dropout? Dropout removes exactly the signal that separates roofs from pavement. BuildSeg's IoU falls from 0.8506 to 0.7902 without LiDAR, and BalSAM's tropical mAP falls from 8.30 to 5.52 without the surface model. Dropout therefore trades one failure for another. Random jitter is cheaper than our edits and could plausibly break a height-threshold rule just as well. That is why it is run as an ablation at a matched budget rather than dismissed. If it matches the mask-aware edits, the claim shrinks to "height augmentation is enough," and we will say so.
Why not just generate full synthetic scenes, as SynRS3D does? Full scenes cover height-class combinations that real data lacks, but they bring a known appearance gap. Given how readily networks exploit small artifacts, that gap risks planting new shortcuts. The SynRS3D pretraining arm measures this directly, including the conflict probe on real test cities. If it wins on worst-group IoU, the question becomes whether the gain justifies the diffusion-and-procedural pipeline, and our cost logs answer that.
Decisive Checks
The first check is whether the naive fusion model shows a height shortcut at all. It passes if the conflict probe shows predictions following swapped heights and worst-group IoU sits well below average IoU. If height-fused models turn out not to rely on height shortcuts, the project reduces to a useful negative result about fusion robustness.
The second check is whether targeted edits beat Group DRO, JTT, and random jitter on worst-group IoU in held-out cities at equal training compute.
The third check is whether the conflict probe shows restored reliance on the image without a collapse to RGB-only behavior. The test is that average IoU stays near 0.85 and does not drift toward the RGB-only 0.79.
The fourth check is whether the pattern repeats on the boreal-to-tropical forestry split, measured against BalSAM and its Mask R-CNN baselines.
The fifth check is whether the edits deliver these results at generation costs measured in CPU-seconds rather than the GPU-hours of diffusion rendering.
References
- Distributionally Robust Neural Networks
- Spurious Correlations in High Dimensional Regression: The Roles of Regularization, Simplicity Bias and Over-Parameterization
- BuildSeg: A General Framework for the Segmentation of Buildings
- FusAtNet: Dual Attention based SpectroSpatial Multimodal Fusion Network for Hyperspectral and LiDAR Classification
- Bringing SAM to new heights: leveraging elevation data for tree crown segmentation from drone imagery
- SynRS3D: A Synthetic Dataset for Global 3D Semantic Understanding from Monocular Remote Sensing Imagery
- Severing Spurious Correlations with Data Pruning
- DISCO: Distilling Counterfactuals with Large Language Models
- Just Train Twice: Improving Group Robustness without Training Group Information
- SelvaBox: A high‑resolution dataset for tropical tree crown detection