TL;DR
This paper introduces Scale-MAE, a novel pre-training method for geospatial imagery that explicitly learns scale-aware representations. By incorporating Ground Sample Distance (GSD) into positional encodings and using a multiscale decoder, Scale-MAE significantly improves performance on downstream tasks across varying image scales, outperforming existing state-of-the-art methods.
What Problem Does This Paper Address?
Remote sensing imagery, captured by satellites and planes, inherently varies in scale. A single image can cover areas ranging from a few hundred square meters to thousands of square kilometers, meaning objects and features within these images can appear at vastly different resolutions. Traditional computer vision models, even large pre-trained ones, often overlook this crucial scale-specific information. When fine-tuned for remote sensing tasks, these models struggle to generalize across the wide range of scales present in real-world data. This leads to suboptimal performance, especially when dealing with datasets that have varying Ground Sample Distances (GSDs), which represent the physical distance between pixels. The challenge is to develop a representation learning method that can effectively handle and leverage this multiscale nature of geospatial data.
Methods
Scale-MAE builds upon the Masked Autoencoder (MAE) framework but introduces two key innovations to address the scale problem:
- Ground Sample Distance (GSD) Positional Encoding (GSDPE): Instead of standard positional encodings that only depend on pixel location within an image, Scale-MAE incorporates the GSD of the image. This GSDPE scales the positional encodings based on the actual area of ground covered by the image, providing the Vision Transformer (ViT) encoder with information about both the spatial location and the scale of the input.
- Laplacian Pyramid Decoder: Traditional MAE decoders reconstruct the image at its original resolution. Scale-MAE employs a progressive Laplacian pyramid decoder. This decoder reconstructs the image into two components: a low-frequency component (representing broader features) and a high-frequency component (representing finer details and edges). This multiscale reconstruction objective encourages the encoder to learn representations that capture information across different scales.
The overall framework involves masking input patches, encoding them with a ViT backbone augmented with GSDPE, and then decoding these embeddings into low and high-frequency representations using the Laplacian pyramid decoder.
Datasets
The paper utilizes a variety of datasets for training and evaluation, chosen for their diversity in classes and Ground Sample Distances (GSDs):
- Training: Functional Map of the World (FMoW) RGB dataset was used for pre-training.
- Evaluation (Classification):
- RESISC-45
- UC Merced Land Use Dataset
- AiRound
- CV-BrCT
- MLRSNet
- EuroSAT
- Optimal-31
- WHU-RS19
- Evaluation (Segmentation):
- SpaceNet v1 building segmentation dataset
- SpaceNet v2
- INRIA Aerial Image
- GID-15
The paper emphasizes that these datasets span a wide range of GSDs, from high-resolution aerial imagery (e.g., MLRSNet at 0.1m GSD) to medium-resolution satellite imagery (e.g., RESISC-45 at >30m GSD). For evaluation, they also created downsampled test sets to specifically assess performance at coarser GSDs than those encountered during pre-training.
Key Insights and Ideas
- Scale is Paramount in Geospatial Data: The paper strongly emphasizes that for remote sensing, scale is not just a detail but a fundamental property that dictates the nature of observable features. Ignoring it leads to models that are not truly robust.
- GSD as a Direct Scale Indicator: Using GSD directly in positional encodings is a simple yet powerful way to inject scale awareness into a transformer architecture, allowing it to understand the "real-world" size of features.
- Multifrequency Reconstruction Aids Multiscale Learning: Reconstructing both low and high-frequency components of an image forces the model to learn a richer, more comprehensive representation that can handle details at different resolutions.
- Reduced Decoder Complexity: The Laplacian pyramid decoder, while performing multiscale reconstruction, uses fewer transformer layers than a standard MAE decoder, leading to reduced parameter complexity.
Key Results
Scale-MAE demonstrates significant improvements across various tasks and datasets:
- kNN Classification: Achieved an average of 5.6% improvement over the state-of-the-art SatMAE and 2.4% over ConvMAE on eight remote sensing classification datasets. This improvement is particularly pronounced at coarser GSDs.
- Semantic Segmentation: Showed a 0.9 mIoU to 1.7 mIoU improvement on the SpaceNet building segmentation task across different evaluation scales, outperforming SatMAE and ConvMAE.
- Transfer Learning: In linear probing and finetuning experiments on RESISC-45 and FMoW-RGB, Scale-MAE consistently outperformed SatMAE and ConvMAE.
- Robustness: Scale-MAE's performance degrades less than other methods when evaluated on images with coarser GSDs than those seen during pre-training, highlighting its scale invariance.
Limitations and Future Work
- Multi-spectrality and Modality: Scale-MAE currently requires input tensors to be stacked, which limits its direct application to imagery where different bands have varying GSDs. The authors suggest future work could explore extending Scale-MAE to handle multi-spectral imagery with different GSDs and other modalities like SAR imagery.
- Backbone Generalization: While the paper focuses on ViT backbones, the authors believe the core components (GSDPE and Laplacian Decoder) could be integrated into other architectures like ConvNeXt.
- Computational Cost: While the decoder is more efficient, the overall GPU memory usage for Scale-MAE can be higher due to reconstructing higher-resolution images.
- Further Exploration: The authors suggest exploring the integration of the Laplacian Decoder with convolutional feature maps and applying the methodology to other backbones.
Summary updated