[Paper Review] RSMamba: Remote Sensing Image Classification with State Space Model
RSMamba proposes a novel State Space Model-based architecture for remote sensing image classification, enhancing the vanilla Mamba with a dynamic multi-path activation mechanism to model non-causal, 2D image data while preserving linear complexity and hardware efficiency. It achieves state-of-the-art performance across multiple remote sensing datasets, demonstrating strong potential as a backbone for future visual foundation models.
Remote sensing image classification forms the foundation of various understanding tasks, serving a crucial function in remote sensing image interpretation. The recent advancements of Convolutional Neural Networks (CNNs) and Transformers have markedly enhanced classification accuracy. Nonetheless, remote sensing scene classification remains a significant challenge, especially given the complexity and diversity of remote sensing scenarios and the variability of spatiotemporal resolutions. The capacity for whole-image understanding can provide more precise semantic cues for scene discrimination. In this paper, we introduce RSMamba, a novel architecture for remote sensing image classification. RSMamba is based on the State Space Model (SSM) and incorporates an efficient, hardware-aware design known as the Mamba. It integrates the advantages of both a global receptive field and linear modeling complexity. To overcome the limitation of the vanilla Mamba, which can only model causal sequences and is not adaptable to two-dimensional image data, we propose a dynamic multi-path activation mechanism to augment Mamba's capacity to model non-causal data. Notably, RSMamba maintains the inherent modeling mechanism of the vanilla Mamba, yet exhibits superior performance across multiple remote sensing image classification datasets. This indicates that RSMamba holds significant potential to function as the backbone of future visual foundation models. The code will be available at \url{https://github.com/KyanChen/RSMamba}.
Motivation & Objective
- Address the challenge of classifying complex and diverse remote sensing scenes with variable spatio-temporal resolutions.
- Overcome the limitations of vanilla Mamba, which is restricted to causal, unidirectional sequence modeling and lacks position sensitivity.
- Develop an efficient, globally receptive, and hardware-aware architecture that maintains linear complexity while improving semantic feature abstraction for remote sensing images.
- Enable large-scale pre-training of visual models for remote sensing by combining global context modeling with computational efficiency.
- Establish a robust, scalable backbone for future visual foundation models in remote sensing applications.
Proposed method
- Partition remote sensing images into overlapping patch tokens and apply positional encoding to preserve spatial relationships.
- Construct three parallel sequences—forward, reverse, and randomly shuffled—to enable multi-directional, non-causal modeling of image features.
- Apply shared Mamba blocks to each path to model long-range dependencies with linear complexity, leveraging the state space mechanism.
- Introduce a learnable gating mechanism to adaptively fuse features from different paths, replacing simple averaging for improved performance.
- Use mean pooling or class tokens for classification head integration, with ablation showing mean pooling accelerates convergence.
- Preserve the internal structure of the vanilla Mamba block while externally enhancing its modeling capacity through path diversity and position encoding.
Experimental results
Research questions
- RQ1Can a state space model like Mamba be effectively adapted to non-causal, 2D remote sensing image data without sacrificing efficiency?
- RQ2How does multi-path scanning (forward, reverse, random) improve modeling capacity compared to single-directional or averaged approaches?
- RQ3To what extent does position encoding enhance performance in a sequence-based model for 2D images?
- RQ4How does the number of tokens and patch overlap affect classification accuracy and feature representation?
- RQ5Can RSMamba outperform existing CNN and Transformer-based models in remote sensing image classification while maintaining linear complexity?
Key findings
- RSMamba achieves a test F1-score of 91.66% on the EuroSAT dataset using mean pooling and all three scanning paths with a gating mechanism.
- The inclusion of position encoding improves performance from 90.25% (no encoding) to 92.02% (learnable encoding), demonstrating its value in spatial modeling.
- Using overlapping patches with stride 8 (224×224, k=16) improves accuracy to 92.02% F1, compared to 89.38% with non-overlapping patches (stride 16).
- Increasing input resolution from 224×224 to 384×384 boosts F1 to 92.16%, indicating that larger context and more tokens enhance feature abstraction.
- The dynamic multi-path mechanism with gating outperforms simple averaging, achieving 90.07% F1 (vs. 88.61% with mean pooling), proving adaptive fusion is more effective.
- RSMamba maintains strong performance across three diverse remote sensing datasets, outperforming state-of-the-art CNN and Transformer-based models in classification accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.