Manuscript Offprint

arXiv:2609.11703

Spectral Adapters for Segment Anything Model-based Segmentation of Colorectal Liver Metastases in Computed Tomography

Ramtin Mojtahedi, Mohammad Hamghalam, Jacob J. Peoples, Natalie Gangai, Mithat Gonen, Yun Shin Chun, HyunSeon Christine Kang, Richard K. G. Do, Amber L. Simpson

Abstract

Background and Objectives: Accurate segmentation of colorectal liver metastases (CRLM) in contrast-enhanced computed tomography (CT) is essential for response assessment, surgical planning, and longitudinal follow-up. Promptable foundation models like the Segment Anything Model (SAM) offer reusable backbones, but full fine-tuning of vision transformers is often infeasible due to GPU and time constraints. We propose two spectral adapter architectures, the Directional Spectral Adapter (DiSECT) and Spectral Instance-Guided Adapter (SiGA), to efficiently adapt SAM for CRLM segmentation in CT.

Methods: We develop SAM-based segmentation models by integrating adapter modules into a frozen SAM Vision Transformer-Base backbone. DiSECT leverages singular value decomposition of frozen weights to constrain residual updates within the leading spectral subspace, while SiGA incorporates global and input-conditioned gating through a multilayer perceptron. We compare DiSECT and SiGA with low-rank adaptation (LoRA), quantized low-rank adaptation (QLoRA), and convolutional adapter (CAD) on 446 contrast-enhanced CT volumes (355 training, 91 testing) using slice-wise experiments across single-point, three-point, bounding-box, and no-prompt regimes.

Results: Compared with standard parameter-efficient fine-tuning techniques, SiGA achieves the highest single-point performance with 0.77 Dice similarity coefficient, 0.69 intersection over union (IoU), and 35.39 mm 95th-percentile Hausdorff distance (HD95). In no-prompt inference, SiGA attains 0.76 Dice, 0.68 IoU, and 46.76 mm HD95, comparable to the nnU-Net baseline (0.758 Dice). DiSECT offers an ultra-lightweight configuration with only 0.14 million trainable parameters.

Conclusions: Spectral adapters enable SAM to deliver competitive CRLM segmentation in CT with minimal trainable parameters, facilitating efficient deployment in resource-constrained clinical environments.

Keywords: Spectral adapters; Medical image segmentation; Liver tumor; Colorectal liver metastases; Segment Anything Model; Parameter-efficient fine-tuning

1 Introduction

Liver metastases from colorectal cancer are common and clinically significant, and contrast-enhanced computed tomography (CT) remains the primary imaging modality for detection, staging, and monitoring. Accurate segmentation of colorectal liver metastases (CRLM) supports volumetric tumor burden assessment, radiomics analysis, and treatment response evaluation, but manual delineation is time-consuming and prone to inter-observer variability. Benchmarks such as the Liver Tumor Segmentation (LiTS) challenge show that liver segmentation can reach Dice similarity coefficient (DSC) values around 0.96, whereas tumor segmentation remains harder, with top DSC values between 0.67 and 0.74 [1]. CRLM-focused studies further highlight difficulties from small lesion size, low contrast, heterogeneous enhancement, scanner differences, and protocol variation [2, 3, 4]. Deep convolutional neural networks (CNNs), especially U-Net-based architectures, have advanced liver and tumor segmentation, with nnU-Net serving as a strong self-configuring baseline [5]. However, nnU-Net and related three-dimensional (3D) U-Net variants remain sensitive to domain shifts and acquisition variability [3, 24] and usually require separate task-specific networks for different organs, tumor types, scanners, and protocols, making maintenance resource-intensive [6]. Recent vision foundation models introduce promptable segmentation: the Segment Anything Model (SAM) segments objects from points, boxes, or masks using a vision-transformer image encoder, prompt encoder, and lightweight mask decoder [7]. MedSAM adapts this framework to medical imaging across modalities and anatomical structures [8], while related medical foundation models combine large-scale pretraining with task-agnostic encoders [9, 10]. These models may generalize across segmentation tasks, but full fine-tuning of large transformer backbones is computationally expensive, limiting use where graphics processing unit (GPU) resources and annotated data are constrained [9, 10, 11].

SAM can be adapted through zero-shot use, full fine-tuning, prompt tuning, decoder-side fine-tuning, or lightweight encoder adapters [8, 21, 22, 23, 26]. Medical SAM Adapter (Med-SA), for example, combines lightweight adapters with hyper-prompting to capture domain-specific information with limited parameters [21, 25]. However, SAM-based medical segmentation studies suggest that naive fine-tuning and adapter placement can be suboptimal for 3D CT volumes with subtle and heterogeneous lesions, where accuracy and efficiency must be balanced [22, 23, 26].

Parameter-efficient fine-tuning (PEFT) adapts pretrained models with only a small fraction of trainable parameters while keeping most backbone weights frozen [12, 13, 14]. Low-rank adaptation (LoRA) injects low-rank residual matrices into frozen linear layers, while quantized low-rank adaptation (QLoRA) reduces memory by storing frozen weights in low-precision formats [15, 16]. Convolutional adapter (CAD) extends LoRA-style adaptation with depthwise convolutions to capture local spatial structure efficiently [17], and these methods have been applied to vision transformers and SAM-like architectures to reduce training and deployment costs [13, 14, 17, 27]. Recent spectral methods use singular value decomposition (SVD) of pretrained weights, with Spectral Adapter, SVDiff, and weight-decomposed low-rank adaptation (DoRA) constraining updates to compact or directional spectral subspaces [18, 19, 20]. These approaches suggest that pretrained directional structure can improve learning efficiency and stability, but spectral adaptation has not been systematically investigated for SAM-based CRLM segmentation in CT.

Building on these insights, we propose two spectral adapter architectures for SAM: the Directional Spectral Adapter (DiSECT) and the Spectral Instance-Guided Adapter (SiGA). DiSECT performs residual updates within the leading spectral subspace of frozen transformer weights, while SiGA adds global and input-conditioned gating through a multilayer perceptron for instance-wise routing across lesions with varying size, shape, and contrast. In this work, we evaluate DiSECT and SiGA against established PEFT methods including LoRA, QLoRA, and CAD under multiple prompting strategies, and compare performance with a strong 3D nnU-Net baseline to examine whether lightweight spectral SAM adaptations can match fully trained CNN models while improving the accuracy-efficiency trade-off for biomedical software deployment.

References (27)