Skip to main content
QUICK REVIEW

[Paper Review] Measuring Forgetting of Memorized Training Examples

Matthew Jagielski, Om Thakkar|arXiv (Cornell University)|Jun 30, 2022
Adversarial Robustness in Machine LearningComputer Science15 citations
TL;DR

This paper proposes a method to measure how much machine learning models forget specific training examples over time, using membership inference attacks to assess privacy leakage. It finds that models trained with stochastic gradient descent forget early examples due to data randomness and nondeterminism, offering passive privacy benefits—especially for pre-trained models where early data may become less vulnerable to membership inference attacks.

ABSTRACT

Machine learning models exhibit two seemingly contradictory phenomena: training data memorization, and various forms of forgetting. In memorization, models overfit specific training examples and become susceptible to privacy attacks. In forgetting, examples which appeared early in training are forgotten by the end. In this work, we connect these phenomena. We propose a technique to measure to what extent models "forget" the specifics of training examples, becoming less susceptible to privacy attacks on examples they have not seen recently. We show that, while non-convex models can memorize data forever in the worst-case, standard image, speech, and language models empirically do forget examples over time. We identify nondeterminism as a potential explanation, showing that deterministically trained models do not forget. Our results suggest that examples seen early when training with extremely large datasets - for instance those examples used to pre-train a model - may observe privacy benefits at the expense of examples seen later.

Motivation & Objective

  • To investigate whether machine learning models forget specific training examples over time, particularly in large-scale or fine-tuning scenarios.
  • To determine whether forgetting reduces memorization and thus mitigates privacy risks from membership inference attacks.
  • To identify factors—such as training order, data repetition, and training algorithm determinism—that influence the rate of forgetting.
  • To understand the root causes of forgetting, especially the role of stochasticity in gradient descent versus deterministic training.
  • To evaluate whether passive forgetting offers practical privacy benefits, particularly for models pre-trained on massive datasets.

Proposed method

  • Uses state-of-the-art membership inference attacks to measure whether a model can still detect if a specific training example was used in training.
  • Trains models on vision, speech, and language tasks and measures membership inference success rates over time to quantify forgetting.
  • Compares models trained with stochastic gradient descent (SGD) against those trained deterministically to isolate the role of nondeterminism.
  • Employs a theoretical mean estimation task with injected data points to prove that stochasticity in gradient updates leads to forgetting.
  • Applies Rényi divergence to bound the privacy leakage between models trained with injected positive and negative data points.
  • Analyzes the impact of data order and duplication on forgetting rates using controlled training experiments.

Experimental results

Research questions

  • RQ1To what extent do machine learning models forget specific training examples during training, particularly those seen early in the dataset?
  • RQ2Does the stochasticity of gradient descent cause models to lose track of early training examples, thereby reducing memorization and privacy risk?
  • RQ3How does deterministic training compare to stochastic training in terms of example retention and susceptibility to membership inference attacks?
  • RQ4Can the forgetting of early examples in large-scale pre-training lead to passive privacy benefits for those examples?
  • RQ5What factors—such as data order, duplication, or learning rate—most strongly influence the rate of forgetting?

Key findings

  • Models trained with stochastic gradient descent forget early training examples over time, reducing their susceptibility to membership inference attacks.
  • Forgetting is significantly reduced or absent in deterministically trained models, indicating that stochasticity is a key driver of forgetting.
  • The rate of forgetting is faster for examples seen earlier in training and not repeated, especially in single-epoch or few-epoch training regimes.
  • In a theoretical mean estimation task, Rényi divergence between models trained with injected positive and negative data points decays with training steps, proving that forgetting occurs due to stochasticity.
  • Models pre-trained on massive datasets may experience passive privacy benefits, as early examples become less identifiable over time due to forgetting.
  • Non-convex models like k-means exhibit privacy leakage due to non-convexity, marking the first known instance of such a phenomenon in this context.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.