Abstract
The Segment Anything Model (SAM) has revolutionized zero-shot image segmentation, yet its massive scale poses significant challenges for domain-specific fine-tuning. While current Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA introduce additional trainable parameters, we present SAM-PARSER, a method that adapts SAM by reconstructing its existing parameter space. By applying Singular Value Decomposition (SVD) to SAM's weight matrices and training only the singular value coefficients, SAM-PARSER achieves state-of-the-art performance in specialized domains like medical and satellite imagery with 290 times fewer parameters than LoRA.
Introduction
The Segment Anything Model (SAM) is a cornerstone of modern computer vision, trained on over 1.1 billion masks to provide robust general-purpose segmentation. However, its performance often degrades when applied to specialized domains such as medical imaging or high-resolution satellite data. Adapting such a large model typically requires fine-tuning, which is computationally prohibitive if done fully.
Existing PEFT strategies, such as LoRA or Adapters, mitigate this by freezing the base model and adding a small number of trainable parameters. SAM-PARSER challenges this paradigm by asking a provocative question: Do we even need to add new parameters? If SAM is already trained on a massive dataset, its internal "vocabulary" of features should be rich enough to describe almost any scene if we simply learn how to combine them differently.
Methodology: Parameter Space Reconstruction
The core of SAM-PARSER is the concept of Parameter Space Reconstruction. The authors hypothesize that SAM’s pre-trained weights already contain a "relatively complete" set of features necessary for most visual tasks. Instead of building new structures within the model, SAM-PARSER seeks to re-weight the existing features.
The process utilizes Singular Value Decomposition (SVD). For a given weight matrix $W$ in SAM’s encoder, it is decomposed into $W = U \Sigma V^T$, where $U$ and $V$ represent the "bases" (the foundational patterns SAM already knows), and $\Sigma$ is a diagonal matrix of coefficients representing the weight of each pattern. During fine-tuning, the bases ($U$ and $V$) are kept frozen. Only the diagonal coefficients in $\Sigma$ are updated, allowing the model to "reconstruct" its parameter space for the new task.
Interestingly, the researchers found that applying this reconstruction specifically to the convolutional layers in SAM’s encoder was more effective than targeting the Transformer layers, where methods like LoRA typically focus. This suggests that the spatial priors in convolutions are more crucial for domain adaptation via reconstruction.
Experimental Results
SAM-PARSER was evaluated across five diverse datasets, including medical (CT Abdominal Organ), natural images (COCO, PASCAL VOC), and remote sensing (NWPU VHR-10, WHU Building).
Performance and Efficiency
- Superior Accuracy: On the NWPU satellite dataset, SAM-PARSER achieved an mIoU of 84.2%, outperforming LoRA (83.9%) and Adapters (82.0%). In medical organ segmentation, it reached a DSC of 90.9%, surpassing LoRA’s 90.1%.
- Extreme Sparsity: SAM-PARSER reduces the number of trainable parameters to just 0.5k (500 parameters). For comparison, LoRA typically introduces around 144k parameters for the same task—a 290x reduction.
- Inference Speed: The method maintained a faster inference speed of 5.8 FPS compared to LoRA’s 3.4 FPS in the authors' testing environment.
Discussion and Limitations
The success of SAM-PARSER rests on the "Completeness Assumption." However, the authors identified a clear breaking point: Radar images (SSDD). Because radar imagery looks fundamentally different from the natural light photos SAM was trained on, the existing internal "bases" were insufficient to reconstruct a useful parameter space. In these cases, SAM-PARSER performed worse than LoRA, which can add entirely new feature patterns.
Conclusion
SAM-PARSER offers a highly efficient alternative for fine-tuning large-scale foundation models. By reconstructing the parameter space rather than expanding it, the method achieves state-of-the-art results with minimal overhead. Future work may involve hybrid approaches—using LoRA to slightly expand the feature set and SAM-PARSER to efficiently combine them—to adapt foundation models to extremely "alien" data domains like radar or ultrasound.
Summary updated