How much can language models memorize?

John Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, Edward Suh, Alexander Rush, Kamalika Chaudhuri, Saeed Mahloujifar

International Conference on Machine Learning 2026 · Oral

Overview

This talk, presented by Saeed Mahloujifar on behalf of lead author Jack Morris and a collaborative team, investigates the fundamental limits and dynamics of training data memorization in large language models. The research addresses a critical blind spot in machine learning: while effects like overfitting or verbatim data regurgitation are well-documented, they are merely downstream symptoms rather than direct measurements of memorization. A model may appear completely generalized—showing no obvious overfitting or regurgitation—while still secretly harboring memorized training instances.

Watch on SlidesLive

Visual summary for How much can language models memorize? by John Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, Edward Suh, Alexander Rush, Kamalika Chaudhuri, Saeed Mahloujifar
Visual summary for How much can language models memorize? by John Morris, Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, Edward Suh, Alexander Rush, Kamalika Chaudhuri, Saeed Mahloujifar

Key moments

  1. 0:00 Introduction and motivation for quantifying memorization
  2. 2:00 Defining instance-level memorization using Kolmogorov complexity
  3. 4:00 Experimental setup and capacity scaling with random tokens
  4. 6:00 Experiments on real data and connection to generalization
  5. 8:00 Summary and audience Q&A session

How much can language models memorize?

Speakers: John Morris; Chawin Sitawarin; Chuan Guo; Narine Kokhlikyan; Edward Suh; Alexander Rush; Kamalika Chaudhuri; Saeed Mahloujifar

Conference: ICML

YouTube: https://slideslive.com/39083755

Overview

This talk, presented by Saeed Mahloujifar on behalf of lead author Jack Morris and a collaborative team, investigates the fundamental limits and dynamics of training data memorization in large language models. The research addresses a critical blind spot in machine learning: while effects like overfitting or verbatim data regurgitation are well-documented, they are merely downstream symptoms rather than direct measurements of memorization. A model may appear completely generalized—showing no obvious overfitting or regurgitation—while still secretly harboring memorized training instances.

The work matters deeply for both instance-level concerns, such as data privacy and copyright protection, and distribution-level system dynamics, such as understanding model capacity and double descent. By introducing a rigorous, information-theoretic framework to quantify memorization down to individual data points, the authors open up new pathways for auditing language models. This allows practitioners to inspect how models allocate their internal parameters between general task learning and brute-force memorization.

Background

▶ Watch: Introduction and motivation for quantifying memorization (0:00)

In machine learning and systems research, quantifying what a model actually learns versus what it merely memorizes has historically relied on proxy metrics. In classical machine learning, researchers point to the generalization gap—the discrepancy between training and validation performance—as evidence of overfitting caused by memorization. In the context of large language models, memorization is often diagnosed when models regurgitate training sequences verbatim when prompted.

However, these observable effects fail to capture hidden memorization occurring when models do not explicitly overfit or regurgitate text. Previous foundational work, notably by Brown et al., sought to define memorization using information theory via mutual information between the target model and the training instance conditioned on the ground truth. While mathematically sound, this mutual information definition lacks granularity at the individual sample level. In systems and safety engineering, practitioners desperately need an instance-level lens to determine if specific sensitive records, copyrighted text, or private user data have been absorbed by the weights, independent of macro-level training dynamics.

Key Findings

▶ Watch: Defining instance-level memorization using Kolmogorov complexity (2:00)

The central discovery of this work is that language model memorization scales with parameter count in a remarkably predictable, linear fashion. By training various architectures on strictly controlled streams of uniform random tokens—thereby eliminating any valid task-based generalization—the authors isolated pure memorization.

  • Capacity Scaling: In the infinite data regime, the amount of memorization scales linearly with the number of model parameters, establishing a concrete exchange rate of approximately 36 bits of memory per parameter for the GPT family of models.
  • Precision Invariance: Experiments varying parameter precision between 32-bit and 16-bit float formats showed virtually no change in memorization capacity, indicating that the overarching network architecture dictates storage capacity far more than numeric precision within standard operating ranges.
  • Dataset Size Dynamics: When scaling dataset sizes using both synthetic random tokens and real-world corpora like FineWeb, memorization increases linearly until hitting the model’s capacity limit, at which point it plateaus. On real-world text, memorization begins to decrease past this capacity threshold as the model transitions into a generalization phase.
  • The Double Descent Connection: Investigating the dataset-to-capacity ratio revealed that the turning point where models begin to generalize more effectively coincides precisely with the point where dataset size equals model capacity.
  • Rarity and Vulnerability: Instance-level analysis demonstrated a massive correlation between high memorization and high sample rarity, measured via TF-IDF scores, confirming that rare tokens and underrepresented linguistic domains are disproportionately vulnerable to memorization.

Technical Deep Dive

▶ Watch: Experimental setup and capacity scaling with random tokens (4:00)

Quantifying memorization at the individual sample level requires moving beyond traditional Shannon entropy. The authors substitute Shannon entropy with Kolmogorov complexity, which measures the length of the shortest computer program or representation capable of outputting a given string.

Formally, the instance-level memorization of a target model $\theta$ on data point $x$ is defined as the gap between the shortest representation of $x$ given only the ground truth, and the shortest representation of $x$ given access to both the ground truth and the target model $\theta$. Because Kolmogorov complexity is notoriously uncomputable, the authors operationalize this metric using practical heuristics:

  1. Compression via Arithmetic Coding: To evaluate how well a model compresses a data point (acting as a proxy for its Kolmogorov complexity), the authors employ arithmetic coding, outperforming alternative data-compression heuristics.
  2. Ground Truth Approximation: For real-world datasets where the true data distribution is unknown, the ground truth is approximated by training a reference model on a significantly larger corpus of data.

By framing memorization through compression efficiency, the system connects weight updates directly to information-theoretic bit allocation. When a model transitions from memorizing random tokens to learning structured, real-world distributions (such as FineWeb), it frees up parameter bits previously consumed by raw data storage, reallocating them toward abstract task generalization.

Experimental Setup & Results

▶ Watch: Experiments on real data and connection to generalization (6:00)

The empirical evaluation spanned multiple data regimes, combining synthetic constructs with web-scale corpora:

  • Synthetic Random Token Regimes: By generating long streams of uniformly random tokens, the authors eliminated generalization entirely. This isolated pure storage capacity, proving the 36-bits-per-parameter metric across the GPT model family.
  • Real-World Corpora: Experiments utilizing the FineWeb dataset mapped how training set scale interacts with model capacity. As the training set size expanded toward the parameter capacity limit, memorization scaled linearly before peaking and subsequently declining as generalization kicked in.
  • Double Descent Curves: By plotting test loss against the dataset-to-capacity ratio, the team confirmed that enhanced generalization behavior consistently triggers right around the exact threshold where dataset size matches model capacity.
  • Instance-Level Profiling: Using TF-IDF scoring across text samples, the results demonstrated that rarer instances exhibit significantly higher bits of memorization, providing a quantitative metric for identifying privacy leaks and copyright vulnerabilities.

Practical Implications

▶ Watch: Summary and audience Q&A session (8:00)

For infrastructure teams, model builders, and security compliance officers, these findings offer actionable insights into model training and auditing:

  • Auditing for Privacy and Copyright: Because instance-level memorization can now be quantified via compression gaps, deployers can scan training datasets or probe model checkpoints to flag sensitive records or copyrighted snippets that exceed safe memory thresholds.
  • Mitigating Rare-Token Memorization: Since rare tokens (quantified via TF-IDF) dominate the upper tiers of memorization, data curation pipelines can apply targeted filtering, deduplication, or differential privacy mechanisms specifically to tail-distribution data without unnecessarily penalizing common knowledge.
  • Understanding Model Scaling: Knowing that parameter capacity imposes a strict ceiling on raw memorization helps teams size models appropriately relative to their unique training corpus sizes to balance memorization risks against generalization capabilities.
  • Trade-offs and Limitations: The primary technical limitation lies in the heuristic approximation of Kolmogorov complexity via arithmetic coding and ground-truth model estimation. While computationally tractable, these heuristics are approximations rather than exact mathematical guarantees, leaving room for future algorithmic refinement.

Key Takeaways

  • Direct Quantification: Traditional metrics only capture downstream effects like overfitting or text regurgitation, whereas this framework uses Kolmogorov complexity and arithmetic coding to directly quantify memorization in bits.
  • Linear Capacity Scaling: In infinite data regimes using uniform random tokens, model capacity scales linearly at a rate of roughly 36 bits per parameter across the GPT family.
  • Precision Robustness: Changing model parameter precision between 32-bit and 16-bit float formats has a negligible impact on overall memorization capacity.
  • The Generalization Pivot: On real-world datasets like FineWeb, memorization scales linearly until hitting model capacity, after which it drops as parameters are reallocated toward task generalization.
  • Rarity Drives Memorization: Text samples with rare tokens and low representation (high TF-IDF scores) are memorized at significantly higher rates, highlighting primary vectors for privacy and copyright exposure.

About the Speaker(s)

  • John Morris: Lead author of the work on language model memorization (noted as unable to attend the presentation).
  • Saeed Mahloujifar: Presenter of work on quantifying memorization in language models; co-author on the paper.

Co-authors: Chawin Sitawarin, Chuan Guo, Narine Kokhlikyan, Edward Suh, Alexander Rush, Kamalika Chaudhuri.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026