NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

XLIP: Cross-modal Attention Masked Modelling for Medical Language-Image Pre-Training

Biao Wu, Yutong Xie, Zeyu Zhang, Minh Hieu Phan, Qi Chen, Ling Chen, Qi Wu · DOI

TL;DR

This paper introduces MMCLIP, a novel framework for medical vision-language pre-training that tackles the challenges of limited medical data and the underutilization of unpaired data. By employing attention-guided masked modeling for both images and text, MMCLIP significantly improves the understanding of pathological features and achieves state-of-the-art results in zero-shot and fine-tuning medical image classification tasks.

What Problem Does This Paper Address?

Vision-and-language pre-training (VLP) has shown great promise in transferring knowledge across various medical imaging tasks, reducing the need for extensive labeled data. However, existing VLP methods, particularly those using masked modeling (like Masked Image Modeling - MIM, and Masked Language Modeling - MLM), face significant hurdles in the medical domain.

  1. Scarcity of Medical Data: Medical data is inherently scarce and often lacks the detailed annotations needed for accurate reconstruction of subtle pathological features by standard masked modeling techniques. Randomly masking parts of an image or text might not effectively highlight the critical diagnostic information.
  2. Underutilization of Data: Most VLP approaches primarily rely on paired image-text data. This overlooks the vast amount of unpaired medical images and reports, limiting the model's overall learning capacity and robustness.

MMCLIP aims to bridge this gap by proposing a framework that leverages both paired and unpaired data more effectively, with a focus on learning richer pathological representations.

Methods

MMCLIP introduces two core novel modules built upon a standard Vision Transformer (ViT) and text encoder architecture (similar to CLIP):

  • Attention-Masked Image Modeling (AttMIM): This module addresses the limitations of random masking in medical images. Instead of random masking, AttMIM uses attention mechanisms to identify and mask image features that are most relevant to the diagnostic report, disease-specific prompts, and even self-attention within the image itself. This "attention-guided" masking ensures that the model focuses on reconstructing the most diagnostically important regions, even when paired reports are missing. It achieves this through a combination of:
  • Image-Report Cross-Attention: Focuses on image regions relevant to the text report.
  • Prompt-Driven Attention: Uses disease-specific prompts to guide attention to potential lesion areas.
  • Image Self-Attention: Helps the model focus on challenging image regions. These attention maps are then blended to create a final mask for image reconstruction.

  • Entity-Driven Masked Language Modeling (EntMLM): For text, MMCLIP moves beyond random word masking. It leverages Named Entity Recognition (NER) tools (specifically ScispaCy) to identify and mask key medical entities (like diseases, symptoms, treatments) within reports. This "entity-guided" masking ensures that the model prioritizes learning the accurate representation and reconstruction of critical medical terminology, which is crucial for clinical accuracy, rather than just general text fluency. The model also incorporates image representations into the text decoder to aid in understanding these medical entities.

MMCLIP also incorporates standard contrastive learning to align image and text embeddings. To manage the different convergence rates of contrastive and masked modeling objectives, it employs a warm-up strategy for masked modeling before jointly training all objectives.

Datasets

  • Pre-training:
    • MIMIC-CXR: A large dataset of chest X-rays with paired images and reports.
  • PadChest: A comprehensive chest X-ray dataset, used here primarily for its images (unpaired data) due to language limitations.
  • Downstream Tasks:
    • CheXpert: A large-scale dataset for 14 common chest conditions.
  • COVIDx: For COVID-19 diagnosis.
  • Pneumonia: For pneumonia classification.
  • Xray14: For 14 common thorax diseases.
  • PadChest (unseen classes): Used to evaluate zero-shot performance on categories not seen during pre-training.

Key Insights and Ideas

  • Attention is Key for Medical Masking: Simply masking random parts of medical images or text is insufficient. Guiding the masking process with attention mechanisms (driven by reports, disease prompts, or image self-attention) is crucial for focusing on diagnostically relevant features.
  • Medical Entities Matter Most: In medical text, accurately identifying and reconstructing specific medical entities is more important than general language fluency. EntMLM's entity-driven approach directly addresses this.
  • Unpaired Data is a Goldmine: MMCLIP demonstrates that leveraging unpaired medical images (e.g., from PadChest) through prompt-driven attention can significantly enhance representation learning, especially when paired reports are unavailable.
  • Unified Framework for MIM/MLM: The paper successfully integrates attention-guided MIM and entity-guided MLM into a single, cohesive pre-training framework, showing synergistic benefits.

Key Results

MMCLIP achieved state-of-the-art (SOTA) performance on five downstream classification datasets in both zero-shot and fine-tuning settings.

  • Zero-Shot Classification: MMCLIP consistently outperformed strong baselines like MedKlip, GLORIA, and CheXzero across multiple datasets (CheXpert, PadChest-Seen, Pneumonia), showing significant improvements in AUC scores (e.g., a 4-5% lift on unseen classes in PadChest).
  • Fine-Tuning: MMCLIP also demonstrated superior performance in fine-tuning tasks, particularly when leveraging unpaired data like PadChest to improve image encoder capabilities.
  • Ablation Studies: The paper showed that both AttMIM and EntMLM individually contribute to performance gains, and their fusion within MMCLIP yields the best results. The effectiveness of different mask ratios and strategies was also analyzed, highlighting optimal configurations.

Limitations and Future Work

  • Data Scarcity: While MMCLIP improves the utilization of existing data, the fundamental challenge of limited, high-quality annotated medical data remains.
  • Computational Cost: Advanced attention mechanisms and multi-strategy masking can increase computational demands.
  • Generalizability: While tested on several datasets, further validation across a wider range of medical imaging modalities and tasks would be beneficial.

The authors suggest that their framework provides a strong foundation for future research in medical VLP, particularly in exploring more sophisticated attention mechanisms and entity recognition strategies. The ability to effectively utilize unpaired data is highlighted as a key direction for future work.

Summary updated

BibTeX
@inproceedings{wu2026xlip,
  author = {Biao Wu and Yutong Xie and Zeyu Zhang and Minh Hieu Phan and Qi Chen and Ling Chen and Qi Wu},
  title = {{XLIP: Cross-modal Attention Masked Modelling for Medical Language-Image Pre-Training}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.113},
}
Figure