Privacy Backdoors: Stealing Data with Corrupted Pretrained Models

Shanglun Feng and Florian Tramèr



Abstract

Practitioners commonly download pretrained machine learning models from open repositories and finetune them to fit specific applications. We show that this practice introduces a new risk of privacy backdoors. By tampering with a pretrained model’s weights, an attacker can fully compromise the privacy of the finetuning data. We show how to build privacy backdoors for a variety of models, including transformers, which enable an attacker to reconstruct individual finetuning samples, with a guaranteed success! We further show that backdoored models allow for tight privacy attacks on models trained with differential privacy (DP). The common optimistic practice of training DP models with loose privacy guarantees is thus insecure if the model is not trusted. Overall, our work highlights a crucial and overlooked supply chain attack on machine learning privacy.


BibTeX
@misc{FT24,
  author   =   {Feng, Shanglun and Tram{\`e}r, Florian},
  title   =   {Privacy Backdoors: Stealing Data with Corrupted Pretrained Models},
  year   =   {2024},
  howpublished   =   {arXiv preprint arXiv:2404.00473},
  url   =   {https://arxiv.org/abs/2404.00473}
}