mlsanityData to 14 Oct 2026

Memorization in Fine-Tuned Large Language Models

arXiv 2507.21009 ↗First posted 28 Jul 2025cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

This study investigates the mechanisms and factors influencing memorization in fine-tuned large language models (LLMs), with a focus on the medical domain due to its privacy-sensitive nature. We examine how different aspects of the fine-tuning process affect a model's propensity to memorize training data, using the PHEE dataset of pharmacovigilance events. Our research employs two main approaches: a membership inference attack to detect memorized data, and a generation task with prompted prefixes to assess verbatim reproduction. We analyze the impact of adapting different weight matrices in the transformer architecture, the relationship between perplexity and memorization, and the effect of increasing the rank in low-rank adaptation (LoRA) fine-tuning. Key findings include: (1) Value and Output matrices contribute more significantly to memorization compared to Query and Key matrices; (2) Lower perplexity in the fine-tuned model correlates with increased memorization; (3) Higher LoRA ranks lead to increased memorization, but with diminishing returns at higher ranks. These results provide insights into the trade-offs between model performance and privacy risks in fine-tuned LLMs. Our findings have implications for developing more effective and responsible strategies for adapting large language models while managing data privacy concerns.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 27 references that are in the map. First posted on arXiv 28 Jul 2025.

Builds on

16 of 27 references.

References · 16

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  6. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  7. 2016Deep Learning with Differential Privacycited by 2,728
  8. 2018Deep contextualized word representationscited by 2,290
  9. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  10. 2020Extracting Training Data from Large Language Modelscited by 2,189
  11. 2018Hierarchical Neural Story Generationcited by 1,193
  12. 2022Quantifying Memorization Across Neural Language Modelscited by 763
4 more
  1. 2013Generating Sequences With Recurrent Neural Networkscited by 554
  2. 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 498
  3. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
  4. 2023Exploring Memorization in Fine-tuned Language Modelscited by 45

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRA
  2. 2025Impact of Fine-Tuning Methods on Memorization in Large Language Models
  3. 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation
  4. 2022Memorization in NLP Fine-tuning Methods
  5. 2024Undesirable Memorization in Large Language Models: A Survey
  6. 2025Analyzing Memorization in Large Language Models through the Lens of Model Attribution
  7. 2026Learning the Signature of Memorization in Autoregressive Language Models
  8. 2024Mitigating Memorization In Language Models