mlsanityData to 7 Oct 2026

A Lightweight Method to Disrupt Memorized Sequences in LLM

arXiv 2502.05159 ↗First posted 7 Feb 2025cs.LG cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

As language models scale, their performance improves dramatically across a wide range of tasks, but so does their tendency to memorize and regurgitate parts of their training data verbatim. This tradeoff poses serious legal, ethical, and safety concerns, especially in real-world deployments. Existing mitigation techniques, such as differential privacy or model unlearning, often require retraining or access to internal weights making them impractical for most users. In this work, we introduce TokenSwap, a lightweight, post-hoc defense designed for realistic settings where the user can only access token-level outputs. Our key insight is that while large models are necessary for high task performance, small models (e.g., DistilGPT-2) are often sufficient to assign fluent, grammatically plausible probabilities to common function words - and crucially, they memorize far less. By selectively swapping token probabilities between models, TokenSwap preserves the capabilities of large models while reducing their propensity for verbatim reproduction. Evaluations on Pythia-6.9B and Llama-3-8B show up to a 10× drop in exact memorization with negligible task degradation. Our method offers a practical, accessible solution for mitigating memorized generation in deployed LLMs.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 49 of its 78 references that are in the map. First posted on arXiv 7 Feb 2025.

Builds on

49 of 78 references.

References · 49

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  7. 2016Deep Learning with Differential Privacycited by 2,682
  8. 2020Extracting Training Data from Large Language Modelscited by 2,144
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  10. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  11. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  12. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
37 more
  1. 2018Hierarchical Neural Story Generationcited by 1,182
  2. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  3. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  4. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  5. 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 424
  6. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
  7. 2023Who's Harry Potter? Approximate Unlearning in LLMscited by 366
  8. 2018Blockwise Parallel Decoding for Deep Autoregressive Modelscited by 318
  9. 2023LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Modelscited by 317
  10. 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
  11. 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 307
  12. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
  13. 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 178
  14. 2023Speculative Decoding with Big Little Decodercited by 163
  15. 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
  16. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 137
  17. 2021Large-Scale Differentially Private BERTcited by 117
  18. 2023Copyright Violations and Large Language Modelscited by 108
  19. 2024Rethinking LLM Memorization through the Lens of Adversarial Compressioncited by 91
  20. 2023Can Neural Network Memorization Be Localized?cited by 66
  21. 2024Demystifying Verbatim Memorization in Large Language Modelscited by 55
  22. 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
  23. 2024UnUnlearning: Unlearning is not sufficient for content regulation in advanced generative AIcited by 46
  24. 2022Memorization in NLP Fine-tuning Methodscited by 43
  25. 2024To Each (Textual Sequence) Its Own: Improving Memorized-Data Unlearning in Large Language Modelscited by 42
  26. 2023Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuningcited by 40
  27. 2023Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarkscited by 29
  28. 2023Can Copyright be Reduced to Privacy?cited by 24
  29. 2024The Files are in the Computer: On Copyright, Memorization, and Generative AIcited by 20
  30. 2023Quantifying and Analyzing Entity-level Memorization in Large Language Modelscited by 18
  31. 2024Exploring Memorization and Copyright Violation in Frontier LLMs: A Study of the New York Times v. OpenAI 2023 Lawsuitcited by 17
  32. 2024Measuring Non-Adversarial Reproduction of Training Data in Large Language Modelscited by 14
  33. 2024Information Complexity of Stochastic Convex Optimization: Applications to Generalization and Memorizationcited by 12
  34. 2024Mitigating Memorization In Language Modelscited by 11
  35. 2024Extracting Training Data from Document-Based VQA Modelscited by 6
  36. 2024Copyright-Protected Language Generation via Adaptive Model Fusioncited by 6
  37. 2024The Fair Language Model Paradoxcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.