[Paper Review] ClassWise-SAM-Adapter: Parameter Efficient Fine-tuning Adapts Segment Anything to SAR Domain for Semantic Segmentation
CWSAM adapts SAM to SAR landcover segmentation using frozen SAM with adapters, a classwise mask decoder, and a low-frequency SAR input module, achieving state-of-the-art results with fewer trainable parameters.
In the realm of artificial intelligence, the emergence of foundation models, backed by high computing capabilities and extensive data, has been revolutionary. Segment Anything Model (SAM), built on the Vision Transformer (ViT) model with millions of parameters and vast training dataset SA-1B, excels in various segmentation scenarios relying on its significance of semantic information and generalization ability. Such achievement of visual foundation model stimulates continuous researches on specific downstream tasks in computer vision. The ClassWise-SAM-Adapter (CWSAM) is designed to adapt the high-performing SAM for landcover classification on space-borne Synthetic Aperture Radar (SAR) images. The proposed CWSAM freezes most of SAM's parameters and incorporates lightweight adapters for parameter efficient fine-tuning, and a classwise mask decoder is designed to achieve semantic segmentation task. This adapt-tuning method allows for efficient landcover classification of SAR images, balancing the accuracy with computational demand. In addition, the task specific input module injects low frequency information of SAR images by MLP-based layers to improve the model performance. Compared to conventional state-of-the-art semantic segmentation algorithms by extensive experiments, CWSAM showcases enhanced performance with fewer computing resources, highlighting the potential of leveraging foundational models like SAM for specific downstream tasks in the SAR domain. The source code is available at: https://github.com/xypu98/CWSAM.
Motivation & Objective
- Bridge SAM to the SAR domain for landcover segmentation in SAR imagery.
- Achieve semantic segmentation with a parameter-efficient fine-tuning framework.
- Design a classwise mask decoder to enable multi-class pixel labeling.
- Incorporate a task-specific input module to inject low-frequency SAR information.
- Demonstrate efficiency and accuracy advantages on FUSAR-Map1.0 and FUSAR-Map2.0 datasets.
Proposed method
- Freeze SAM's Vision Transformer encoder and insert lightweight adapters in each transformer block to enable parameter-efficient fine-tuning.
- Introduce a classwise mask decoder that outputs multi-class masks from the typically binary SAM masks using a dedicated classwise prediction path.
- Attach a task-specific input module that injects low-frequency SAR information via an MLP-based fusion of 2D FFT-derived features with SAM embeddings.
- Train with Weighted Cross Entropy loss to handle unbalanced landcover categories.
- Maintain the SAM architecture for prompt encoding and mask decoding while learning only a small number of added parameters.
Experimental results
Research questions
- RQ1Can ClassWise-SAM-Adapter achieve competitive SAR landcover segmentation with substantially fewer trainable parameters compared to full fine-tuning of SAM?
- RQ2Does a classwise mask decoder provide meaningful multi-class segmentation in SAR imagery versus SAM's original mask outputs?
- RQ3What is the impact of incorporating low-frequency SAR information on segmentation performance?
- RQ4How does CWSAM compare to state-of-the-art semantic segmentation methods on FUSAR-Map1.0 and FUSAR-Map2.0 in terms of mIoU and other metrics?
Key findings
- CWSAM achieves mIoU 61.48 on FUSAR-Map1.0, outperforming several state-of-the-art methods (e.g., SegFormer variants) on multiple metrics.
- On FUSAR-Map1.0, CWSAM yields OA 82.14 and Accuracy 73.45, indicating robust overall performance.
- On FUSAR-Map2.0, CWSAM attains mIoU 36.03 and OA 67.67, achieving the best overall performance among compared methods.
- The approach demonstrates strong category-wise performance and edge delineation, with notable gains in challenging classes such as road and building.
- CWSAM uses a lightweight adapter setup with frozen SAM parameters, enabling efficient training with fewer trainable parameters and reduced memory usage.
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.