SPECTRA: Band-Routed Embedding and Stage-Wise LoRA for Cross-Sensor Fine-Tuning of Geospatial Foundation Models

Xingyan Li1, Jordan A. Caraballo-Vega2, Jie Gong2, Mark L. Carroll2, Jianwu Wang1

1University of Maryland, Baltimore County 2NASA Goddard Space Flight Center

ACM SIGSPATIAL 2026 · Research Track

True-colour Sentinel-2 tile with a river crossing farmland and a town.
Sentinel-2 input
The same tile with the labeled water area in green.
Water label
LoRA-32 prediction: most of the river is found, but a side channel is missed (red) and there are false alarms (blue).
LoRA-32, band selection · mIoU 0.868
SPECTRA prediction: the river and most of the side channel are found.
SPECTRA · mIoU 0.911

ScaleMAE on a Sen1Floods11 test tile (USA_348639, also shown in the paper’s Fig. 4). ScaleMAE was pretrained on RGB, so band selection hands it 3 of the 13 Sentinel-2 bands and drops 10; SPECTRA routes all 13 into the same three input slots. Green is correctly mapped water, blue a false alarm, red missed water. Explore more tiles, GeoFMs and methods.

+2.88mean macro mIoU from adding BRE, over band selection, across 60 matched configurations
3.29–7.73%of parameters trained by SPECTRA across 3 GeoFMs and 4 datasets
17.1–33.6%fewer active trainable parameters than LoRA-32 on Sen1Floods11
77.17 → 85.45macro mIoU for ScaleMAE on Sen1Floods11, LoRA-64 → SPECTRA

Abstract

Geospatial foundation models (GeoFMs), pretrained on large-scale geospatial data such as Earth observation (EO), climate, and weather data, have shown promising performance when fine-tuned on diverse downstream tasks. However, there are two challenges in adapting EO-pretrained GeoFMs to practical fine-tuning datasets (downstream datasets). The first challenge is how to handle spectral mismatch: pretrained patch embeddings expect a fixed set of input bands, whereas downstream sensors may provide different channels. The second challenge is how to reduce fine-tuning cost and make it efficient. While existing work has made efforts on these challenges individually, methods that tackle both jointly remain underexplored. We propose SPECTRA, a parameter-efficient fine-tuning framework that addresses both spectral mismatch and adaptation cost. To handle spectral mismatch, SPECTRA introduces Band-Routed Embedding (BRE), which maps all available downstream bands into the band space expected by the pretrained GeoFM. By using BRE, all available bands in the downstream dataset are utilized to improve the selected-band input without changing the pretrained patch embedding interface. To reduce adaptation cost, SPECTRA further introduces a Stage-wise Transferability-aware LoRA (ST-LoRA) fine-tuning. ST-LoRA estimates stage-wise transferability before fine-tuning and assigns stage-specific LoRA ranks to reduce trainable parameters. Across three EO-pretrained GeoFMs and four downstream segmentation datasets, experiments show that BRE improves performance by utilizing all spectral bands, while ST-LoRA reduces trainable parameters compared with full fine-tuning and standard LoRA. Code is available at github.com/big-data-lab-umbc/SPECTRA.

Two obstacles to reusing a GeoFM

Spectral mismatch

A pretrained patch embedding defines a fixed input band interface: it expects a particular number, order, and spectral meaning of input channels. Downstream datasets often come from other sensors or carry more bands. The common fix, which the paper calls band selection, keeps the downstream bands that best match the pretrained ones and discards the rest. It preserves the pretrained embedding, but every unselected channel becomes invisible to the model.

GeoFM
Dataset
Input

kept by band selection discarded by band selection pretrained input slot BRE residual path

Selected and discarded bands, and the transfer gap, are from Table 3 and Appendix A of the paper.

Fine-tuning cost

Full fine-tuning updates every parameter of a large pretrained encoder, which is expensive in GPU memory, optimization time, and model storage. LoRA trains far fewer parameters, but it usually applies the same rank to every layer or stage, even though encoder stages differ in how well they transfer to a target task. Surgical fine-tuning adapts a subset of layers, but unfreezing an entire stage still needs many more trainable parameters than LoRA.

Schematic comparing fine-tuning policies: full fine-tuning, LoRA, surgical fine-tuning, and SPECTRA, marking which components are frozen and which are trained.
The fine-tuning methods compared in this work. SPECTRA adds a pretrained-compatible BRE input path and uses ST-LoRA to assign stage-wise LoRA ranks. (Fig. 1 in the paper.)

Method

SPECTRA has two components. Band-Routed Embedding (BRE) handles spectral mismatch at the input; Stage-wise Transferability-aware LoRA (ST-LoRA) controls adaptation cost in the encoder.

SPECTRA architecture: all target bands pass through band-routed gates and a residual adapter to form virtual pretrained-compatible bands, which feed the frozen patch embedding and a four-stage encoder with LoRA modules; a planner maps stage transferability scores to LoRA ranks; a UPerNet decoder outputs the segmentation map.
SPECTRA architecture. BRE maps a target image with C observed bands to a K-band pretrained-compatible virtual image by combining a selected-band path with a learned all-band residual path. ST-LoRA runs once before fine-tuning to estimate transferability from frozen encoder features and assign stage-wise LoRA ranks. (Fig. 2 in the paper.)

Band-Routed Embedding (BRE)

BRE builds a K-channel “virtual image” for the frozen patch embedding out of all C downstream bands. The design principle is to keep the selected-band input as a physically grounded anchor and add a learned correction from every available band.

X ∈ ℝC×H×W​ all C bands SELECTED-BAND PATH Band selection Xsel​ ∈ ℝK×H×W​ Band-routed gates 1 2 ⋯ C 1 G1,1​ G1,2​ ⋯ G1,C​ 2 G2,1​ G2,2​ ⋯ G2,C​ ⋮ ⋮ ⋮ ⋱ ⋮ K GK,1​ GK,2​ ⋯ GK,C​ G ∈ ℝK×C​ Gj,i​ = 2 sigmoid(Lj,i​) initialized to 1 ⋯ Gated pairs U1​ UK​ U ∈ ℝKC×H×W​ Residual adapter Rθ​ Conv 1×1 KC → 32 GELU Conv 1×1 32 → 32 GELU Conv 1×1 32 → K, zero-init Δθ​(X) ∈ ℝK×H×W​ ALL-BAND RESIDUAL PATH Virtual image XBRE​ ∈ ℝK×H×W​ Patch embedding E0​ XBRE​ = Xsel​ + Δθ​(X) Δθ​ = 0 at init ⇒ XBRE​ = Xsel​ frozentrained
Band-Routed Embedding. Band selection provides the K-band anchor Xsel. In parallel, all C bands are weighted by a learned K×C gate table and passed through one shared residual adapter, giving a K-band correction that is zero at initialization. Their sum is the virtual image fed to the frozen patch embedding.
  1. Selected-band anchor. Band selection picks the K downstream bands that best match the pretrained input slots, \(X_{\mathrm{sel}} = P_{\mathrm{sel}}(X)\). This keeps the input close to the distribution the pretrained patch embedding expects.
  2. Band-routed gates. A learned table \(G \in \mathbb{R}^{K\times C}\) with \(G_{j,i} = 2\,\mathrm{sigmoid}(L_{j,i})\) controls how much input band \(i\) contributes to virtual band \(j\). The logits start at zero, so every gate starts at 1 and no band is suppressed.
  3. Shared residual adapter. The \(K\!\cdot\!C\) gated channels pass through one compact 1×1 convolutional network that outputs a K-band correction \(\Delta_\theta(X)\). Its final layer is zero-initialized.
  4. Virtual image. \(X_{\mathrm{BRE}} = X_{\mathrm{sel}} + \Delta_\theta(X)\) has exactly K channels, so the pretrained patch embedding is used unchanged. No downstream band is hard-discarded: each one can influence every virtual band.

Stage-wise Transferability-aware LoRA (ST-LoRA)

Uniform LoRA gives every stage the same rank. ST-LoRA runs a planner once, before fine-tuning, that measures how well each frozen encoder stage already transfers to the target task and then assigns each stage its own rank. The schedule stays fixed during training.

Patch embedding Pretrained encoder attention blocks grouped into four stages, connected in series Stage 1 Attention block 1 Attention block 2 Attention block 8 ⋮ Stage 2 Attention block 9 Attention block 10 Attention block 16 ⋮ Stage 3 Attention block 17 Attention block 18 Attention block 24 ⋮ Stage 4 Attention block 25 Attention block 26 Attention block 32 ⋮ UPerNet decoder Ŷ AB LoRA r1​ = 16 Φ1​ AB LoRA r2​ = 32 Φ2​ AB LoRA r3​ = 16 Φ3​ AB LoRA r4​ = 16 Φ4​ h = Wx + ​(α / rmax​) B(r)​A(r)​x W frozen · A, B trained, cut to rank r ST-planner runs once, before fine-tuning 1 PROFILE 2 SIGNAL 3 ALLOCATE 1234 qs​ = LogME(Φs​(Xsel​), Y) transferability of stage s as​ = qs​ transfer as​ = maxt​ qt​ − qs​ repair ws​ = softmax(as​ / τ) rs​ ∈ {0, 4, 8, …, 2rref​} rs​ ≈ Trank​ ws​ ∑s​ rs​ ≤ Trank​ = S rref​ 1234 frozentrainedplanning step
ST-LoRA. All attention blocks of the pretrained encoder are grouped into four stages that run in series and stay frozen (block numbers are for a 32-block encoder, as in Fig. 2 of the paper). Each stage gets one LoRA adapter with its own rank; the ranks shown are the paper’s example for ScaleMAE on Sen1Floods11. The ST-planner runs once before fine-tuning: it scores each stage’s features with LogME and allocates the ranks under a total budget.
  1. Profile each stage. The frozen encoder is split into \(S\) stages (four in our experiments). Using the selected-band input, patch features from each stage are scored against the labels with LogME: \(q_s = \mathrm{LogME}(\Phi_s(X_{\mathrm{sel}}), Y)\). No fine-tuning is involved.
  2. Choose a planning signal. Transfer mode gives more rank to stages that are already useful, \(a_s = q_s\). Repair mode gives more rank to stages with a larger transferability gap, \(a_s = \max_t q_t - q_s\).
  3. Allocate under a budget. Weights \(w_s = \exp(a_s/\tau) / \sum_t \exp(a_t/\tau)\) split a total rank budget \(T_{\mathrm{rank}} = S\,r_{\mathrm{ref}}\). Each share is quantized down to the grid \(\{0, 4, 8, \ldots, r_{\mathrm{ref}}/2, r_{\mathrm{ref}}, 2r_{\mathrm{ref}}\}\), then stages are upgraded greedily while \(\sum_s r_s \le T_{\mathrm{rank}}\).
  4. Nested LoRA. Each adapted layer holds one maximum-rank adapter that is truncated to its stage’s rank; a stage with rank 0 gets no LoRA update. Pretrained encoder weights stay frozen, while BRE, the active LoRA weights, and the decoder are trained.

Model inference explorer

Predictions from the checkpoints behind the paper’s main table, on held-out test tiles. Pick a dataset, a GeoFM and a tile, then compare four fine-tuning methods on the same input.

Loading the explorer…

How these outputs were produced
  • Checkpoints. Every panel comes from the seed-42, best-validation checkpoint of a run that enters Table 4 of the paper. Before export, all 48 checkpoints were re-evaluated on their full test split, and each reproduced its recorded test mIoU (largest difference 0.00005). Nothing is computed in your browser; the predictions are stored as images.
  • Tiles. The 32 tiles, eight per dataset, are examples where SPECTRA helps; they are not a random sample. Test tiles qualify if at least 60% of the tile is labeled, and the foreground class covers between 1% and 90% of the labeled area (for crop type, at least three classes each cover 5%). Qualifying tiles are ranked by how many of the three GeoFMs reach a higher per-tile mIoU with SPECTRA than with LoRA-32 and band selection, then by the mean gain, and the top ones are shown. Qualifying tiles on which SPECTRA is ahead for all three GeoFMs: Sen1Floods11 8 of 20; FireScars 9 of 50; Landslide4Sense 35 of 162; SA Crop Type 88 of 625. The two Sen1Floods11 tiles from the paper’s Fig. 4 are added and tagged. For the comparison over the whole test split, see the test-set line under each panel and the results table.
  • Two kinds of numbers. The header above each prediction is that single tile’s mIoU (and foreground IoU or pixel accuracy); the green figure beside SPECTRA is its gain over LoRA-32 on that tile. “Test set” under the panel is the paper’s mean ± standard deviation over three seeds on the whole test split.
  • Crop size. Tiles are the centre 224×224 pixels of each test image (128×128 for Landslide4Sense), the same centre crop used in evaluation. SatMAE was trained and evaluated on smaller centre crops (128 px, and 96 px for SA Crop Type). On Sen1Floods11 and FireScars it is run here on the full 224-px tile so the three GeoFMs can be compared on the same extent, as in the paper’s Fig. 4; treat its per-tile numbers there as indicative. Over the whole test split, the seed-42 SatMAE checkpoints score -2.3 to -0.4 mIoU points differently at 224 px on Sen1Floods11 and +4.7 to +9.2 on FireScars, where the larger crop also scores different pixels. On SA Crop Type SatMAE does not carry over to the larger extent, so it is run on its native 96-px centre crop and its panels show predictions only inside that outlined box.
  • Imagery. The models receive each band scaled between its 2nd and 98th percentile over the full test image. For display only, each band of the cropped tile is stretched once more between its 5th and 95th percentile, so that dark tiles stay readable; the paper’s Fig. 4 uses the same display stretch for its Paraguay tile. Prediction overlays are always drawn on the true-colour composite.
  • Virtual image and residual. “Virtual image” is the K-band image SPECTRA’s input adapter passes to the frozen patch embedding, shown in its red, green and blue slots with the same display stretch as the input. “Residual” is the mean absolute change the residual path makes across the K bands; the darkest tone corresponds to 0.25 of the input range.

Results

Three EO-pretrained GeoFMs, four segmentation datasets, a shared UPerNet decoder, three seeds. All numbers below are from the paper.

Main comparison

SPECTRA reaches strong accuracy with only 3.29–7.73% trainable parameters. The gains are clearest for ScaleMAE and SatMAE, whose pretrained band interfaces differ most from the downstream sensors. On ScaleMAE, SPECTRA lifts Sen1Floods11 macro mIoU from 77.17 (LoRA-64) and 75.41 (full fine-tuning) to 85.45, and FireScars from 69.03 and 72.30 to 82.05.

GeoFM
Metric (%)

Test mean ± standard deviation over seeds 42–44 (Table 4 in the paper). Bold marks the best value in each column, leaving out full fine-tuning, which serves as a high-cost reference. FG IoU is foreground IoU.

Prediction maps for two Sen1Floods11 test tiles, for Prithvi, ScaleMAE and SatMAE, each with LoRA-32, surgical fine-tuning, SPECTRA and full fine-tuning.
Predictions for LoRA-32 with band selection, surgical tuning, SPECTRA and full fine-tuning on two Sen1Floods11 examples. Green, blue, and red denote true positives, false positives, and false negatives. (Fig. 4 in the paper; both tiles are in the explorer above.)

Does extra-band embedding help?

Averaged over three GeoFMs, four datasets and five fine-tuning policies, replacing band selection with BRE raises mean macro mIoU from 66.36 to 69.24 (+2.88 points). A direct MLP projector that also uses every band lowers it to 64.08 (−2.28). Extra bands are useful, but the input adapter has to preserve the pretrained spectral interface: the MLP changes the input distribution before the pretrained patch embedding, so the model must relearn a spectral tokenizer while adapting to the task.

Fine-tuning methodnBand selection+ MLP+ BREΔ MLPΔ BRE
LoRA-161265.8964.2668.95−1.63+3.06
LoRA-321266.3263.5968.90−2.73+2.59
LoRA-641266.4563.8469.30−2.61+2.85
Surgical1265.3763.2068.84−2.16+3.48
Full-FT1267.7765.4970.20−2.28+2.43

Average test macro mIoU (%) over n matched GeoFM–dataset pairs; deltas are relative to band selection with the same fine-tuning method (Table 5 in the paper).

The pattern holds per cell. Across the 60 paired baseline-policy cells, BRE improves foreground F1 in 56, by +3.08 F1 points on average; foreground IoU rises by +4.15 points on average. The largest gains appear where band selection throws away the most, such as ScaleMAE on Sen1Floods11 and FireScars.

Grouped bar charts of foreground F1 for each dataset and GeoFM. For every fine-tuning method, a hatched bar shows band selection and a solid bar of the same colour shows the method with BRE; orange bars show full SPECTRA.
Band selection (hatched) against BRE (solid) for each fine-tuning method, by foreground F1. Orange bars are the full SPECTRA pipeline with BRE and ST-LoRA. (Fig. 5 in the paper.)

Does ST-LoRA select useful stage-wise ranks?

Twelve small plots, one per GeoFM and dataset, of macro mIoU against the percentage of trainable parameters for linear probing, uniform LoRA ranks, surgical tuning, SPECTRA and full fine-tuning.
Accuracy against trainable parameters for every GeoFM–dataset pair. (Fig. 6 in the paper.)

Each panel plots macro mIoU against the share of trainable parameters. Points further left train fewer parameters; points higher are more accurate. SPECTRA generally sits far left of full fine-tuning and surgical tuning while staying competitive with, or above, nearby LoRA ranks.

The table below isolates rank allocation on Sen1Floods11. Rows M1–M8 are manually designed schedules with different depth preferences and budgets; the highlighted row is chosen by the ST-LoRA planner. A larger rank budget does not automatically give better accuracy, and the planner lands on an efficient schedule without searching the \(|\mathcal{R}|^S\) possible rank combinations.

ScheduleRanks, stage 1→4Rank budgetTrainable paramsMacro mIoU (%)
GeoFM: Prithvi-EO-2.0 600M
Manual M1 [4, 4, 8, 16]3223.94M86.58 ± 0.71
Manual M2 [16, 8, 4, 4]3223.94M84.98 ± 2.37
Manual M3 [8, 16, 16, 8]4826.57M85.85 ± 2.13
Manual M4 [4, 8, 16, 32]6028.53M85.85 ± 1.47
Manual M5 [32, 16, 16, 8]7230.50M85.02 ± 2.39
Manual M6 [8, 16, 24, 32]8031.81M85.22 ± 1.89
Manual M7 [4, 8, 16, 64]9233.77M86.05 ± 1.05
Manual M8 [64, 32, 16, 8]12038.36M85.15 ± 2.89
ST-LoRA planner [8, 16, 16, 8]4826.35M85.88 ± 1.24
GeoFM: ScaleMAE
Manual M1 [4, 4, 8, 16]3218.23M85.27 ± 1.77
Manual M2 [16, 8, 4, 4]3218.23M84.98 ± 1.82
Manual M3 [8, 16, 16, 8]4819.80M84.63 ± 1.75
Manual M4 [4, 8, 16, 32]6020.98M85.15 ± 1.83
Manual M5 [32, 16, 16, 8]7222.16M84.99 ± 1.67
Manual M6 [8, 16, 24, 32]8022.95M85.25 ± 1.68
Manual M7 [4, 8, 16, 64]9224.13M85.12 ± 1.89
Manual M8 [64, 32, 16, 8]12026.88M85.01 ± 1.59
ST-LoRA planner [16, 32, 16, 16]8022.95M85.29 ± 2.17

Stage-wise LoRA with BRE on Sen1Floods11; bars sketch the rank per stage (Table 6 in the paper).

Scope and limits

Quick start

Install the package, point it at your datasets, and fine-tune. Full setup, dataset sources and every baseline command are in the README; the hyperparameters behind each table row are in the hyperparameter appendix.

git clone https://github.com/big-data-lab-umbc/SPECTRA.git
cd SPECTRA
pip install -e .

# where the Sen1Floods11 hand-labeled data lives
export SPECTRA_SEN1FLOODS11_ROOT=/path/to/sen1floods11

SPECTRA (BRE + ST-LoRA) on Prithvi-EO-2.0 600M and Sen1Floods11:

CUDA_VISIBLE_DEVICES=0 python scripts/finetune.py \
  --config configs/prithvi_sen1floods11.yaml \
  --method spectra \
  --st-planner repair \
  --seed 42 --split-seed 42 \
  --loss-mode ce_dice_dwa \
  --save-checkpoints

The matched LoRA-32 baseline with band selection:

CUDA_VISIBLE_DEVICES=0 python scripts/finetune.py \
  --config configs/prithvi_sen1floods11.yaml \
  --method lora32 \
  --seed 42 --split-seed 42 \
  --loss-mode ce_dice_dwa \
  --save-checkpoints

Data sources and references

Everything used in the paper is public. Numbers in brackets point to the reference list below.

Foundation models studied

GeoFMPretraining dataInput interfaceBands KBackbonePaperWeights and code
Prithvi-EO-2.0HLS (Landsat/Sentinel-2)HLS optical6ViT-Huge[1]Weights (600M) · Code
SatMAEfMoW-Sentinel / Sentinel-2Sentinel-2 multispectral10ViT-Large[2]Code and weights
ScaleMAEfMoW/ImageNet RGBRGB3ViT-Large[3]TorchGeo implementation

Downstream datasets

DatasetInput sourceBands CClassesTaskReferenceDownload
Sen1Floods11Sentinel-2 / Sen1Floods11132Flood[4]GitHub
FireScarsHLS FireScars / GEO-Bench62Burn-scar[6]Hugging Face: HLS Burn Scar Scenes
Landslide4SenseSentinel-2 + DEM channels142Landslide[5]Hugging Face mirror
SA Crop TypeSentinel-2 L2A / GEO-Bench1210Crop-type[6]GEO-Bench · Hugging Face

Software this work builds on

ComponentUsed forReferenceCode
TerraTorchPrithvi segmentation task and the shared UPerNet decoder[10]github.com/torchgeo/terratorch
LoRAReference implementation behind the LoRA adapters[7]github.com/microsoft/LoRA
LogMEReference implementation of the transferability score used by the ST-planner[9]github.com/thuml/LogME

References

  1. Daniela Szwarcman et al. Prithvi-EO-2.0: A Versatile Multi-Temporal Foundation Model for Earth Observation Applications. IEEE Transactions on Geoscience and Remote Sensing, 2025. [arXiv]
  2. Yezhen Cong et al. SatMAE: Pre-training Transformers for Temporal and Multi-Spectral Satellite Imagery. Advances in Neural Information Processing Systems, 2022.
  3. Colorado J. Reed et al. Scale-MAE: A Scale-Aware Masked Autoencoder for Multiscale Geospatial Representation Learning. Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023.
  4. Derrick Bonafilia et al. Sen1Floods11: A Georeferenced Dataset to Train and Test Deep Learning Flood Algorithms for Sentinel-1. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 2020.
  5. Omid Ghorbanzadeh et al. Landslide4Sense: Reference Benchmark Data and Deep Learning Models for Landslide Detection. IEEE Transactions on Geoscience and Remote Sensing, 2022.
  6. Alexandre Lacoste et al. GEO-Bench: Toward Foundation Models for Earth Monitoring. Advances in Neural Information Processing Systems, 2023.
  7. Edward J. Hu et al. LoRA: Low-Rank Adaptation of Large Language Models. International Conference on Learning Representations, 2022.
  8. Yoonho Lee et al. Surgical Fine-Tuning Improves Adaptation to Distribution Shifts. International Conference on Learning Representations, 2023.
  9. Kaichao You et al. LogME: Practical Assessment of Pre-trained Models for Transfer Learning. Proceedings of the 38th International Conference on Machine Learning, 2021.
  10. Tete Xiao et al. Unified Perceptual Parsing for Scene Understanding. Proceedings of the European Conference on Computer Vision, 2018.

The complete reference list is in the paper.

BibTeX

@inproceedings{li2026spectra,
  title     = {SPECTRA: Band-Routed Embedding and Stage-Wise LoRA for Cross-Sensor Fine-Tuning of Geospatial Foundation Models},
  author    = {Li, Xingyan and Caraballo-Vega, Jordan A. and Gong, Jie and Carroll, Mark L. and Wang, Jianwu},
  booktitle = {The 34th ACM International Conference on Advances in Geographic Information Systems (SIGSPATIAL '26)},
  year      = {2026},
  address   = {Riverside, CA, USA},
  publisher = {ACM},
  doi       = {10.1145/3841645.3842981},
  eprint    = {2608.01751},
  archivePrefix = {arXiv}
}