TL;DR
Foundation models like the Segment Anything Model (SAM) usually rely on clicks or bounding boxes to find objects, an approach that falls apart when tracing delicate, sprawling networks of blood vessels. RPP-SAM ditches manual prompts altogether, instead retrieving structurally similar "reference graphs" from a database to whisper anatomical guidance into every step of the decoding process. The result is a fully automatic, cross-modality vessel segmentation tool that recovers gossamer-thin capillaries other foundation models miss.
What Problem Does This Paper Address?
Segmenting organs like the liver or heart is relatively straightforward—they are compact blobs. Blood vessels, however, are nature’s fractals: thin, low-contrast, wildly branching trees that span almost the entire field of view.
When researchers adapt SAM to medical imaging, they typically keep its signature "sparse prompting" (giving the model a point or bounding box). For vessels, this is a headache. Clicking on every tiny capillary branch is exhausting, and drawing a bounding box around a retinal vessel network just means drawing a box around the whole image—offering zero spatial help. Furthermore, SAM’s standard decoder only upsamples features twice before stretching them back to full size, blurring away tiny bifurcations. Finally, vessels look completely different in an eye scan versus a heart X-ray, meaning a generalist model needs modality-specific awareness without requiring a human in the loop.
Methods
To make SAM both automatic and detail-oriented, the authors introduce RPP-SAM (Reference-Guided Progressive Prototype-Prompted SAM), built on three main ideas:
- Graph Retrieval instead of Manual Prompts: The authors build a database of medical images paired with vascular graphs—skeletonized maps where vessel pixels are nodes and connections are edges. Given a new query image, a frozen DINOv2 model compares spatial patch tokens (preserving spatial alignment) against images of the same modality to fetch the top-$k$ ($k=3$) most similar reference graphs.
- Bridging Training and Inference with Prototypes: What makes a vessel look like a vessel in this specific image? During training, a parallel CNN extracts multi-scale local features and pools them using the ground-truth mask to create an ideal "mask-derived prototype." Simultaneously, a Graph Neural Network (GNN) crunches the retrieved reference graphs into a "reference-derived prototype." Alignment losses ($L_1$ and contrastive) force the GNN's reference prototype to mimic the ideal mask prototype, while a dynamic fusion schedule ($\lambda_t$) gradually shifts the model's reliance from the ground-truth mask to the retrieved graphs. At test time, no ground-truth mask is needed—the retrieved graph prototype flies solo.
- Progressive Prototype-Prompted Decoding: Instead of SAM’s coarse two-stage upsampling, the authors expand the decoder to four progressive upsampling stages, feeding in crisp local features via CNN skip connections. At every single stage, a custom Vascular Prototype Attention (VPA) module injects the prototype embedding to modulate both spatial and channel-wise features, keeping thin branches sharp all the way to full resolution.
Datasets
The authors establish a large benchmark by compiling 20 public 2D datasets across four distinct imaging modalities:
- Fundus photography (9 datasets): ARIA, CHASE-AV, DRIVE, FIVES, FOVEA, HRF, LES-AV, STARE, and Fundus-AVSeg (100 samples held out entirely for zero-shot evaluation).
- OCTA / Optical Coherence Tomography Angiography (4 datasets): OCTA-500 (3mm and 6mm), ROSE-1, ROSSA.
- DSA / Digital Subtraction Angiography (2 datasets): DIAS, DSCA.
- X-Ray Angiography (5 datasets): DCA1, FS-CAD, XACV, XCAD (coronary), and Dr-SAM (peripheral).
Merging the 19 seen datasets (with patient-disjoint splits) yielded 3,121 training and 785 test images.
Key Insights and Ideas
- Sparse prompts are shockingly useless for vessels: In a pilot study, the authors tested SAM-Med2D, MedSAM, and HQ-SAM with boxes, points, and no prompts at all. Across the board, manual prompts contributed virtually nothing—HQ-SAM scored 86.47% Dice with boxes and 86.46% with zero prompts.
- Spatial patches beat global tokens for retrieval: When searching the database for similar angiograms, matching DINOv2's global
[CLS]token retrieves vessels curving in the wrong direction. Averaging cosine similarity across corresponding spatial patch tokens preserves anatomical layout. - Direct $L_1$ supervision is crucial for prototype alignment: Removing contrastive loss hurt Dice slightly (-0.31%), but removing the $L_1$ loss caused a 2.76% drop—showing that under small batch sizes, direct coordinate-wise anchoring in embedding space is vital to prevent misleading prompts.
Key Results
Evaluated against six foundation and specialized baselines (including SAM-Med2D, MedSAM, HQ-SAM, and vessel-specific OVS-Net), RPP-SAM takes the crown without needing a single human click:
- Overall Performance: Across all seen test sets, RPP-SAM achieves 88.69% Dice, 80.47% IoU, and 89.28% clDice (a topology-preserving metric). On average across compared models, it improves overall Dice and IoU by 2.78 and 4.45 percentage points, respectively.
- Zero-Shot Generalization: On the unseen Fundus-AVSeg dataset, RPP-SAM hits 89.60% Dice and 91.99% clDice, beating the runner-up (semi-automatic OVS-Net) by nearly 3 Dice points and over 4 clDice points.
- Modality Breakdown: It dominates in capillary-heavy Fundus, OCTA, and DSA images, visibly preserving delicate vessel connections and low-contrast branches where baselines leave broken fragments.
Limitations and Future Work
RPP-SAM’s keen eye for thin tubes becomes a slight liability in X-ray angiography (where HQ-SAM edges it out, 89.25% vs. 88.25% Dice). In X-ray datasets, human annotators usually only label major arteries, ignoring tiny side branches; meanwhile, surgical catheters and bone edges look remarkably like vessels. Because RPP-SAM is sensitized to fine curvilinear structures, it eagerly segments unlabeled minor vessels and tubular artifacts, getting penalized for "false positives." Future directions are not explicitly discussed in the paper.
Summary updated