CARZero: Cross-Attention Alignment for Radiology Zero-Shot Classification
Abstract: The advancement of Zero-Shot Learning in the medical domain has been driven forward by using pre-trained 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 incorporates a LLM-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.
- Making the most of text semantics to improve biomedical vision–language processing. In European conference on computer vision, pages 1–21. Springer, 2022.
- Padchest: A large chest x-ray image dataset with multi-label annotated reports. Medical image analysis, 66:101797, 2020.
- Computer-aided diagnosis in the era of deep learning. Medical physics, 47(5):e218–e227, 2020.
- Disco-clip: A distributed contrastive loss for memory efficient clip training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22648–22657, 2023.
- Clip-art: Contrastive pre-training for fine-grained art classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3956–3960, 2021.
- Preparing a collection of radiology examinations for distribution and retrieval. Journal of the American Medical Informatics Association, 23(2):304–310, 2016.
- Maskclip: Masked self-distillation advances contrastive language-image pretraining. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10995–11005, 2023.
- An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
- Domain-specific language model pretraining for biomedical natural language processing. ACM Transactions on Computing for Healthcare (HEALTH), 3(1):1–23, 2021.
- Gloria: A multimodal global-local representation learning framework for label-efficient medical image recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3942–3951, 2021.
- Audio-enhanced text-to-video retrieval using text-conditioned feature alignment. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12054–12064, 2023.
- Chexpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the AAAI conference on artificial intelligence, pages 590–597, 2019.
- Artificial intelligence and covid-19: deep learning approaches for diagnosis and treatment. Ieee Access, 8:109581–109595, 2020.
- Mimic-cxr, a de-identified publicly available database of chest radiographs with free-text reports. Scientific data, 6(1):317, 2019.
- Imagic: Text-based real image editing with diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6007–6017, 2023.
- Maple: Multi-modal prompt learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19113–19122, 2023.
- Deep learning for rare disease: A scoping review. Journal of Biomedical Informatics, page 104227, 2022.
- Align before fuse: Vision and language representation learning with momentum distillation. Advances in neural information processing systems, 34:9694–9705, 2021.
- Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In International Conference on Machine Learning, pages 12888–12900. PMLR, 2022.
- Visualbert: A simple and performant baseline for vision and language. arXiv preprint arXiv:1908.03557, 2019.
- Chestx-det10: chest x-ray dataset on detection of thoracic abnormalities. arXiv preprint arXiv:2006.10550, 2020.
- Ei-clip: Entity-aware interventional contrastive learning for e-commerce cross-modal retrieval. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18051–18061, 2022.
- Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.
- Chexternal: Generalization of deep learning models for chest x-ray interpretation to photos of chest x-rays and external clinical settings. In Proceedings of the Conference on Health, Inference, and Learning, pages 125–132, 2021.
- Galip: Generative adversarial clips for text-to-image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14214–14223, 2023.
- Expert-level detection of pathologies from unannotated chest x-ray images via self-supervised learning. Nature Biomedical Engineering, 6(12):1399–1406, 2022.
- Deep learning in cancer diagnosis, prognosis and treatment selection. Genome Medicine, 13(1):1–17, 2021.
- Attention is all you need. Advances in neural information processing systems, 30, 2017.
- Multi-granularity cross-modal alignment for generalized medical visual representation learning. Advances in Neural Information Processing Systems, 35:33536–33549, 2022.
- Chestx-ray8: Hospital-scale chest x-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2097–2106, 2017.
- Medklip: Medical knowledge enhanced language-image pre-training. medRxiv, pages 2023–01, 2023.
- Ra-clip: Retrieval augmented contrastive language-image pre-training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19265–19274, 2023.
- Top-down neural attention by excitation backprop. International Journal of Computer Vision, 126(10):1084–1102, 2018.
- Knowledge-enhanced visual-language pre-training on chest radiology images. Nature Communications, 14(1):4542, 2023.
- Contrastive learning of medical visual representations from paired images and text. In Machine Learning for Healthcare Conference, pages 2–25. PMLR, 2022.
- A survey of large language models. arXiv preprint arXiv:2303.18223, 2023.
- Advancing radiograph representation learning with masked record modeling. arXiv preprint arXiv:2301.13155, 2023.
- Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337–2348, 2022.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Explain it Like I'm 14
1. What is this paper about?
This paper introduces CARZero, a new computer method that helps read chest X‑rays without needing lots of labeled examples for each disease. It does this by matching X‑ray images with their written reports and learning how certain words (like “pneumonia” or “fracture”) relate to certain patterns in the images. The method is designed for “zero-shot” classification, which means it can check for diseases it hasn’t been explicitly trained on with labeled examples.
2. What questions is it trying to answer?
- Can we build a system that understands the complex connection between medical images and the words in radiology reports better than older methods?
- Can this system correctly spot both common and rare diseases in chest X‑rays without extra labeled data?
- Can we make the wording (prompts) used for training and testing more consistent, so the system performs more reliably?
3. How does it work? (Methods explained simply)
Think of matching an X‑ray image to a report like matching a picture to a caption. Older methods mostly used a simple “similarity score” (like checking how close two arrows point, called cosine similarity). But medical reports can be complicated: one report may mention several findings and where they are in the chest.
CARZero uses two key ideas:
- Cross-attention alignment: Imagine the words in the report and the small regions of the image “talking” to each other. Cross‑attention is like shining a smart flashlight back and forth: each word looks for the most relevant spots in the image, and each image region looks for the most relevant words. From this back‑and‑forth, CARZero builds a “Similarity Representation” (SimR), which is a learned summary of how well the report and the image fit together. Instead of a simple, hand‑made score, SimR lets the model learn a smarter way to measure the match.
- Prompt alignment with a LLM: Radiology reports can be written in many different ways. CARZero uses an LLM (a powerful text model) to rewrite different report sentences into a consistent, simple template like: “There is [disease].” This makes the language the model sees during training and testing more uniform, helping it understand and generalize better.
Training approach (in everyday terms):
- The model sees many image–report pairs. It learns to give a high match score to pairs that belong together and a low score to mismatched pairs. This is like a “spot the true partner” game, repeated over and over, so the system gets very good at telling matches from non‑matches (a contrastive learning setup).
4. What did they find, and why does it matter?
Main results:
- CARZero sets new best scores (state of the art) on five well‑known chest X‑ray test sets. Scores use AUC (Area Under the Curve), which runs from 0 to 1 (higher is better):
- Open‑I: 0.838
- PadChest (192 diseases, many rare): 0.810
- PadChest20 (only rare diseases): 0.837
- ChestXray14: 0.811
- CheXpert: 0.923
- ChestXDet10: 0.796
- Strong for rare diseases: On data where some diseases have very few examples (a “long‑tail” problem), CARZero performed especially well. This is important because rare conditions are hard to learn with limited labeled data.
- Beats some fine‑tuned systems without using extra labels: On ChestXray14, CARZero’s zero-shot score (0.811) even beats other methods that were fine‑tuned using 1% labeled data (best among them was 0.794). That’s impressive, because CARZero didn’t rely on those extra labels.
- Better “grounding”: When asked to point to where a disease likely is in the image (called grounding), CARZero better matched disease words to the correct image regions. This suggests it isn’t just guessing; it’s looking in meaningful places.
Why it matters:
- Medical image–text relationships are complex. CARZero’s smarter matching (cross‑attention + learned similarity) captures that complexity better than older, simpler similarity scores.
- Making language consistent with LLM help reduces the hassle of designing prompts by hand and improves reliability.
5. What could this change in the real world?
- Faster setup with fewer labels: Hospitals and labs may use fewer expert-labeled examples to screen for many conditions, including rare ones. That could save time and cost.
- Better support for radiologists: The system can highlight likely problem areas and findings, acting like a helpful assistant.
- Broader impact: The core idea—letting the text and image “talk” to each other through cross‑attention and learning a powerful similarity—could be useful beyond medicine, in any task that matches images with descriptions.
Notes on limitations and future work:
- The current focus is zero-shot classification. The authors expect CARZero could also work well when fine‑tuned and plan to test that.
- They also want to try it on everyday (non-medical) images and text to show the method’s general usefulness.
Collections
Sign up for free to add this paper to one or more collections.