Introduction
Machine learning models, particularly Large Language Models (LLMs), often exhibit the tendency to "memorise" training data, sometimes regurgitating sensitive information verbatim. This phenomenon creates a fundamental tension between model utility and data privacy. This paper provides a comprehensive systematisation of knowledge (SoK) regarding memorisation, exploring whether it is a "bug" or a necessary "feature" for high-performance AI.
Historically, memorisation was viewed as a symptom of overfitting—a failure to generalise. However, recent research suggests that for complex, "long-tailed" distributions, a model must memorise atypical samples to achieve optimal performance on those specific sub-populations. This paper establishes a formal taxonomy to understand which samples are memorised, when this occurs during training, and how it impacts privacy.
Technical Frameworks for Measuring Memorisation
The authors categorise the study of memorisation into several technical frameworks designed to quantify the relationship between training data and model output.
Influence and Self-Influence
A primary metric is Self-Influence, which measures how a model's performance on a specific sample $i$ changes when that sample is included versus excluded from the training set. Because retraining models for every data point is computationally prohibitive, researchers use estimators such as influence functions (using the Hessian to approximate impact) or sub-sampling techniques.
Canary Insertion and Exposure
For generative models, researchers often use Canary Insertion. This involves "planting" unique, atypical data points (canaries) into the training set. By measuring the model's exposure—how much more likely the model is to generate the canary compared to random sequences—researchers can quantify memorisation.
Key Insights: The Long-Tail Theory
A central finding of the paper is the Long-Tail Theory, which posits that memorisation is a prerequisite for generalisation in long-tailed distributions. In these scenarios, rare sub-populations are represented by very few instances; the only way for a model to perform well on them is to effectively "store" those specific instances.
Other key insights include:
- Memorisation $\neq$ Overfitting: Memorisation typically precedes overfitting. A model can perfectly memorise its training set while still improving its generalisation on a test set.
- The Privacy Onion Effect: Removing highly memorised samples does not eliminate privacy risks. Once the "outer layer" of atypical data is removed, the model begins memorising the next most atypical layer.
- Spatial and Temporal Localisation: Memorisation is not uniform. It tends to occur in deeper layers and later in the training process, after the model has learned broader patterns.
Results and Privacy Bounds
The paper synthesises several quantitative milestones:
- Capacity: Neural networks possess the capacity to fit entirely random labels, indicating a very high memorisation ceiling.
- Differential Privacy (DP): DP is highlighted as the only formal framework capable of provably bounding memorisation. By limiting the influence of any single sample, DP mathematically restricts the model's ability to memorise specific records.
- Influence Correlation: While efficient, influence functions often correlate poorly with actual "leave-one-out" influence in deep networks due to non-convexity, making re-training-based sub-sampling the current "gold standard" for accuracy.
Limitations and Future Directions
Quantifying memorisation remains computationally expensive for large-scale models. Furthermore, there is a lack of metrics for "semantic" memorisation in generative AI—where a model produces a semantically identical but syntactically different version of a private record. Future work must also address "machine unlearning" and establish causal links between architectural choices and memorisation behavior.
Summary updated