Auditing Patient Privacy in Medical Generative Models: Scalable Memorization Detection with DeepSSIM++

Antonio Scardace, Francesco Guarnera, Sebastiano Battiato, Daniele Ravì
9/3/2026
cs.CV

Official code: brAIn-science/DeepSSIM (11 stars, MIT, last commit 2025-11-17).

Abstract

While deep generative models offer new opportunities for medical image synthesis and data sharing, their ability to memorize and reproduce training samples raises serious concerns about patient confidentiality. Detecting such memorization at scale remains challenging: traditional pixel-based metrics are sensitive to generation artifacts, whereas generic embedding-based metrics often lack the anatomical sensitivity required for medical data. To address this challenge, we introduce DeepSSIM++, a self-supervised similarity metric for scalable memorization auditing in medical generative models. By leveraging multi-scale feature aggregation and anatomy-preserving augmentations, DeepSSIM++ learns an embedding space where cosine similarity approximates the Structural Similarity Index (SSIM), eliminating the need for exact pixel-level registration. Compared with state-of-the-art baselines, DeepSSIM++ achieves an average Macro F1 improvement of 33 percentage points under ideal alignment and 46 percentage points under realistic spatial and intensity perturbations. Furthermore, it accelerates large-scale similarity computation by several orders of magnitude compared with analytical SSIM. By combining anatomical sensitivity and computational efficiency, DeepSSIM++ provides an open-source tool for scalable memorization auditing in medical generative AI. Code and data are publicly available at: https://github.com/brAIn-science/DeepSSIM.

View on arXivView PDF

Code Implementations(1)

MIT

[WACV, 2026] Official implementation of "A Novel Metric for Detecting Memorization in Generative Models for Brain MRI Synthesis"

110PythonSep 19, 202511 months agoMIT
diffusion-modelsgenerative-modelsmedical-imagingmemorizationprivacy-preserving+3 more

Similar Papers

Cite this paper

@article{scardace2026auditing,
  title  = {Auditing Patient Privacy in Medical Generative Models: Scalable Memorization Detection with DeepSSIM++},
  author = {Antonio Scardace and Francesco Guarnera and Sebastiano Battiato and Daniele Ravì},
  year   = {2026},
  eprint = {2609.03615},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.03615v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.03615.svg)](https://codeofpaper.com/paper/2609.03615)

Discussion