Abstract
Quantifying the impact of individual data samples on machine learning models is an open research problem. This is particularly relevant when complex and high-dimensional relationships have to be learned from a limited sample of the data generating distribution, such as in deep learning. It was previously shown that, in these cases, models rely not only on extracting patterns which are helpful for generalisation, but also seem to be required to incorporate some of the training data more or less as is, in a process often termed memorisation. This raises the question: if some memorisation is a requirement for effective learning, what are its privacy implications? In this work we consider a broad range of previous definitions and perspectives on memorisation in ML, discuss their interplay with model generalisation and their implications of these phenomena on data privacy. We then propose a framework to reason over what memorisation means in the context of ML training under the prism of individual sample's influence on the model. Moreover, we systematise methods allowing practitioners to detect the occurrence of memorisation or quantify it and contextualise our findings in a broad range of ML learning settings. Finally, we discuss memorisation in the context of privacy attacks, differential privacy and adversarial actors.
Introduction
In the early development of machine learning (ML), "memorisation" was frequently conflated with overfitting—a failure mode where a model rote-learns training labels rather than extracting generalisable patterns. However, the emergence of Large Language Models (LLMs) has challenged this view. Modern models often regurgitate training data verbatim, including sensitive information like private emails or copyrighted code, even when they demonstrate high generalisation performance.
The primary challenge in the field has been the lack of a unified definition and systematic measurement of this phenomenon. This survey synthesizes existing research to provide a formal taxonomy, exploring whether memorisation is an avoidable byproduct or a fundamental requirement for high-performance learning, and how it relates to privacy vulnerabilities such as membership inference.
Defining and Measuring Memorisation
The survey adopts a formal definition centered on Self-Influence. Under this framework, a data sample is considered "memorised" if the model’s performance on that specific sample improves significantly when it is included in the training set compared to when it is excluded. To quantify this, the authors systematize three primary methodologies:
- Re-training Methods: Considered the "gold standard," these involve training numerous model iterations on varying data subsets. While accurate, the computational cost is often prohibitive for large-scale models.
- Influence Functions: These provide a more efficient approximation by utilizing the Hessian (second-order derivatives of the loss). However, their reliability in deep learning is often compromised by non-convexity.
- Canary Insertion: Specifically used for generative models, this involves embedding unique, atypical "canary" strings into the training data to measure "exposure"—the statistical likelihood of the model generating that specific string relative to random chance.
The Long-Tail Necessity
A critical insight of this survey is the relationship between data distribution and model performance. In real-world "long-tailed" distributions, a significant portion of the data consists of rare, "atypical" samples.
The research indicates that memorisation is often a prerequisite for optimal generalisation in these contexts. If a model fails to memorise the rare samples in the tail, it cannot accurately predict similar instances at test time. Crucially, this process often occurs before the onset of overfitting; a model may memorise specific points while its overall generalisation error continues to decrease.
Systematic Comparison of Techniques
Practitioners require clear guidelines to distinguish between metrics that measure true memorisation and those that merely capture sample difficulty or gradient magnitude. The survey provides a comprehensive systematisation of these techniques to help researchers navigate the landscape.
Key quantitative findings from the survey include:
- Capacity and Scale: As model parameter counts increase, the capacity for memorisation grows linearly or super-linearly.
- Data Redundancy: Repeated exposure to the same sample significantly increases its likelihood of being memorised verbatim.
- Privacy Mitigation: Differential Privacy (DP) remains the only mathematically provable method to bound memorisation by limiting the influence of any single data point on the final model weights.
Discussion and Future Frontiers
Despite significant progress, several open challenges remain. There is a pressing need for standardised metrics that function across different modalities (e.g., comparing a pixel in a medical image to a token in a sentence). Furthermore, defining "verbatim" memorisation in images remains difficult, as even minor pixel variations can complicate the assessment of whether an image has been truly memorised.
As regulatory frameworks like the EU AI Act evolve, the ability to prove that a model has "unlearned" specific data becomes paramount. Finally, the tension between "alignment" (training models to be safe) and the tendency to memorise adversarial examples during that process represents a critical area for future research.
Summary updated