GFM: Building Geospatial Foundation Models via Continual Pretraining

Matías Mendieta, Boran Han, Xingjian Shi, Yi Zhu, Chen Chen, Mu Li · OpenReview

Abstract

Geospatial technologies are becoming increasingly essential for applications like agriculture, urban planning, and disaster response. To improve deep learning models in this domain, researchers have explored foundation models, but existing approaches often face limited performance benefits or prohibitive training costs. We propose a novel paradigm for building effective geospatial foundation models with minimal resource cost and carbon impact. We first construct a diverse dataset, GeoPile, and then introduce a multi-objective continual pretraining paradigm that leverages ImageNet-22k representations while learning in-domain features. Our approach, GFM, outperforms previous state-of-the-art methods across seven downstream tasks including change detection, classification, and semantic segmentation.

Introduction

Foundation models have revolutionized computer vision, yet their application to geospatial imagery remains challenging. Satellite and aerial data differ significantly from the natural images found in datasets like ImageNet, creating a substantial "domain gap." Traditionally, researchers have either used off-the-shelf models pretrained on natural images or trained massive models from scratch on satellite data. The former often lacks domain-specific nuances, while the latter is environmentally and computationally expensive, often failing to capture general visual principles. GFM addresses this efficiency-performance trade-off by proposing a "best of both worlds" approach: continual pretraining.

Methodology

The core of GFM is a multi-objective continual pretraining framework that integrates general visual knowledge with domain-specific characteristics.

Multi-Objective Continual Pretraining

GFM utilizes a teacher-student framework. A frozen Swin Transformer, pretrained on ImageNet-22k, acts as the teacher. The student model (GFM) is initialized and guided by the teacher through two simultaneous objectives:

  1. Feature Distillation: The student mimics the teacher's intermediate representations to retain general visual features like edges and textures.
  2. Masked Image Modeling (MIM): The student reconstructs masked patches of satellite images, forcing it to learn domain-specific spatial layouts and patterns.
GFM Multi-objective Continual Pretraining Framework

The GeoPile Dataset

Data diversity is prioritized over raw volume. The authors introduced GeoPile, a curated dataset of approximately 600,000 images. It combines unlabeled high-resolution NAIP imagery with several labeled datasets (RSD46-WHU, MLRSNet, RESISC45, and PatternNet). This composition ensures higher image entropy compared to standard Sentinel-2 datasets, providing a richer signal for learning.

Results and Discussion

GFM was evaluated on seven downstream benchmarks, including OSCD (change detection), UC Merced (classification), and WHU Aerial (segmentation).

Performance and Efficiency

GFM consistently outperformed both ImageNet-only baselines and specialized geospatial models like SatMAE. As shown in the comparison table, GFM achieved a 3.31% improvement in Average Relative Performance (ARP) over the ImageNet-22k baseline. Notably, GFM achieved these results with significantly less compute—requiring only 93.3 V100 GPU hours, an 8x reduction compared to training from scratch.

Comparison of GFM with other pretraining methods

Key Insights

  • Active Distillation: Simply fine-tuning ImageNet weights is insufficient. The active distillation from a teacher during pretraining is critical for bridging the domain gap.
  • Diversity over Volume: The paper shows that training on the diverse GeoPile (600k images) yielded better results than training on 1.3 million less-diverse images (Sentinel-2).

Conclusion

GFM demonstrates that high-performance geospatial foundation models can be built efficiently. By leveraging continual pretraining and a diverse, compact dataset, GFM achieves state-of-the-art results while minimizing environmental impact. Future work includes extending the framework to multi-spectral data and exploring even larger model architectures.

Summary updated

BibTeX
@inproceedings{mendieta2023gfm,
  author = {Matías Mendieta and Boran Han and Xingjian Shi and Yi Zhu and Chen Chen and Mu Li},
  title = {{GFM: Building Geospatial Foundation Models via Continual Pretraining}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.01541},
}
Figure