Towards More Realistic Extraction Attacks: An Adversarial Perspective

Yash More, Prakhar Ganesh, Golnoosh Farnadi
7/2/2024
cs.CRcs.CLcs.LG

No official code found. Best implementation: EQUAL-Mila/llm_extraction_eval (1 star, last commit 2025-04-13).

Abstract

Language models are prone to memorizing their training data, making them vulnerable to extraction attacks. While existing research often examines isolated setups, such as a single model or a fixed prompt, real-world adversaries have a considerably larger attack surface due to access to models across various sizes and checkpoints, and repeated prompting. In this paper, we revisit extraction attacks from an adversarial perspective -- with multi-faceted access to the underlying data. We find significant churn in extraction trends, i.e., even unintuitive changes to the prompt, or targeting smaller models and earlier checkpoints, can extract distinct information. By combining multiple attacks, our adversary doubles ($2 \times$) the extraction risks, persisting even under mitigation strategies like data deduplication. We conclude with four case studies, including detecting pre-training data, copyright violations, extracting personally identifiable information, and attacking closed-source models, showing how our more realistic adversary can outperform existing adversaries in the literature.

View on arXivView PDF

Code Implementations(1)

10Shell, PythonMar 7, 20241 years ago

Similar Papers

Cite this paper

@article{more2024towards,
  title  = {Towards More Realistic Extraction Attacks: An Adversarial Perspective},
  author = {Yash More and Prakhar Ganesh and Golnoosh Farnadi},
  year   = {2024},
  eprint = {2407.02596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.02596v3}
}

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

Discussion