Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis
Djiré, Albérick Euraste, Kaboré, Abdoul Kader, Barr, Earl T., Klein, Jacques, Bissyandé, Tegawendé F.
–arXiv.org Artificial Intelligence
While Large Language Models (LLMs) achieve remarkable performance through training on massive datasets, they can exhibit concerning behaviors such as verbatim reproduction of training data rather than true generalization. This memorization phenomenon raises significant concerns about data privacy, intellectual property rights, and the reliability of model evaluations. This paper introduces PEARL, a novel approach for detecting memorization in LLMs. PEARL assesses how sensitive an LLM's performance is to input perturbations, enabling memorization detection without requiring access to the model's internals. We investigate how input perturbations affect the consistency of outputs, enabling us to distinguish between true generalization and memorization. Our findings, following extensive experiments on the Pythia open model, provide a robust framework for identifying when the model simply regurgitates learned information. Applied on the GPT 4o models, the PEARL framework not only identified cases of memorization of classic texts from the Bible or common code from HumanEval but also demonstrated that it can provide supporting evidence that some data, such as from the New York Times news articles, were likely part of the training data of a given model.
arXiv.org Artificial Intelligence
May-7-2025
- Country:
- Asia
- Middle East
- Israel (0.05)
- Palestine > Gaza Strip
- Gaza Governorate > Gaza (0.04)
- Republic of Türkiye > Istanbul Province
- Istanbul (0.04)
- Russia (0.14)
- Middle East
- Atlantic Ocean > North Atlantic Ocean
- Bay of Biscay (0.04)
- Europe
- Denmark > Capital Region
- Copenhagen (0.04)
- France (0.04)
- Germany (0.04)
- Iceland (0.04)
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Ukraine
- Kharkiv Oblast > Kharkiv (0.04)
- Kyiv Oblast > Kyiv (0.04)
- United Kingdom > Wales (0.04)
- Denmark > Capital Region
- North America > United States
- Connecticut (0.04)
- Massachusetts > Middlesex County
- Cambridge (0.04)
- New Jersey (0.04)
- Rhode Island (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Government > Regional Government
- Europe Government (0.46)
- Health & Medicine (1.00)
- Information Technology > Security & Privacy (1.00)
- Law (1.00)
- Government > Regional Government
- Technology: