Bag of Tricks for Training Data Extraction from Language Models

Weichen Yu, Tianyu Pang, Qian Liu, Chao Du, Bingyi Kang +3 more
2/9/2023
cs.CLcs.AIcs.CR

Official code: weichen-yu/LM-Extraction (44 stars, last commit 2023-05-23).

Abstract

With the advance of language models, privacy protection is receiving more attention. Training data extraction is therefore of great importance, as it can serve as a potential tool to assess privacy leakage. However, due to the difficulty of this task, most of the existing methods are proof-of-concept and still not effective enough. In this paper, we investigate and benchmark tricks for improving training data extraction using a publicly available dataset. Because most existing extraction methods use a pipeline of generating-then-ranking, i.e., generating text candidates as potential training data and then ranking them based on specific criteria, our research focuses on the tricks for both text generation (e.g., sampling strategy) and text ranking (e.g., token-level criteria). The experimental results show that several previously overlooked tricks can be crucial to the success of training data extraction. Based on the GPT-Neo 1.3B evaluation results, our proposed tricks outperform the baseline by a large margin in most cases, providing a much stronger baseline for future research. The code is available at https://github.com/weichen-yu/LM-Extraction.

View on arXivView PDF

Code Implementations(1)

442PythonMay 23, 20233 years ago

Similar Papers

Cite this paper

@article{yu2023tricks,
  title  = {Bag of Tricks for Training Data Extraction from Language Models},
  author = {Weichen Yu and Tianyu Pang and Qian Liu and Chao Du and Bingyi Kang and Yan Huang and Min Lin and Shuicheng Yan},
  year   = {2023},
  eprint = {2302.04460},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.04460v2},
  journal = {ICML 2023 2023}
}

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

Discussion