Exploring Masked Autoencoders for Sensor-Agnostic Image Retrieval in Remote Sensing

Jakob Hackstein, Gencer Sumbul, Kai Norman Clasen, Begüm Demir

TL;DR

This paper introduces Cross-Sensor Masked Autoencoders (CSMAEs), a novel self-supervised framework designed for "sensor-agnostic" image retrieval in remote sensing. By adapting the vanilla Masked Autoencoder (MAE) to handle multi-modal data through cross-modal reconstruction and latent similarity preservation, the authors enable effective searching for semantically similar images across different sensors (e.g., SAR vs. multispectral) without requiring expensive manual labels.

What Problem Does This Paper Address?

Remote sensing (RS) archives are exploding in size, but the data comes from a diverse array of sensors—Synthetic Aperture Radar (SAR), multispectral, hyperspectral, etc.—each with unique physical characteristics. While Content-Based Image Retrieval (CBIR) is essential for navigating these archives, most existing methods are "uni-modal," meaning they only work within a single sensor type.

The challenge lies in cross-sensor retrieval: finding a multispectral image that matches the semantic content of a SAR query. Self-supervised learning, particularly Masked Image Modeling (MIM) via Masked Autoencoders, has shown great promise for single-sensor RS data. However, standard MAEs are designed to reconstruct an image from itself. This paper tackles the gap of how to adapt these powerful self-supervised learners to bridge the gap between different sensor modalities.

Methods

The authors propose CSMAEs, which extend the vanilla Vision Transformer (ViT)-based MAE architecture to a multi-modal setting. The core workflow involves masking patches from a pair of images (e.g., SAR and multispectral) covering the same area and training the model to reconstruct the missing parts.

Key innovations include:

  1. Multi-Modal Masking Correspondences: The authors explored three ways to mask image pairs: Identical (same areas masked in both), Disjoint (different areas masked), and Random.
  2. Architectural Flexibility: They introduced four variants (see Figure 3) based on whether the encoders and decoders are shared across sensors (Common) or tailored to each (Specific):
  3. CSMAE-CECD: Common Encoder, Common Decoder (most parameter-efficient).
  4. CSMAE-SESD: Specific Encoder, Specific Decoder (highest capacity).
  5. Reformulated Learning Objectives: Beyond standard uni-modal reconstruction, they added a cross-modal reconstruction loss (reconstructing sensor A from sensor B's unmasked patches) and latent similarity preservation losses ($\mathcal{L}_{MDE}$ and $\mathcal{L}_{MIM}$) to ensure the latent representations of different sensors are aligned in the same embedding space.
Illustration of the four CSMAE architectural variants

Datasets

The study utilized the BigEarthNet benchmark archive, a massive multi-modal dataset containing 590,326 image pairs from Sentinel-1 (SAR) and Sentinel-2 (multispectral) satellites.

  • BEN-270K: A large subset used for robust training.
  • BEN-14K: A smaller subset used for detailed sensitivity analysis and evaluation. Retrieval performance was measured using the $F_1$ score on the top-10 retrieved images.

Key Insights and Ideas

  • Cross-Modal Reconstruction is Essential: Simply training two separate MAEs isn't enough. The model must learn to "translate" between sensors at the pixel level to capture shared semantic content.
  • The "Goldilocks" Masking Strategy: Random masking correspondence generally outperformed Identical (too hard) and Disjoint (too easy) strategies, providing the best training signal for cross-modal tasks.
  • Latent Alignment Matters: Adding a contrastive-style loss ($\mathcal{L}_{MIM}$) to the reconstruction task significantly boosted retrieval accuracy, as it explicitly forces the model to map different sensor views of the same location to nearby points in feature space.
  • Domain Expertise Beats Scale: CSMAEs trained on 270k RS image pairs outperformed massive models like CLIP or ImageNet-pretrained ViTs trained on millions of natural images, highlighting the unique spectral and spatial characteristics of satellite data.

Key Results

  • Superior Retrieval: CSMAEs consistently outperformed baselines like standard MAE, SS-CMIR, and MaskVLM. For example, on the BEN-14K dataset, CSMAE-CESD achieved over 41% higher $F_1$ score for cross-modal retrieval compared to a standard MAE.
  • Efficiency: The CSMAE-CECD variant achieved competitive results while using significantly fewer parameters than other state-of-the-art cross-modal models (e.g., ~114M vs ~259M for SS-CMIR).
  • Robustness to Patch Size: Sensitivity analysis showed that a $15 \times 15$ patch size offered the best balance for both uni-modal and cross-modal tasks (see Figure 5).
Table showing sensitivity to patch size

Limitations and Future Work

While highly effective for image retrieval, the authors note that CSMAEs have primarily been evaluated in the context of CBIR. They suggest that these models could serve as powerful foundation models for other remote sensing tasks.

Future work includes:

  • Evaluating CSMAEs for downstream tasks like semantic segmentation and scene classification.
  • Scaling the architecture with deeper ViT backbones and even larger multi-sensor training sets.
  • Investigating the effectiveness of CSMAEs for more than two simultaneous modalities.

Summary updated

BibTeX
@article{hackstein2025exploring,
  author = {Jakob Hackstein and Gencer Sumbul and Kai Norman Clasen and Begüm Demir},
  title = {{Exploring Masked Autoencoders for Sensor-Agnostic Image Retrieval in Remote Sensing}},
  journal = {IEEE TGRS},
  year = {2025},
  doi = {10.1109/tgrs.2024.3517150},
}
Figure