FlexiMo: A Flexible Remote Sensing Foundation Model

Xuyang Li, Chenyu Li, Pedram Ghamisi, Danfeng Hong, Jón Atli Benediktsson, Jocelyn Chanussot

TL;DR

This paper introduces FlexiMo, a novel foundation model for remote sensing that overcomes the limitations of fixed spatial resolutions and patch sizes in existing models. By dynamically adapting to varying image dimensions and spectral characteristics, FlexiMo significantly improves generalization and robustness across diverse downstream tasks, making it more practical for real-world applications.

What Problem Does This Paper Address?

The field of Earth observation is booming with multi-source satellite imagery, creating a need for powerful "foundation models" that can interpret this data. However, current models, particularly those based on Vision Transformers (ViTs), struggle with the inherent heterogeneity of satellite data. Specifically, they are often trained with fixed spatial resolutions and patch sizes. This rigidity leads to two main problems:

  1. Rigid Tokenization: When an image is broken into fixed-size patches (e.g., 16x16 pixels), the resulting sequence of "tokens" varies in length with image resolution. This disrupts positional encodings, hindering the model's ability to accurately capture spatial details.
  2. Multi-scale Perception Conflict: A fixed patch size chosen during pre-training creates a trade-off. For high-resolution images, small patches lead to high computational costs, while for low-resolution images, larger patches risk losing crucial fine-grained information. This is visually illustrated in Figure 1, showing how image detail is lost or distorted across different resolutions.

Furthermore, existing models often fail to adapt to varying numbers of spectral channels from different sensors, potentially disrupting the physical properties of the data. Addressing these challenges is crucial for developing more adaptable and effective foundation models for remote sensing.

Methods

FlexiMo tackles these issues with two core innovations:

  1. Spatial Resolution-Aware Module: This is the heart of FlexiMo's flexibility. It uses a parameter-free alignment embedding mechanism to dynamically adjust patch embeddings based on the input image's resolution and chosen patch size. Instead of modifying the network architecture, it employs a "pseudo-inverse" of bilinear interpolation. This technique, called PI-Resize, effectively "inverts" the distortion introduced by standard resizing, preserving essential embedding properties like token norms and enabling consistent extraction of multi-scale features without losing information. This allows the model to adapt its internal representation to match the input's spatial characteristics.
  2. Lightweight Channel Adaptation Module: To handle varying spectral information (different numbers of sensor bands), FlexiMo uses a wavelength-guided dynamic weight generator. It treats the central wavelength of each channel as prior knowledge. This information is used to dynamically generate convolution kernels tailored to the specific spectral characteristics of the input image. This ensures that the model can process images with different channel counts while preserving the physical integrity of the sensor data.

Datasets

The paper evaluates FlexiMo on a diverse set of datasets, covering various modalities, resolutions, and tasks:

  • EuroSAT [31]: Sentinel-2 MSI (13 bands) dataset for scene classification. It includes images with resolutions of 10m, 20m, and 60m.
  • EuroSAT-SAR [32]: Sentinel-1 SAR dataset for scene classification, featuring two channels (VV, VH).
  • SegMunich [7]: Sentinel-2 MSI dataset for land cover classification, focusing on the Munich region.
  • WHU-Building [33]: High-resolution aerial and satellite imagery for building extraction.
  • GF12MS-WHU [34]: Gaofen-1/2 MS and PAN images for cloud detection.

The paper does not introduce new datasets but leverages existing benchmarks to demonstrate FlexiMo's adaptability across different sensor types and data characteristics.

Key Insights and Ideas

  • Spatial Resolution as a First-Class Citizen: The paper argues that spatial resolution is as critical as spectral information for remote sensing. FlexiMo's core contribution is treating spatial resolution adaptability as a fundamental requirement for foundation models, not an afterthought.
  • Parameter-Free Adaptation is Key: The Spatial Resolution-Aware Module is parameter-free, meaning it doesn't require additional training to adapt to new resolutions. This makes it highly efficient and plug-and-play.
  • Physical Consistency Matters: The channel adaptation module, guided by wavelength information, ensures that the model respects the physical properties of the sensor data, preventing artifacts or misinterpretations that could arise from arbitrary channel manipulation.
  • Balancing Performance and Computation: Ablation studies highlight that while smaller patch sizes generally improve performance, they drastically increase computational cost. FlexiMo's framework allows for finding an optimal balance between these factors.

Key Results

FlexiMo demonstrates state-of-the-art (SOTA) performance across a range of downstream tasks:

  • EuroSAT: Achieved an accuracy of 99.43% even with extremely small image sizes (56x56), showing remarkable robustness to scale variations.
  • EuroSAT-SAR: Showed significant improvements, with accuracy increasing by 3.32% when reducing patch size from 16x16 to 8x8 on a 128x128 image.
  • SegMunich: Outperformed the second-best method by 1.4 mIoU for semantic segmentation.
  • WHU-Building: Achieved an mIoU of 94.8, 1.2 points higher than the next best method for building extraction.
  • GF12MS-WHU: Improved mIoU by 0.6 points compared to DOFA for cloud detection.

Qualitatively, the paper shows that as patch size decreases, FlexiMo extracts building edges more effectively and reduces misclassification/omission rates in cloud detection.

Limitations and Future Work

  • Pre-training Dependency: The dynamic weight generator for channel adaptation requires extensive pre-training. If skipped, performance might be inferior to standard Transformers.
  • Computational Cost vs. Performance: While FlexiMo offers flexibility, there's a trade-off between smaller patch sizes (better performance) and computational cost (larger patch sizes are more efficient). Future work could explore more sophisticated strategies to balance these.
  • Further Exploration of Multimodality: While the paper mentions multimodal data, future work could delve deeper into how FlexiMo integrates and adapts to even more diverse sensor types and data fusion scenarios.
  • Physical Consistency Validation: The paper mentions validating physical consistency through wavelength permutation tests. Further exploration into how FlexiMo handles physically incorrect spectral metadata could be beneficial.

Summary updated

BibTeX
@misc{li2025fleximo,
  author = {Xuyang Li and Chenyu Li and Pedram Ghamisi and Danfeng Hong and Jón Atli Benediktsson and Jocelyn Chanussot},
  title = {{FlexiMo: A Flexible Remote Sensing Foundation Model}},
  year = {2025},
  eprint = {2503.23844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.23844},
}
Figure