How Effective is Pre-training of Large Masked Autoencoders for Downstream Earth Observation Tasks?

Jose Sosa, Mohamed Aloulou, Danila Rukhovich, Rim Sleimi, Boonyarit Changaival, Anis Kacem, Djamila Aouada · DOI

Abstract

This study investigates the prevailing assumption that large-scale self-supervised pre-training is essential for achieving state-of-the-art performance in Earth Observation (EO) tasks. By comparing pre-trained Masked Autoencoders (MAEs), such as Prithvi and SatMAE, against Vision Transformers (ViTs) trained from scratch with optimized hyperparameters, we demonstrate that "training from scratch" often matches or exceeds the performance of foundation models in segmentation and classification tasks. While pre-training remains superior for reconstruction tasks like cloud gap imputation, our findings suggest that strategic hyperparameter tuning can bridge the performance gap in many downstream EO applications, offering a more compute-efficient alternative to massive foundation models.

Introduction

The current paradigm in Earth Observation (EO) research heavily favors a "pre-train then fine-tune" approach. Massive foundation models, such as IBM and NASA’s Prithvi, are trained on vast quantities of unlabeled satellite imagery with the goal of learning universal representations. These models are expected to generalize across diverse tasks, from crop identification to flood mapping. However, the computational cost of pre-training is substantial. This paper addresses a critical oversight in existing literature: the lack of rigorous hyperparameter optimization for models trained from scratch. We ask whether foundation models are truly indispensable if "from scratch" models are given the same level of tuning.

Methodology

The researchers compared two primary experimental settings:

  1. Setting 1 (Pre-trained): Initializing a Vision Transformer (ViT) encoder with weights from established foundation models (Prithvi or SatMAE) followed by task-specific fine-tuning.
  2. Setting 2 (From Scratch): Initializing the same ViT architecture with random weights and training exclusively on labeled downstream datasets.

A key contribution of this work is the application of strategic hyperparameter tuning to the "from scratch" models ("Scratch + hyp"). This included optimizing learning rates, utilizing MultiStepLR schedulers, adjusting batch sizes, and making architectural refinements (e.g., reducing heads and layers) to suit specific EO tasks.

Comparison of the two experimental settings: Pre-trained fine-tuning (Setting 1) vs. Supervised training from scratch (Setting 2).

Experimental Setup

The evaluation spanned three core EO domains:

  • Reconstruction: Multi-Temporal Cloud Gap Imputation.
  • Segmentation: Multi-Temporal Crop Segmentation (13 classes), Sen1Floods11 (flood mapping), and Wildfire Scar Mapping.
  • Classification: EuroSAT (RGB and Multispectral land cover classification).

Results and Discussion

The results challenge the "foundation model first" narrative in several ways:

  • The Hyperparameter Gap in Segmentation: In the crop segmentation task, the "Scratch + hyp" model achieved a mean Intersection over Union (mIoU) of 47.42, notably higher than the 42.6 mIoU achieved by fine-tuning Prithvi. Similar trends were observed in flood mapping (83.11 vs 81.26 IoU) and wildfire mapping (73.99 vs 73.62 IoU).
Per-class mIoU for crop segmentation, comparing models trained from scratch with and without hyperparameter tuning against the Prithvi foundation model.
  • Task Alignment and Reconstruction: Pre-training proved most beneficial when the downstream task aligned closely with the pre-training objective. Since MAEs are trained for reconstruction, Prithvi dominated the Cloud Gap Imputation task, achieving a mean absolute error of 0.020 compared to 0.025 for the scratch model.
  • Spectral Nuance in Classification: While scratch models excelled on RGB data (97.00% vs 95.74% for SatMAE), pre-trained models like SatMAE maintained a slight edge on multispectral data (98.98% vs 98.44%). This suggests pre-training may help capture complex inter-band relationships that are difficult to learn from smaller labeled sets.

Conclusion

While foundation models offer a head start in convergence and excel in reconstruction tasks, they are not a universal panacea for EO. For many segmentation and classification tasks, well-tuned models trained from scratch can provide superior or comparable performance without the massive overhead of self-supervised pre-training. Future work should explore these dynamics in low-data regimes and across a broader range of architectures to further define the boundaries of foundation model utility in remote sensing.

Summary updated

BibTeX
@inproceedings{sosa2024how,
  author = {Jose Sosa and Mohamed Aloulou and Danila Rukhovich and Rim Sleimi and Boonyarit Changaival and Anis Kacem and Djamila Aouada},
  title = {{How Effective is Pre-training of Large Masked Autoencoders for Downstream Earth Observation Tasks?}},
  booktitle = {Workshops @ BMVC},
  year = {2024},
}
Figure