CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classification

Haoran Lai, Qingsong Yao, Zihang Jiang, Rongsheng Wang, Zhiyang He +2 more
2/9/2026

No official code found. Best implementation: laihaoran/CARZero (73 stars, Apache-2.0, last commit 2024-10-07).

Abstract

The advancement of Zero-Shot Learning in the medi-cal domain has been driven forward by using pretrained models on large-scale image-text pairs, focusing on image-text alignment. However, existing methods primarily rely on cosine similarity for alignment, which may not fully capture the complex relationship between medical images and reports. To address this gap, we introduce a novel approach called Cross-Attention Alignment for Radiology Zero-Shot Classification (CARZero). Our approach innovatively leverages cross-attention mechanisms to process image and report features, creating a Similarity Representation that more accurately reflects the intricate relationships in medical semantics. This representation is then linearly projected to form an image-text similarity matrix for cross-modality alignment. Additionally, recognizing the pivotal role of prompt selection in zero-shot learning, CARZero in-corporates a Large Language Model-based prompt alignment strategy. This strategy standardizes diverse diagnostic expressions into a unified format for both training and inference phases, overcoming the challenges of manual prompt design. Our approach is simple yet effective, demonstrating state-of-the-art performance in zero-shot classification on five official chest radiograph diagnostic test sets, including remarkable results on datasets with long-tail distributions of rare diseases. This achievement is attributed to our new image-text alignment strategy, which effectively addresses the complex relationship between medical images and reports. Code and models are available at https://github.com/laihaoran/CARZero.

View on arXivView PDF

Code Implementations(1)

laihaoran/CARZeroCommunity100%
Apache-2.0
737Shell, PythonMar 10, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{lai2026carzero,
  title  = {CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classification},
  author = {Haoran Lai and Qingsong Yao and Zihang Jiang and Rongsheng Wang and Zhiyang He and Xiaodong Tao and S. K. Zhou},
  year   = {2026},
  eprint = {2402.17417},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2402.17417},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.17417.svg)](https://codeofpaper.com/paper/2402.17417)

Discussion