DAug: Diffusion-based Channel Augmentation for Radiology Image Retrieval and Classification

Ying Jin, Zhuoran Zhou, Haoquan Fang, Jenq-Neng Hwang

TL;DR

Medical vision-language models often struggle to detect subtle clinical signs in monochrome radiology images without vast training data. DAug leverages classifier-guided diffusion models to synthesize abnormality heatmaps that are fed directly into the unused color channels of standard pre-trained vision transformers (e.g., RGB CLIP ViT). Coupled with a joint Image-Text-Class Hybrid Contrastive loss, this architecture-agnostic approach sets a new state of the art for Chest X-ray classification and cross-modal retrieval.

What Problem Does This Paper Address?

Radiologists spend over a decade learning where to direct their visual attention when reading medical scans. In contrast, deep vision models often fail to identify subtle, localized abnormalities, especially when training datasets are modest or heavily class-imbalanced.

Transferring general-domain models (like CLIP) to radiology presents two major hurdles:

  1. Monochrome redundancy: Standard pre-trained vision backbones expect 3-channel (RGB) inputs, but Chest X-rays (CXRs) are grayscale, leaving computational channel capacity underutilized.
  2. Task fragmentation: Medical datasets typically provide both unstructured radiology reports and discrete multi-label disease annotations. However, existing methods usually treat retrieval (image-text) and diagnosis (image-classification) as distinct problems with separate architectures and loss functions.

Methods

DAug introduces a two-pronged solution: generative channel augmentation and hybrid contrastive learning.

Original CXR (Grayscale) ─┬─> Channel 1 & 2 ──┐
                          │                   ├─> Standard 3-Channel ViT ─> [Hybrid Loss]
   Diffusion + Guidance  ─┴─> Heatmap (Ch. 3) ┘

1. Diffusion-based Channel Augmentation (DAug)

  • Generative Heatmap Extraction: Using a Denoising Diffusion Probabilistic Model (DDPM), the authors corrupt an input CXR up to $t=500$ (out of $T=1,000$ steps) to retain gross anatomical layout, then denoise it guided by a multi-label disease classifier. Subtracting the generated image from the original produces an attention heatmap highlighting disease-specific structural differences.
  • Visual Super-Classes: To avoid confusing the classifier with conditions that have distinct medical etiologies but visually indistinguishable features (e.g., Pneumonia vs. Edema), the 14 standard classes are grouped into 7 visual super-classes.
  • Sigmoid Training, Softmax Inference: The classifier is trained with binary cross-entropy (Sigmoid) to handle multi-label co-occurrence. However, during diffusion guidance, the authors switch to Softmax gradients. This forces the diffusion trajectory to maximize the target disease while actively suppressing co-occurring conditions, eliminating spurious false-positive activations.
  • Channel Augmentation: The monochrome image occupies channels 1 and 2, while the generated heatmap (guided by the "No Finding" class to summarize abnormalities) occupies channel 3. This enables off-the-shelf pre-trained RGB vision models (such as ViT-B/32) to consume spatial priors without any architectural adjustments.

2. Image-Text-Class Hybrid Contrastive Learning

The training criterion unifies image-text and image-class alignment: $$\mathcal{L} = w \cdot \mathcal{L}_{\text{CLIP}} + (1 - w) \cdot \mathcal{L}_{\text{i2c}}$$ where $\mathcal{L}_{\text{CLIP}}$ contrasts image embeddings with free-text report embeddings, and $\mathcal{L}_{\text{i2c}}$ computes binary cross-entropy against prompt-derived class embeddings (e.g., "A photo of a Chest X-ray image with cardiomegaly"). This allows a single model to perform both retrieval and linear classification simultaneously.

Datasets

  • MIMIC-CXR: The largest publicly available chest radiograph dataset, comprising 227,835 image-text pairs.
  • CheXbert Pseudo-Labels: 14 discrete disease classes automatically extracted from the free-text reports using the CheXbert labeler (~96.9% F1 score against expert radiologists).
  • No new datasets were introduced.

Key Insights and Ideas

  • Making Use of Empty Channels: Rather than engineering complex multi-branch network architectures to fuse attention heatmaps, encoding visual guidance into the third channel cleanly repurposes pre-trained RGB weights.
  • Softmax as an Anti-Confounding Tool in Diffusion Guidance: In multi-label settings, gradient guidance using independent sigmoids causes co-occurring pathologies to bleed into one another. Softmax gradient guidance introduces competitive normalization, isolating the intended anatomical anomaly.
  • Classification as Constrained Retrieval: By viewing multi-label classification as an image-to-class-prompt matching task, the latent space is trained jointly across both structured disease categories and rich clinical narratives.

Key Results

Experiments evaluated on MIMIC-CXR using a CLIP ViT-B/32 backbone showed consistent improvements:

  • Image Classification (AUC-ROC):
  • DAug-CLIP achieved 0.89 weighted Average (wAvg) and 0.89 unweighted Average (Avg) across all 14 classes.
  • Outperformed baseline CLIP (0.70 wAvg / 0.80 Avg) and the prior state-of-the-art augmentation baseline X-TRA (0.77 wAvg / 0.85 Avg), exhibiting large gains across common and rare findings alike.
  • Cross-Modal Retrieval (mAP@5):
  • Report-to-Image ($r \to x$): DAug-CLIP achieved 0.799 wAvg, surpassing X-TRA CLIP (0.703 wAvg).
  • Image-to-Image ($x \to x$): DAug-CLIP reached 0.771 wAvg, outperforming X-TRA CLIP (0.713 wAvg).
  • Ablation: Retaining the DAug channel input while using standard CLIP loss still boosted classification from 0.70 to 0.80 wAvg, demonstrating that generative heatmaps provide meaningful visual grounding independent of the loss formulation.

Limitations and Future Work

  • Channel Capacity Constraints: Because the method retains 3-channel input compatibility, only a single summary heatmap channel (guided by "No Finding") was evaluated. Feeding separate heatmaps for all 7 super-classes could offer richer cues but requires altering the vision backbone.
  • Sampling Overhead: Running reverse diffusion at inference to generate guidance heatmaps is computationally expensive compared to direct feed-forward inference. The authors suggest knowledge distillation (transferring heatmap guidance to a student model) as a promising avenue to eliminate diffusion compute at test time.

Summary updated

BibTeX
@inproceedings{jin2024daug,
  author = {Ying Jin and Zhuoran Zhou and Haoquan Fang and Jenq-Neng Hwang},
  title = {{DAug: Diffusion-based Channel Augmentation for Radiology Image Retrieval and Classification}},
  booktitle = {AIM-FM @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=usaZldTu1v},
}
Figure