Extending Memorization Dynamics in Pythia Models from Instance-Level Insights

Jie Zhang, Qinghua Zhao, Lei Li, Chi-ho LinarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) exhibit a remarkable capacity for memorization, which poses significant risks to privacy and data security. While traditional research focuses on token frequency as the primary driver of memorization, this study investigates the role of information redundancy. By analyzing the Pythia model family, we demonstrate that LLMs preferentially memorize low-redundancy, information-dense content. However, these memories are inherently fragile; low-redundancy sequences are twice as vulnerable to input perturbations compared to high-redundancy text. Our findings suggest that redundancy, rather than simple repetition, is the fundamental mechanism underlying LLM memorization dynamics.

Introduction

The memorization of training data by Large Language Models (LLMs) is a critical concern for the deployment of safe and private AI. Previous work has largely attributed memorization to "surface-level" factors such as the frequency of occurrence or repetition within the training corpus. However, empirical evidence suggests that frequency alone cannot explain why certain sequences are "locked in" while others are forgotten.

This research shifts the focus toward information redundancy—the degree to which text can be predicted from its context. We hypothesize that LLMs act as "information snobs," prioritizing the memorization of dense, unpredictable content that cannot be easily reconstructed through general linguistic patterns.

Methodology

To investigate the relationship between redundancy and memorization, we developed a multi-step framework centered on the Pythia model family (70M to 12B parameters).

Overview of the research framework connecting information redundancy to LLM memorization and vulnerability.

Unified Perturbation Quantification

We quantified the stability of memorized sequences by introducing controlled "noise" through four types of perturbations: shuffling, deletion, insertion, and replacement. These were unified into a single metric representing the change in token positions and identity, allowing us to measure how much "input noise" correlates with "output uncertainty."

Redundancy Measurement

Redundancy was calculated using entropy-based methods. High-redundancy text is predictable and contains recoverable information, whereas low-redundancy text carries unique, non-recoverable information per token. We then performed a counterfactual analysis, perturbing the prefixes of memorized sequences to observe the resulting drop in continuation accuracy.

Key Findings: The Fragility Paradox

Our analysis reveals two primary insights into the nature of LLM memory:

  1. The Preference for Density: LLMs are biased toward memorizing unique, low-redundancy content. Approximately 79% of memorized samples in our study were classified as low-redundancy.
  2. Vulnerability to Noise: Paradoxically, the same density that makes a sequence memorable also makes it fragile. Low-redundancy samples exhibit a 2-fold higher vulnerability to noise. Because every token in a dense string is vital for its reconstruction, minor perturbations cause the model's recall to collapse.

Results and Scaling

The empirical results strongly support the redundancy hypothesis. Under perturbation, memorized samples experienced a score drop of 0.6, compared to a negligible 0.01 for non-memorized samples. This gap highlights the specific sensitivity of memorized content to structural changes.

Furthermore, we observed consistent patterns across the Pythia model family. While all models prioritize low-redundancy content, larger models (e.g., 12B parameters) show a gradual increase in the memorization of high-redundancy, predictable content as they mature through training. This suggests that as model capacity increases, the "standards" for what is worth memorizing slightly relax.

Conclusion and Application Value

This study demonstrates that information redundancy is a more potent predictor of memorization than token frequency. Understanding these dynamics has significant implications for data preprocessing and safety. By identifying low-redundancy regions in pre-training corpora, developers can better anticipate and mitigate risks related to privacy leaks, copyright infringement, and the amplification of training biases. Future work will explore whether these redundancy-guided insights can be directly integrated into data filtering pipelines to create more robust and secure language models.

Summary updated

BibTeX
@misc{zhang2025extending,
  author = {Jie Zhang and Qinghua Zhao and Lei Li and Chi-ho Lin},
  title = {{Extending Memorization Dynamics in Pythia Models from Instance-Level Insights}},
  year = {2025},
  eprint = {2506.12321},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.12321},
}
Figure