TL;DR
This paper introduces DeepSSIM, a novel self-supervised metric designed to detect when generative models "memorize" sensitive training data, a critical privacy concern in medical imaging. DeepSSIM learns to map images into an embedding space where similarity reflects anatomical structure, outperforming existing methods in identifying leaked training data, especially in challenging real-world scenarios.
What Problem Does This Paper Address?
Deep generative models, like GANs and diffusion models, are revolutionizing medical imaging by generating synthetic data. However, a significant vulnerability has emerged: these models can inadvertently memorize and reproduce private patient data from their training sets. This poses a serious privacy risk, especially in healthcare where data confidentiality is paramount. Detecting this memorization is challenging because it requires scalable methods that can identify leaked training data across vast numbers of generated samples, and existing metrics often struggle with the fine-grained anatomical details crucial for medical imaging.
Methods
The core of DeepSSIM is a self-supervised learning approach. It trains a neural network (a ConvNeXt Base model) to project images into a lower-dimensional embedding space. The key innovation is how this network is trained: it's optimized to ensure that the cosine similarity between the embeddings of two images matches their ground-truth Structural Similarity Index (SSIM) score. To make this robust to variations, the training incorporates random augmentations that preserve anatomical structures.
Once the embedding model is trained, DeepSSIM uses it to quantify memorization. It compares synthetic images generated by a model against the original training data. Pairs of real and synthetic images are classified as "different," "similar," or "duplicate" based on a learned similarity score derived from their embeddings and predefined thresholds. The memorization metric is then the percentage of training images found to have at least one "duplicate" synthetic counterpart.
Datasets
The paper utilizes two primary datasets:
- Real MRI Dataset: This dataset comprises 2,024 T1-weighted and 559 T2-weighted brain MRI scans, sourced from the IXI and CoRR datasets. These scans are preprocessed and the central axial 2D slice is extracted. This dataset is used to train the Latent Diffusion Model (LDM).
- Real-Synthetic Pair Dataset: This dataset is constructed for training and evaluating DeepSSIM. It consists of pairs of real brain MRI slices from the above dataset and synthetic slices generated by the trained LDM. To create a challenging evaluation set, pairs are curated to represent "different," "similar," and "duplicate" categories, with a hybrid strategy employed to ensure a balanced representation of similarity levels.
Additionally, the paper evaluates DeepSSIM on a Chest X-ray dataset (Pneumonia Chest X-ray dataset) to assess its generalization capabilities.
Key Insights and Ideas
- Anatomical Similarity is Key: Unlike generic image memorization, medical imaging requires metrics that understand subtle anatomical structures. DeepSSIM's success stems from its ability to learn embeddings that capture this fine-grained similarity.
- Self-Supervised Learning for Privacy: By using SSIM as a proxy for ground truth during self-supervised training, DeepSSIM avoids the need for manual labeling of training pairs, making it scalable for large datasets.
- Robustness to Spatial Variations: The random augmentation strategy during training makes DeepSSIM resilient to minor spatial misalignments, a common issue in real-world medical imaging data and a significant weakness for traditional SSIM.
- Beyond Duplicates: While many memorization metrics focus solely on exact duplicates, DeepSSIM's ability to identify "similar" images provides a more nuanced understanding of data leakage.
Key Results
- Superior Performance: DeepSSIM consistently outperforms state-of-the-art memorization metrics (Chen et al. [6], Dar et al. [7], SemDeDup [1]) on both aligned and spatially misaligned brain MRI and chest X-ray datasets.
- Improved F1 Scores: On brain MRI data, DeepSSIM achieved an average F1 score improvement of +52.03% over the best existing method.
- High Silhouette Scores: DeepSSIM consistently achieves the highest Silhouette Scores, indicating superior class separability (distinguishing between different, similar, and duplicate images) compared to baselines.
- Computational Efficiency: DeepSSIM is significantly faster than traditional SSIM, completing embedding and similarity searches in minutes, compared to hours for SSIM on equivalent tasks. This makes it practical for high-throughput settings.
- Generalization: The metric demonstrates strong generalization capabilities, performing well on a different modality (chest X-ray) and anatomical region.
Limitations and Future Work
- Threshold Sensitivity: While DeepSSIM shows robustness to minor threshold perturbations, the choice of thresholds ($\alpha$ and $\beta$) still influences classification. Future work could explore adaptive thresholding strategies.
- Domain Specificity: While DeepSSIM generalizes well to different medical imaging modalities, its effectiveness might depend on the degree of anatomical similarity and the nature of transformations that constitute "memorization" in those domains.
- Further Applications: The authors suggest that DeepSSIM's ability to quantify memorization could be valuable for reassessing generative models across various configurations and for developing more effective privacy-preserving techniques.
Summary updated