Satellite segmentation models lose a lot of accuracy when used in a region they were not trained on. The reason is that the same class, such as flood water, cropland or pervious ground, looks different under different climates, soils and building traditions. One obvious fix is to tell the model where each image was taken. The evidence on whether this helps conflicts. A careful study of fine-tuning large geospatial foundation models found that appending raw coordinates gave "negligible gains" (Fine-tune Smarter, Not Harder). A smaller convolutional model that projected coordinates onto a sphere reported roughly a 6% mIoU gain in cross-city adaptation (SegDesicNet). This proposal argues that neither spherical geometry nor raw location is the useful ingredient when the test region is unseen. What helps is a location embedding that was pretrained without labels on imagery covering the whole planet. Such an embedding places an unseen region near environmentally similar regions the model has seen.
We build a small change to parameter-efficient fine-tuning. A frozen foundation model is adapted with a few low-rank "expert" adapters. A frozen, pretrained spherical location embedding decides how much each adapter contributes at every image location. With few labels, a plain Vision Transformer has no built-in notion that the correct mapping from pixels to labels changes smoothly across the Earth. The location-controlled mixture supplies that missing assumption, while the frozen backbone and low-rank updates guard against forgetting. The experiments are designed to tell which of three things produces any gain: the geometry, the pretraining, or the conditioning mechanism.
Core Claim
Under geographic holdout, location conditioning helps a foundation-model segmenter only when the location code carries knowledge learned from unlabeled global imagery. Raw latitude and longitude carry no such knowledge. Neither does a spherical-harmonic encoding learned from scratch on the labeled source regions, because at a new location it must extrapolate from nothing. A pretrained SatCLIP embedding does carry it. SatCLIP (SatCLIP) aligns Sentinel-2 image patches with spherical-harmonic coordinate codes, where spherical harmonics are smooth basis functions defined natively on the globe with no seam at the dateline and no stretching at the poles. It showed that a coarse harmonic degree ($L=10$) transfers to unseen continents better than a fine one ($L=40$).
This reframes the metadata contradiction. Fine-tune Smarter, Not Harder tested location information of the wrong kind. SegDesicNet tested a different backbone and a different regime: within-France domains, a fixed spherical grid code, and an auxiliary alignment loss. We predict that a spherical code with no pretraining behaves like raw coordinates under holdout, and that the pretrained code is what separates from plain low-rank adaptation. We also predict the gain depends on matching scale: the embedding's spatial resolution must match the distance between training and test regions.
Research Program
The backbone is Prithvi-EO-2.0 300M (Prithvi-EO-2.0), kept frozen. Prithvi is a masked-autoencoder foundation model pretrained on 4.2 million multi-temporal satellite sequences. We use it because the strongest published holdout numbers were obtained with it.
In selected attention and MLP layers we attach $K$ low-rank adapters, following LoRA (Low-Rank Adaptation) as benchmarked by Fine-tune Smarter, Not Harder. Their contributions are mixed per image:
$$W(x) = W_0 + \sum_{k=1}^{K} g_k\big(e(x)\big)\, B_k A_k .$$
Here $W_0$ is the frozen pretrained weight and $B_k A_k$ is the $k$-th low-rank update. The embedding $e(x)$ is the frozen SatCLIP location embedding of the image's center coordinate $x$ on the sphere. The gating network $g$ is a two-layer MLP with a softmax over the $K$ adapters. With $K=1$ and constant gating this reduces exactly to standard LoRA, which makes the comparison clean.
The design is a continuous, spherical analogue of the shared-versus-private branching in STAR. STAR splits a network into global and local branches over discrete planar groups it finds from labeled error clusters. It transfers parameters to new regions with an explicit moderator. Our method needs no grouping and no target labels. An unseen region inherits a mixture of adapters through its position in an embedding space learned without labels.
The contrast with SegDesicNet is that SegDesicNet forces a CNN's features to match a fixed spherical grid code through a cosine loss. We never ask image features to predict location. Location only chooses among adaptations, so it cannot erase visual information. The contrast with Geographic Location Encoding with Spherical Harmonics and Sinusoidal Representation Networks is that it used spherical-harmonic encodings as a separate prior over labels for classification. We use the encoding inside a dense segmenter.
The analysis has three parts that run on the same trained models. The first separates geometry from pretraining. We swap $e(x)$ among raw lat/lon, 3D unit-sphere coordinates, a spherical-harmonic encoding with a sinusoidal network trained from scratch, and pretrained SatCLIP at $L=10$ and $L=40$. The second separates location from image content. We replace $e(x)$ with the backbone's own pooled image feature, which directly tests the hypothesis in Fine-tune Smarter, Not Harder that foundation models already infer geography from pixels. The third checks scale matching. We compare Sen1Floods11, whose holdout regions sit on other continents, with FLAIR #1, whose domains all lie within metropolitan France. At that scale we expect the coarse $L=10$ embedding to be nearly constant across domains, and therefore useless.
Baselines
The naive reference point is full fine-tuning of Prithvi-EO-2.0 300M with no location input. On the Sen1Floods11 geographic hold-out set, Fine-tune Smarter, Not Harder reports 82.07% mIoU for this setting. It shows how badly unprotected adaptation forgets under shift.
The strongest existing method is plain LoRA on the same backbone, which that paper reports at 87.57% mIoU on the Sen1Floods11 hold-out set. Across its five tasks it reports a mean of 68.02% mIoU for LoRA, versus 68.14% for full fine-tuning. We give LoRA the same total count of trainable parameters as our $K$ adapters plus the gating network, by raising its rank. We use the same splits, the same epochs, and an equal hyperparameter-search budget of the same number of trials over learning rate and rank. We re-run it rather than copy the number, so both methods share seeds and code.
The ViT-Adapter from the same study is the baseline for the pixel-level inductive-bias story. It adds convolution-like locality to the frozen transformer. If it matches our method, the missing ingredient was locality in the image, not geographic knowledge.
For coordinate-based adaptation, we reimplement the SegDesicNet cosine alignment loss on the Prithvi backbone, applied to the LoRA baseline. On FLAIR #1, SegDesicNet reports only an approximate 6% relative mIoU improvement over prior adaptation methods. No absolute FLAIR number for it was found on Lacuna, so we compare it only under our own re-run.
The key ablations are the same gated architecture with each non-pretrained location code, and with the image-derived gate. Beating LoRA means a gain in holdout mIoU that exceeds seed-to-seed spread, averaged over the five hold-out tasks. The gain should persist at the smaller label budgets. It should be absent or reversed when locations are shuffled between images at test time.
Why not just…?
Why not just append a spherical-harmonic embedding as an extra input token instead of gating adapters? This is the most natural repair of the metadata result, and it is a real threat. We run it as its own arm with the same pretrained embedding. If it matches the gated mixture, the finding still stands, since pretrained location knowledge would be what matters, and we would report the simpler mechanism. We expect gating to help most at small label budgets, because an extra token must be learned through attention from very few examples. Gating only has to learn a low-dimensional mixture.
Why not just use LoRA, since the frozen backbone already sees the image? Fine-tune Smarter, Not Harder suggests exactly this: location adds nothing because pixels already reveal the region. The image-gated ablation tests it directly. If gating from pooled image features matches SatCLIP gating, the proposal's core claim is wrong for dense segmentation and we would say so. Our reason to expect otherwise is heterogeneity: the same class can look different across regions (Yang Shao et al.; Xiaowei Jia et al.). In that case a single image cannot always tell which regional appearance of a class it is showing. An embedding learned from a location's surrounding imagery can.
Why not just spend the budget on a few labels from the target region, or on geographically diverse training scenes? For change detection, Trusting Small Training Dataset for Supervised Change Detection found that diverse source cities beat proximate ones, with Kappa 0.32 versus 0.12 on OSCD. We treat both options as complements, not competitors. We report every method with a small number of target-region chips added, to test whether the location gain survives once local labels exist. We also report results for diversity-matched source subsets. If a handful of target labels erases the gap, the method's value is limited to the zero-target-label setting, and the note would state that plainly.
Proposed Experiments
The primary benchmark is the geographic hold-out protocol of Fine-tune Smarter, Not Harder across its five datasets: Sen1Floods11, Burn Scars, reBEN 7k, m-Cashew Plantation and m-SA Crop Type. Sen1Floods11 is the anchor because its 11 flood events span six continents. We vary the labeled source set across three levels: 5%, 25% and 100% of available hand-labeled chips, with three seeds each. The metric is mIoU on the holdout regions, plus the gap between in-distribution and holdout mIoU. For the scale-matching test we use FLAIR #1, holding out whole spatial domains.
Four checks decide the outcome. First, pretrained SatCLIP gating must beat parameter-matched LoRA on holdout mIoU. The from-scratch spherical encoding and raw coordinates must not; that split is the claim itself. Second, shuffling coordinates at test time must remove the gain, which shows the model actually uses location. Third, across holdout regions, the per-region gain should increase as the region's SatCLIP embedding gets closer to its nearest training region. This mechanistic signature separates transfer through environmental similarity from generic regularization. Fourth, on FLAIR #1 the $L=10$ embedding should give no gain while $L=40$ may, and the reverse pattern should hold on cross-continent Sen1Floods11. That would extend SatCLIP's finding on harmonic degree from classification to segmentation, and show that the right location resolution depends on how far apart the training and test regions are.
References
- Fine-Tune Smarter, Not Harder: Parameter-Efficient Fine-Tuning for Geospatial Foundation Models
- SegDesicNet: Lightweight Semantic Segmentation in Remote Sensing with Geo-Coordinate Embeddings for Domain Adaptation
- SatCLIP: Global, General-Purpose Location Embeddings with Satellite Imagery
- Prithvi-EO-2.0: A Versatile Multi-Temporal Foundation Model for Earth Observation Applications
- Statistically-Guided Deep Network Transformation to Harness Heterogeneity in Space (Extended Abstract)
- Geographic Location Encoding with Spherical Harmonics and Sinusoidal Representation Networks
- Characterizing major agricultural land change trends in the Western Corn Belt
- Recurrent Generative Networks for Multi-Resolution Satellite Data: An Application in Cropland Monitoring
- Trusting small training dataset for supervised change detection
- Sen1Floods11: a georeferenced dataset to train and test deep learning flood algorithms for Sentinel-1