Manuscript Offprint
arXiv:2611.11906RBA: A Read-out Basis Adapter for Parameter-Efficient Interactive OCTA Vessel Segmentation with SEEM
ARTICLE INFO
Keywords:
Optical coherence tomography angiography
Retinal vessel segmentation
Interactive segmentation
Parameter-efficient fine-tuning
Segmentation foundation model
ABSTRACT
Retinal disease monitoring with optical coherence tomography angiography (OCTA) relies on segmentation of vessels and the foveal avascular zone (FAZ). Promptable models such as SEEM (Segment Everything Everywhere All at Once) allow click-based refinement, but without adaptation SEEM segments thin vessels poorly and needs many clicks. Fully fine-tuning its 342 million parameters on a few hundred images is costly and risks overfitting, and parameter-efficient methods such as low-rank adaptation (LoRA) usually adapt only the encoder. Yet SEEM reads every candidate mask from one feature map at quarter resolution, too coarse for vessels one to three pixels wide. This study introduces the Read-out Basis Adapter (RBA), whose read-out branch generates 32 image-specific basis maps at half resolution. Each candidate accesses them through its own vector and a zero-initialised projection, so the model starts exactly as SEEM. The encoder branch, a standard rank-1 LoRA, supplies the information needed to tell arteries from veins. RBA adds 0.47 million trainable parameters. Under simulated error-driven clicks, with the ground truth used only to place them, RBA outperforms LoRA, Conv-LoRA and AdaptFormer on OCTA-500 3 mm large vessels. Averaged over three seeds, it reaches an intersection over union (IoU) of 85.16% and a Dice score of 91.93%, 2.90 and 1.72 percentage points above Conv-LoRA. On the 6 mm subset, one run gives margins of 4.35 and 2.76 points. The gain extends to arteries, veins and ROSE-O but not to the FAZ. In SEEM, adaptation capacity pays more at the mask read-out than in the encoder.
Optical coherence tomography angiography (OCTA) images the retinal microvasculature in depth-resolved scans. Unlike fluorescein angiography, it needs no dye injection [3]. The measurements above are taken on its en-face projections, which show the vessels of selected retinal layers.
Deep networks trained on dense labels now dominate this segmentation. Public datasets such as OCTA-500 [4] and ROSE [5] have turned it into a benchmark. On these datasets, Li et al. with IPN [6], Hu et al. with Joint-Seg [7] and Peng et al. with FARGO [8] report high scores. These networks share two limits. Each new target or imaging device needs new dense labels, and an error can only be corrected by editing the mask pixel by pixel.
Three properties of OCTA projections make the segmentation hard. Many vessels on the 3 mm OCTA-500 images
are one to three pixels wide, and vessels below three pixels make up about a quarter of the large-vessel label. Huang et al. [9] report that vessel ends are faint and low in contrast, and Hu et al. [10] address the noise and artefacts that the projections carry. Vessel pixels are also a small minority of each image, so quality is decided on thin branches and vessel edges, whereas the FAZ is a single compact region.
Interactive segmentation addresses both limits of dedicated networks. The user clicks on a missed or a false region, and the model revises its mask after each click, as in FocalClick, SimpleClick and RITM [11–13]. Promptable foundation models such as the Segment Anything Model (SAM) [14] and SEEM, short for Segment Everything Everywhere All at Once [15], offer this mode for general images. SAM-OCTA [16, 17] and SAM-OCTA2 [18] adapted SAM to OCTA, but with prompts drawn from the ground truth. Out of the box, these models do not see OCTA vessels well. With a frozen encoder and a trained decoder, SEEM reaches a Dice score of only 75.83% on large vessels and 50.98% on veins in this study, although its pixel accuracy is 96.6%. Even with its decoder trained, this model did not reach 90% Dice within the 20 allowed clicks on the large-vessel test images, so SEEM must be adapted to OCTA. Fine-tuning all of its 341.7 M parameters on a few hundred labelled images is costly and risks overfitting, which motivates parameter-efficient adaptation.
The first group of adaptation methods changes how the image is encoded, as panel a of Fig. 1 shows. Hu et al. [19] proposed low-rank adaptation (LoRA), which adds a trainable low-rank update to frozen weights, and Zhong et al. [20] placed a convolution inside this low-rank bottleneck in Conv-LoRA. Such encoder adapters change what the
*Corresponding author
jaafar.alghban@gmail.com (J.M. Al-Ghabban);
mrmohammadi@iust.ac.ir (M.R. Mohammadi)
ORCID(s): 0000-0003-3562-0034 (J.M. Al-Ghabban);
0000-0002-1016-9243 (M.R. Mohammadi)
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 1 of 15 feature map of SEEM contains. They change neither its quarter resolution nor the way masks are read from it.
The second group changes how the final mask is produced, as panel b of Fig. 1 shows. Ke et al. [21] proposed HQ-SAM, which adds a high-quality output token whose mask, computed from fused early and late encoder features, replaces the mask of SAM. This token sharpens the mask, but it bypasses the candidates and the selection among them on which interaction relies.
Neither group acts at the step at which SEEM forms its masks. Each decoder query of SEEM produces a vector, and its candidate mask is the dot product of this vector with one feature map at a quarter of the input resolution. Every mask that SEEM can produce is therefore a combination of this coarse basis. No existing adapter acts at this read-out while keeping the candidates and the selection of SEEM and starting from the exact pretrained model.
To address this gap, this study proposes the Read-out Basis Adapter (RBA), shown in panel c of Fig. 1. RBA consists of two branches. The read-out branch builds 32 basis maps at half the input resolution from the image alone. Every candidate reads them through its own vector via a linear map that starts at zero, like the update of LoRA [19]. The encoder branch is a standard rank-1 LoRA that supplies the information needed to tell arteries from veins. RBA therefore starts exactly as SEEM, keeps its candidates and selection, and computes the new basis once per image, so a click costs almost nothing more. Fig. 2 shows the complete pipeline.
The contributions of this work are fourfold. First, it proposes RBA, an adapter of the basis from which every SEEM candidate mask is read, with 0.47 M parameters, which is 0.14% of SEEM. Second, it shows that in SEEM adaptation capacity pays more at the read-out than in the encoder. Once the read-out is adapted, a rank-1 encoder branch suffices, and the read-out improves every encoder adapter to which it is added. Third, it evaluates the model with simulated clicks in which no ground truth enters the prediction, and it tests every difference in pairs under decision rules fixed before the runs. Fourth, it reports results on OCTA-500 and ROSE-O. On large vessels of the 3 mm subset, RBA outperforms LoRA, Conv-LoRA and AdaptFormer on all 50 test images, as Table 1 reports. Averaged over three training seeds, it exceeds Conv-LoRA by 1.72 percentage points in Dice and 2.90 in intersection over union (IoU), and the seed-to-seed standard deviation of Dice is 0.02% for both models. On the 6 mm subset the Dice margin grows to 2.76 percentage points, and the gain extends to veins, arteries and ROSE-O, whereas the FAZ shows no significant difference.
The rest of this paper is organised as follows. Section 2 reviews related work, Section 3 presents the methodology, Section 4 reports the results and Section 5 concludes.
2. Related work
2.1. Deep learning for OCTA vessel segmentation
Progress in OCTA vessel segmentation has relied on public datasets with pixel-level labels. Li et al. [4] released
OCTA-500, which covers 500 eyes at 3 mm and 6 mm fields of view with pixel-level labels for large vessels, arteries, veins, capillaries and the FAZ. Ma et al. [5] introduced ROSE, which adds vessel labels from two devices, together with the OCTA-Net model. Hao et al. [22] extended ROSE with FAZ labels as ROSE-O and proposed the multitask network VAFF-Net.
The dedicated networks differ mainly in how they build vessel structure into the model. Li et al. [6] proposed the image projection network IPN, which learns the projection from the 3D volume to the en-face image. Peng et al. [8] with FARGO and Hu et al. [7] with Joint-Seg segment the FAZ and the vessels as a joint task, and Melo et al. [23] applied multitask learning to the FAZ. Chen et al. [24] proposed SSW-OCTA, which uses snake-like convolutions that follow vessel paths, and Ma et al. [25] combined full-scale skip connections with split attention in RS_Unet3+. Two further networks address the properties that make vessels hard to segment. Hu et al. [10] disentangle vessels from noise and artefacts in D2Net, and Huang et al. [9] add patch-wise attention for faint vessel ends in LSENet.
These networks reach high accuracy, but they share two costs. Every new target or imaging device needs new dense labels, and an error in a prediction can only be corrected by editing the mask pixel by pixel.
Promptable models reached OCTA through SAM-OCTA of Wang et al. [16] and Chen et al. [17] and through SAM-OCTA2 of Chen et al. [18], which fine-tune SAM and SAM 2 with LoRA. Their prompts are sampled from the ground truth, in SAM-OCTA from every connected component of the label. This measures how well a model segments when it receives ideal prompts, not how it behaves when a user corrects its mistakes. The present work evaluates the second case, with error-driven clicks and the model's own choice of candidate.
2.2. Promptable models and parameter-efficient adaptation
Interactive segmentation follows a standard protocol, used by Sofiuk et al. [13] in RITM, by Chen et al. [11] in FocalClick and by Liu et al. [12] in SimpleClick. A simulated user clicks at the centre of the largest error region, and the score is the number of clicks needed to reach a target IoU or Dice. The ground truth places the clicks but never chooses the output.
Kirillov et al. [14] extended prompting to many prompt types with SAM, and Zou et al. [15] did so with SEEM, whose decoder derives from the Mask2Former of Cheng et al. [26]. Evaluations that pick the candidate or the threshold against the ground truth overstate what a model achieves on its own, so this work leaves both choices to the model.
Beyond LoRA [19] and Conv-LoRA [20], introduced in Section 1, several variants change what happens inside the low-rank bottleneck. Chen et al. [27] proposed NAS-LoRA, which searches the bottleneck structure, and Yin et al. [28] proposed LoRand for dense prediction. Ittaf et al. [29] used
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 2 of 15

Figure 1: Three ways to adapt a promptable segmentation model: (a) encoder adapters such as LoRA, Conv-LoRA and AdaptFormer, (b) output-token refinement as in HQ-SEEM, and (c) RBA, which adapts the read-out basis of SEEM. Green marks trainable additions.
atrous convolutions for aortic vessels in VesselSAM. Bottleneck adapters insert small multilayer perceptrons (MLPs) instead. Chen et al. [30] placed them in parallel with each MLP in AdaptFormer, and Chen et al. [31] introduced SAM-Adapter. Wu et al. [32] proposed the Medical SAM Adapter, and Hu et al. [33] added spatial priors in SPA. Closest to the vessel setting, Khazem [34] combined LoRA with a lightweight spatial convolutional adapter on high-resolution embeddings and a clDice loss in TopoLoRA-SAM, for non-interactive segmentation of thin structures such as retinal vessels. For SEEM itself, Abou Baker et al. [35] compared adapters and LoRA for instance segmentation, with SEEM and Mask DINO as base models.
These methods assume that segmentation lacks a better representation. For SEEM this is only half of the problem, since better encoder features still reach the masks through the same quarter-resolution read-out. The case for convolutional adapters is weaker still, because the FocalNet encoder of SEEM [36] already aggregates context with depth-wise convolutions. On the output side, HQ-SAM [21] sharpens the mask with an extra token, but it bypasses the candidates and the selection that interaction relies on.
In summary, encoder adapters change what the features contain, and output-token methods replace the candidates, while the basis from which SEEM reads its candidates stays
unchanged. RBA combines the zero-initialised low-rank update of LoRA with high-resolution image features and applies them to this read-out. The next section formalises the read-out and presents RBA.
3. Methodology
3.1. Problem formulation
In interactive segmentation, the model refines its mask over several rounds of user clicks. Let be the OCTA input, three stacked en-face projections resized to . Let be its label on the native grid, where for the 3 mm subset and ROSE-O and for the 6 mm subset. An interactive session is a sequence of rounds . In round the user has placed the clicks , each with a location and a sign, positive on a missed vessel and negative on a false one, and the model returns a mask . A good model reaches a high Dice in few rounds while selecting its own output at a fixed threshold. The ground truth is used only to simulate where a user would click.
SEEM processes the input with a FocalNet-L encoder [36] and a pixel decoder, which produce a mask-feature map of size with . Given the prompts, the transformer decoder updates
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 3 of 15

Figure 2: Overview of SEEM with RBA. Blue marks the image path, purple the click path and green the read-out term of RBA. Dashed loops mark the next click and the previous-mask memory.
queries, and the mask-embedding MLP of SEEM maps each query to a vector of dimension . Following the prototype-based view of instance segmentation [37], the logit of candidate at pixel of the grid is
This dot product is the read-out of SEEM. SEEM selects one candidate per click with a query pooled at the click. A click changes the vectors and the selected candidate, but not . For a given image, every candidate is therefore the sigmoid of a weighted sum of the same 512 maps at pixels, for a label grid of . If the shape of a thin vessel or of a vessel edge is not in the span of these maps, no candidate can express it.
3.2. Read-out Basis Adapter
RBA is built on SEEM and adds two branches. SEEM with the FocalNet-L encoder has 341.7 M parameters in total. The FocalNet-L encoder, the pixel decoder that produces and the language encoder, which the click task does not use, stay frozen. The transformer decoder, with 39.8 M parameters, is trained, and its previous-mask memory and its selection rule are used unchanged. A learned positional click prompt with 0.57 M parameters is trained with the decoder. It combines the click tokens of SEEM with a learned positional encoding of each click and is shared by every configuration compared in this work. RBA itself has 474,168 parameters, of which 270,840 belong to the encoder branch and 203,328 to the read-out branch. The image path runs once per image, and only the decoder and the read-out run in every click round. Fig. 2 shows how the branches connect to SEEM.
The encoder branch supplies the small, task-specific change that the frozen encoder needs to tell vessel types apart. It is a standard rank-1 LoRA [19] in the linear layers , , and proj of all 24 FocalNet-L blocks, which makes 96 layers:
Here is the frozen weight, is the layer input, , , and is initialised to zero. The rank is kept at one because a larger encoder adapter does not improve large-vessel segmentation once the read-out is adapted, as Section 4.1 shows.
The read-out branch supplies the spatial detail that the quarter-resolution features lack. It builds maps at half the input resolution from three sources of increasing depth:
Here denotes channel concatenation, Up denotes bi-linear upsampling by two, and . The stem processes the image rescaled to with two convolutions, the second with stride 2, each followed by group normalisation and a Gaussian error linear unit (GELU). and are projections to 64 channels. takes the stage-1 features res2 of FocalNet-L, which carry early edges and textures, and takes , the semantics that SEEM already uses. The fusion network merges the 160 concatenated channels with two convolutions, each followed by group normalisation and GELU, and a convolution to the 32 maps. depends on the image alone
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 4 of 15

Figure 3: The RBA module: (a) read-out branch and (b) encoder branch. Green numbers give parameter counts, dashed green boxes mark zero initialisation, and red marks the unchanged read-out of SEEM.
and is computed once per image, before any click. Fig. 3 gives the layers of both branches and their parameter counts.
The lifted read-out lets every candidate use the new basis without changing the mechanism of SEEM. RBA adds a second, zero-initialised term to Eq. (1):
Here , with 16,384 parameters, maps each query vector to coefficients. Equivalently, the read-out basis becomes , a rank- update of the basis, in the same way as the term in LoRA is a low-rank update of a weight matrix.
Four properties follow. First, the start is exact. Since is zero at the start, equals , the read-out of the pretrained model, because bilinear upsampling is linear and commutes with the sum over channels. Second, directions are kept. For any in the null space of the mask is the stock mask, so RBA re-assigns at most of the 512 read-out directions. Third, the branch depends on the image only. A click therefore costs one 512 32 linear map and a weighted sum of 32 maps of pixels, which is about two million multiply-adds. Fourth, learning is ordered. With the gradient of with respect to is zero, so only learns in the first step, and the layers that build follow once has moved. The first, second and fourth properties were verified numerically at the tensor sizes of SEEM.
3.3. Click simulation and training
Clicks are simulated from the ground truth, which a real user does not have. The first click is placed at the
maximum of the distance transform of the label, inside the thickest vessel. Each later click follows the error-driven rule of Sofiuk et al. [13]. The missed and the false pixels of the current mask at threshold 0.5 form two error maps, and a window around every earlier click is excluded from both. The click goes to the centre of the thickest error region, that is, to the larger of the two distance-transform maxima. It is positive on a missed region and negative on a false one, and a random error pixel is used if no error pixel remains outside the excluded windows. Clicks are placed on the label grid, mapped to the input and rendered as disks of radius 8 pixels on the input. Between rounds, the lifted mask is area-pooled to , detached from the gradient and passed to SEEM as the previous-mask memory. This mask belongs to the supervised candidate during training and to the candidate selected by SEEM at test time.
During training, all candidates are lifted and the one that best matches the label is supervised. The mask loss of round combines Dice [38], focal [39] and Tversky [40] terms on the lifted mask, resized to the native grid:
The focal parameters are and , and the Tversky weights are 0.3 for false positives and 0.7 for false negatives, which favours the recall of thin vessels. A second term penalises a round that is worse than the previous one:
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 5 of 15 where and sg stops the gradient. The total loss is
Algorithm 1 summarises the training loop.
Algorithm 1: Training SEEM with RBA and simulated clicks.
Input: training set ; SEEM with frozen encoder and pixel decoder; trainable set : SEEM decoder, encoder branch , read-out branch ; rounds ; epochs
Output: trained model
1 Initialise ; // the model starts as SEEM
2 for epoch do
3 foreach image with label in , with dihedral and intensity augmentation do
4 and pixel decoder();
5 ; // once per image
6 ; ;
7 for do
8
9 ; // training only
10 accumulate ; // Eq. (5)
11 error-driven click;
12 ; // Eqs. (6), (7)
13
14 return , the checkpoint with the best validation Dice@4
3.4. Datasets and implementation
The experiments use two public datasets, OCTA-500 with its 3 mm and 6 mm subsets and ROSE-O. The OCTA-500 3 mm subset [4] contains 200 eyes with en-face projections of pixels, split by the dataset authors into 140 training, 10 validation and 50 test images, which are images 10301–10440, 10441–10450 and 10451–10500. The input stacks three projections, namely the full-depth projection, the projection from the internal limiting membrane to the outer plexiform layer (ILM–OPL) and the projection from the outer plexiform layer to Bruch's membrane (OPL–BM). The stack is resized to and normalised with the pixel statistics of SEEM. The 6 mm subset contains 300 eyes with projections of pixels over a mm field of view, so that a vessel spans about 1.5 times fewer pixels. It uses the split of the dataset paper, with 240 training, 10 validation and 50 test images, which are images 10001–10240, 10241–10250 and 10251–10300, and the same three projections.
ROSE-O [22] extends ROSE [5] with FAZ labels. It provides en-face projections of the superficial, deep and inner
vascular complexes (SVC, DVC and IVC) of 39 subjects at pixels. The vessel and FAZ labels are drawn on the IVC projection. It was acquired at a different centre and in a different population from OCTA-500, namely patients with Alzheimer's disease and controls, but with a device of the same family, the Optovue RTVue XR Avanti. The released split gives 30 training and 9 test subjects, and five training subjects, drawn with a fixed seed, are held out for validation.
On the 3 mm subset, four targets are studied. Large vessels are the main target, veins and arteries split the large-vessel labels into the two vessel types, and the FAZ, a single compact region, serves as a non-tubular control. On the 6 mm subset and on ROSE-O, RBA is compared with ConvLoRA, the strongest encoder adapter on the 3 mm subset. Capillary labels are used only in the comparison with an alternative read-out design in Section 4.4.
All models are implemented in PyTorch on the public FocalNet-L checkpoint of SEEM. The encoder and the pixel decoder are frozen and run in evaluation mode. The decoder of SEEM, with 40.4 M parameters including the positional prompt, and the adapter are trained, except in the frozen-SEEM experiment of Section 4.1. The optimiser is AdamW [41] with a weight decay of . The learning rates are for the decoder, for encoder adapters and for new modules, namely the click prompt and the read-out branch. They follow a three-epoch linear warm-up and a cosine decay to 1% of their value. Gradients are clipped at norm 1, the batch size is 1, and training runs for 100 epochs with K = 4 click rounds per image. An exponential moving average of the weights with decay 0.999 is used for validation, for the saved checkpoint and for the test. Training images are augmented with the eight dihedral transforms and, with probability 0.8, a gamma change of intensity with a small change of contrast and brightness. The checkpoint with the best validation Dice@4 is kept, at the threshold that is best on the validation set, and every test result uses the fixed threshold 0.5. To measure training variation, the main comparison on 3 mm large vessels, RBA against LoRA with rank 16 and Conv-LoRA, was repeated with three training seeds, 42, 1 and 2. These rows are reported as mean standard deviation over the seeds, and all other rows come from seed 42. All experiments ran on a laptop with an Intel Core i7 processor, 32 GB of RAM and a single NVIDIA GeForce RTX 3070 Ti Laptop GPU with 8 GB, with PyTorch 2.1 and CUDA 12.1. One epoch of RBA takes about 4.8 min, against about 6.4 min for Conv-LoRA.
The compared adapters share the pipeline, the 100 epochs and the training of the decoder of SEEM, and differ only in the adapter. LoRA is used with rank 1 and rank 16, and Conv-LoRA with rank 16 in its single-scale form, with one depth-wise convolution inside the bottleneck. AdaptFormer uses a bottleneck of 12 channels in all 24 blocks, which matches the parameter budget of RBA, and its output scale is set to as for the LoRA rows. The RBA read-out is also added to LoRA with rank 16 and to Conv-LoRA, and the read-out branch is trained alone. All baselines are re-implementations in this pipeline.
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 6 of 15
3.5. Evaluation protocol and metrics
All results use a protocol in which no ground truth enters the prediction. The model selects its own candidate with the rule of SEEM, the threshold is fixed at 0.5, and the ground truth only places the simulated clicks. Predictions are resized bilinearly to the native label grid, which is for the 3 mm subset and ROSE-O and for the 6 mm subset, and are scored there.
For a binary prediction P and a label Y, the Dice score is
The primary measure, fixed before the runs, is the Dice score after four clicks, Dice@4. The centre-line measure clDice [42] compares the skeletons and of the prediction and the label:
(9)
It rewards connected vessel trees. Click effort is the mean number of clicks (NoC) needed to reach a target Dice over the N test images:
An image that never reaches counts as 20 clicks, and NoC@90 is reported. Following the OCTA-500 paper [4], intersection over union, accuracy, sensitivity and specificity are also reported, abbreviated IoU, ACC, SE and SP. All scores are given in percent, and differences between scores are absolute differences in percentage points, written with %.
Rows are compared image by image on the same test images, which are 50 images for OCTA-500 and 9 subjects for ROSE-O. Each comparison reports the mean difference with a 95% t-interval and the number of images that improved. It also reports a two-sided Wilcoxon signed-rank test [43], corrected by the Holm method [44] within each family of comparisons and target. For the rows with three seeds, these paired tests use seed 42, and the per-seed differences are reported as well. The decision rules were fixed before the runs. A row B beats a row A if the difference is positive and the corrected p-value is below 0.05. B matches A if the difference is not significant and the whole interval lies within . Otherwise the result is unclear. Rows are compared only if they were trained for the same number of epochs.
4. Results
4.1. Comparison with encoder adapters
The first experiment compared adaptation at the read-out with adaptation at the encoder on large vessels of the OCTA-500 3 mm subset. Nine configurations were trained under identical conditions. They were SEEM without an adapter, LoRA with rank 1 and rank 16, Conv-LoRA, AdaptFormer, the read-out branch alone, RBA, and Conv-LoRA and LoRA with rank 16 combined with the RBA read-out. Table 1 lists the parameter count, Dice@4, clDice, sensitivity, specificity and NoC@90 of each configuration, and the paired difference between RBA and each row.
Without an adapter, SEEM reached a Dice@4 of 75.83%. Every encoder adapter raised it to about 90%, whatever its size, and sixteen times the encoder rank added less than 0.7%. Conv-LoRA gained only 0.09% over LoRA of the same rank. RBA reached with 0.47 M parameters. On seed 42 it outperformed LoRA with rank 16, Conv-LoRA and AdaptFormer on all 50 test images, by 1.82%, 1.73% and 2.44%. Over the three seeds its lead was 1.80% over LoRA with rank 16 and 1.72% over Conv-LoRA, with per-seed leads from 1.76% to 1.82% and from 1.71% to 1.72%. The margin was larger in IoU, at 85.16% against 82.26% for Conv-LoRA.
The read-out also improved every encoder adapter to which it was added, again on all 50 images, by 2.48% on LoRA with rank 1, 1.65% on LoRA with rank 16 and 1.60% on Conv-LoRA. With the read-out in place, the size of the encoder adapter made little difference. RBA, which uses rank 1, and Conv-LoRA with the read-out differed by 0.13% on 33 of 50 images. This difference was significant, with a corrected p-value of 0.012, but it lay inside the margin, so the two were practically equivalent. The read-out branch alone outperformed Conv-LoRA by 0.33% on 37 of 50 images (p = 0.008).
RBA was not the best on every measure. LoRA with rank 16 and the read-out had a marginally higher clDice, 93.90% against 93.88%, and needed about as many clicks to reach 90% Dice, 3.00 against 3.03, at nearly ten times the adapter size. The read-out branch alone had the highest sensitivity and the lowest specificity of the adapted rows, since it marked more pixels as vessel, both correctly and wrongly. Fig. 4 plots Dice@4 against the number of adapter parameters. Every configuration with the read-out lay above every encoder-only adapter.
The decoder of SEEM, with 40.4 M parameters, was trained in every row of Table 1. Three rows were therefore repeated with all of SEEM frozen, so that only the adapter and the click prompt were trained, and Table 2 compares them with the trained decoder. Freezing SEEM changed nothing measurable, since no change in Dice@4 exceeded 0.03% or was significant. RBA then trained 1.04 M parameters, which are 0.30% of SEEM, and still outperformed Conv-LoRA by 1.68% on all 50 images, as it did with the decoder trained. With the click prompt also switched off, only the 0.47 M parameters of RBA were trained, which are 0.14% of SEEM, and Dice@4 was 91.75%. The difference from the row with the prompt was not significant.
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 7 of 15
Table 1
Adapters on large vessels, OCTA-500 3 mm subset, 50 test images, scores in %. Enc. and Read-out mark the two branches. Rows marked ‡ give the mean ± standard deviation over three training seeds; the other rows use seed 42. The last two columns give the paired change from the row to RBA for seed 42, with its 95% interval, and the number of images on which RBA is better; except ‡ (). Bold: best; underlined: second best.
| Method | Enc. | Read-out | Params | Dice@4 | clDice | SE | SP | NoC@90 | RBA – row [95% CI] | RBA better |
|---|---|---|---|---|---|---|---|---|---|---|
| No adapter | – | – | 0 | 75.83 | 80.44 | 80.05 | 97.79 | 20.00 | – | – |
| LoRA | ✓ | – | 0.27 M | 89.47 | 92.34 | 90.27 | 99.18 | 11.80 | +2.48 [+2.35, +2.61] | 50/50 |
| LoRA | ✓ | – | 4.33 M | 90.13±0.04 | 92.80±0.02 | 90.79±0.14 | 99.24±0.02 | 7.37±0.53 | +1.82 [+1.71, +1.94] | 50/50 |
| Conv-LoRA | ✓ | – | 4.35 M | 90.22±0.02 | 92.90±0.02 | 90.96±0.12 | 99.24±0.01 | 6.68±0.38 | +1.73 [+1.63, +1.83] | 50/50 |
| AdaptFormer | ✓ | – | 0.45 M | 89.52 | 92.53 | 90.68 | 99.15 | 11.18 | +2.44 [+2.28, +2.59] | 50/50 |
| Read-out only (ours) | – | ✓ | 0.20 M | 90.56 | 92.15 | 93.27 | 99.10 | 5.64 | +1.40 [+1.18, +1.61] | 50/50 |
| Conv-LoRA + read-out | ✓ | ✓ | 4.55 M | 91.82 | 93.89 | 92.50 | 99.37 | 3.02 | +0.13 [+0.03, +0.23]† | 33/50 |
| LoRA + read-out | ✓ | ✓ | 4.54 M | 91.78 | 93.90 | 92.74 | 99.34 | 3.00 | – | – |
| RBA (ours)‡ | ✓ | ✓ | 0.47 M | 91.93±0.02 | 93.88±0.07 | 92.52±0.48 | 99.38±0.04 | 3.03±0.44 | – | – |

Figure 4: Dice@4 on large vessels against adapter parameters on a logarithmic scale, for seed 42. Blue marks encoder-only adapters, green marks adapters with the RBA read-out, and dashed arrows mark its addition.
Table 2
Effect of freezing the decoder of SEEM on large vessels (seed 42). Trained gives millions of trained parameters, and Change is frozen minus trained, in %. In the last row the click prompt is also off.
| Adapter | Decoder trained | SEEM frozen | Change | ||
|---|---|---|---|---|---|
| Trained | Dice@4 | Trained | Dice@4 | ||
| LoRA | 40.65 | 89.47 | 0.84 | 89.44 | -0.03 |
| Conv-LoRA | 44.73 | 90.23 | 4.91 | 90.26 | +0.03 |
| RBA | 40.85 | 91.95 | 1.04 | 91.94 | -0.01 |
| RBA, click prompt off | – | – | 0.47 | 91.75 | – |
4.2. Generalisation across targets and datasets
The gain of RBA was then tested beyond the large vessels of the 3 mm subset. RBA was compared with Conv-LoRA, the strongest encoder adapter in Table 1, on every target of the OCTA-500 subsets and of ROSE-O. Table 3 lists Dice@4, clDice and NoC@90 of both models for each target, the paired difference in Dice@4 with its 95% interval, the number of images on which RBA was better and the corrected -value.
On the three vessel targets of the 3 mm subset the gain was stable, at 1.73% on large vessels, 1.62% on veins and 1.57% on arteries, with corrected . The clDice was higher on all three, and the clicks needed to reach 90% Dice fell by about half. On veins, RBA also outperformed Conv-LoRA with the same read-out, by 0.81% on 42 of 50 images. On the FAZ, the difference of -0.34% was not significant, and its interval, from -0.90% to +0.21%, was too wide to call the models equal.
The gain carried over to the other two datasets. On the 6 mm subset it was larger on every vessel target, at 2.76% on large vessels, 1.99% on veins and 2.99% on arteries, with . A second training seed of RBA on 6 mm large vessels gave 88.98%, against 88.67% for seed 42. Conv-LoRA never reached 90% Dice within 20 clicks on these targets, whereas RBA did on part of the images. The larger gain is consistent with the thinner vessels of the 6 mm subset, where a vessel spans about 1.5 times fewer pixels, since the gain of the read-out concentrated on thin vessels, as Section 4.4 shows. On ROSE-O, RBA gained 1.32% on vessels, on 8 of the 9 test subjects with , although both models stayed well below their OCTA-500 accuracy. On the FAZ of the 6 mm subset and of ROSE-O, the differences of -1.30% and -0.66% were not significant.
The pixel measures used in the OCTA-500 paper complete this comparison. Table 4 lists them, namely Dice, IoU, accuracy, sensitivity and specificity, for both models after four clicks. On every vessel target, RBA had the higher sensitivity and the higher specificity, by 0.5% to 2.1% and by 0.1% to 0.7%. On the FAZ the pattern reversed, as for a region drawn slightly too large. The IoU showed the same ordering as Dice with larger margins, for example 2.90% on 3 mm large vessels. Accuracy differed by at most 0.6%, because background pixels dominate it. Supplementary Tables S1 to S5 set these measures beside those of the OCTA-500 baselines, and Supplementary Tables S6 to S9 give them for every trained row.
4.3. Comparison with published methods
Published Dice scores were collected to place these results in context. They were not re-run, and the settings differ. The automatic networks use six projections, one projection
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 8 of 15
Table 3 RBA against Conv-LoRA on every target, scores in %. is the paired change in Dice@4 with its 95% interval for seed 42, and is Holm-corrected. Mean over three seeds. Bold marks the better Dice@4 where the difference is significant.
| Dataset | Target | Dice@4 | [95% CI] | Better | cIDice R / C | NoC@90 R / C | ||
|---|---|---|---|---|---|---|---|---|
| RBA | Conv-LoRA | |||||||
| OCTA-500 3 mm | Large vessels | 91.93 | 90.22 | +1.73 [+1.63, +1.83] | 50/50 | < | 93.88 / 92.90 | 3.03 / 6.68 |
| Veins | 90.49 | 88.87 | +1.62 [+1.31, +1.92] | 45/50 | < | 92.78 / 92.28 | 6.72 / 13.54 | |
| Arteries | 91.26 | 89.69 | +1.57 [+1.30, +1.84] | 48/50 | < | 93.17 / 92.39 | 4.48 / 10.48 | |
| FAZ | 97.52 | 97.86 | -0.34 [-0.90, +0.21] | 25/50 | 0.59 | - | 1.00 / 1.00 | |
| OCTA-500 6 mm | Large vessels | 88.67 | 85.91 | +2.76 [+2.59, +2.92] | 50/50 | < | 91.08 / 89.44 | 13.40 / 20.00 |
| Veins | 87.25 | 85.27 | +1.99 [+1.70, +2.28] | 47/50 | < | 90.11 / 89.66 | 16.22 / 20.00 | |
| Arteries | 87.56 | 84.57 | +2.99 [+2.75, +3.24] | 50/50 | < | 90.01 / 88.37 | 17.04 / 20.00 | |
| FAZ | 91.29 | 92.59 | -1.30 [-2.78, +0.17] | 23/50 | 0.084 | - | 4.04 / 3.36 | |
| ROSE-O | Vessels | 77.55 | 76.23 | +1.32 [+0.66, +1.99] | 8/9 | 0.008 | 69.09 / 68.41 | 20.00 / 20.00 |
| FAZ | 95.24 | 95.90 | -0.66 [-1.77, +0.45] | 4/9 | 0.36 | - | 1.00 / 1.00 | |
Table 4 Pixel measures of Conv-LoRA (C) and RBA (R) after four clicks, in %. Mean over three seeds; the other rows use seed 42. Bold marks the better of the two.
| Dataset | Target | Dice | IoU | ACC | SE | SP | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| C | R | C | R | C | R | C | R | C | R | ||
| OCTA-500 3 mm | Large vessels | 90.22 | 91.93 | 82.26 | 85.16 | 98.69 | 98.92 | 90.96 | 92.52 | 99.24 | 99.38 |
| Veins | 88.87 | 90.49 | 80.03 | 82.69 | 99.35 | 99.44 | 90.36 | 91.24 | 99.62 | 99.69 | |
| Arteries | 89.69 | 91.26 | 81.39 | 84.00 | 99.23 | 99.35 | 90.52 | 92.02 | 99.57 | 99.63 | |
| FAZ | 97.86 | 97.52 | 95.88 | 95.32 | 99.84 | 99.80 | 98.58 | 98.89 | 99.89 | 99.83 | |
| OCTA-500 6 mm | Large vessels | 85.91 | 88.67 | 75.39 | 79.74 | 97.25 | 97.82 | 88.45 | 89.70 | 98.18 | 98.68 |
| Veins | 85.27 | 87.25 | 74.43 | 77.56 | 98.54 | 98.73 | 87.40 | 89.54 | 99.12 | 99.21 | |
| Arteries | 84.57 | 87.56 | 73.36 | 77.98 | 98.63 | 98.92 | 87.51 | 89.02 | 99.13 | 99.37 | |
| FAZ | 92.59 | 91.29 | 87.01 | 85.24 | 99.82 | 99.79 | 95.22 | 95.67 | 99.90 | 99.87 | |
| ROSE-O | Vessels | 76.23 | 77.55 | 61.86 | 63.61 | 90.96 | 91.58 | 76.38 | 76.85 | 94.58 | 95.27 |
| FAZ | 95.90 | 95.24 | 92.13 | 90.97 | 99.74 | 99.71 | 95.52 | 95.72 | 99.88 | 99.84 | |
or the OCTA volume. SAM-OCTA and SAM-OCTA2 receive prompt points drawn from the ground truth, whereas RBA receives four error-driven clicks and selects its own output. Table 5 lists the published results on OCTA-500. The U-Net, Attention U-Net and IPN-V2 rows are the single-task results of the OCTA-500 paper [4], and the IPN V2+, FARGO and Joint-Seg rows come from Table I of SAM-OCTA2 [18]. The other rows come from the original papers. Table 6 lists the published results on ROSE-O, which come from Table I of Hao et al. [22], who used the three projections and 30 training subjects. D2Net is the exception, and its result comes from its own paper and uses the SVC projection only.
On the 3 mm subset, RBA had the highest artery and vein Dice, at 91.26% and 90.49% against 90.78% and 89.71% for IPN-V2. On large vessels it was level with LSENet [9], at 91.93% against 92.03%, and 0.81% below IPN V2+, which reached 92.74%. On the FAZ it stayed below the dedicated networks, at 97.52% against up to 98.49%. On the 6 mm subset, RBA had the highest artery Dice, 87.56% against 87.35%, and was level with the best vein result, 87.25% against 87.30%. Its large-vessel Dice of 88.67% was below every published result, which range from 88.98% to 89.72%, and its FAZ Dice of 91.29% was below the best, 92.84%. On
ROSE-O, RBA reached a vessel Dice of 77.55%, above the best published value of 76.58% for VAFF-Net, which used all 30 training subjects against 25 for RBA and no clicks. Its FAZ Dice was level with that of VAFF-Net, at 95.24% against 95.19%. The gain over Conv-LoRA on 6 mm large vessels is therefore a gain within SEEM and not over the published methods.
4.4. Ablation and error analysis
To separate the contributions of the two branches, RBA was trained with each branch alone and with both. Table 7 lists the Dice@4 of the four combinations on large vessels and veins. On large vessels, either branch alone recovered most of the gap left by SEEM without an adapter, with 13.6% for the encoder branch and 14.7% for the read-out branch. On veins the read-out branch alone reached only 71.32%, against 87.98% for the encoder branch alone. On top of the encoder branch, the read-out added 2.5% on both targets, on every test image. This gain was smaller than the gain of the read-out without the encoder branch, by 12.2% on large vessels and 17.8% on veins, with 95% intervals of [-12.8, -11.7] and [-18.9, -16.8]. The effects of the two branches therefore overlapped and were not complementary.
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 9 of 15
Table 5
Published Dice scores on the OCTA-500 test sets in %, for context. Results of other methods are taken from the cited papers. A dash marks values not reported, † marks images 10200–10300 instead of 10251–10300, and ‡ marks the mean over three seeds. Bold: best; underlined: second best.
| Method | Setting | Large vessels | Arteries | Veins | FAZ | ||||
|---|---|---|---|---|---|---|---|---|---|
| 3 mm | 6 mm | 3 mm | 6 mm | 3 mm | 6 mm | 3 mm | 6 mm | ||
| U-Net [45] | Automatic, six projections | 92.04 | 89.11 | 89.58 | 87.27 | 87.99 | 86.90 | 96.48 | 87.55 |
| Attention U-Net [46] | Automatic, six projections | 91.91 | 89.26 | 90.14 | 87.35 | 88.07 | 87.03 | 97.76 | 86.73 |
| IPN-V2 [4] | Automatic, OCTA volume | 92.32 | 89.17 | 90.78 | 87.27 | 89.71 | 87.30 | 97.68 | 90.12 |
| IPN V2+ [47] | Automatic | 92.74 | 89.41 | – | – | – | – | 97.55 | 90.84 |
| FARGO [8] | Automatic | 91.68 | 89.15 | – | – | – | – | 98.39 | 92.72 |
| Joint-Seg [7] | Automatic | 91.13 | 89.72 | – | – | – | – | 98.43 | 90.51 |
| SSW-OCTA [24] | Automatic | 92.15 | – | – | – | – | – | 98.16 | – |
| Melo et al. [23] | Automatic | – | – | – | – | – | – | 98.49 | – |
| D2Net [10] | Automatic, one projection | 91.23 | – | – | – | – | – | – | – |
| LSENet [9] | Automatic, one projection | 92.03 | 89.14 | – | – | – | – | – | – |
| SAM-OCTA [17] | Label prompts, best setting | 91.57 | 88.98‡ | 88.95 | 85.80† | 88.72 | 85.99† | 98.24 | 91.26† |
| SAM-OCTA2 [18] | Label prompts | 92.07 | 89.23 | – | – | – | – | 98.33 | 92.84 |
| RBA (ours) | 4 clicks, own selection | 91.93‡ | 88.67 | 91.26 | 87.56 | 90.49 | 87.25 | 97.52 | 91.29 |
Table 6
Published Dice scores on the ROSE-O test set in %, for context. Bold: best; underlined: second best.
| Method | Type | Vessels | FAZ |
|---|---|---|---|
| U-Net [45] | Single-task | 70.32 | 93.82 |
| OCTA-Net [5] | Single-task | 75.83 | 94.64 |
| UTNet [48] | Single-task | 75.08 | 94.47 |
| FARGO [8] | Multi-task | 74.59 | 94.42 |
| MTI-Net [49] | Multi-task | 75.34 | 94.77 |
| VAFF-Net [22] | Multi-task | 76.58 | 95.19 |
| D2Net [10] | Single-task, SVC | 75.37 | – |
| RBA (ours) | Interactive, 4 clicks | 77.55 | 95.24 |
Table 7
Ablation of the two branches of RBA, Dice@4 in % on 50 test images (seed 42), with paired changes and the interaction. The decoder of SEEM is trained in every row.
| Encoder branch | Read-out branch | Params (M) | Large vessels | Veins |
|---|---|---|---|---|
| – | – | 0 | 75.83 | 50.98 |
| ✓ | – | 0.27 | 89.47 | 87.98 |
| – | ✓ | 0.20 | 90.56 | 71.32 |
| ✓ | ✓ | 0.47 | 91.95 | 90.49 |
| Read-out added to encoder | +2.48 | +2.51 | ||
| Encoder added to read-out | +1.40 | +19.16 | ||
| Interaction | -12.2 | -17.8 | ||
The weakness of the read-out branch on veins concerned vessel identity and not detection. Table 8 lists the share of vein pixels that were found, the share of artery pixels marked as vein and the share of false positives on arteries. The read-out branch alone found 85.7% of the vein pixels, close to the other rows, but it marked 30.4% of the artery pixels as vein, and about 70% of its false positives lay on arteries. With any
Table 8
Vessel identity on the vein target, in % (seed 42). Found is the share of vein pixels found, Art. as vein the share of artery pixels marked as vein, and FP on art. the share of false positives on arteries.
| Row | Dice@4 | Found | Art. as vein | FP on art. |
|---|---|---|---|---|
| No adapter | 50.98 | 64.5 | 41.3 | 59.8 |
| Read-out only | 71.32 | 85.7 | 30.4 | 69.5 |
| LoRA r=1 | 87.98 | 89.6 | 2.1 | 9.4 |
| Conv-LoRA r=16 | 88.87 | 90.3 | 1.8 | 7.4 |
| Conv-LoRA + read-out | 89.68 | 93.0 | 2.4 | 12.1 |
| RBA (ours) | 90.49 | 91.2 | 2.3 | 15.1 |
encoder branch, about 2% of the artery pixels were marked as vein.
The gain of the read-out concentrated on thin vessels and edges. Table 9 splits the large-vessel results by vessel width and by distance to the vessel edge. Thin vessels, below three pixels wide, make up 24% of the vessel pixels, and thick vessels are seven pixels wide or more. Adding the read-out to LoRA with rank 1 raised thin-vessel recall from 77.6% to 84.0% and centre-line recall from 90.3% to 93.5%. It also lowered the error within one pixel of the vessel edge from 11.7% to 8.4%, each on all 50 test images. Thick-vessel recall changed by only 0.2%, and on Conv-LoRA the pattern was the same. One trade-off was visible. A larger share of the remaining false positives lay more than 2 pixels from any vessel, at 19% for RBA against 9% to 11% for the encoder-only adapters.
A second, much smaller read-out design, called RiDA here, was also tested. It uses rank-1 codes sharpened by a fixed Hessian-based ridge operator [50] and has 0.29 M parameters. It did not outperform RBA, as Supplementary Table S9 reports, but its read-out alone still added 1.78% to LoRA with rank 1.
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 10 of 15
Table 9
Large-vessel results by vessel width and edge proximity, in % (seed 42). Lower is better for the edge error and for distant false positives (FP). The last rows give the paired change when the read-out is added, with the number of images that improved. Bold marks the best value.
| Row | Dice@4 | Recall, thin | Recall, mid | Recall, thick | Edge error | Centre-line recall | Distant FP |
|---|---|---|---|---|---|---|---|
| No adapter | 75.83 | 52.5 | 88.7 | 94.9 | 24.8 | 76.8 | 18.5 |
| LoRA r=1 | 89.47 | 77.6 | 94.3 | 97.2 | 11.7 | 90.3 | 9.4 |
| Conv-LoRA r=16 | 90.23 | 79.5 | 94.5 | 97.4 | 10.8 | 91.2 | 11.0 |
| Read-out only | 90.56 | 85.8 | 95.6 | 97.5 | 9.0 | 94.1 | 29.3 |
| Conv-LoRA + read-out | 91.82 | 84.2 | 95.1 | 97.7 | 8.6 | 93.5 | 17.8 |
| RBA (ours) | 91.95 | 84.0 | 94.9 | 97.4 | 8.4 | 93.5 | 19.2 |
| Read-out added to LoRA r=1 | +6.3 (50/50) | +0.2 | -3.4 (50/50) | +3.2 (50/50) | |||
| Read-out added to Conv-LoRA | +4.6 (48/50) | +0.3 | -2.2 (50/50) | +2.3 (49/50) | |||
These results are consistent with the structure of the read-out in Eq. (1). In SEEM, every candidate mask is a weighted sum of the same 512 maps at a quarter of the input resolution. An encoder adapter changes the content of these maps but not their resolution, whereas RBA adds high-resolution directions to them. Accordingly, the gain was stable on thin, elongated targets and absent on the FAZ, a large smooth region for which a quarter-resolution basis seems to suffice. Within the vessel targets, the gain landed on thin vessels and edges, while thick vessels were left almost unchanged, and RiDA showed the same effect.
The read-out branch alone failed on veins and arteries, where the model must decide which vessel type a pixel belongs to. A possible reason is that this decision needs context, such as how a vessel branches and where it crosses others, which only adapted encoder features carry. A rank-1 encoder branch was enough for this role once the read-out was adapted. LoRA with rank 16 and Conv-LoRA with the same read-out were not better on large vessels, and Conv-LoRA was even worse on veins, at 89.68% against 90.49%. In this work, it was therefore found that adaptation capacity in SEEM is better spent where the features are read than where they are computed.
4.5. Qualitative results
Qualitative examples show where the gain of RBA appears in the images. For large vessels, Fig. 5 shows the test images with the largest and the median gain of RBA over Conv-LoRA, images 10461 and 10498. Each image is shown in full and with a zoom on the area where the models disagreed most. On image 10461, Dice rose from 89.42% with Conv-LoRA to 92.01% with RBA, and on image 10498 from 88.03% to 89.80%, close to the mean gain in Table 1. In both zooms the gain came from thin branches. Conv-LoRA and LoRA with rank 16 missed a thin vessel on image 10498 that RBA and AdaptFormer recovered. On image 10461, all three encoder-only adapters missed most of a thin branch that RBA recovered in part. The remaining errors of all models were mostly one-pixel deviations along the edges of larger vessels, consistent with Table 9. The images were selected by their gain and illustrate the tables, but they do not by themselves show general performance.

Figure 5: Large-vessel segmentation after four clicks on test image 10461, with the largest gain, and image 10498, with the median gain. White marks correct vessel, blue missed vessel and orange false vessel. Numbers are Dice scores.
The same comparison for veins and arteries is shown in Fig. 6, with the read-out branch alone added as a further row. On the vein image with the largest gain, image 10458, Conv-LoRA missed most of a thin branch that RBA recovered, and Dice rose from 86.51% to 90.35%. On the artery image with the largest gain, image 10486, Dice rose from 86.82% to 90.34%, and the two median-gain images, 10452 and 10469, gained 1.85% and 1.60%. Without the encoder branch, the
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 11 of 15

Figure 6: Vein and artery segmentation after four clicks on the images with the largest and the median gain. Colours as in Fig. 5, with pink for false vessel on the other vessel type and grey for the other vessel type in the ground truth. Numbers are Dice scores.
model marked many vessels of the other type as the target, shown in pink, and its Dice fell to between 67% and 76%, in line with Table 8.
4.6. Interaction behaviour and computational cost
The gains in NoC@90 came mainly from better masks after the first click and not from larger gains per click. On large vessels, Dice@4 exceeded Dice@1 by only 0.04% to 0.06% for most adapted rows, and by 0.01% to 0.05% in the extra seeds of LoRA with rank 16 and Conv-LoRA. A click placed at random inside the error region lowered the Dice of RBA by only 0.04% at the fourth click, so the gains did not rest on ideal click placement. On the FAZ, the Dice of RBA decreased slightly from 97.92% at the first click to 97.52% at the fourth, which was not significant.
The cost of the adapters was measured at test time on the 3 mm subset, as the mean over 48 test images after two warm-up images and without data loading. The encoder time covers the pass run once per image, including the RBA basis, and the image time adds four click rounds. Table 10 also lists the trained parameters of each row and the peak GPU memory. With four clicks, every row took 381 to 404 ms per image and 72 to 75 ms per click round, a time dominated by the decoder of SEEM. RBA took 401 ms against 400 ms for
Conv-LoRA, and it needed 1.78 GB of GPU memory against 1.71 GB. The basis alone added about 7 ms to the encoder pass, which took 99 ms against 92 ms without an adapter. These properties make RBA practical for interactive use. The basis is computed once per image, so a click costs almost the same as with Conv-LoRA, and every model in this study was trained and tested on one laptop GPU with 8 GB.
5. Conclusion
In this work, the Read-out Basis Adapter (RBA) was introduced to adapt the basis from which SEEM generates its candidate masks, rather than only its image encoder, for interactive retinal vessel segmentation in OCTA. With 0.47 M additional parameters, RBA starts exactly as SEEM and keeps its candidate generation and selection. It outperformed LoRA, Conv-LoRA and AdaptFormer on all 50 large-vessel test images of the OCTA-500 3 mm subset and, averaged over three training seeds, improved Dice by 1.72 percentage points over Conv-LoRA. The gain was also observed for veins and arteries, on the 6 mm subset and on ROSE-O, and it came mainly from thin vessels and vessel boundaries. The rank-1 encoder branch supplied vessel identity, which the read-out branch alone could not provide for arteries and veins. With the original SEEM components frozen, RBA
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 12 of 15
Table 10
Cost at test time on the 3 mm subset, large vessels, on one NVIDIA GeForce RTX 3070 Ti Laptop GPU. Encoder is the pass run once per image, and Image adds four click rounds. Trained is in millions of parameters, and Memory is peak GPU memory.
| Method | Trained (M) | Memory (GB) | Encoder (ms) | Click (ms) | Image (ms) |
|---|---|---|---|---|---|
| No adapter | 40.38 | 1.70 | 92 | 74.6 | 390 |
| LoRA r=1 | 40.65 | 1.70 | 103 | 72.3 | 393 |
| LoRA r=16 | 44.71 | 1.71 | 105 | 72.3 | 394 |
| Conv-LoRA r=16 | 44.73 | 1.71 | 111 | 72.2 | 400 |
| AdaptFormer | 40.83 | 1.70 | 94 | 71.6 | 381 |
| Read-out only | 40.58 | 1.78 | 99 | 72.3 | 389 |
| LoRA r=16 + read-out | 44.92 | 1.80 | 111 | 72.8 | 402 |
| Conv-LoRA + read-out | 44.93 | 1.80 | 115 | 72.2 | 404 |
| RBA (ours) | 40.85 | 1.78 | 109 | 72.8 | 401 |
| RBA, SEEM frozen | 1.04 | 1.78 | 109 | 73.2 | 402 |
kept its accuracy while training only 0.30% of the parameters of SEEM. No significant difference was observed in FAZ segmentation, which suggests that the benefit of RBA lies in thin tubular structures. These findings show that, in SEEM, adaptation capacity pays more at the mask read-out than in the encoder.
Several directions can extend these findings. Multi-seed evaluations on the remaining targets and datasets, together with images from other OCTA devices, would establish the robustness and cross-device generalisability of the approach. Clicks placed along vessel boundaries or outside the error regions, followed by a study with expert annotators, would show how far the gains carry over to real interaction. Ablations of the number, sources and resolution of the basis maps would clarify which components contribute most to the gain. Extending the read-out adaptation to compact structures such as the FAZ is a further direction. Beyond SEEM, SAM and SAM 2 also form their masks from output tokens and one image embedding, so read-out adaptation can be investigated in these models. Finally, click-conditioned features could make each click more informative and strengthen the refinement over successive clicks.
CRediT authorship contribution statement
Jaafar M. Al-Ghabban: Conceptualization, Methodology, Software, Validation, Formal analysis, Investigation, Data curation, Visualization, Writing – original draft. Mohammad Reza Mohammadi: Conceptualization, Methodology, Supervision, Project administration, Writing – review & editing.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Declaration of generative AI and AI-assisted technologies in the manuscript preparation process
The authors did not use generative AI or AI-assisted technologies to produce the scientific content, experiments, or results reported in this work. Where such tools were used to assist with language editing and drafting code help, the authors reviewed and edited the output and take full responsibility for the content of the published article.
Funding
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Data availability
OCTA-500 [4] is publicly available at https://ieee-dataport.org/open-access/octa-500. ROSE and ROSE-O [5, 22] are available from their authors on request. Code for RBA and all analyses: https://github.com/jaafaralghabban/SEEM-adapter.
Acknowledgements
The authors thank the School of Computer Engineering, Iran University of Science and Technology, for computational support, and the providers of OCTA-500 and ROSE-O for sharing their data.
References
[1] Z. L. Teo, Y.-C. Tham, M. Yu, M. L. Chee, T. H. Rim, N. Cheung, M. M. Bikbow, Y. X. Wang, Y. Tang, Y. Lu, et al., Global prevalence of diabetic retinopathy and projection of burden through 2045: systematic review and meta-analysis, Ophthalmology 128 (2021) 1580–1591.
[2] Y.-C. Tham, X. Li, T. Y. Wong, H. A. Quigley, T. Aung, C.-Y. Cheng, Global prevalence of glaucoma and projections of glaucoma burden through 2040: a systematic review and meta-analysis, Ophthalmology 121 (2014) 2081–2090.
[3] T. E. De Carlo, A. Romano, N. K. Waheed, J. S. Duker, A review of optical coherence tomography angiography (octa), International journal of retina and vitreous 1 (2015) 5.
[4] M. Li, K. Huang, Q. Xu, J. Yang, Y. Zhang, Z. Ji, K. Xie, S. Yuan, Q. Liu, Q. Chen, Octa-500: A retinal dataset for optical coherence tomography angiography study, Medical image analysis 93 (2024) 103092.
[5] Y. Ma, H. Hao, J. Xie, H. Fu, J. Zhang, J. Yang, Z. Wang, J. Liu, Y. Zheng, Y. Zhao, Rose: a retinal oct-angiography vessel segmentation dataset and new model, IEEE transactions on medical imaging 40 (2020) 928–939.
[6] M. Li, Y. Chen, Z. Ji, K. Xie, S. Yuan, Q. Chen, S. Li, Image projection network: 3d to 2d image segmentation in octa images, IEEE Transactions on Medical Imaging 39 (2020) 3343–3354.
[7] K. Hu, S. Jiang, Y. Zhang, X. Li, X. Gao, Joint-seg: Treat foveal avascular zone and retinal vessel segmentation in octa images as a joint task, IEEE Transactions on Instrumentation and Measurement 71 (2022) 1–13.
[8] L. Peng, L. Lin, P. Cheng, Z. Wang, X. Tang, Fargo: A joint framework for faz and rv segmentation from octa images, in: International
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 13 of 15
Workshop on Ophthalmic Medical Image Analysis, Springer, 2021, pp. 42–51.
[9] T. Huang, D. Ma, X. Wu, Gaze into the details: Locality-sensitive enhancement for octa retinal vessel segmentation, arXiv preprint arXiv:2605.20651 (2026).
[10] X. Hu, J. Hao, Q. Yi, Y. Zhao, J. Zhang, Dual-stream disentangled model for microvascular extraction in five datasets from multiple octa instruments, Frontiers in Medicine 12 (2025) 1542737.
[11] X. Chen, Z. Zhao, Y. Zhang, M. Duan, D. Qi, H. Zhao, Focalclick: Towards practical interactive image segmentation, in: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2022, pp. 1290–1299.
[12] Q. Liu, Z. Xu, G. Bertasius, M. Niethammer, Simpleclick: Interactive image segmentation with simple vision transformers, in: 2023 IEEE/CVF International Conference on Computer Vision (ICCV), IEEE, 2023, pp. 22233–22243.
[13] K. Sofiuk, I. A. Petrov, A. Konushin, Reviving iterative training with mask guidance for interactive segmentation, in: 2022 IEEE international conference on image processing (ICIP), IEEE, 2022, pp. 3141–3145.
[14] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al., Segment anything, in: 2023 IEEE/CVF international conference on computer vision (ICCV), IEEE, 2023, pp. 3992–4003.
[15] X. Zou, J. Yang, H. Zhang, F. Li, L. Li, J. Wang, L. Wang, J. Gao, Y. J. Lee, Segment everything everywhere all at once, Advances in neural information processing systems 36 (2023) 19769–19782.
[16] C. Wang, X. Chen, H. Ning, S. Li, Sam-octa: a fine-tuning strategy for applying foundation model octa image segmentation tasks, in: ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), IEEE, 2024, pp. 1771–1775.
[17] X. Chen, C. Wang, H. Ning, S. Li, M. Shen, Sam-octa: Prompting segment-anything for octa image segmentation, Biomedical Signal Processing and Control 106 (2025) 107698.
[18] X. Chen, C. Wang, H. Ning, M. Zhang, M. Shen, S. Li, Sam-octa2: Layer sequence octa segmentation with fine-tuned segment anything model 2, in: ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), IEEE, 2025, pp. 1–5.
[19] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, W. Chen, Lora: Low-rank adaptation of large language models, arXiv preprint arXiv:2106.09685 (2021).
[20] Z. Zhong, Z. Tang, T. He, H. Fang, C. Yuan, Convolution meets lora: Parameter efficient finetuning for segment anything model, in: International Conference on Learning Representations, volume 2024, 2024, pp. 26755–26779.
[21] L. Ke, M. Ye, M. Danelljan, Y.-W. Tai, C.-K. Tang, F. Yu, et al., Segment anything in high quality, Advances in Neural Information Processing Systems 36 (2023) 29914–29934.
[22] J. Hao, T. Shen, X. Zhu, Y. Liu, A. Behera, D. Zhang, B. Chen, J. Liu, J. Zhang, Y. Zhao, Retinal structure detection in octa image via voting-based multitask learning, IEEE Transactions on Medical Imaging 41 (2022) 3969–3980.
[23] T. Melo, M. Costa, Á. Carneiro, A. Campilho, A. M. Mendonça, Multitask learning approach for foveal avascular zone segmentation in octa images, Pattern Analysis and Applications 29 (2026) 165.
[24] X. Chen, M. Shen, H. Ning, M. Zhang, C. Wang, S. Li, Snake with shifted window: Learning to adapt vessel pattern for octa segmentation, arXiv preprint arXiv:2404.18096 (2024).
[25] K. Ma, J. Zhang, X. Hu, Y. Chen, G. Wang, Y. Huang, J. Yuan, P. Xiao, Deep learning-based segmentation and quantitative analysis of retinal microstructures in optical coherence tomography angiography images using rs_unet3+, Intelligent Medicine 6 (2026) 12–23.
[26] B. Cheng, I. Misra, A. G. Schwing, A. Kirillov, R. Girdhar, Masked-attention mask transformer for universal image segmentation, in: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2022, pp. 1280–1289.
[27] R. Chen, H. Su, S. Tang, Nas-lora: Empowering parameter-efficient fine-tuning for visual foundation models with searchable adaptation, arXiv preprint arXiv:2512.03499 (2025).
[28] D. Yin, Y. Yang, Z. Wang, H. Yu, K. Wei, X. Sun, 1% vs 100%: Parameter-efficient low rank adapter for dense predictions, in: 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2023, pp. 20116–20126.
[29] A. Ittaf, R. M. Ahmed, Z. Zhang, B. Li, S. Zhou, Vesselsam: Leveraging sam for aortic vessel segmentation with atrouslora, arXiv preprint arXiv:2502.18185 (2025).
[30] S. Chen, C. Ge, Z. Tong, J. Wang, Y. Song, J. Wang, P. Luo, Adapterformer: Adapting vision transformers for scalable visual recognition, Advances in neural information processing systems 35 (2022) 16664–16678.
[31] T. Chen, L. Zhu, C. Deng, R. Cao, Y. Wang, S. Zhang, Z. Li, L. Sun, Y. Zang, P. Mao, Sam-adapter: Adapting segment anything in underperformed scenes, in: Proceedings of the IEEE/CVF international conference on computer vision, 2023, pp. 3367–3375.
[32] J. Wu, Z. Wang, M. Hong, W. Ji, H. Fu, Y. Xu, M. Xu, Y. Jin, Medical sam adapter: Adapting segment anything model for medical image segmentation, Medical image analysis 102 (2025) 103547.
[33] J. Hu, Y. Li, R. K. Jain, L. Lin, Y.-W. Chen, Spa: Leveraging the sam with spatial priors adapter for enhanced medical image segmentation, IEEE Journal of Biomedical and Health Informatics (2025).
[34] S. Khazem, Topolora-sam: Topology-aware parameter-efficient adaptation of foundation segmenters for thin-structure and cross-domain binary semantic segmentation, in: International Conference on Pattern Recognition, Springer, 2026, pp. 682–696.
[35] N. Abou Baker, D. Rohrschneider, U. Handmann, Parameter-efficient fine-tuning of large pretrained models for instance segmentation tasks, Machine Learning and Knowledge Extraction 6 (2024) 2783–2807.
[36] J. Yang, C. Li, X. Dai, J. Gao, Focal modulation networks, Advances in neural information processing systems 35 (2022) 4203–4217.
[37] D. Bolya, C. Zhou, F. Xiao, Y. J. Lee, Yolact: Real-time instance segmentation, in: Proceedings of the IEEE/CVF international conference on computer vision, 2019, pp. 9157–9166.
[38] F. Milletari, N. Navab, S.-A. Ahmadi, V-net: Fully convolutional neural networks for volumetric medical image segmentation, in: 2016 fourth international conference on 3D vision (3DV), Ieee, 2016, pp. 565–571.
[39] T.-Y. Lin, P. Goyal, R. Girshick, K. He, P. Dollár, Focal loss for dense object detection, in: Proceedings of the IEEE international conference on computer vision, 2017, pp. 2980–2988.
[40] S. S. M. Salehi, D. Erdogmus, A. Gholipour, Tversky loss function for image segmentation using 3d fully convolutional deep networks, in: International workshop on machine learning in medical imaging, Springer, 2017, pp. 379–387.
[41] I. Loschilov, F. Hutter, Decoupled weight decay regularization, arXiv preprint arXiv:1711.05101 (2017).
[42] S. Shit, J. C. Paetzold, A. Sekuboyina, I. Ezhov, A. Unger, A. Zhylka, J. P. Pluim, U. Bauer, B. H. Menze, cldice-a novel topology-preserving loss function for tubular structure segmentation, in: 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2021, pp. 16555–16564.
[43] F. Wilcoxon, Individual comparisons by ranking methods, Biometrics bulletin 1 (1945) 80–83.
[44] S. Holm, A simple sequentially rejective multiple test procedure, Scandinavian journal of statistics (1979) 65–70.
[45] O. Ronneberger, P. Fischer, T. Brox, U-net: Convolutional networks for biomedical image segmentation, in: International Conference on Medical image computing and computer-assisted intervention, Springer, 2015, pp. 234–241.
[46] O. Oktay, J. Schlemper, L. L. Folgoc, M. Lee, M. Heinrich, K. Misawa, K. Mori, S. McDonagh, N. Y. Hammerla, B. Kainz, et al., Attention u-net: Learning where to look for the pancreas, arXiv preprint arXiv:1804.03999 (2018).
[47] M. Li, Y. Zhang, Z. Ji, K. Xie, S. Yuan, Q. Liu, Q. Chen, Ipn-v2 and octa-500: Methodology and dataset for retinal image segmentation,
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 14 of 15 arXiv preprint arXiv:2012.07261 5 (2020) 7.
[48] Y. Gao, M. Zhou, D. N. Metaxas, Utnet: a hybrid transformer architecture for medical image segmentation, in: International conference on medical image computing and computer-assisted intervention, Springer, 2021, pp. 61–71.
[49] S. Vandenhende, S. Georgoulis, L. Van Gool, Mi-net: Multi-scale task interaction networks for multi-task learning, in: European conference on computer vision, Springer, 2020, pp. 527–543.
[50] A. F. Frangi, W. J. Niessen, K. L. Vincken, M. A. Viergever, Multiscale vessel enhancement filtering, in: International conference on medical image computing and computer-assisted intervention, Springer, 1998, pp. 130–137.
Al-Ghabban and Mohammadi: Preprint submitted to Elsevier
Page 15 of 15