English

Exploring Memorization in Fine-tuned Language Models

Artificial Intelligence 2024-02-26 v2 Computation and Language Machine Learning

Abstract

Large language models (LLMs) have shown great capabilities in various tasks but also exhibited memorization of training data, raising tremendous privacy and copyright concerns. While prior works have studied memorization during pre-training, the exploration of memorization during fine-tuning is rather limited. Compared to pre-training, fine-tuning typically involves more sensitive data and diverse objectives, thus may bring distinct privacy risks and unique memorization behaviors. In this work, we conduct the first comprehensive analysis to explore language models' (LMs) memorization during fine-tuning across tasks. Our studies with open-sourced and our own fine-tuned LMs across various tasks indicate that memorization presents a strong disparity among different fine-tuning tasks. We provide an intuitive explanation of this task disparity via sparse coding theory and unveil a strong correlation between memorization and attention score distribution.

Keywords

Cite

@article{arxiv.2310.06714,
  title  = {Exploring Memorization in Fine-tuned Language Models},
  author = {Shenglai Zeng and Yaxin Li and Jie Ren and Yiding Liu and Han Xu and Pengfei He and Yue Xing and Shuaiqiang Wang and Jiliang Tang and Dawei Yin},
  journal= {arXiv preprint arXiv:2310.06714},
  year   = {2024}
}
R2 v1 2026-06-28T12:46:02.840Z