Medical Unlearnable Examples: Securing Medical Data from Unauthorized Traning via Sparsity-Aware Local Masking

Weixiang Sun, Yixin Liu, Zhiling Yan, Kaidi Xu, Lichao Sun · DOI

Abstract

Medical data is essential for healthcare AI but carries significant privacy and commercial risks when open-sourced. Unauthorized entities may exploit these datasets for training without consent. We present Sparsity-Aware Local Masking (SALM), a technique that renders medical images "unlearnable" for AI models while remaining visually intact for humans. By concentrating imperceptible noise on the most informative, sparse regions of medical images, SALM creates a robust protection layer that survives standard medical image processing. Our evaluation on the MedMNIST-v2 benchmark shows that SALM significantly reduces unauthorized model accuracy and outperforms existing protection methods in robustness.

Introduction: The Vulnerability of Medical Data

The creation of high-quality medical datasets is resource-intensive and involves sensitive patient information. While open-sourcing data accelerates scientific progress, it also exposes data to unauthorized commercial exploitation. A promising defense is the use of Unlearnable Examples (UEs)—images modified with "error-minimizing" noise that tricks models into learning nothing useful.

However, standard UE methods are often ineffective for medical imagery. Medical images are typically sparse, containing large areas of non-informative background or tissue. Previous global noise approaches waste their "noise budget" on these empty regions, making the protection easily bypassable through simple preprocessing like cropping or filtering.

Sparsity-Aware Local Masking (SALM)

To address these challenges, we developed SALM, which focuses disturbances only on the most critical pixels for classification.

Overview of the SALM generation process and its impact on authorized vs. unauthorized training.

The SALM framework operates through a bi-level optimization process:

  1. Important Pixel Acquisition: The system identifies the "Top-K" pixels that contribute most to a model's decision-making by analyzing gradient information.
  2. Local Masking: A noise generator is trained to apply perturbations specifically to these high-impact regions, creating a "local mask."
  3. Bi-level Optimization: The method solves a min-min problem where the inner loop minimizes classification loss to make data unlearnable, and the outer loop ensures the noise generator remains effective across training iterations.

Experimental Evaluation

We evaluated SALM using the MedMNIST-v2 benchmark, encompassing 14 datasets across various modalities, including pathology (PathMNIST), chest X-rays (ChestMNIST), and microscopy (BloodMNIST).

Key Results and Robustness

SALM consistently demonstrates superior protection compared to state-of-the-art methods like Adversarial Training (AdvT) and Error-Minimizing (EM) noise.

Performance comparison of SALM against other protection methods across various MedMNIST datasets.
  • Effectiveness: As shown in the results table, SALM drastically reduces test accuracy for unauthorized models. For instance, on BloodMNIST, accuracy drops from a clean baseline of 95.8% to just 7.1%.
  • Robustness to Workflows: Because the noise is "sticky" and located precisely where diagnostic features reside, SALM remains effective even after images undergo cropping, zooming, or low-pass filtering (Mean, Median, or Gaussian).
  • Model Transferability: Protection generated using one architecture (e.g., ResNet-18) successfully transfers to others, such as VGG or DenseNet, ensuring broad security.
  • Visual Integrity: The modifications are imperceptible to the human eye, preserving the data's utility for clinical education and manual research.

Discussion and Limitations

A primary challenge identified is the "Clean Data Leak." If a dataset is only partially protected, models can still learn effectively from the remaining clean samples. This highlights the need for collective adoption of protection standards in collaborative medical research environments.

Conclusion

SALM provides a targeted, robust solution for protecting medical data privacy. By turning the sparsity of medical images into a defensive advantage, it ensures that data remains a public good for researchers while being shielded from unauthorized automated exploitation.

Summary updated

BibTeX
@inproceedings{sun2024medical,
  author = {Weixiang Sun and Yixin Liu and Zhiling Yan and Kaidi Xu and Lichao Sun},
  title = {{Medical Unlearnable Examples: Securing Medical Data from Unauthorized Traning via Sparsity-Aware Local Masking}},
  booktitle = {NextGenAISafety @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=9D8ihapJCe},
}
Figure