Parameter Efficient Fine-tuning via Cross Block Orchestration for Segment Anything Model

Zelin Peng, Zhengqin Xu, Zhilin Zeng, Lingxi Xie, Qi Tian, Wei ShenCVPR 2023

Abstract

Parameter-efficient fine-tuning (PEFT) is an effective methodology to unleash the potential of large foundation models in novel scenarios with limited training data. In the computer vision community, PEFT has shown effectiveness in image classification, but little research has studied its ability for image segmentation. Fine-tuning segmentation models usually requires a heavier adjustment of parameters to align the proper projection directions in the parameter space for new scenarios. This raises a challenge to existing PEFT algorithms, as they often inject a limited number of individual parameters into each block, which prevents substantial adjustment of the projection direction of the parameter space due to the limitation of Hidden Markov Chain along blocks. In this paper, we equip PEFT with a cross-block orchestration mechanism to enable the adaptation of the Segment Anything Model (SAM) to various downstream scenarios. We introduce a novel inter-block communication module, which integrates a learnable relation matrix to facilitate communication among different coefficient sets of each PEFT block's parameter space. Moreover, we propose an intra-block enhancement module, which introduces a linear projection head whose weights are generated from a hyper-complex layer, further enhancing the impact of the adjustment of projection directions on the entire parameter space. Extensive experiments on diverse benchmarks demonstrate that our proposed approach consistently improves the segmentation performance significantly on novel scenarios with only around 1K additional parameters.

Introduction

While Large Foundation Models like the Segment Anything Model (SAM) demonstrate remarkable zero-shot capabilities, they often require fine-tuning to achieve high performance in specialized downstream domains, such as medical imaging or remote sensing. Standard Parameter-Efficient Fine-Tuning (PEFT) methods, including LoRA or Adapters, typically inject a small number of trainable parameters into each transformer block independently.

However, this local approach creates a "Hidden Markov Chain" (HMC) effect, where each layer's adjustment is primarily influenced by its immediate neighbors. For complex tasks like image segmentation, which require significant shifts in the parameter space's projection directions to align with new data distributions, this sequential bottleneck is too restrictive.

Conceptual comparison between (a) traditional individual block adjustment limited by Hidden Markov Chains and (b) the proposed cross-block orchestration for better projection direction alignment.

Methodology: SAM-COBOT

To address these limitations, we propose SAM-COBOT (CrOss-BLock OrchesTration), a framework designed to be "plug-and-play" with existing PEFT methods. It introduces two primary components:

Inter-block Communication (IBC) Module

The IBC module breaks the sequential bottleneck by treating the tuning coefficients of all blocks as a single global tensor. By introducing a learnable relation matrix and utilizing the T-product operation, the module allows parameter adjustments in early layers to directly influence deeper layers. This "orchestration" ensures the entire model adapts in a coordinated fashion rather than block-by-block.

Intra-block Enhancement (IBE) Module

To maximize the impact of the limited tuned parameters, the IBE module employs a Hyper-complex Layer (HL). Operating in a 4D hyper-complex space via the Hamilton product, this layer leverages the geometric properties of hyper-complex math (such as rotations and orthogonality). This allows the model to find more effective directions for parameter updates, significantly altering model behavior with a minimal parameter footprint.

The SAM-COBOT architecture, illustrating the Inter-block Communication (IBC) module with a shared Relation Matrix and the Intra-block Enhancement (IBE) module.

Experimental Evaluation

We evaluated SAM-COBOT across 10 diverse datasets spanning three major domains:

  • Medical Image Segmentation: ADOME, SPLEN, MOMO, BRAST, and SEGRAP.
  • Natural Image Segmentation: COCO and TRCAN.
  • Remote Sensing: NWPU, SSDD, and SONAR.

Key Results

  • Superior Performance: SAM-COBOT consistently outperformed standard baselines like LoRA and Adaptformer across all benchmarks. For instance, on the ADOME medical dataset, it improved the Dice Similarity Coefficient (DSC) by 1.2% over Adaptformer.
  • Efficiency: The entire mechanism adds approximately 1,000 parameters (roughly 0.0003% of a ViT-Base SAM model), yet achieves state-of-the-art results.
  • Robustness in Low-Dimension Settings: SAM-COBOT is particularly effective when the tuning bottleneck is very small, outperforming baselines by over 1.6% in low-dimension configurations.

Conclusion

SAM-COBOT demonstrates that "breaking the chain" of sequential transformer blocks through cross-block orchestration is a powerful strategy for PEFT in complex tasks like segmentation. By combining global communication (IBC) with geometrically-rich local enhancements (IBE), we achieve significant performance gains with negligible parameter overhead. Future work will explore the applicability of this orchestration approach to other architectures, such as Large Language Models, and multi-modal adaptation tasks.

Summary updated

BibTeX
@inproceedings{peng2023parameter,
  author = {Zelin Peng and Zhengqin Xu and Zhilin Zeng and Lingxi Xie and Qi Tian and Wei Shen},
  title = {{Parameter Efficient Fine-tuning via Cross Block Orchestration for Segment Anything Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=KSJDVsaybk},
}
Figure