Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Djiré, Albérick Euraste, Kaboré, Abdoul Kader, Barr, Earl T., Klein, Jacques, Bissyandé, Tegawendé F.
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913822412898304
author Djiré, Albérick Euraste
Kaboré, Abdoul Kader
Barr, Earl T.
Klein, Jacques
Bissyandé, Tegawendé F.
author_facet Djiré, Albérick Euraste
Kaboré, Abdoul Kader
Barr, Earl T.
Klein, Jacques
Bissyandé, Tegawendé F.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2505_03019
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle 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.
Computation and Language
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.
title Memorization or Interpolation ? Detecting LLM Memorization through Input Perturbation Analysis
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.03019