Transfer Learning with Pretrained Remote Sensing Transformers

Anthony Fuller, Koreen Millard, James R. GreenarXiv 2022 · DOI

Abstract

Distribution shifts pose a significant challenge in remote sensing, where models trained on specific geographic regions often fail to generalize globally. This paper evaluates the impact of large-scale pretraining on Vision Transformers (ViTs) for land-cover classification. We introduce SatViT-V2, a model pretrained on 1.3 million satellite images using Masked Autoencoding (MAE). By implementing a Linear Probe Fine-Tuning (LPFT) strategy, we demonstrate that pretrained transformers achieve superior accuracy and better calibration compared to standard convolutional neural networks (CNNs) and non-pretrained models when faced with unfamiliar biomes.

Introduction

In the field of remote sensing (RS), labeled data is often scarce and geographically biased. A model trained on North American forests may perform poorly on African savannas due to spatial distribution shifts. While the broader computer vision community has successfully leveraged massive pretraining to build robust "foundation models," the RS community is still investigating how these models handle the unique challenges of multi-spectral satellite data and extreme geographic diversity. This research addresses whether pretrained transformers can provide the necessary robustness to bridge these geographic gaps.

Methods

The authors build upon the SatViT-V1 architecture, introducing several key technical refinements to enhance performance and robustness.

SatViT-V2 Architecture and Pretraining

SatViT-V2 utilizes a Vision Transformer (ViT-Base) with a reduced patch size of 8x8 pixels, allowing the model to capture the fine-grained spatial details essential for land-cover classification. The model is pretrained using Masked Autoencoding (MAE) on a dataset of 1.3 million image pairs from Sentinel-1 (Radar) and Sentinel-2 (Optical) across six global regions. During pretraining, 75% of the input image is masked, and the model is tasked with reconstructing the missing pixels, thereby learning the fundamental structural features of the Earth's surface in a self-supervised manner.

Fine-Tuning Strategy: LPFT

To preserve the general features learned during pretraining, the authors employ Linear Probe Fine-Tuning (LPFT). Unlike standard fine-tuning, which can distort pretrained features, LPFT involves a two-step process: first, training only the classification head (the linear probe) while keeping the transformer backbone frozen; second, fine-tuning the entire model.

The multi-stage training pipeline for SatViT-V2, including pretraining and Linear Probe Fine-Tuning (LPFT).

Evaluation Framework

The models were evaluated using the DynamicWorld dataset, which provides expert-labeled land-use/land-cover (LULC) data. The study involved a comprehensive "all-to-all" transfer analysis across 14 distinct global biomes, such as Tundra, Mangroves, and Tropical Moist Forests, totaling 1,638 individual experiments.

Key Results

The experimental results highlight the clear advantages of large-scale pretraining and the LPFT strategy.

Performance Gains

SatViT-V2 outperformed its predecessor, SatViT-V1, by 3.1% on in-distribution (ID) data and 2.8% on out-of-distribution (OOD) data. More significantly, pretrained models outperformed non-pretrained baselines (such as UNet and ResUNet) by an average of 6.5% on unseen biomes.

Comparison of In-Distribution (ID) vs. Out-of-Distribution (OOD) accuracy across different models and fine-tuning strategies.

Robustness and Calibration

A critical finding is that SatViT-V2 (LPFT) achieved the highest OOD accuracy (~61%) and demonstrated superior calibration. Using Temperature Scaling, the authors ensured that the model's confidence scores accurately reflected its true probability of being correct. Pretrained transformers were found to be much better calibrated than CNNs, which is vital for deploying models in real-world scenarios where uncertainty must be communicated honestly.

Discussion and Conclusion

The study confirms that large-scale pretraining significantly enhances the robustness of RS models against spatial distribution shifts. The LPFT strategy proved effective in boosting OOD performance by 2.4% without sacrificing ID accuracy. Furthermore, the correlation between model confidence and actual accuracy suggests that calibrated confidence can serve as a reliable proxy for performance in new regions.

While the computational cost of pretraining remains a hurdle, the resulting "foundation models" offer a path toward more reliable global environmental monitoring. Future research will explore the integration of these models with active domain adaptation techniques to further minimize the performance gap between disparate geographic biomes.

Summary updated

BibTeX
@misc{fuller2022transfer,
  author = {Anthony Fuller and Koreen Millard and James R. Green},
  title = {{Transfer Learning with Pretrained Remote Sensing Transformers}},
  year = {2022},
  eprint = {2209.14969},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.14969},
}
Figure