# Towards Text-Mask Consistency in Medical Image Segmentation

AI.info

> Medical segmentation systems can produce masks that conflict with their text prompts—for example, marking the wrong number of lesions or the wrong lung region.

**arXiv**: 2611.27050 · accepted · ICLR

**Published**: 2026-11-20

**Authors**: Jie Gui, Hang Tu, Wen Sha, Xiuquan Du

## In plain words

Medical segmentation systems can produce masks that conflict with their text prompts—for example, marking the wrong number of lesions or the wrong lung region. The authors argue that two issues contribute: repeated clinical wording can confuse standard image–text contrastive training, and common fusion methods do not give language a sufficiently direct role in shaping spatial features.

## AI summary

## Overview

- **Research area:** Vision-language-guided medical image segmentation.
- **Technical level:** Intermediate.
- **Scope:** The paper introduces C2Seg, a two-stage method designed to make medical image segmentation masks better match the meaning and spatial instructions in their accompanying text.

## What This Paper Is About

Medical segmentation systems can produce masks that conflict with their text prompts—for example, marking the wrong number of lesions or the wrong lung region. The authors argue that two issues contribute: repeated clinical wording can confuse standard image–text contrastive training, and common fusion methods do not give language a sufficiently direct role in shaping spatial features. C2Seg aims to improve both text–mask consistency and segmentation accuracy.

## Key Contributions

1. **Cluster-aware Contrastive Learning (CaCL):** Instead of treating every non-matching image–text pair as a negative, CaCL uses similarities between text descriptions to create soft training targets. This is intended to reduce false negatives when different cases share similar or identical wording.
2. **Bidirectional Complementary Attention Module (BCAM):** BCAM creates both a vision-dominant path, which adds language information to image features, and a language-dominant path, which uses text-conditioned attention over image locations. Both produce features that retain spatial structure.
3. **KAN-based feature modeling and gating:** The method uses Kolmogorov-Arnold Networks (KANs) in parts of the visual encoder and attention module, and uses KAN-based gates to selectively refine the visual and language features before combining them.
4. **Evaluation across four datasets:** The authors test C2Seg on QaTa-COV19, MosMedData+, CVC-ClinicDB, and Kvasir, including comparisons with segmentation methods that do and do not use text.

## Main Findings

- **Segmentation scores:** C2Seg achieved the highest Dice and mean Intersection over Union (mIoU) values among the methods in the paper’s comparison tables on all four datasets. Its reported Dice and mIoU were 85.25% and 76.97% on QaTa-COV19, 77.81% and 65.17% on MosMedData+, 91.82% and 86.81% on CVC-ClinicDB, and 91.92% and 85.27% on Kvasir.
- **Boundary and location measures:** C2Seg also had the lowest reported HD95 and ASSD values in the comparison tables on those datasets, indicating more accurate boundaries and spatial delineation according to these metrics.
- **Text-guided behavior:** Visual examples show C2Seg more closely following prompts about lesion count and location—for instance, distinguishing a single lesion from two or focusing on a specified lung region. The paper assesses this consistency qualitatively; it does not introduce a dedicated quantitative text–mask consistency metric.
- **Component ablations:** On MosMedData+ and CVC-ClinicDB, the reported results improve as the authors add BCAM, K-Gate, and contrastive-learning components to the model.
- **Encoder comparisons:** In the reported experiments, the frozen CLIP text encoder performed slightly better than BioBERT-Base and PubMedBERT within the tested framework. The authors suggest that CLIP’s image–text alignment may suit the short, location- and quantity-focused descriptions used in their work.

## Methodology in Plain English

C2Seg has a pretraining stage and a segmentation stage.

In pretraining, the system compares each text description with the other descriptions in its training batch. Rather than assuming that only the paired image and text belong together, CaCL assigns more training weight to descriptions with similar meanings. This is intended to avoid pushing apart examples just because they are different cases when their wording is alike.

In the segmentation stage, image features and text features are brought together through BCAM. One path uses text to enrich image features at each location. The other uses language-conditioned attention over image locations and returns spatially organized features for decoding. KAN-based gates then refine and combine the two feature streams. The model keeps its language encoder frozen while fine-tuning the visual encoder, then uses a decoder to produce the segmentation mask.

## Why This Matters

**Research impact:** The paper addresses a practical gap between understanding a prompt and producing a mask that follows it. Its approach combines softer image–text training targets with a fusion mechanism intended to preserve spatial information, offering directions for research on more reliable language-guided segmentation.

**Potential applications:**

- Segmenting lung infections in chest X-rays or CT slices using descriptions of laterality, location, or lesion count.
- Identifying polyps in colonoscopy images using accompanying clinical-style descriptions.
- Supporting medical-image annotation workflows by producing text-conditioned masks for review and correction.
- Building research tools that compare a requested anatomical target with a model’s predicted segmentation.

**Industry relevance:** More dependable text-conditioned segmentation could support medical imaging software and clinical research workflows where users need to specify a target in words. The paper reports benchmark evaluations, however; it does not establish clinical effectiveness or deployment readiness.

## Future Directions

1. Develop a quantitative measure of whether a predicted mask matches text attributes such as lesion count, laterality, and location.
2. Test robustness to noisy or incomplete descriptions, including spelling errors, abbreviations, and missing findings.
3. Evaluate whether the approach generalizes beyond the four datasets and the relatively clean, structured text used in the reported experiments.
4. Examine how the method behaves in clinical workflows, including whether its text-conditioned predictions are reliable enough to assist expert review.

## Target Audience

This paper will be most useful to researchers and graduate students working on medical image segmentation, vision-language models, multimodal learning, or contrastive learning. It may also interest medical-imaging engineers and clinical AI teams exploring how natural-language descriptions could guide segmentation, while its limitations should be kept in mind when considering real-world use.

## Authors’ abstract

Vision-language models for medical image segmentation often produce masks that conflict with the accompanying text, especially under multi-site/multi-lesion descriptions. We trace this failure to two factors: (i) highly templated and repetitive clinical language causes one-to-one hard contrastive learning to yield numerous false negatives, weakening cross-modal alignment; and (ii) predominantly vision-driven, one-way cross-attention lacks a language-dominant, spatially aware…

[The full abstract on arXiv](https://arxiv.org/abs/2611.27050)

[Read the original paper](https://arxiv.org/abs/2611.27050)

## Related papers

- [Text-Guided Medical Image Segmentation via Residual Aggregation and Dense Alignment Representations](https://ai.info/paper/text-guided-medical-image-segmentation-via-residual-aggregation-and-2610.14944) 2026-10-10 · cs.CV · Also by Hang Tu, Jie Gui +2
- [A dataset of medication images with instance segmentation masks for preventing adverse drug events](https://ai.info/paper/a-dataset-of-medication-images-with-instance-segmentation-masks-for-2603.10825) 2026-03-11 · cs.CV · Key terms of the title in common
- [VoxTell: Free-Text Promptable Universal 3D Medical Image Segmentation](https://ai.info/paper/voxtell-free-text-promptable-universal-3d-medical-image-segmentation-2511.11450) 2025-11-14 · cs.CV · Key terms of the title in common
- [TCSA-UDA: Text-Driven Cross-Semantic Alignment for Unsupervised Domain Adaptation in Medical Image Segmentation](https://ai.info/paper/tcsa-uda-text-driven-cross-semantic-alignment-for-unsupervised-domain-2511.05782) 2025-11-08 · cs.CV · Key terms of the title in common
- [TerraVis: Towards Evaluation of World-Grounded Visual Consistency in Text-to-Image Generation via MLLM Workflows](https://ai.info/paper/terravis-towards-evaluation-of-world-grounded-visual-consistency-in-2610.02959) 2026-10-02 · cs.CV · Key terms of the title in common

---

Canonical: https://ai.info/paper/towards-text-mask-consistency-in-medical-image-segmentation-2611.27050
