Planting and Mitigating Memorized Content in Predictive-Text Language Models

C. M. Downey, Wei Dai, Huseyin A. Inan, Kim Laine, Saurabh Naik +1 more
12/16/2022
cs.CLcs.CR

Official code: microsoft/planting-and-mitigating-memorization (2 stars, Python, MIT, last commit 2023-03-24).

Abstract

Language models are widely deployed to provide automatic text completion services in user products. However, recent research has revealed that language models (especially large ones) bear considerable risk of memorizing private training data, which is then vulnerable to leakage and extraction by adversaries.

Show full abstract

In this study, we test the efficacy of a range of privacy-preserving techniques to mitigate unintended memorization of sensitive user text, while varying other factors such as model size and adversarial conditions. We test both "heuristic" mitigations (those without formal privacy guarantees) and Differentially Private training, which provides provable levels of privacy at the cost of some model performance. Our experiments show that (with the exception of L2 regularization), heuristic mitigations are largely ineffective in preventing memorization in our test suite, possibly because they make too strong of assumptions about the characteristics that define "sensitive" or "private" text. In contrast, Differential Privacy reliably prevents memorization in our experiments, despite its computational and model-performance costs.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains the software used to run the experiments in the paper "Planting and Mitigating Memorized Content in Predictive-Text Language Models."

20Python, ShellDec 1, 20223 years agoMIT

Similar Papers

Cite this paper

@article{downey2022planting,
  title  = {Planting and Mitigating Memorized Content in Predictive-Text Language Models},
  author = {C. M. Downey and Wei Dai and Huseyin A. Inan and Kim Laine and Saurabh Naik and Tomasz Religa},
  year   = {2022},
  eprint = {2212.08619},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08619}
}

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

Discussion