Reliability-Guided Vision-Language Decoding with Text-Aware Skip Refinement for Medical Image Segmentation
Authors: Sivan Talaei, Fatemeh Daneshfar, Abdulhady Abas Abdullah, Mourad Oussalah
Organizations: Department of Computer Engineering, University of Kurdistan, Sanandaj, Kurdistan, Iran · Artificial Intelligence and Innovation Centre, University of Kurdistan, Erbil, Kurdistan, Iraq · Center for Machine Vision and Signal Analysis, University of Oulu, Oulu, Finland
Medical image segmentation remains challenging when targets exhibit limited visual distinction, irregular structure, or substantial variation across imaging modalities. Medical text can reduce this ambiguity, but indiscriminate fusion may introduce unreliable guidance. We present RELiF, a vision--language framework that integrates text through reliability-guided decoding. Its Reliability-guided Fusion Gate (RFG) adaptively controls cross-modal updates, while the Text-guided Skip Refinement Adapter (TSRA) refines high-resolution features using text guidance. RELiF is evaluated on radiographic, CT, and endoscopic segmentation tasks, where it shows competitive performance across diverse imaging characteristics and target appearances. Additional analyses examine efficiency and stability. The complementary uncertainty representation derived from the reliability response also shows an association with prediction difficulty, with higher uncertainty values occurring more frequently in pixels associated with segmentation errors. Code: https://github.com/SeivanTalaie/RELiF.
Figures & tables
Figure 1: RFG behavior under controlled image and text degradation on QaTa-COV19. Lines show the mean gate response across the test set and three RFG stages, while bars indicate Dice gains (pp) over ungated fusion.
Figure 2: Overview of RELiF: (a) vision–language segmentation architecture. (b) Text-guided Skip Refinement Adapter (TSRA). (c) Reliability-guided Decoding Attention Block (RDAB) with its Reliability-guided Fusion Gate (RFG).
Method
QaTa-COV19
MosMedData+
Kvasir-SEG
Dice(%)
mIoU(%)
Dice(%)
mIoU(%)
Dice(%)
mIoU(%)
Monomodal models
U-Net (’15) [ 12 ]
78.91
69.32
64.30
50.50
82.33
74.26
nnUNet (’21) [ 5 ]
80.30
70.62
72.32
60.14
84.22
75.41
UCTransNet (’22) [ 14 ]
79.00
69.34
65.71
52.55
91.04
87.31
Multimodal models
Table 1: Comparison with state-of-the-art methods. best and second-best results are bold and underlined , respectively.
Figure 3: Qualitative segmentation results across three datasets.
Method
Regime
QaTa-COV19
MosMedData+
Kvasir-SEG
Dice(%)
mIoU(%)
Dice(%)
mIoU(%)
Dice(%)
mIoU(%)
BiCLIP [ 13 ]
50%
89.83
81.53
79.72
66.27
86.55
76.29
10%
87.16
77.25
69.23
52.95
71.72
55.91
LViT [ 7 ]
50%
78.81
69.55
58.98
47.28
80.66
73.30
10%
74.72
64.99
51.07
39.59
55.68
44.38
RELiF
50%
91.10
83.66
78.06
64.01
91.95
85.10
Table 2: Segmentation performance with 50% and 10% of the training data across three datasets.
Dataset
Error prevalence(%)
AUROC ↑
AUPRC ↑
Random AUPRC
AUPRC lift ↑
QaTa-COV19
2.03
0.7724
0.0824
0.0203
4.06 ×
MosMedData+
0.65
0.8389
0.0199
0.0065
3.04 ×
Kvasir-SEG
1.88
0.8473
0.1035
0.0188
5.51 ×
Table 3: Uncertainty-based pixel error detection using RFG-derived uncertainty response. Error prevalence defines the random AUPRC baseline, while AUPRC lift measures gains.
Method
MosMedData+
Kvasir-SEG
Dice(%)
mIoU(%)
Dice(%)
mIoU(%)
Component Ablation
Base
78.48
64.58
92.37
85.82
Base + RFG
78.92
65.18
92.89
86.72
Base + TSRA
79.06
65.37
92.91
86.76
Full RELiF (RFG + TSRA)
79.27
65.66
93.28
87.41
Table 4: Ablation study of RELiF evaluates individual components and textual guidance strategies using Dice and mIoU.
Textual descriptions can reduce ambiguity in medical image segmentation by specifying the finding and location to be delineated. Existing text-guided methods mainly improve where image and language features interact but generally retain a single learned update pathway across all image-text pairs. We propose MRSeg, a parameter-efficient framework that uses each image-text pair to route the adaptation of visual and textual features before dense prediction. Frozen ConvNeXt-Tiny and PubMedBERT encoders provide multiscale visual features and clinical text tokens. A joint router uses the deepest visual feature and pooled text to predict a sparse mixture over low-rank adapter bases. The resulting route is shared across separate adapter banks for two visual scales and text, coordinating their adaptation while keeping the feature-specific parameters separate. Region Bridge uses text-derived queries to aggregate dense visual tokens into latent regions, refines these regions through self-attention and text cross-attention, and redistributes the refined information back to the feature maps. Finally, a multiscale decoder combines refined semantic features with shallow image evidence. On QaTa-COV19 and MosMedData+, MRSeg achieves 90.90/83.32 and 81.53/68.82 Dice/mIoU, respectively, with 7.11M trainable parameters and 7.60 GFLOPs. Code: https://github.com/maklachur/MRSeg.
Md Maklachur Rahman, Md Hasan Al Banna, Saraf Anjum +2
Texas A&M University, College Station, TX 77843, USA · Independent Researcher
Language-guided Medical Image Segmentation (LMIS) has shown great potential to improve the delineation of anatomical structures and lesions by integrating clinical textual information. Existing methods generally rely on either implicit interaction between textual and visual features or auxiliary coarse-grained supervision for cross-modal alignment. However, these methods lack explicit and fine-grained constraints to ensure semantic consistency, causing a mismatch between language and the segmentation outputs. To address this issue, we propose Text-as-Illumination Retinex Network (TIRNet), a novel Retinex-inspired framework that treats text embeddings as semantic illumination for feature modulation, thereby improving semantic consistency in LMIS. TIRNet introduces two key blocks integrated at each decoder stage: (1) the Retinex-inspired Text Modulation Block (RTMB), which employs positive and negative illumination maps to enhance text-relevant foreground features and suppress background interference; and (2) the Consistent Detail Compensation Block (CDCB), which selectively recovers high-frequency details via a consistency-gated mechanism conditioned on illumination reliability. Furthermore, we propose a Multi-Scale Illumination Supervision Loss (MSIS-Loss), comprising a Region-Grounded Contrastive Loss (RGC-Loss) that enforces cross-modal similarity to be concentrated in text-relevant foreground regions and suppressed in background regions, and a Background Suppression Loss (BS-Loss) that provides pixel-level supervision for negative illumination maps, jointly ensuring a precise cross-modal alignment at each decoder stage. Extensive experiments on the MosMedData+ and QaTa-COV19 datasets demonstrate that TIRNet achieves state-of-the-art performance in LMIS. The code is available at: https://github.com/anaanaa/TIRNet.
Jian Shi, Cheng Zhen, Pingping Zhang +6
School of Software Technology & DUT-RU International School of Information Science and Engineering, Dalian University of Technology, Dalian, China · School of Future Technology, Dalian University of Technology, Dalian, China · Central Hospital of Dalian University of Technology, Dalian, China +2
Medical image segmentation remains challenging due to limited annotations for training, ambiguous anatomical features, and domain shifts. While vision-language models such as CLIP offer strong cross-modal representations, their potential for dense, text-guided medical image segmentation remains underexplored. We present MedCLIPSeg, a novel framework that adapts CLIP for robust, data-efficient, and uncertainty-aware medical image segmentation. Our approach leverages patch-level CLIP embeddings through probabilistic cross-modal attention, enabling bidirectional interaction between image and text tokens and explicit modeling of predictive uncertainty. Together with a soft patch-level contrastive loss that encourages more nuanced semantic learning across diverse textual prompts, MedCLIPSeg effectively improves data efficiency and domain generalizability. Extensive experiments across 16 datasets spanning five imaging modalities and six organs demonstrate that MedCLIPSeg outperforms prior methods in accuracy, efficiency, and robustness, while providing interpretable uncertainty maps that highlight local reliability of segmentation results. This work demonstrates the potential of probabilistic vision-language modeling for text-driven medical image segmentation.
Taha Koleilat, Hojat Asgariandehkordi, Omid Nejati Manzari +3