Does fine-tuning GPT-3 with the OpenAI API leak personally-identifiable information?

Albert Yu Sun, Eliott Zemour, Arushi Saxena, Udith Vaidyanathan, Eric Lin +2 more
7/31/2023
29 citations
cs.LGcs.CL

Official code: albertsun1/gpt3-pii-attacks (0 stars, Jupyter Notebook, last commit 2023-07-26).

Abstract

Machine learning practitioners often fine-tune generative pre-trained models like GPT-3 to improve model performance at specific tasks. Previous works, however, suggest that fine-tuned machine learning models memorize and emit sensitive information from the original fine-tuning dataset.

Show full abstract

Companies such as OpenAI offer fine-tuning services for their models, but no prior work has conducted a memorization attack on any closed-source models. In this work, we simulate a privacy attack on GPT-3 using OpenAI's fine-tuning API. Our objective is to determine if personally identifiable information (PII) can be extracted from this model. We (1) explore the use of naive prompting methods on a GPT-3 fine-tuned classification model, and (2) we design a practical word generation task called Autocomplete to investigate the extent of PII memorization in fine-tuned GPT-3 within a real-world context. Our findings reveal that fine-tuning GPT3 for both tasks led to the model memorizing and disclosing critical personally identifiable information (PII) obtained from the underlying fine-tuning dataset. To encourage further research, we have made our codes and datasets publicly available on GitHub at: https://github.com/albertsun1/gpt3-pii-attacks

View on arXivView PDF

Code Implementations(1)

00Jupyter NotebookJul 26, 20233 years ago

Similar Papers

Cite this paper

@article{sun2023does,
  title  = {Does fine-tuning GPT-3 with the OpenAI API leak personally-identifiable information?},
  author = {Albert Yu Sun and Eliott Zemour and Arushi Saxena and Udith Vaidyanathan and Eric Lin and Christian Lau and Vaikkunth Mugunthan},
  year   = {2023},
  eprint = {2307.16382},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.16382v3}
}

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

Discussion