journal article·2026-03-24Open access

Assessing Membership Inference Privacy Risks in Medical Diffusion Models via Discrete Encoding-Based Inference

Fei Kong, Hao Cheng, Tianlong Chen, Xiaoshuang Shi, Chenxi Yuan

Applied Sciences· Volume 16· Issue 7

Abstract

The rapid adoption of diffusion models in medical imaging has raised significant concerns regarding data privacy, especially their susceptibility to Membership Inference Attacks (MIAs). However, the privacy risks associated with diffusion models in the medical domain remain underexplored compared to natural images. In this study, we propose a novel grey-box attack framework, termed the Discrete Encoding-Based Membership Inference Attack (DEB), inspired by Denoising Diffusion Codebook Models (DDCM). DEB injects semantically meaningful noise via a discrete codebook strategy and identifies training samples by analyzing the model’s output trajectory under this discrete encoding, specifically measuring the average of intermediate predictions across selected time steps. We conduct an evaluation of MIAs across natural images and five representative datasets from the MedMNIST collection. Our experiments reveal that the susceptibility of diffusion models is highly dependent on the data modality; for instance, while certain datasets exhibit near-complete vulnerability, others like PathMNIST demonstrate strong inherent resistance to MIAs. Furthermore, DEB demonstrates superior performance compared to existing baselines (e.g., SecMI, PIA, SimA), particularly on challenging datasets. For example, DEB achieves a True Positive Rate at 1% False Positive Rate (TPR @ 1% FPR) of 60.3% on CIFAR-10, significantly outperforming the SimA baseline (35.9%). Notably, even on the highly resistant PathMNIST dataset, DEB attains a 10.2% TPR @ 1% FPR, establishing a substantial advantage over the PIA baseline (1.1%). This work provides practical insights into the privacy risks inherent in diffusion models and emphasizes that model providers should carefully assess these vulnerabilities when exposing intermediate generation APIs.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Adversarial Robustness in Machine Learning · Privacy-Preserving Technologies in Data · Generative Adversarial Networks and Image Synthesis

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science, University of Electronic Science and Technology of China, No. 2006, Xiyuan Avenue, West Hi-Tech Zone, Chengdu 611731, China

Department of Microelectronics Thrust, The Hong Kong University of Science and Technology (Guangzhou), No. 1 Duxue Road, Guangzhou 511453, China

Department of Computer Science, The University of North Carolina at Chapel Hill, Chapel Hill, NC 27599, USA

Department of Informatics, Ying Wu College of Computing, New Jersey Institute of Technology, Newark, NJ 07102, USA

References (58)

Show source-provided references
1. Ho, J., Jain, A., and Abbeel, P. (2020, January 6–12). Denoising diffusion probabilistic models. Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS 2020), Vancouver, Canada.
2. Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. (2022, January 2–6). High-resolution image synthesis with latent diffusion models. Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, Denver, CO, USA.10.1109/CVPR52688.2022.01042 ↗
3. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C., and Chen, M. (2022). Hierarchical text-conditional image generation with clip latents. arXiv.
4. Saharia, C., Chan, W., Saxena, S., Li, L., Whang, J., Denton, E.L., Ghasemipour, K., Gontijo Lopes, R., Karagol Ayan, B., and Salimans, T. (December, January 28). Photorealistic text-to-image diffusion models with deep language understanding. Proceedings of the 36th Conference on Neural Information Processing Systems (NeurIPS 2022), New Orleans, LA, USA.
5. Generative adversarial networks10.1145/3422622 ↗
6. Brock, A., Donahue, J., and Simonyan, K. (2019, January 6–9). Large Scale GAN Training for High Fidelity Natural Image Synthesis. Proceedings of the International Conference on Learning Representations, New Orleans, LA, USA.
7. Zhang, H., Zhang, Z., Odena, A., and Lee, H. (2020, January 26–30). Consistency Regularization for Generative Adversarial Networks. Proceedings of the International Conference on Learning Representations, Addis Ababa, Ethiopia.
8. Gulrajani, I., Ahmed, F., Arjovsky, M., Dumoulin, V., and Courville, A.C. (2017, January 4–9). Improved training of wasserstein gans. Proceedings of the 31st Annual Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, California, USA.
9. Kingma, D.P., and Welling, M. (2013). Auto-encoding variational bayes. arXiv.
10. Bieder, F., Wolleb, J., Durrer, A., Sandkühler, R., and Cattin, P.C. (2023). Diffusion models for memory-efficient processing of 3d medical images. arXiv.
11. Kim, B., Oh, Y., and Ye, J.C. (2023, January 1–5). Diffusion Adversarial Representation Learning for Self-supervised Vessel Segmentation. Proceedings of the International Conference on Learning Representations, Kigali, Rwanda.
12. Rahman, A., Valanarasu, J.M.J., Hacihaliloglu, I., and Patel, V.M. (2023, January 18–22). Ambiguous medical image segmentation using diffusion models. Proceedings of the IEEE/CVF conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada.10.1109/CVPR52729.2023.01110 ↗
13. Wang, X., Shen, Z., Song, Z., Wang, S., Liu, M., Zhang, L., Xuan, K., and Wang, Q. (2023). Arbitrary reduction of MRI inter-slice spacing using hierarchical feature conditional diffusion. Machine Learning in Medical Imaging, Proceedings of the 14th International Workshop, MLMI 2023, Held in Conjunction with MICCAI 2023, Vancouver, BC, Canada, 8 October 2023, Proceedings, Part I, Springer.10.1007/978-3-031-45673-2_3 ↗
14. MR image denoising and super-resolution using regularized reverse diffusion10.1109/TMI.2022.3220681 ↗
15. Levac, B., Jalal, A., and Tamir, J.I. (2023). Accelerated motion correction for MRI using score-based generative models. Proceedings of the IEEE International Symposium on Biomedical Imaging, Cartagena, Colombia, 18-21 April 2023, IEEE.10.1109/ISBI53787.2023.10230457 ↗
16. Score-based diffusion models for accelerated MRI10.1016/j.media.2022.102479 ↗
17. Descod-ecg: Deep score-based diffusion model for ecg baseline wander and noise removal10.1109/JBHI.2023.3237712 ↗
18. Lyu, Q., and Wang, G. (2022). Conversion between CT and MRI images using diffusion and score-matching models. arXiv.
19. Zero-shot medical image translation via frequency-guided diffusion models10.1109/TMI.2023.3325703 ↗
20. Liu, J., Anirudh, R., Thiagarajan, J.J., He, S., Mohan, K.A., Kamilov, U.S., and Kim, H. (2023, January 2–6). Dolce: A model-based probabilistic diffusion framework for limited-angle ct reconstruction. Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France.10.1109/ICCV51070.2023.00963 ↗
21. On the opportunities and risks of foundation models for natural language processing in radiology10.1148/ryai.220119 ↗
22. Computer creativity: Artificial intelligence and copyright
23. Beyond gradients: Exploiting adversarial priors in model inversion attacks10.1145/3592800 ↗
24. Wu, M., Zhang, X., Ding, J., Nguyen, H., Yu, R., Pan, M., and Wong, S.T. (2020). Evaluation of inference attack models for deep learning on medical data. arXiv.
25. Gupta, U., Stripelis, D., Lam, P.K., Thompson, P., Ambite, J.L., and Ver Steeg, G. (2021). Membership inference attacks on deep regression models for neuroimaging. Proceedings of the Medical Imaging with Deep Learning, Lübeck, Germany, 7-9 July 2021, PMLR.
26. Shokri, R., Stronati, M., Song, C., and Shmatikov, V. (2017). Membership inference attacks against machine learning models. Proceedings of the IEEE Symposium on Security and Privacy, San Jose, CA, USA, 22-26 May 2017, IEEE.10.1109/SP.2017.41 ↗
27. Zhai, S., Chen, H., Dong, Y., Li, J., Shen, Q., Gao, Y., Su, H., and Liu, Y. (2024, January 9–15). Membership inference on text-to-image diffusion models via conditional likelihood discrepancy. Proceedings of the 38th Conference on Neural Information Processing Systems (NeurIPS 2024), Vancouver, BC, Canada.
28. Carlini, N., Hayes, J., Nasr, M., Jagielski, M., Sehwag, V., Tramer, F., Balle, B., Ippolito, D., and Wallace, E. (2023, January 9–11). Extracting training data from diffusion models. Proceedings of the 32nd USENIX Security Symposium (USENIX Security 23), Anaheim, CA, USA.
29. Lugmayr, A., Danelljan, M., Romero, A., Yu, F., Timofte, R., and Van Gool, L. (2022, January 18–24). Repaint: Inpainting using denoising diffusion probabilistic models. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.01117 ↗
30. Yeom, S., Giacomelli, I., Fredrikson, M., and Jha, S. (2018). Privacy risk in machine learning: Analyzing the connection to overfitting. Proceedings of the IEEE Computer Security Foundations Symposium, Oxford, UK, 9-12 July 2018, IEEE.10.1109/CSF.2018.00027 ↗
31. Matsumoto, T., Miura, T., and Yanai, N. (2023). Membership inference attacks against diffusion models. Proceedings of the IEEE Security and Privacy Workshops, San Francisco, CA, USA, 25 May 2023, IEEE.10.1109/SPW59333.2023.00013 ↗
32. Hu, H., and Pang, J. (2023). Membership inference of diffusion models. arXiv.10.1007/978-3-031-49187-0_7 ↗
33. Duan, J., Kong, F., Wang, S., Shi, X., and Xu, K. (2023). Are diffusion models vulnerable to membership inference attacks?. Proceedings of the 40th International Conference on Machine Learning, Honolulu, HI, USA, 23-29 July 2023, PMLR.
34. Song, J., Meng, C., and Ermon, S. (2021, January 3–7). Denoising Diffusion Implicit Models. Proceedings of the 9th International Conference on Learning Representations, Virtual Event, Austria.
35. Kong, F., Duan, J., Ma, R., Shen, H.T., Shi, X., Zhu, X., and Xu, K. (2024, January 7–11). An Efficient Membership Inference Attack for the Diffusion Model by Proximal Initialization. Proceedings of the 12th International Conference on Learning Representations, Vienna, Austria.
36. Rao, M., Qu, B., and Moyer, D. (2025). Score-based Membership Inference on Diffusion Models. arXiv.
37. Ohayon, G., Manor, H., Michaeli, T., and Elad, M. (2025, January 13–19). Compressed Image Generation with Denoising Diffusion Codebook Models. Proceedings of the 42nd International Conference on Machine Learning, Vancouver, BC, Canada.
38. Song, Y., Sohl-Dickstein, J., Kingma, D.P., Kumar, A., Ermon, S., and Poole, B. (2020). Score-based generative modeling through stochastic differential equations. arXiv.
39. Kaya, Y., Hong, S., and Dumitras, T. (2020). On the effectiveness of regularization against membership inference attacks. arXiv.
40. Kaya, Y., and Dumitras, T. (2021). When does data augmentation help with membership inference attacks?. Proceedings of the International Conference on Machine Learning, Virtual, 18-24 July 2021, PMLR.
41. Yin, Y., Chen, K., Shou, L., and Chen, G. (2021). Defending privacy against more knowledgeable membership inference attackers. Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Virtual Event Singapore, 14–18 August 2021, Association for Computing Machinery.10.1145/3447548.3467444 ↗
42. Defense against membership inference attack applying domain adaptation with addictive noise10.4236/jcc.2021.95007 ↗
43. DAMIA: Leveraging domain adaptation as a defense against membership inference attacks10.1109/TDSC.2021.3088480 ↗
44. Mazzone, F., Van Den Heuvel, L., Huber, M., Verdecchia, C., Everts, M., Hahn, F., and Peter, A. (2022). Repeated knowledge distillation with confidence masking to mitigate membership inference attacks. Proceedings of the 15th ACM Workshop on Artificial Intelligence and Security, Los Angeles, CA, USA, 11 November 2022, Association for Computing Machinery.10.1145/3560830.3563721 ↗
45. Zhang, T., He, Z., and Lee, R.B. (2018). Privacy-preserving machine learning through data obfuscation. arXiv.
46. MIASec: Enabling data indistinguishability against membership inference attacks in MLaaS10.1109/TSUSC.2019.2930526 ↗
47. Webster, R., Rabin, J., Simon, L., and Jurie, F. (2021). Generating private data surrogates for vision related tasks. Proceedings of the 2020 25th International Conference on Pattern Recognition (ICPR), Milan, Italy, 10-15 January 2021, IEEE.10.1109/ICPR48806.2021.9413067 ↗
48. Privacy-preserving generative framework for images against membership inference attacks10.1049/cmu2.12507 ↗
49. Protect privacy of deep classification networks by exploiting their generative power10.1007/s10994-021-05951-6 ↗
50. Yang, J., Shi, R., and Ni, B. (2021). MedMNIST Classification Decathlon: A Lightweight AutoML Benchmark for Medical Image Analysis. Proceedings of the IEEE 18th International Symposium on Biomedical Imaging, Nice, France, 13-16 April 2021, IEEE.10.1109/ISBI48211.2021.9434062 ↗
51. MedMNIST v2-A large-scale lightweight benchmark for 2D and 3D biomedical image classification10.1038/s41597-022-01721-8 ↗
52. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
53. Krizhevsky, A., and Hinton, G. (2009). Learning Multiple Layers of Features from Tiny Images, University of Toronto. Technical Report.
54. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., and Fei-Fei, L. (2009). Imagenet: A large-scale hierarchical image database. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20-25 June 2009, IEEE.10.1109/CVPR.2009.5206848 ↗
55. Pinkney, J.N.M. (2026, January 24). Pokemon BLIP Captions. Available online: https://huggingface.co/datasets/lambdalabs/pokemon-blip-captions/.
56. Carlini, N., Chien, S., Nasr, M., Song, S., Terzis, A., and Tramer, F. (2022). Membership inference attacks from first principles. Proceedings of the IEEE Symposium on Security and Privacy, San Francisco, CA, USA, 22-26 May 2022, IEEE.10.1109/SP46214.2022.9833649 ↗
57. Karras, T., Aittala, M., Aila, T., and Laine, S. (December, January 28). Elucidating the Design Space of Diffusion-Based Generative Models. Proceedings of the 36th Conference on Neural Information Processing Systems (NeurIPS 2022), New Orleans, LA, USA.
58. Li, A.C., Prabhudesai, M., Duggal, S., Brown, E., and Pathak, D. (2023, January 2–6). Your diffusion model is secretly a zero-shot classifier. Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France.10.1109/ICCV51070.2023.00210 ↗