SpectralX: Parameter-efficient Domain Generalization for Spectral Remote Sensing Foundation Models

Yuxiang Zhang, Wei Li, Mengmeng Zhang, Jiawei Han, Ran Tao, Shunlin Liang · DOI

Abstract

Recent advances in Remote Sensing Foundation Models (RSFMs) have led to significant breakthroughs in the field. While many RSFMs have been pretrained with massive optical imagery, more multispectral/hyperspectral data remain lack of the corresponding foundation models. To leverage the advantages of spectral imagery in earth observation, we explore whether existing RSFMs can be effectively adapted to process diverse spectral modalities without requiring extensive spectral pretraining. In response to this challenge, we proposed SpectralX, an innovative parameter-efficient fine-tuning framework that adapts existing RSFMs as backbones while introducing a two-stage training approach to handle various spectral inputs, thereby significantly improving domain generalization performance. In the first stage, we employ a masked-reconstruction task and design a specialized Hyper Tokenizer (HyperT) to extract attribute tokens from both spatial and spectral dimensions. Simultaneously, we develop an Attribute-oriented Mixture of Adapter (AoMoA) that dynamically aggregates multi-attribute expert knowledge while performing layer-wise fine-tuning. With semantic segmentation as the downstream task in the second stage, we insert an Attribute-refined Adapter (Are-adapter) into the framework. By iteratively querying low-level semantic features with high-level representations, the model learns to focus on task-beneficial attributes, enabling customized adjustment of RSFMs. Following this two-phase adaptation process, SpectralX is capable of interpreting spectral imagery from new regions or seasons. The codes are available at: https://github.com/YuxiangZhang-BIT.

Introduction and Problem Statement

Remote sensing relies on various data types: standard RGB, multispectral (MSI), and hyperspectral (HSI) imagery. While we have powerful Foundation Models (FMs) pretrained on millions of RGB images, we lack equivalent models for MSI and HSI because collecting and pretraining on such high-dimensional data is prohibitively expensive.

Furthermore, remote sensing models suffer from domain shift. A model trained on imagery from one region or season often fails when deployed in a different geography or time of year due to variations in atmospheric conditions, sensor types, and land cover phenology. Existing RSFMs are often not suitable for spectral images containing tens to hundreds of continuous spectral bands.

SpectralX addresses the limitations of standard RSFMs in handling high-dimensional spectral data and generalizing to unseen regions.

Methodology: The SpectralX Framework

SpectralX is a two-stage Parameter-Efficient Fine-Tuning (PEFT) framework designed to "upgrade" RGB foundation models for spectral data processing while ensuring generalization to unseen environments.

The two-stage SpectralX framework: Stage 1 adapts the model to spectral modalities, while Stage 2 focuses on task-oriented generalization.

The training process is divided into two distinct phases:

  1. Stage 1: Spectral Modality Adaptation: The model learns the "language" of spectral data using a masked-reconstruction task (similar to Masked Autoencoders). This stage utilizes a specialized Hyper Tokenizer (HyperT) to decouple spatial and spectral attributes and an Attribute-oriented Mixture of Adapter (AoMoA) to dynamically aggregate multi-attribute expert knowledge.
  2. Stage 2: Task-Oriented Generalization Training: The model is fine-tuned for a specific downstream task, such as semantic segmentation. An Attribute-refined Adapter (Are-adapter) is introduced here, using cross-attention to allow high-level representations to "query" low-level semantic features, helping the model focus on task-beneficial attributes while ignoring domain-specific noise.

Experimental Results and Discussion

The framework was evaluated on three benchmark datasets: WHUOHS (Hyperspectral, 32 bands), DFC2020 (Multispectral, 13 bands), and MTS12 (Multi-temporal MSI, 6 bands).

  • Superior Generalization: On the WHUOHS hyperspectral dataset, SpectralX achieved a 59.7% mIoU, a 2% improvement over the specialized HyperSIGMA and a significant jump over standard PEFT methods like LoRA (52.1%).
  • Seasonal Robustness: In seasonal transfer tasks (e.g., Winter to other seasons), SpectralX improved performance by approximately 3% mIoU compared to the base foundation models.
  • Efficiency: Remarkably, SpectralX outperformed HyperSIGMA, a foundation model specifically pretrained on 450,000 hyperspectral images. This suggests that the knowledge inside general vision models is highly transferable if the interface (the tokenizer and adapters) is designed correctly.

Conclusion

SpectralX demonstrates that decoupling spatial and spectral information is essential for bridging the gap between RGB backbones and high-dimensional spectral inputs. By using a parameter-efficient approach, it achieves state-of-the-art performance in domain generalization without the massive computational cost of spectral pretraining from scratch. Future work could explore its utility in other downstream tasks like object detection or change detection, and optimize the computational complexity for real-time processing.

Summary updated

BibTeX
@misc{zhang2025spectralx,
  author = {Yuxiang Zhang and Wei Li and Mengmeng Zhang and Jiawei Han and Ran Tao and Shunlin Liang},
  title = {{SpectralX: Parameter-efficient Domain Generalization for Spectral Remote Sensing Foundation Models}},
  year = {2025},
  eprint = {2508.01731},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01731},
}
Figure