[Paper Review] Convolution Meets LoRA: Parameter Efficient Finetuning for Segment Anything Model
Conv-LoRA is a parameter-efficient fine-tuning method that injects lightweight convolutional priors into SAM’s ViT encoder via a MoE-guided set of scale-specific experts, improving segmentation across diverse domains while keeping most SAM weights frozen.
The Segment Anything Model (SAM) stands as a foundational framework for image segmentation. While it exhibits remarkable zero-shot generalization in typical scenarios, its advantage diminishes when applied to specialized domains like medical imagery and remote sensing. To address this limitation, this paper introduces Conv-LoRA, a simple yet effective parameter-efficient fine-tuning approach. By integrating ultra-lightweight convolutional parameters into Low-Rank Adaptation (LoRA), Conv-LoRA can inject image-related inductive biases into the plain ViT encoder, further reinforcing SAM's local prior assumption. Notably, Conv-LoRA not only preserves SAM's extensive segmentation knowledge but also revives its capacity of learning high-level image semantics, which is constrained by SAM's foreground-background segmentation pretraining. Comprehensive experimentation across diverse benchmarks spanning multiple domains underscores Conv-LoRA's superiority in adapting SAM to real-world semantic segmentation tasks.
Motivation & Objective
- Motivate improving SAM’s performance in domain-specific segmentation where zero-shot SAM struggles (medical, remote sensing, etc.).
- Propose a parameter-efficient finetuning method that preserves SAM’s knowledge while enabling image-related local priors.
- Develop Conv-LoRA by augmenting LoRA with lightweight convolutions and a mixture-of-experts to handle multi-scale features.
- Demonstrate that Conv-LoRA outperforms other PEFT methods across natural images, agriculture, remote sensing, and healthcare datasets.
Proposed method
- Build on LoRA by inserting a bottleneck around the transformer weights and adding lightweight convolutions (Conv-LoRA).
- Use a mixture-of-experts (MoE) to create multiple scale-specific convolution experts and a gating mechanism that selects top-k experts dynamically during the forward pass.
- Inject local priors at appropriate feature scales by having each expert upsample, convolve, and downsample feature maps back to the ViT’s default scale.
- Remove the prompt encoder for end-to-end finetuning and add a lightweight classification branch in the mask decoder for multi-class segmentation.
- Train all methods with a small set of trainable parameters while freezing SAM’s pretrained weights; use an auxiliary loss to balance expert usage.
- Compare Conv-LoRA against baselines including decoder-only fine-tuning, BitFit, Adapter, SAM-Adapter, VPT, LST, SSF, and LoRA across diverse datasets.
Experimental results
Research questions
- RQ1Can PEFT, specifically Conv-LoRA, restore and enhance SAM’s ability to learn high-level semantic information while preserving its segmentation knowledge?
- RQ2Does injecting multi-scale local priors via MoE-guided Conv-LoRA improve binary and multi-class semantic segmentation across natural images, agriculture, remote sensing, and medical datasets?
- RQ3How does Conv-LoRA compare to other PEFT methods in terms of performance, parameter overhead, and training efficiency?
- RQ4Is an end-to-end SAM feasible for segmentation tasks when prompting is kept constant and a multi-class decoder branch is added?
Key findings
- Conv-LoRA consistently outperforms other PEFT methods across natural images, agriculture, remote sensing, and healthcare benchmarks.
- Conv-LoRA adds negligible parameter overhead compared to LoRA while delivering clear performance gains.
- MoE-based dynamic scale selection yields training speedups and memory savings versus multi-scale fusion.
- Fine-tuning the image encoder (even with PEFT) is more beneficial for segmentation quality (mIoU, Dice) than decoder-only tuning.
- SAM’s pretraining on binary mask prediction limits high-level semantic learning, which Conv-LoRA helps recover.
- End-to-end adaptation of SAM for multi-class segmentation is achieved with a simple architectural modification and PEFT.
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.