mlsanityData to 14 Oct 2026

Many-Shot Regurgitation (MSR) Prompting

arXiv 2405.08134 ↗First posted 13 May 2024cs.CLcited by 2

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

We introduce Many-Shot Regurgitation (MSR) prompting, a new black-box membership inference attack framework for examining verbatim content reproduction in large language models (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 language model 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 (Drm pre) and another consisting of documents published after the models' training cutoff dates (Drm 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 Drm pre and Drm post. Our findings reveal a striking difference in the distribution of verbatim matches between Drm pre and Drm 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 Drm pre and Drm 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.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 21 of its 35 references that are in the map. First posted on arXiv 13 May 2024.

Builds on

21 of 35 references.

References · 21

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  5. 2020Extracting Training Data from Large Language Modelscited by 2,189
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  7. 2021Membership Inference Attacks From First Principlescited by 878
  8. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  9. 2023Detecting Pretraining Data from Large Language Modelscited by 387
  10. 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 314
  11. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 258
  12. 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
9 more
  1. 2020Information Leakage in Embedding Modelscited by 203
  2. 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
  3. 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attackscited by 175
  4. 2022The Privacy Onion Effect: Memorization is Relativecited by 136
  5. 2023Privacy Auditing with One (1) Training Runcited by 123
  6. 2024Machine Unlearning of Pre-trained Large Language Modelscited by 119
  7. 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibrationcited by 98
  8. 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 74
  9. 2023Did the Neurons Read your Book? Document-level Membership Inference for Large Language Modelscited by 56

Built on by

Cited by year

Citing papers per year: 2024: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models
  2. 2025PerProb: Indirectly Evaluating Memorization in Large Language Models ↗
  3. 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction
  4. 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods
  5. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
  6. 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
  7. 2025TopicAttack: An Indirect Prompt Injection Attack via Topic Transition
  8. 2026Detecting Data Contamination in Large Language Models