Papers
Topics
Authors
Recent
Search
2000 character limit reached

Many-Shot Regurgitation (MSR) Prompting

Published 13 May 2024 in cs.CL | (2405.08134v1)

Abstract: We introduce Many-Shot Regurgitation (MSR) prompting, a new black-box membership inference attack framework for examining verbatim content reproduction in LLMs. MSR prompting involves dividing the input text into multiple segments and creating a single prompt that includes a series of faux conversation rounds between a user and a LLM to elicit verbatim regurgitation. We apply MSR prompting to diverse text sources, including Wikipedia articles and open educational resources (OER) textbooks, which provide high-quality, factual content and are continuously updated over time. For each source, we curate two dataset types: one that LLMs were likely exposed to during training ($D_{\rm pre}$) and another consisting of documents published after the models' training cutoff dates ($D_{\rm post}$). To quantify the occurrence of verbatim matches, we employ the Longest Common Substring algorithm and count the frequency of matches at different length thresholds. We then use statistical measures such as Cliff's delta, Kolmogorov-Smirnov (KS) distance, and Kruskal-Wallis H test to determine whether the distribution of verbatim matches differs significantly between $D_{\rm pre}$ and $D_{\rm post}$. Our findings reveal a striking difference in the distribution of verbatim matches between $D_{\rm pre}$ and $D_{\rm post}$, with the frequency of verbatim reproduction being significantly higher when LLMs (e.g. GPT models and LLaMAs) are prompted with text from datasets they were likely trained on. For instance, when using GPT-3.5 on Wikipedia articles, we observe a substantial effect size (Cliff's delta $= -0.984$) and a large KS distance ($0.875$) between the distributions of $D_{\rm pre}$ and $D_{\rm post}$. Our results provide compelling evidence that LLMs are more prone to reproducing verbatim content when the input text is likely sourced from their training data.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (37)
  1. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
  2. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
  3. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
  4. AI@Meta. Llama 3 model card. 2024.
  5. Wikipedia contributors. Ai alignment — Wikipedia, the free encyclopedia. https://en.wikipedia.org/wiki/AI_alignment, 2023. [Online; accessed 13-May-2024].
  6. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730–27744, 2022.
  7. Membership inference attacks from first principles. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1897–1914. IEEE, 2022.
  8. The privacy onion effect: Memorization is relative. Advances in Neural Information Processing Systems, 35:13263–13276, 2022.
  9. Information leakage in embedding models. In Proceedings of the 2020 ACM SIGSAC conference on computer and communications security, pages 377–390, 2020.
  10. Membership inference attacks against language models via neighbourhood comparison. arXiv preprint arXiv:2305.18462, 2023.
  11. An empirical analysis of memorization in fine-tuned autoregressive language models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1816–1826, 2022.
  12. Practical membership inference attacks against fine-tuned large language models via self-prompt calibration. arXiv preprint arXiv:2311.06062, 2023.
  13. Membership inference attacks against machine learning models. In 2017 IEEE symposium on security and privacy (SP), pages 3–18. IEEE, 2017.
  14. Extracting training data from large language models. In 30th USENIX Security Symposium (USENIX Security 21), pages 2633–2650, 2021.
  15. Do membership inference attacks work on large language models? arXiv preprint arXiv:2402.07841, 2024.
  16. Chatgpt: Optimizing language models for dialogue, 2022.
  17. OpenAI. Gpt-4 technical report, 2023.
  18. Jailbreaking black box large language models in twenty queries, 2023.
  19. Many-shot jailbreaking.
  20. Norman Cliff. Dominance statistics: Ordinal analyses to answer ordinal questions. Psychological bulletin, 114(3):494, 1993.
  21. Kolmogorov An. Sulla determinazione empirica di una legge didistribuzione. Giorn Dell’inst Ital Degli Att, 4:89–91, 1933.
  22. Use of ranks in one-criterion variance analysis. Journal of the American statistical Association, 47(260):583–621, 1952.
  23. Low-cost high-power membership inference by boosting relativity. 2023.
  24. Quantifying privacy risks of masked language models using membership inference attacks. arXiv preprint arXiv:2203.03929, 2022.
  25. Quantifying memorization across neural language models. arXiv preprint arXiv:2202.07646, 2022.
  26. Privacy auditing with one (1) training run. Advances in Neural Information Processing Systems, 36, 2024.
  27. Machine unlearning of pre-trained large language models. arXiv preprint arXiv:2402.15159, 2024.
  28. Proving test set contamination in black box language models. arXiv preprint arXiv:2310.17623, 2023.
  29. Did the neurons read your book? document-level membership inference for large language models. arXiv preprint arXiv:2310.15007, 2023.
  30. De-cop: Detecting copyrighted content in language models training data. arXiv preprint arXiv:2402.09910, 2024.
  31. Privacy risks of general-purpose language models. In 2020 IEEE Symposium on Security and Privacy (SP), pages 1314–1331. IEEE, 2020.
  32. Deduplicating training data mitigates privacy risks in language models. In International Conference on Machine Learning, pages 10697–10707. PMLR, 2022.
  33. Detecting pretraining data from large language models. arXiv preprint arXiv:2310.16789, 2023.
  34. Biology 2e. OpenStax, Houston, Texas, 2018.
  35. Principles of Economics 2e. OpenStax, Houston, Texas, 2017.
  36. Concepts of Biology. OpenStax, Houston, Texas, 2013.
  37. Nutrition for Nurses. OpenStax, Houston, Texas, 2024.
Citations (1)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.