Unlocking Memorization in Large Language Models with Dynamic Soft Prompting
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2016Deep Learning with Differential Privacycited by 2,682
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Learning to Prompt for Continual Learningcited by 938
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2023StarCoder: may the source be with you!cited by 790
34 more
- 2023Large Language Modelscited by 774
- 2022AdaptFormer: Adapting Vision Transformers for Scalable Visual Recognitioncited by 714
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
- 2016Training Region-based Object Detectors with Online Hard Example Miningcited by 577
- 2023The Falcon Series of Open Language Modelscited by 526
- 2023Benchmarking Large Language Models for News Summarizationcited by 444
- 2020How Can We Know When Language Models Know? On the Calibration of Language Models for Question Answeringcited by 439
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
- 2021QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answeringcited by 386
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2022Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuningcited by 292
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarizationcited by 244
- 2021SPoT: Better Frozen Model Adaptation through Soft Prompt Transfercited by 235
- 2023In-Context Unlearning: Language Models as Few Shot Unlearnerscited by 214
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2024LLaMA Pro: Progressive LLaMA with Block Expansioncited by 99
- 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 97
- 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
- 2023Investigating the Translation Performance of a Large Multilingual Language Model: the Case of BLOOMcited by 58
- 2024Learning from Teaching Regularization: Generalizable Correlations Should be Easy to Imitatecited by 46
- 2023Exploring Memorization in Fine-tuned Language Modelscited by 44
- 2019Pretraining-Based Natural Language Generation for Text Summarizationcited by 40
- 2023Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuningcited by 40
- 2019E2-Train: Training State-of-the-art CNNs with Over 80% Energy Savingscited by 36
- 2023Large Language Models Are Zero-Shot Text Classifierscited by 35
- 2022XPrompt: Exploring the Extreme of Prompt Tuningcited by 30
- 2020Fast OSCAR and OWL Regression via Safe Screening Rulescited by 25
- 2020Enabling On-Device CNN Training by Self-Supervised Instance Filtering and Error Map Pruningcited by 24
- 2021Enabling On-Device Self-Supervised Contrastive Learning With Selective Data Contrastcited by 21
- 2024InfuserKI: Enhancing Large Language Models with Knowledge Graphs via Infuser-Guided Knowledge Integrationcited by 19
- 2022An Accelerated Doubly Stochastic Gradient Method with Faster Explicit Model Identificationcited by 14
- 2024Pruning as a Domain-specific LLM Extractorcited by 12
Built on by
Citing papers per year: 2024: 7; 2025: 10; 2026: 4.
21 papers.
Sort:
By area:
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2024Catastrophic Failure of LLM Unlearning via Quantizationcited by 76
- 2024Measuring memorization in language models via probabilistic extractioncited by 40
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2024R-LLaVA: Improving Med-VQA Understanding through Visual Region of Interestcited by 21
- 2025AgentTTS: Large Language Model Agent for Test-time Compute-optimal Scaling Strategy in Complex Taskscited by 16
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggerscited by 13
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Trainingcited by 9
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
- 2024Attributing Culture-Conditioned Generations to Pretraining Corporacited by 8
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewritingcited by 6
- 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibilitycited by 4
9 more
- 2025Retracing the Past: LLMs Emit Training Data When They Get Lostcited by 3
- 2025When Tables Leak: Attacking String Memorization in LLM-Based Tabular Data Generationcited by 3
- 2024Too Big to Fool: Resisting Deception in Language Modelscited by 2
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledgecited by 2
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
- 2024A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseasescited by 1
- 2025RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipelinecited by 0
- 2025Text-Routed Sparse Mixture-of-Experts Model with Explanation and Temporal Alignment for Multi-Modal Sentiment Analysiscited by 0
- 2026Backdoor Learning in Language Models and Vision-Language Modelscited by 0
- 2026Backdoor Learning in Language Models and Vision-Language Models8 Jun 2026
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 Mar 2026
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb 2026
- 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibility19 Jan 2026
- 2025Text-Routed Sparse Mixture-of-Experts Model with Explanation and Temporal Alignment for Multi-Modal Sentiment Analysis28 Dec 2025
- 2025When Tables Leak: Attacking String Memorization in LLM-Based Tabular Data Generation9 Dec 2025
- 2025RECAP: Reproducing Copyrighted Data from LLMs Training with an Agentic Pipeline29 Oct 2025
- 2025Retracing the Past: LLMs Emit Training Data When They Get Lost27 Oct 2025
- 2025AgentTTS: Large Language Model Agent for Test-time Compute-optimal Scaling Strategy in Complex Tasks26 Jul 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledge23 Jun 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
9 more
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewriting4 Mar 2025
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Training21 Feb 2025
- 2024Attributing Culture-Conditioned Generations to Pretraining Corpora30 Dec 2024
- 2024Too Big to Fool: Resisting Deception in Language Models13 Dec 2024
- 2024A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseases9 Dec 2024
- 2024R-LLaVA: Improving Med-VQA Understanding through Visual Region of Interest27 Oct 2024
- 2024Measuring memorization in language models via probabilistic extraction25 Oct 2024
- 2024Catastrophic Failure of LLM Unlearning via Quantization21 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Measuring memorization in language models via probabilistic extractioncited by 40
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2024R-LLaVA: Improving Med-VQA Understanding through Visual Region of Interestcited by 21
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Trainingcited by 9
- 2024Attributing Culture-Conditioned Generations to Pretraining Corporacited by 8
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewritingcited by 6
- 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibilitycited by 4
- 2025Retracing the Past: LLMs Emit Training Data When They Get Lostcited by 3
- 2025When Tables Leak: Attacking String Memorization in LLM-Based Tabular Data Generationcited by 3
- 2024Too Big to Fool: Resisting Deception in Language Modelscited by 2
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledgecited by 2
- 2024A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseasescited by 1
- 2026Can LLMs Compress (and Decompress)? Evaluating Code Understanding and Execution via Invertibility19 Jan 2026
- 2025When Tables Leak: Attacking String Memorization in LLM-Based Tabular Data Generation9 Dec 2025
- 2025Retracing the Past: LLMs Emit Training Data When They Get Lost27 Oct 2025
- 2025Mirage of Mastery: Memorization Tricks LLMs into Artificially Inflated Self-Knowledge23 Jun 2025
- 2025Memorize or Generalize? Evaluating LLM Code Generation with Code Rewriting4 Mar 2025
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Training21 Feb 2025
- 2024Attributing Culture-Conditioned Generations to Pretraining Corpora30 Dec 2024
- 2024Too Big to Fool: Resisting Deception in Language Models13 Dec 2024
- 2024A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseases9 Dec 2024
- 2024R-LLaVA: Improving Med-VQA Understanding through Visual Region of Interest27 Oct 2024
- 2024Measuring memorization in language models via probabilistic extraction25 Oct 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024