Papers › Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero shot Medical Image...

Test-Time Adaptation with SaLIP: A Cascade of SAM and CLIP for Zero shot Medical Image Segmentation

9 Apr 2024arXiv:2404.06362archive 2025-07-28

Sidra Aleem, Fangyijie Wang, Mayug Maniparambil, Eric Arazo, Julia Dietlmeier, Guenole Silvestre, Kathleen Curran, Noel E. O'Connor, Suzanne Little

The Segment Anything Model (SAM) and CLIP are remarkable vision foundation models (VFMs). SAM, a prompt driven segmentation model, excels in segmentation tasks across diverse domains, while CLIP is renowned for its zero shot recognition capabilities. However, their unified potential has not yet been explored in medical image segmentation. To adapt SAM to medical imaging, existing methods primarily rely on tuning strategies that require extensive data or prior prompts tailored to the specific task, making it particularly challenging when only a limited number of data samples are available. This work presents an in depth exploration of integrating SAM and CLIP into a unified framework for medical image segmentation. Specifically, we propose a simple unified framework, SaLIP, for organ segmentation. Initially, SAM is used for part based segmentation within the image, followed by CLIP to retrieve the mask corresponding to the region of interest (ROI) from the pool of SAM generated masks. Finally, SAM is prompted by the retrieved ROI to segment a specific organ. Thus, SaLIP is training and fine tuning free and does not rely on domain expertise or labeled data for prompt engineering. Our method shows substantial enhancements in zero shot segmentation, showcasing notable improvements in DICE scores across diverse segmentation tasks like brain (63.46%), lung (50.11%), and fetal head (30.82%), when compared to un prompted SAM. Code and text prompts are available at: https://github.com/aleemsidra/SaLIP.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.06362")

Code

Syntology Ran 8 of 12 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

aleemsidra/SaLIP officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 8 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran · fixture could not drive it
6ran
4unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from aleemsidra/SaLIP. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dice_coeff aleemsidra/SaLIP/sam_clip_3d.py official repository ran MIT (permissive) · 4017666e5cd0801f · report
dice_coeff aleemsidra/SaLIP/utils/utils.py official repository ran MIT (permissive) · ce54a742919b8034 · report
get_crops aleemsidra/SaLIP/sam_clip.py official repository ran MIT (permissive) · e9b52816a6e8d5b8 · report
get_rel_pos aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py official repository ran · fixture could not drive it MIT (permissive) · 733d7f0bedcb74c2 · report
prepare_image aleemsidra/SaLIP/sam_clip.py official repository ran MIT (permissive) · e6af0754224f9b26 · report
prepare_image aleemsidra/SaLIP/sam_clip_3d.py official repository ran MIT (permissive) · 96dd89ecd1e9afa3 · report
process_config aleemsidra/SaLIP/utils/utils.py official repository ran MIT (permissive) · 07e7154e4c2da99e · report
window_partition aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 105fa08885dc36cc · report
build_sam_vit_b aleemsidra/SaLIP/segment_anything/build_sam.py official repository unverified MIT (permissive) · f9bc5f31ce61cee8 · report
build_sam_vit_h aleemsidra/SaLIP/segment_anything/build_sam.py official repository unverified MIT (permissive) · 6b77c1f11fff3ed6 · report
build_sam_vit_l aleemsidra/SaLIP/segment_anything/build_sam.py official repository unverified MIT (permissive) · 3f8890e695469246 · report
window_unpartition aleemsidra/SaLIP/segment_anything/modeling/image_encoder.py official repository unverified MIT (permissive) · 27be441cc8213e52 · report

Tasks

Image SegmentationMedical Image SegmentationOrgan SegmentationPrompt EngineeringSegmentationSemantic SegmentationTest-time AdaptationZero Shot SegmentationZero-Shot Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIPSAM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections