Introduction
Referring Medical Image Segmentation (RMIS) is the task of delineating specific regions in a medical image based on a natural language prompt, such as "bilateral pulmonary infection in the upper left lung." While highly beneficial for clinical workflows, RMIS faces two primary challenges: the domain gap between general-purpose foundation models and specialized medical data, and confounding bias caused by spurious correlations in medical imaging protocols or scanner artifacts.
CausalCLIPSeg addresses these hurdles by adapting the CLIP vision-language model through a novel causal intervention module and an adversarial training strategy. This approach enables the model to ignore distracting background artifacts and focus on actual lesions, achieving state-of-the-art performance on COVID-19 chest X-ray datasets.
Methodology
The CausalCLIPSeg framework is built upon three main pillars designed to bridge the gap between image-level semantic understanding and pixel-level segmentation.
CLIP-Driven Encoders and Cross-Modal Decoding
The model leverages CLIP’s pre-trained Transformer for text and ResNet-101 for vision. Despite CLIP not being trained on medical data, its latent semantic space is rich enough to be aligned with the medical domain. To transition from image-level understanding to pixel-level masks, a tailored decoder projects text features into a high-dimensional space and performs a cross-correlation search across visual feature maps to identify regions matching the description.
Causal Intervention and Adversarial Masking
The core innovation is the Causal Intervention Module, based on a Structural Causal Model (SCM). It employs an "Adversarial Masking" mechanism to generate two complementary masks: one for "causal" features (the lesion) and one for "confounding" features (noise or background).
During training, the model engages in an adversarial min-max game. It minimizes segmentation loss for causal features while maximizing it for confounding features. This forces the model to "unlearn" spurious correlations by proving that confounding features are truly irrelevant to the segmentation task.
Experimental Results
The model was evaluated on the QaTa-COV19 dataset, which includes 9,258 chest X-ray radiographs with manual annotations of COVID-19 lesions, enhanced with textual descriptions.
Quantitative Performance
CausalCLIPSeg achieved state-of-the-art (SOTA) results on the QaTa-COV19 benchmark, outperforming both vision-only and multi-modal competitors. It reached a Dice coefficient of 85.21% and a mean Intersection-over-Union (mIoU) of 76.90%, significantly surpassing the previous best model, LViT (83.66% Dice). Ablation studies confirmed the importance of its components: removing the causal intervention module or CLIP pre-trained weights resulted in drops of 1.5% and 1.6% in Dice score, respectively.
Qualitative Analysis
Visual comparisons demonstrate that CausalCLIPSeg produces cleaner boundaries and significantly fewer false positives in healthy lung tissue compared to standard architectures like U-Net or LViT.
Discussion and Conclusion
CausalCLIPSeg demonstrates that CLIP's latent features are a "goldmine" for specialized tasks when properly aligned. By prioritizing causality over simple correlation, the model effectively distinguishes between lesions and background artifacts. While currently focused on COVID-19 X-rays, future work will explore its application to other modalities like CT or MRI and its sensitivity to varied medical prompt phrasing. This causal framework represents a significant step toward more robust and generalizable medical image segmentation.
Summary updated