Xplainer: From X-Ray Observations to Explainable Zero-Shot Diagnosis

Chantal Pellegrini, Matthias Keicher, Ege Özsoy, Petra Jiraskova, Rickmer Braren, Nassir Navab · DOI

Introduction

Deep learning has demonstrated significant potential in medical imaging, yet its clinical adoption is often hindered by two primary challenges: the scarcity of high-quality annotated data and the "black box" nature of neural networks. While zero-shot learning—leveraging vision-language pretraining to identify diseases without explicit task-specific training—addresses the data bottleneck, these models often lack transparency. A model might correctly identify a pathology like pneumonia, but without a clear reasoning path, clinicians cannot verify if the decision was based on relevant clinical signs or spurious statistical artifacts.

This paper introduces Xplainer, a novel framework designed to bridge the gap between high-performance zero-shot diagnosis and clinical interpretability. By adopting a "classification-by-description" approach, Xplainer decomposes complex diagnostic labels into observable clinical signs, providing a transparent reasoning path that mirrors the diagnostic process of a radiologist.

The Challenge of Black-Box Zero-Shot Models

State-of-the-art vision-language models like CLIP or BioViL are typically prompted with broad pathology labels (e.g., "Pneumothorax"). While effective, this approach provides no insight into the visual evidence the model used to reach its conclusion. In a clinical setting, an AI's utility is tied to its ability to explain why a specific diagnosis was made. Xplainer addresses this by shifting the focus from direct pathology prediction to the identification of constituent clinical observations, such as "air bronchograms" or "cavitation."

The Xplainer Framework

Xplainer builds upon BioViL, a vision-language model pretrained on chest X-rays and radiology reports. The framework utilizes a three-step pipeline to ensure both accuracy and explainability:

1. Descriptor Generation

Rather than relying on simple disease labels, the authors utilized ChatGPT to generate a comprehensive list of clinical observations (descriptors) associated with specific pathologies. To ensure clinical validity, these descriptors were refined and pruned by an experienced radiologist. This "human-in-the-loop" approach ensures that the model's internal logic aligns with established medical knowledge.

2. Contrastive Prompting

Vision-language models frequently struggle with negation—the ability to recognize the absence of a feature. Xplainer addresses this through contrastive prompting. For every clinical observation, the model is provided with both a positive prompt (e.g., "There is consolidation of lung tissue") and a negative prompt (e.g., "There is no consolidation of lung tissue"). The probability of an observation being present is then calculated via a softmax over these pairs, significantly improving the model's calibration.

3. Explainable Inference

The final diagnosis is not a direct prediction but a mathematical consequence of the detected descriptors. The probability of a pathology $P(p)$ is calculated as the average log-probability of its constituent clinical observations. This design ensures that the model is explainable by construction; a high probability for a disease is directly traceable to the specific visual signs detected by the model.

Experimental Evaluation

The framework was evaluated in a zero-shot setting across two major benchmarks without any fine-tuning on target labels:

  • CheXpert: A large-scale dataset where the model was tested on manually labeled validation (200 patients) and test (500 patients) sets.
  • ChestX-ray14: Used to assess out-of-domain performance, involving 14 pathology labels across more than 25,000 images.

Results and Analysis

Xplainer demonstrated superior performance compared to existing state-of-the-art zero-shot methods like CheXzero. On the CheXpert test set, Xplainer achieved an AUC of 80.58, a significant improvement over CheXzero's 74.73. On the ChestX-ray14 dataset, it achieved an AUC of 71.73, showcasing robust generalization capabilities even when the underlying model was not specifically trained on that dataset.

Key insights from the study include:

  • Observation-based Prompting: Moving from pathology-based prompts to observation-based prompts boosted CheXpert AUC from 76.14% to 84.92%.
  • The Importance of Negation: Explicit negative prompts were essential for differentiating between healthy and diseased tissue, helping the model overcome common pitfalls in vision-language negation.
  • Defining "No Finding": The model proved most effective at identifying healthy scans when "No Finding" was defined as the collective absence of all other pathologies, rather than searching for a specific "healthy" visual cue.

Limitations and Future Directions

While Xplainer represents a significant step forward, the authors identify several areas for improvement. Currently, the model employs uniform weighting, treating all clinical signs as equally important, whereas some signs are clinically more definitive (pathognomonic) than others. Additionally, the model assumes independence between descriptors, ignoring the complex inter-dependencies between different clinical signs.

Future work will focus on modeling these dependencies through probabilistic graphical models and exploring learned weights for descriptors to better reflect clinical reality. Despite these limitations, Xplainer provides a scalable, transparent, and high-performing framework for zero-shot medical diagnosis, bringing AI one step closer to practical clinical integration.

Summary updated

BibTeX
@inproceedings{pellegrini2023xplainer,
  author = {Chantal Pellegrini and Matthias Keicher and Ege Özsoy and Petra Jiraskova and Rickmer Braren and Nassir Navab},
  title = {{Xplainer: From X-Ray Observations to Explainable Zero-Shot Diagnosis}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2023},
  doi = {10.1007/978-3-031-43904-9\_41},
}
Figure