Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuning

Mustafa Safa Ozdayi, Charith Peris, Jack FitzGerald, Christophe Dupuy, Jimit Majmudar +3 more
5/19/2023
cs.CLcs.AI
lora-peft-merging

No official code found. Best implementation: amazon-science/controlling-llm-memorization (39 stars, last commit 2023-05-19).

Abstract

Large Language Models (LLMs) are known to memorize significant portions of their training data. Parts of this memorized content have been shown to be extractable by simply querying the model, which poses a privacy risk. We present a novel approach which uses prompt-tuning to control the extraction rates of memorized content in LLMs. We present two prompt training strategies to increase and decrease extraction rates, which correspond to an attack and a defense, respectively. We demonstrate the effectiveness of our techniques by using models from the GPT-Neo family on a public benchmark. For the 1.3B parameter GPT-Neo model, our attack yields a 9.3 percentage point increase in extraction rate compared to our baseline. Our defense can be tuned to achieve different privacy-utility trade-offs by a user-specified hyperparameter. We achieve an extraction rate reduction of up to 97.7% relative to our baseline, with a perplexity increase of 16.9%.

View on arXivView PDF

Code Implementations(1)

397Shell, PythonMay 16, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{ozdayi2023controlling,
  title  = {Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuning},
  author = {Mustafa Safa Ozdayi and Charith Peris and Jack FitzGerald and Christophe Dupuy and Jimit Majmudar and Haidar Khan and Rahil Parikh and Rahul Gupta},
  year   = {2023},
  eprint = {2305.11759},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.11759v1}
}

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

Discussion