Retinal vessel segmentation is a cornerstone of diagnosing diseases like diabetic retinopathy and glaucoma. While deep learning has revolutionized this field, most models are "black boxes" that are difficult to correct when they fail. Interactive segmentation—where a user provides clicks to refine a mask—offers a solution, but adapting massive foundation models like SEEM (Segment Everything Everywhere All at Once) to the specialized domain of Optical Coherence Tomography Angiography (OCTA) is a significant technical challenge.
This paper introduces the Read-out Basis Adapter (RBA), a parameter-efficient method that significantly boosts SEEM's ability to segment thin, complex structures by fixing a fundamental resolution bottleneck in its architecture.
TL;DR
RBA is a lightweight adapter (0.47M parameters) for the SEEM foundation model that enables high-precision interactive segmentation of retinal vessels. By adding a high-resolution "read-out" branch, it overcomes the resolution limits of standard adapters, outperforming LoRA and Conv-LoRA on OCTA benchmarks with minimal computational overhead.
What Problem Does This Paper Address?
OCTA images capture the retinal microvasculature in incredible detail, but the vessels are often only 1 to 3 pixels wide. Foundation models like SEEM are powerful but were trained on general images. When applied to OCTA:
- Resolution Bottleneck: SEEM generates masks by performing a dot product between a query vector and a feature map at 1/4 resolution. For a 1-pixel-wide vessel, this coarse map simply lacks the spatial detail to produce a sharp mask.
- Adaptation Inefficiency: Standard Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) typically modify the encoder. While this helps the model "understand" the image better, it doesn't solve the resolution problem at the output stage.
- Data Scarcity: Fully fine-tuning a 342-million-parameter model on a few hundred medical images leads to catastrophic overfitting.
Methods
The authors propose the Read-out Basis Adapter (RBA), which splits the adaptation task into two specialized branches:
- The Read-out Branch (Novel): Instead of relying solely on the 1/4 resolution feature map, this branch generates 32 image-specific "basis maps" at 1/2 resolution. It uses a lightweight fusion network to combine low-level edge features from early encoder stages with high-level semantics.
- The Encoder Branch: A standard rank-1 LoRA is applied to the encoder. Interestingly, the authors found that once the readout is fixed, a very low-rank encoder adapter is sufficient to help the model distinguish between similar-looking structures like arteries and veins.
Crucially, RBA uses zero-initialization for its new components. This ensures that at the start of training, the model behaves exactly like the original pretrained SEEM, providing a stable starting point for optimization.
Datasets
The model was evaluated on three major OCTA benchmarks:
- OCTA-500 (3mm subset): 200 eyes, focusing on large vessels, arteries, veins, and the foveal avascular zone (FAZ).
- OCTA-500 (6mm subset): 300 eyes, where vessels appear even thinner due to the wider field of view.
- ROSE-O: A dataset including vessel and FAZ labels from different imaging devices to test generalization.
Key Insights and Ideas
- The "Read-out" Matters More Than the "Encoder": For thin structures, the bottleneck isn't just what the model sees, but how it draws. RBA shows that adaptation capacity is better spent at the mask read-out than in the encoder.
- Complementary Roles: The read-out branch provides the spatial detail (sharp edges, thin branches), while the encoder branch provides the context (identifying if a vessel is an artery or a vein). Without the encoder branch, the model struggles with vessel identity; without the read-out, it struggles with vessel thickness.
- Efficiency vs. Performance: RBA adds only 0.47M parameters (0.14% of SEEM's total). As shown in Figure 4, RBA achieves higher accuracy than encoder-only adapters that use ten times as many parameters.
Key Results
- Superior Accuracy: On the OCTA-500 3mm large vessel test set, RBA reached a Dice score of 91.93% and an IoU of 85.16%, outperforming Conv-LoRA by 1.72 and 2.90 percentage points, respectively.
- Thin Vessel Recovery: RBA significantly improved the recall of thin vessels (below 3 pixels wide) from 77.6% to 84.0% compared to standard LoRA.
- Interactive Efficiency: RBA halved the number of clicks needed to reach a 90% Dice score compared to encoder-only adapters.
- Speed: The method is practical for real-time use, taking roughly 401ms to process an image and four click rounds on a standard laptop GPU.
Limitations and Future Work
- Compact Regions: RBA showed no significant improvement on the Foveal Avascular Zone (FAZ). The authors suggest that for large, smooth regions, the original 1/4 resolution basis is already sufficient.
- Vessel Identity: While RBA helps, distinguishing arteries from veins remains a difficult task that relies heavily on global context, which a rank-1 LoRA might not fully capture.
- Future Directions: The authors suggest extending RBA to other foundation models like SAM or SAM 2, and exploring "click-conditioned" features to make every user interaction even more informative.
Summary updated