MedRDF: A Robust and Retrain-Less Diagnostic Framework for Medical Pretrained Models Against Adversarial Attack

Mengting Xu, Tao Zhang, Daoqiang Zhang

Introduction

Deep neural networks (DNNs) have shown remarkable performance in medical imaging tasks, yet they remain notoriously fragile. "Adversarial attacks"—subtle, human-invisible perturbations to image pixels—can deceive high-performing models into making confident but incorrect predictions. In clinical settings, where misdiagnosing conditions like COVID-19 or skin cancer has severe consequences, this vulnerability is a significant barrier to AI adoption.

Existing defense mechanisms often struggle in the medical domain due to data scarcity, the impracticality of retraining validated clinical models, and the risk of losing critical fine-grained features (e.g., small lesions) during standard image pre-processing.

The MedRDF Framework

To address these challenges, we present MedRDF (Medical Robust and Retrain-less Diagnostic Framework), a "plug-and-play" defense strategy that operates entirely during the inference phase. Unlike traditional defenses, MedRDF does not require access to training data or model parameters, making it compatible with any pre-existing medical AI system.

The framework employs a three-step workflow:

  1. Noisy Replication: For each input image, MedRDF generates thousands of copies (e.g., 10,000) and injects isotropic noise. This random variation "blurs" the specific adversarial paths designed to exploit the model's decision boundaries.
  2. Custom Denoising: To preserve essential medical features, these noisy copies are processed using efficient filters, such as Median or Gaussian smoothing. This approach is faster and more memory-efficient than neural-network-based denoisers.
  3. Majority Voting: The denoised copies are fed into the original pretrained model. The final diagnosis is determined by the most frequent prediction across all copies.

The Robust Metric (RM)

A core innovation of MedRDF is the Robust Metric (RM). This score quantifies the gap between the top two predicted classes. A high RM indicates high diagnostic confidence, while a low RM alerts clinicians that the input may be adversarial or ambiguous, necessitating manual review.

Final prediction and Robust Metric (RM) calculation.

Experimental Evaluation

The framework was evaluated on two public benchmarks: the COVID-19 Radiography Database (chest X-rays) and DermaMNIST (skin lesion classification).

Key Results

  • Robustness Restoration: On the COVID-19 dataset, a standard ResNet-18 model's accuracy plummeted to 0% under a C&W attack. MedRDF successfully restored accuracy to over 90%.
  • Efficiency: MedRDF is significantly faster to deploy than retraining-based methods. For instance, it achieved superior robustness compared to the "TRADES" method while requiring only a fraction of the setup time (0.51 hours vs. 1.97 hours).
  • Feature Preservation: Visualization of feature maps confirmed that MedRDF-protected models maintain focus on semantically informative regions, whereas unprotected models are distracted by adversarial noise.

Conclusion and Future Work

MedRDF provides a practical, retrain-less solution for securing medical AI. By smoothing decision boundaries and providing a clinician-in-the-loop confidence metric, it bridges the gap between raw model output and reliable clinical decision-making. Future research will focus on extending this framework to medical image segmentation, addressing the spatial complexities of outlining tumors and lesions.

Summary updated

BibTeX
@article{xu2022medrdf,
  author = {Mengting Xu and Tao Zhang and Daoqiang Zhang},
  title = {{MedRDF: A Robust and Retrain-Less Diagnostic Framework for Medical Pretrained Models Against Adversarial Attack}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2022},
  url = {https://openreview.net/forum?id=lkGrz5CsOp},
}
Figure