perceivelab / PLAN

MIT License
0 stars 0 forks source link
# PLAN: A Privacy-Preserving Walk in the Latent Space of Generative Models for Medical Applications Matteo Pennisi, Federica Proietto Salanitri, Giovanni Bellitto, Simone Palazzo, Ulas Bagci, Concetto Spampinato [![Paper](https://img.shields.io/badge/arXiv-2307.02984-b31b1b.svg)](https://arxiv.org/abs/2307.02984) [![Conference](http://img.shields.io/badge/MICCAI-2023-4b44ce.svg)](https://link.springer.com/chapter/10.1007/978-3-031-43898-1_41)

Overview

Official PyTorch implementation for paper: "A Privacy-Preserving Walk in the Latent Space of Generative Models for Medical Applications"

Abstract

Generative Adversarial Networks (GANs) have demonstrated their ability to generate synthetic samples that match a target distribution. However, from a privacy perspective, using GANs as a proxy for data sharing is not a safe solution, as they tend to embed near-duplicates of real samples in the latent space. Recent works, inspired by k-anonymity principles, address this issue through sample aggregation in the latent space, with the drawback of reducing the dataset by a factor of k. Our work aims to mitigate this problem by proposing a latent space navigation strategy able to generate diverse synthetic samples that may support effective training of deep models, while addressing privacy concerns in a principled way. Our approach leverages an auxiliary identity classifier as a guide to non-linearly walk between points in the latent space, minimizing the risk of collision with near-duplicates of real samples. We empirically demonstrate that, given any random pair of points in the latent space, our walking strategy is safer than linear interpolation. We then test our path-finding strategy combined to k-same methods and demonstrate, on two benchmarks for tuberculosis and diabetic retinopathy classification, that training a model using samples generated by our approach mitigate drops in performance, while keeping privacy preservation. # Method

Using real samples, we train a GAN, an identity classifier ![equation](https://latex.codecogs.com/svg.image?&space;\phi_{id}) and an auxiliary classifier ![equation](https://latex.codecogs.com/svg.image?&space;\phi_{class}). Given two arbitrary latent points, ![equation](https://latex.codecogs.com/svg.image?&space;w_{a}) and ![equation](https://latex.codecogs.com/svg.image?&space;w_{b}) , PLAN employs ![equation](https://latex.codecogs.com/svg.image?&space;\phi_{id}) and ![equation](https://latex.codecogs.com/svg.image?&space;\phi_{class}) to gain information on latent space structure and generate a privacy-preserving navigation path (right image), from which synthetic samples can be sampled (far right images, zoom-in for details). # Results

Comparison between the model trained with real samples and those trained with synthetic samples generated from the linear path and privacy path, respectively. Results demonstrate that our approach performs similarly to training with real data, but with higher accuracy with respect to the linear baseline. Privacy-preserving results, measured through ![equation](https://latex.codecogs.com/svg.image?&space;MIA) and ![equation](https://latex.codecogs.com/svg.image?&space;mmL), demonstrate the reliability of our PLAN strategy in removing sensitive information, reaching the ideal lower bound of ![equation](https://latex.codecogs.com/svg.image?&space;MIA) accuracy.

Linear vs PLAN navigation between two arbitrary points. For each step of the latent trajectory, we compute the LPIPS distance between each synthetic sample and its closest real image. On the right, a qualitative comparison of images at step 35 and their closest real samples: the synthetic image obtained with PLAN differs significantly from its closest real sample; in linear interpolation, synthetic and real samples look similar. Bottom images show synthetic samples generated by linear interpolation and PLAN at the same steps (zoom-in for details). ## Pre-requisites: - NVIDIA GPU (Tested on Nvidia GeForce RTX 3090) # Citation ```bibtex @inproceedings{pennisi2023privacy, title={A Privacy-Preserving Walk in the Latent Space of Generative Models for Medical Applications}, author={Pennisi, Matteo and Proietto Salanitri, Federica and Bellitto, Giovanni and Palazzo, Simone and Bagci, Ulas and Spampinato, Concetto}, booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention}, pages={422--431}, year={2023}, organization={Springer} } ```