TMI! Finetuned Models Leak Private Information from their Pretraining Data

John Abascal, Stanley Wu, Alina Oprea, Jonathan Ullman
6/1/2023
cs.LGcs.CR

Official code: johnmath/tmi-pets24 (1 star, MIT, last commit 2024-06-03).

Abstract

Transfer learning has become an increasingly popular technique in machine learning as a way to leverage a pretrained model trained for one task to assist with building a finetuned model for a related task. This paradigm has been especially popular for $\textit{privacy}$ in machine learning, where the pretrained model is considered public, and only the data for finetuning is considered sensitive. However, there are reasons to believe that the data used for pretraining is still sensitive, making it essential to understand how much information the finetuned model leaks about the pretraining data. In this work we propose a new membership-inference threat model where the adversary only has access to the finetuned model and would like to infer the membership of the pretraining data. To realize this threat model, we implement a novel metaclassifier-based attack, $\textbf{TMI}$, that leverages the influence of memorized pretraining samples on predictions in the downstream task. We evaluate $\textbf{TMI}$ on both vision and natural language tasks across multiple transfer learning settings, including finetuning with differential privacy. Through our evaluation, we find that $\textbf{TMI}$ can successfully infer membership of pretraining examples using query access to the finetuned model. An open-source implementation of $\textbf{TMI}$ can be found on GitHub: https://github.com/johnmath/tmi-pets24.

View on arXivView PDF

Code Implementations(1)

MIT

Membership inference attacks on finetuned models

10PythonFeb 15, 20242 years agoMIT

Similar Papers

Cite this paper

@article{abascal2023tmi,
  title  = {TMI! Finetuned Models Leak Private Information from their Pretraining Data},
  author = {John Abascal and Stanley Wu and Alina Oprea and Jonathan Ullman},
  year   = {2023},
  eprint = {2306.01181},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.01181v3}
}

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/2306.01181.svg)](https://codeofpaper.com/paper/2306.01181)

Discussion