MTP: Advancing Remote Sensing Foundation Model via Multitask Pretraining

Di Wang, Jing Zhang, Minqiang Xu, Lin Liu, Dong-Sheng Wang, Erzhong Gao, Chengxi Han, Haonan Guo, Bo Du, Dacheng Tao, Liangpei Zhang · DOI

TL;DR

This paper introduces Multi-Task Pretraining (MTP), a novel approach to enhance remote sensing (RS) foundation models by training them on multiple diverse tasks simultaneously. MTP effectively bridges the gap between pretraining and downstream tasks, leading to significantly improved performance across various RS applications like object detection, segmentation, and change detection, even with limited training data.

What Problem Does This Paper Address?

Foundation models have revolutionized image interpretation, but their application to remote sensing (RS) faces a significant challenge: the "task discrepancy" between pretraining and finetuning. Models pretrained on natural images or even on single RS tasks often struggle when adapted to diverse downstream RS applications due to differences in data characteristics (e.g., bird's-eye view, lower resolution) and task formulations. Existing RS foundation models are often limited by the scarcity of large, annotated datasets, hindering their size and generalization capabilities. While supervised pretraining on large RS datasets is promising, it's labor-intensive. Self-supervised learning (SSL) offers an alternative but can still suffer from task discrepancy. This paper aims to address this by proposing a multi-task pretraining paradigm that leverages diverse RS tasks to create more robust and transferable RS foundation models.

Methods

The core of this work is the Multi-Task Pretraining (MTP) paradigm. MTP utilizes a shared encoder and task-specific decoders to train foundation models on multiple RS tasks concurrently. The authors employ a stage-wise pretraining approach, first pretraining on general datasets (like ImageNet, though not explicitly detailed for MTP itself, it's implied as a starting point for the backbone) and then further training on the specialized SAMRS dataset. SAMRS is crucial as it provides annotations for semantic segmentation, instance segmentation, and rotated object detection within a single dataset. This allows MTP to learn richer, more granular representations. The MTP framework is designed to be flexible, applicable to both Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). The pretraining objective is a combined loss function that aggregates losses from each of the three tasks.

Datasets

  • SAMRS: A large-scale RS segmentation dataset created by combining and annotating data from existing RS object detection datasets (SOTA, SIOR, and FAST) using the Segment Anything Model (SAM). It supports semantic segmentation, instance segmentation, and rotated object detection.
  • Downstream Task Datasets: The pretrained models are evaluated on 14 datasets across four RS tasks:
  • Scene Classification: EuroSAT, RESISC-45
    • Horizontal Object Detection: Xview, DIOR
    • Rotated Object Detection: DIOR-R, FAIR1M-2.0, DOTA-V1.0, DOTA-V2.0
    • Semantic Segmentation: SpaceNetv1, LoveDA
    • Change Detection: OSCD, WHU, LEVIR, SVCD/CDD

Key Insights and Ideas

  • Multi-Task Pretraining is Key to Bridging Task Discrepancy: The most significant insight is that training on multiple, diverse RS tasks (segmentation, detection) simultaneously is more effective than single-task pretraining for improving transferability to various downstream RS applications.
  • SAMRS Dataset is a Game-Changer: The availability of the SAMRS dataset, which unifies annotations for semantic segmentation, instance segmentation, and rotated object detection, is critical for enabling MTP. This dataset's creation through SAM highlights the power of large foundation models in generating valuable training data.
  • MTP Excels in Low-Data Scenarios: MTP shows a remarkable ability to boost performance when finetuning with limited training samples, suggesting it imbues models with more robust and generalizable features.
  • Diminishing Returns with Prolonged Training: While MTP generally improves performance, the benefits can diminish with excessively long finetuning periods, especially on large datasets. This suggests a trade-off between training duration and the advantages gained from MTP.
  • Stage-wise Pretraining is Crucial: Experiments show that MTP performs poorly when trained from scratch, emphasizing the importance of leveraging existing pretrained weights (e.g., from ImageNet or other RS pretraining) as a starting point.

Key Results

  • Improved Performance Across Tasks: MTP consistently improves the performance of various foundation models (ViT-B+RVSA, ViT-L+RVSA, InternImage-XL) across all four evaluated downstream RS tasks (scene classification, object detection, semantic segmentation, change detection).
  • State-of-the-Art Results: MTP-enhanced models achieve state-of-the-art or competitive results on several benchmarks, often outperforming larger models or models pretrained with different strategies. For instance, on DIOR, MTP-enhanced ViT-B+RVSA outperformed all existing methods.
  • Low-Data Finetuning Advantage: In scenarios with reduced training samples (e.g., 10% of data), MTP models show significantly better performance and wider accuracy gains compared to their non-MTP counterparts.
  • Efficiency: While MTP involves additional pretraining, the authors provide training costs (GPU time) which are presented as manageable.

Limitations and Future Work

  • Diminishing Returns with Long Finetuning: The paper notes that MTP's benefits can decrease with prolonged finetuning, suggesting a need to find optimal finetuning durations. This is linked to factors like "Average Iteration per Class" (AIC) and "Average Pixels per Class" (APC).
  • Performance Gaps on Small/Low-Resolution Datasets: MTP showed less improvement on datasets with very small volumes or significantly different image resolutions (e.g., OSCD for change detection), indicating that domain mismatch and data characteristics still play a role.
  • Decoder Reusing: While decoder parameter reusing showed benefits in some detection tasks, it decreased performance in segmentation tasks, possibly due to task-specific nature of decoders and potential errors in SAMRS-generated annotations. Further investigation into this is suggested.
  • Future Work: The authors suggest further exploration into the factors influencing MTP's effectiveness, particularly on out-of-domain datasets with small volumes and input sizes. They also highlight the need to investigate the trade-off between training duration and MTP benefits.

Summary updated

BibTeX
@article{wang2024mtp,
  author = {Di Wang and Jing Zhang and Minqiang Xu and Lin Liu and Dong-Sheng Wang and Erzhong Gao and Chengxi Han and Haonan Guo and Bo Du and Dacheng Tao and Liangpei Zhang},
  title = {{MTP: Advancing Remote Sensing Foundation Model via Multitask Pretraining}},
  journal = {IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.},
  year = {2024},
  doi = {10.1109/jstars.2024.3408154},
}
Figure