KAD
A chest X-ray model that takes disease names as text queries and scores whether each finding is present in the image.
Medical imaging · 796 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 167.2M
- Operations
- 796
- Framework
- PyTorch
- Recurrent
- No
- Published
- Nature Communications 2023
- Cited by
- 205 (as of 28 October 2026)
- Authors
- Xiaoman Zhang, Chaoyi Wu, Ya Zhang and others
- Source
- GitHub: xiaoman-zhang/KAD
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17639
- Graph hash
- 3a3b93feb54e135111968f3230386d919a3da9f4fba51c03fa6f7ee60f15e911
- Skeleton hash
- cf7bb92d807d4af54cfc7b292ad3a79add63630aa25dda9826021be94c1cf30e
- Architecture hash
- aa8f65bdffcec05320acff4b306535e427c32a8799fad385ff5eca56eb6b0514
- Diagram SHA-256
- 6b74586c492c1635f9cf719019d04a56ac4ff9df22277952a8bd9dd20a34ccc1
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
KAD (Knowledge-enhanced Auto Diagnosis) is a vision-language model for chest X-rays that is asked about a disease by name. The disease name is encoded as a query, and the model outputs the probability that the pathology is present in the image. The paper chose this query-based design so the model can be evaluated zero-shot on arbitrary diseases or radiology findings.
The model has three parts. An image encoder, here a ResNet-50 whose output is taken from the 4th residual block, turns the X-ray into visual features. A knowledge encoder, initialized from PubMedBERT and trained first to represent a medical knowledge base, encodes the text. The Disease Query Network, a series of standard Transformer decoders, takes the disease names as queries and the image features as key and value, and an MLP on its outputs infers whether each queried finding exists.
Training pairs chest X-rays with clinical entities extracted from the radiology reports and sums a contrastive loss with the query network's classification loss. The paper evaluates KAD on four external X-ray datasets and reports zero-shot performance superior to the average of three expert radiologists for three out of five pathologies. This model uses 512-pixel input, the KAD-512 setting, and answers queries for the five CheXpert competition pathologies: atelectasis, cardiomegaly, consolidation, edema and pleural effusion.
Key idea. The paper uses a medical knowledge graph to guide vision-language pre-training on chest X-rays and reports, and adds a query network that classifies diseases named in text.
- KAD
- Knowledge-enhanced Auto Diagnosis
- KAD-512
- Med-KEBERT
- Disease Query Network
- chest X-ray
- radiology reports
- vision-language pre-training
- zero-shot diagnosis
- medical knowledge graph
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2023knowledgeenhancedvisuallanguagepretrainingchest,
title={Knowledge-enhanced Visual-Language Pre-training on Chest Radiology Images},
author={Xiaoman Zhang and Chaoyi Wu and Ya Zhang and Yanfeng Wang and Weidi Xie},
year={2023},
eprint={2302.14042},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2302.14042},
}