English

Predicting memorization within Large Language Models fine-tuned for classification

Cryptography and Security 2025-07-16 v3

Abstract

Large Language Models have received significant attention due to their abilities to solve a wide range of complex tasks. However these models memorize a significant proportion of their training data, posing a serious threat when disclosed at inference time. To mitigate this unintended memorization, it is crucial to understand what elements are memorized and why. This area of research is largely unexplored, with most existing works providing a posteriori explanations. To address this gap, we propose a new approach to detect memorized samples a priori in LLMs fine-tuned for classification tasks. This method is effective from the early stages of training and readily adaptable to other classification settings, such as training vision models from scratch. Our method is supported by new theoretical results, and requires a low computational budget. We achieve strong empirical results, paving the way for the systematic identification and protection of vulnerable samples before they are memorized.

Keywords

Cite

@article{arxiv.2409.18858,
  title  = {Predicting memorization within Large Language Models fine-tuned for classification},
  author = {Jérémie Dentan and Davide Buscaldi and Aymen Shabou and Sonia Vanier},
  journal= {arXiv preprint arXiv:2409.18858},
  year   = {2025}
}

Comments

This paper has been accepted for publication at ECAI 2025

R2 v1 2026-06-28T18:59:41.731Z