Satellite image classifiers often learn where a picture was taken instead of what is on the ground. A land-use model can call a tile "farmland" because the soil has the reddish tint of a region where most training tiles are farms, and then fail on a factory in that same region or on a farm somewhere else. The machine-learning literature on spurious correlations calls this contextual bias. Its standard fixes need someone to label, for every training image, which "group" it belongs to, meaning which combination of label and confounding context. Those labels are expensive and fragile. Satellite imagery is unusual because the main confounder, location on the Earth, is recorded for free and without noise in every image's metadata. It is simply continuous rather than a small set of groups.
We propose to use that metadata directly. From the few labeled images available, we fit a model that predicts the label from coordinates alone. This "location-only shortcut model" estimates how predictable each image's label is from its surroundings. We then retrain the classifier on a resampled training set in which the label is statistically independent of location, so that shortcut-conforming examples no longer dominate. The method needs no group annotations. It extends naturally to regression targets such as poverty estimation, and it can be applied on top of any pretrained satellite backbone. The same shortcut model also gives an evaluation tool: a "context-violating" test slice made of images whose true label is unlikely given their location. With it we can ask a question nobody has measured, namely whether geography-aware self-supervised pretraining makes this failure worse.
Core Claim
In remote sensing, the group-annotation bottleneck that dominates spurious-correlation research largely disappears. What remains is a continuous-confounder problem. Let $g$ be an image's coordinates and $y$ its label. Group-balanced training makes $y$ independent of a discrete attribute. Its continuous analogue gives each labeled example the weight
$$w_i = \frac{\hat p(y_i)}{\hat p(y_i \mid g_i)},$$
where $\hat p(y \mid g)$ comes from a kernel estimator over great-circle (Haversine) distance fit on the labeled set. Under the reweighted distribution, the joint distribution of label and location factorizes as $p(g)\,p(y)$, so location, and any background texture that proxies for it, carries no information about the label. For regression we replace the ratio with a density ratio over the spatially smoothed residual $y_i - \hat{\mathbb{E}}[y \mid g_i]$.
We claim two things. First, this weighting, applied through subsampling or last-layer retraining rather than loss reweighting, improves accuracy on context-violating and out-of-region test data at small label budgets. It should do better than coarse region-level Group DRO and better than group-free shortcut discovery. Second, pretraining objectives that explicitly tie embeddings to geography amplify reliance on location shortcuts, and the proposed weighting recovers part of that loss.
The design choice to resample rather than reweight losses follows a negative result. Overparameterization hurts worst-group accuracy with spurious correlations shows that large networks reach zero training loss whatever the weights, so reweighting has no effect: worst-group error on CelebA exceeds 60%. Subsampling the majority group reverses the effect, reaching 15.1% worst-group error with 3.4% of the data. We therefore implement the weights as sampling probabilities and as the loss for retraining only the final layer.
Relation to Prior Work
The closest group-free method is For Robust Worst-Group Accuracy, Ignore Group Annotations. RAD deliberately trains a sparse, heavily regularized linear probe on image features so that it absorbs the dominant shortcut. It then treats the probe's mistakes as minority examples and upweights them when retraining the last layer. We keep RAD's last-layer retraining stage. The difference is how the shortcut is found. RAD must discover the shortcut from pixels and assumes a binary majority/minority split. We read the shortcut's source from metadata, estimate it as a continuous quantity, and cover regression, which RAD does not address.
Unsupervised Concept Discovery Mitigates Spurious Correlations (CoBalT) discovers concepts with slot attention and balances training over them. Its own limitation, dependence on spatially separable objects, is the wrong fit for nadir tiles. In those images objects span 10–20 pixels and the confounding "background" is the texture of the whole scene. Location handles exactly this case because it does not need to be spatially separable from anything.
On the remote sensing side, the motivating work is geography-aware self-supervised pretraining. Seasonal Contrast (SeCo) treats revisits of the same place in different seasons as matching pairs. It samples around the 10,000 most populated cities, and a model fine-tuned from SeCo on 1% of BigEarthNet labels beats an ImageNet-initialized model trained on 100%. Rank-based Geographical Regularization (GeoRank) adds a loss that preserves the ranking of Haversine distances in embedding space. It raises SimSiam k-NN accuracy on EuroSAT from 52.14% to 80.10%, but its authors report that the gains fade when training and deployment regions differ. Both papers report only average accuracy.
Our diagnostic tests the hypothesis these results suggest but do not test: pulling nearby places together in embedding space may encode the very location-to-label correlation that fails out of region. Towards Geospatial Foundation Models via Continual Pretraining (GFM) serves as a non-geographic comparison backbone, since its objective uses no coordinates.
The evaluation setting comes from WILDS and its unsupervised extension. These benchmarks also constrain the design. In WILDS, invariance objectives (IRM, CORAL) failed to beat ERM on 8 of 10 datasets. Self-training methods relied on augmentations for natural RGB photos that damage multispectral signals, and could not be applied to PovertyMap regression. We therefore avoid new invariance losses and pixel augmentations entirely. Our intervention acts only on which labeled examples the model sees.
Research Program
The work has three parts.
The first part is the shortcut model and the context-violating slices. For FMoW-WILDS (62 land-use classes, five regions, 2002–2018) and PovertyMap-WILDS (asset wealth across 23 African countries), we fit $\hat p(y \mid g)$ with a Haversine kernel on the labeled training set. The bandwidth is chosen by held-out log-likelihood on training labels only. This avoids the validation trap described in the file, where methods tuned on target group labels collapse without them. On the test sets we define the context-violating slice as the images in the lowest quintile of $\hat p(y \mid g)$; for regression, those in the top quintile of absolute spatial residual. Where coordinates are available we build the same slices for BigEarthNet.
The second part is a pretraining diagnostic. We freeze five backbones: ImageNet, SimSiam, SimSiam+GeoRank, SeCo, and GFM. On each we train linear probes at 1%, 10%, and 100% label budgets. For each probe we report average accuracy, context-violating-slice accuracy, and a shortcut index, defined as the gain in probe accuracy when the location-only prediction is concatenated to the features. If the index is near zero, the image features already contain the geographic prior. The hypothesis is that GeoRank and SeCo raise average accuracy while shrinking the index and lowering context-violating accuracy relative to SimSiam.
The third part is geographic residual resampling. On each backbone and label budget we compare two ways of applying the weights: last-layer retraining with the weighted loss, and full fine-tuning on a resampled set. Full fine-tuning matters because How to Efficiently Adapt Foundation Models to Remote Sensing for Object Detection? found that parameter-efficient tuning fails in few-shot satellite detection and full tuning is needed. That raises the open question of whether full tuning at small budgets memorizes location shortcuts, as the overparameterization result predicts. Model selection uses an in-distribution validation split scored by weighted loss, with no target labels.
Baselines
The naive reference is ERM: standard fine-tuning or linear probing on each backbone with uniform sampling. It uses the same label budget, the same number of optimizer steps, and a 20-trial hyperparameter search per method on the same in-distribution validation split. On PovertyMap-WILDS the reported ERM figure is Pearson $r = 0.45$ out of distribution versus $0.60$ in distribution (WILDS). Beating ERM there means a gain in out-of-distribution $r$ that exceeds the spread over the benchmark's standard fold splits. On FMoW-WILDS we found no reported result on Lacuna for ERM worst-region accuracy, so we will reproduce it under our protocol.
The strongest competitor that uses metadata is Group DRO, which minimizes the worst-group training loss, with groups defined as label crossed with the five WILDS regions (WILDS). We also run a stronger version with groups defined by k-means clusters of coordinates, with k tuned on the same budget. This is the real threat, because it also uses free metadata. The only question is whether continuous, fine-grained weighting beats coarse discrete groups. The file gives no number for Group DRO on FMoW or PovertyMap, so we will run it ourselves. Beating it means higher context-violating and worst-region accuracy, not only higher average accuracy.
The strongest group-free competitor is RAD-UW (For Robust Worst-Group Accuracy, Ignore Group Annotations), run on the same frozen features with the same last-layer retraining. On CelebA it holds about 83.5% worst-group accuracy under group-label noise, but the file reports no remote sensing result. We also include majority subsampling over region groups, following Overparameterization hurts worst-group accuracy with spurious correlations.
Three ablations isolate the geographic ingredient. The first replaces $\hat p(y \mid g)$ with a k-NN label estimate in image-feature space, which is RAD-like but uses the same weighting formula. The second uses random weights matched in effective sample size. The third applies label-marginal balancing alone. If the image-feature ablation matches the full method, location adds nothing and the claim fails.
Why not just…?
Why not just run Group DRO on the region labels WILDS already provides? This is the most credible alternative, and we treat it as a possible null result rather than a straw man. Five continental regions are too coarse. The shortcut lives inside regions: the rural versus urban split in PovertyMap, or the soil and roof materials of one country. Group DRO on continents cannot balance those. The fine k-means variant tests this directly. If geographic clusters with tuned k match continuous weighting, the contribution reduces to "use location clusters as groups." That is still useful, but it is a smaller claim, and we would report it that way.
Why not just use RAD, which already needs no group labels? RAD finds the shortcut from image features. It works only if the shortcut is the easiest linear direction and the task is binary-like. On 62-class FMoW and on continuous poverty regression, neither condition clearly holds, and RAD cannot say which feature it absorbed. The image-feature ablation of our own method is exactly a RAD-style detector plugged into our weighting. Comparing it to the location-based version separates the benefit of the metadata from the benefit of the retraining recipe.
Why not just pretrain a better backbone, or drop GeoRank? SeCo's 1%-label result shows that pretraining matters. GeoRank's own finding that gains fade across regions, and its reported saturation around 100k–200k pretraining images, suggest that more pretraining will not by itself remove the location prior. The diagnostic answers this empirically. If plain SimSiam or GFM already achieves context-violating accuracy equal to resampled GeoRank, the practical advice is simply "choose a non-geographic objective." We would report that as the finding.
Why not self-train on the unlabeled target regions from WILDS 2.0? Extending the WILDS Benchmark for Unsupervised Adaptation found that such methods rarely beat ERM on these shifts. They also depend on photo-style augmentations that damage multispectral bands and cannot handle PovertyMap regression. Our method is complementary and could be stacked with self-training later, but we do not rely on it.
Proposed Experiments and Decisive Checks
The main grid crosses five backbones, three label budgets, two datasets (FMoW-WILDS and PovertyMap-WILDS, plus BigEarthNet for the diagnostic), and the methods above, with three seeds each. The metrics are out-of-distribution average and worst-region accuracy on FMoW, out-of-distribution Pearson $r$ and worst urban/rural subgroup $r$ on PovertyMap, and context-violating-slice performance on all datasets.
Three results would be decisive.
The first is whether GeoRank-pretrained features show lower context-violating accuracy than SimSiam at matched average accuracy. That result would confirm the geography-as-shortcut hypothesis independently of our method.
The second is whether continuous resampling beats fine-cluster Group DRO on context-violating and worst-region metrics at the 1% and 10% budgets. We expect the advantage to be largest where labels are scarce and clusters are thinly populated.
The third is whether the gain disappears when location is replaced by image-feature neighbors. If it does, the geographic signal is what matters.
A final sanity check guards against a flawed metric. The context-violating slice must not simply collect mislabeled images, so we will hand-inspect 200 slice members per dataset. Throughout, we will report whether full fine-tuning at small budgets widens the gap between average and context-violating accuracy relative to last-layer retraining. That is the few-shot memorization effect the overparameterization result predicts and no remote sensing study has measured.
References
- Overparameterization hurts worst-group accuracy with spurious correlations
- For Robust Worst-Group Accuracy, Ignore Group Annotations
- Unsupervised Concept Discovery Mitigates Spurious Correlations
- Seasonal Contrast: Unsupervised Pre-Training from Uncurated Remote Sensing Data
- Rank-based Geographical Regularization: Revisiting Contrastive Self-Supervised Learning for Multispectral Remote Sensing Imagery
- Towards Geospatial Foundation Models via Continual Pretraining
- WILDS: A Benchmark of in-the-Wild Distribution Shifts
- Extending the WILDS Benchmark for Unsupervised Adaptation
- How to Efficiently Adapt Foundation Models to Remote Sensing for Object Detection?