mlsanityData to 7 Oct 2026

Unlocking Memorization in Large Language Models with Dynamic Soft Prompting

arXiv 2409.13853 ↗First posted 20 Sep 2024cs.CL cs.AI cs.CRcited by 21

Not on the map. Why?

Abstract (arXiv)

Pretrained large language models (LLMs) have revolutionized natural language processing (NLP) tasks such as summarization, question answering, and translation. However, LLMs pose significant security risks due to their tendency to memorize training data, leading to potential privacy breaches and copyright infringement. Accurate measurement of this memorization is essential to evaluate and mitigate these potential risks. However, previous attempts to characterize memorization are constrained by either using prefixes only or by prepending a constant soft prompt to the prefixes, which cannot react to changes in input. To address this challenge, we propose a novel method for estimating LLM memorization using dynamic, prefix-dependent soft prompts. Our approach involves training a transformer-based generator to produce soft prompts that adapt to changes in input, thereby enabling more accurate extraction of memorized data. Our method not only addresses the limitations of previous methods but also demonstrates superior performance in diverse experimental settings compared to state-of-the-art techniques. In particular, our method can achieve the maximum relative improvement of 112.75% and 32.26% over the vanilla baseline in terms of discoverable memorization rate for the text generation task and code generation task respectively.

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 46 of its 56 references that are in the map. First posted on arXiv 20 Sep 2024.

Builds on

46 of 56 references.

References · 46

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  5. 2016Deep Learning with Differential Privacycited by 2,682
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  7. 2020Extracting Training Data from Large Language Modelscited by 2,144
  8. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  9. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  10. 2021Learning to Prompt for Continual Learningcited by 938
  11. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  12. 2023StarCoder: may the source be with you!cited by 790
34 more
  1. 2023Large Language Modelscited by 774
  2. 2022AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognitioncited by 714
  3. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  4. 2016Training Region-based Object Detectors with Online Hard Example Miningcited by 577
  5. 2023The Falcon Series of Open Language Modelscited by 526
  6. 2023Benchmarking Large Language Models for News Summarizationcited by 444
  7. 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 439
  8. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
  9. 2021QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answeringcited by 386
  10. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  11. 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
  12. 2022Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuningcited by 292
  13. 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
  14. 2023Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarizationcited by 244
  15. 2021SPoT: Better Frozen Model Adaptation through Soft Prompt Transfercited by 235
  16. 2023In-Context Unlearning: Language Models as Few Shot Unlearnerscited by 214
  17. 2022Pretrained Language Models for Text Generation: A Surveycited by 121
  18. 2024LLaMA Pro: Progressive LLaMA with Block Expansioncited by 99
  19. 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 97
  20. 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
  21. 2023Investigating the Translation Performance of a Large Multilingual Language Model: the Case of BLOOMcited by 58
  22. 2024Learning from Teaching Regularization: Generalizable Correlations Should be Easy to Imitatecited by 46
  23. 2023Exploring Memorization in Fine-tuned Language Modelscited by 44
  24. 2019Pretraining-Based Natural Language Generation for Text Summarizationcited by 40
  25. 2023Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuningcited by 40
  26. 2019E2-Train: Training State-of-the-art CNNs with Over 80% Energy Savingscited by 36
  27. 2023Large Language Models Are Zero-Shot Text Classifierscited by 35
  28. 2022XPrompt: Exploring the Extreme of Prompt Tuningcited by 30
  29. 2020Fast OSCAR and OWL Regression via Safe Screening Rulescited by 25
  30. 2020Enabling On-Device CNN Training by Self-Supervised Instance Filtering and Error Map Pruningcited by 24
  31. 2021Enabling On-Device Self-Supervised Contrastive Learning With Selective Data Contrastcited by 21
  32. 2024InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integrationcited by 19
  33. 2022An Accelerated Doubly Stochastic Gradient Method with Faster Explicit Model Identificationcited by 14
  34. 2024Pruning as a Domain-specific LLM Extractorcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 7; 2025: 10; 2026: 4.

21 papers.

Sort:

By area:

  1. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  2. 2024Catastrophic Failure of LLM Unlearning via Quantizationcited by 76
  3. 2024Measuring memorization in language models via probabilistic extractioncited by 40
  4. 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
  5. 2024R-LLaVA: Improving Med-VQA Understanding through Visual Region of Interestcited by 21
  6. 2025AgentTTS: Large Language Model Agent for Test-time Compute-optimal Scaling Strategy in Complex Taskscited by 16
  7. 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 13
  8. 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Trainingcited by 9
  9. 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
  10. 2024Attributing Culture-Conditioned Generations to Pretraining Corporacited by 8
  11. 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewritingcited by 6
  12. 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibilitycited by 4
9 more
  1. 2025Retracing the Past: LLMs Emit Training Data When They Get Lostcited by 3
  2. 2025When Tables Leak: Attacking String Memorization in LLM-Based Tabular Data Generationcited by 3
  3. 2024Too Big to Fool: Resisting Deception in Language Modelscited by 2
  4. 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledgecited by 2
  5. 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
  6. 2024A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseasescited by 1
  7. 2025RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipelinecited by 0
  8. 2025Text-Routed Sparse Mixture-of-Experts Model with Explanation and Temporal Alignment for Multi-Modal Sentiment Analysiscited by 0
  9. 2026Backdoor Learning in Language Models and Vision-Language Modelscited by 0