TopoLoRA-SAM: Topology-Aware Parameter-Efficient Adaptation of Foundation Segmenters for Thin-Structure and Cross-Domain Binary Semantic Segmentation
Salim Khazem
TL;DR
TopoLoRA-SAM introduces a topology-aware, parameter-efficient framework for adapting a foundation segmentation model (SAM) to binary semantic segmentation across thin structures and cross-domain modalities. By freezing the SAM ViT-B encoder and injecting Low-Rank Adaptation (LoRA) into the FFN layers, complemented by a lightweight spatial adapter and topology-aware supervision via differentiable clDice, the method attains state-of-the-art retina-average Dice and overall Dice while updating only about 5.2% of parameters. Across retinal vessels, polyps, and SAR imagery, the approach demonstrates strong boundary and connectivity preservation (BFScore, clDice) and robustness on challenging CHASE_DB1, with substantial parameter efficiency compared to fully fine-tuned baselines. The work offers practical, reproducible code and highlights a clear contribution: training-efficient, topology-conscious adaptation of large vision models for domain-specific binary segmentation, with potential extensions to video, 3D, and multi-class tasks.
Abstract
Foundation segmentation models such as the Segment Anything Model (SAM) exhibit strong zero-shot generalization through large-scale pretraining, but adapting them to domain-specific semantic segmentation remains challenging, particularly for thin structures (e.g., retinal vessels) and noisy modalities (e.g., SAR imagery). Full fine-tuning is computationally expensive and risks catastrophic forgetting. We propose \textbf{TopoLoRA-SAM}, a topology-aware and parameter-efficient adaptation framework for binary semantic segmentation. TopoLoRA-SAM injects Low-Rank Adaptation (LoRA) into the frozen ViT encoder, augmented with a lightweight spatial convolutional adapter and optional topology-aware supervision via differentiable clDice. We evaluate our approach on five benchmarks spanning retinal vessel segmentation (DRIVE, STARE, CHASE\_DB1), polyp segmentation (Kvasir-SEG), and SAR sea/land segmentation (SL-SSDD), comparing against U-Net, DeepLabV3+, SegFormer, and Mask2Former. TopoLoRA-SAM achieves the best retina-average Dice and the best overall average Dice across datasets, while training only \textbf{5.2\%} of model parameters ($\sim$4.9M). On the challenging CHASE\_DB1 dataset, our method substantially improves segmentation accuracy and robustness, demonstrating that topology-aware parameter-efficient adaptation can match or exceed fully fine-tuned specialist models. Code is available at : https://github.com/salimkhazem/Seglab.git
