Unveiling Privacy, Memorization, and Input Curvature Links

Deepak Ravikumar, Efstathia Soufleri, Abolfazl Hashemi, Kaushik Roy

Abstract

Deep Neural Nets (DNNs) have become a pervasive tool for solving many emerging problems. However, they tend to overfit to and memorize the training set. Memorization is of keen interest since it is closely related to several concepts such as generalization, noisy learning, and privacy. To study memorization, Feldman (2019) proposed a formal score, however its computational requirements limit its practical use. Recent research has shown empirical evidence linking input loss curvature (measured by the trace of the loss Hessian w.r.t inputs) and memorization. It was shown to be ~3 orders of magnitude more efficient than calculating the memorization score. However, there is a lack of theoretical understanding linking memorization with input loss curvature. In this paper, we not only investigate this connection but also extend our analysis to establish theoretical links between differential privacy, memorization, and input loss curvature. First, we derive an upper bound on memorization characterized by both differential privacy and input loss curvature. Second, we present a novel insight showing that input loss curvature is upper-bounded by the differential privacy parameter. Our theoretical findings are further empirically validated using deep models on CIFAR and ImageNet datasets, showing a strong correlation between our theoretical predictions and results observed in practice.

Introduction

Deep Neural Networks (DNNs) are notorious for their ability to "memorize" training data rather than just learning general patterns. While this helps them achieve high accuracy, it is a double-edged sword: memorization is a primary driver of overfitting and a major security risk for data privacy. Understanding the mechanics of memorization is crucial for building models that are both robust and secure.

To understand why a model fails to generalize, we need to identify which samples it has memorized. The gold standard for this is "Feldman’s memorization score," which measures how much a model’s prediction on a specific sample changes if that sample is removed from the training set. However, calculating this score accurately requires training thousands of models on different subsets of data, making it computationally prohibitive for large-scale applications. Recent empirical studies suggested that input loss curvature (the trace of the loss Hessian with respect to the input) could serve as a fast proxy, but a theoretical foundation explaining this link was previously missing.

Theoretical Framework

Researchers from Purdue University have provided the missing theoretical bridge between three critical concepts: Differential Privacy (DP), memorization, and the geometry of the loss surface (input curvature). The authors mathematically prove that a model's memorization of specific training samples is upper-bounded by its input loss curvature—a measure of how sensitive the model's loss is to small changes in the input. They further show that both are governed by Differential Privacy parameters.

The paper's theoretical framework visualizes the links between Privacy, Memorization, and Input Loss Curvature through Theorems 5.1, 5.3, and 5.4.

The framework is established through three main theorems:

  1. Theorem 5.1 (Curvature → Memorization): Derives a linear upper bound showing that memorization is constrained by input loss curvature plus terms related to the algorithm's stability and generalization.
  2. Theorem 5.3 (Privacy → Curvature): Proves that input loss curvature is itself upper-bounded by the Differential Privacy parameter (ε).
  3. Theorem 5.4 (Privacy → Memorization): Establishes a direct bound on memorization based on the privacy budget.

Empirical Validation

To validate these theories, the study evaluated deep models (ResNet18, ResNet50, and Small Inception) on standard benchmarks, including CIFAR-10, CIFAR-100, and ImageNet. The researchers used Hutchinson’s trace estimator to efficiently calculate curvature and compared it against pre-computed memorization scores.

Empirical results on CIFAR100 and ImageNet show a striking linear relationship between average memorization scores and curvature, directly validating the theoretical predictions of Theorem 5.1.

The results demonstrate a strong linear correlation between average memorization scores and curvature across both datasets. Notably, calculating curvature was found to be roughly three orders of magnitude faster than calculating traditional memorization scores. Furthermore, as the privacy budget (ε) decreases (increasing privacy), the observed input curvature drops significantly, matching the predictions of Theorem 5.3.

Key Insights and Discussion

The core insight of this work is that both memorization and curvature are measures of sensitivity. Memorization measures sensitivity to the presence of a sample, while curvature measures sensitivity to perturbations of that sample. This geometric perspective reveals that Differential Privacy doesn't just protect identities; it mathematically forces the model's loss surface to be "smoother" (lower curvature) around training points, which naturally limits its ability to memorize.

Furthermore, the study highlights the difference between "prototypical" and "rare" samples. Prototypical samples (typical examples of a class) exhibit low curvature, while rare or difficult samples—those most likely to be memorized—exhibit high curvature.

Conclusion and Future Work

While the results are robust, the authors note that the theory relies on assumptions like error stability and Hessian Lipschitzness. Future work could explore how these relationships behave in extremely overparameterized architectures or with different loss functions. A promising practical application is the development of new regularization techniques that specifically penalize input curvature to improve both privacy and generalization simultaneously.

Summary updated

Abstract

Deep Neural Nets (DNNs) have become a pervasive tool for solving many emerging problems. However, they tend to overfit to and memorize the training set. Memorization is of keen interest since it is closely related to several concepts such as generalization, noisy learning, and privacy. To study memorization, Feldman (2019) proposed a formal score, however its computational requirements limit its practical use. Recent research has shown empirical evidence linking input loss curvature (measured by the trace of the loss Hessian w.r.t inputs) and memorization. It was shown to be ~3 orders of magnitude more efficient than calculating the memorization score. However, there is a lack of theoretical understanding linking memorization with input loss curvature. In this paper, we not only investigate this connection but also extend our analysis to establish theoretical links between differential privacy, memorization, and input loss curvature. First, we derive an upper bound on memorization characterized by both differential privacy and input loss curvature. Second, we present a novel insight showing that input loss curvature is upper-bounded by the differential privacy parameter. Our theoretical findings are further empirically validated using deep models on CIFAR and ImageNet datasets, showing a strong correlation between our theoretical predictions and results observed in practice.
BibTeX
@inproceedings{ravikumar2024unveiling,
  author = {Deepak Ravikumar and Efstathia Soufleri and Abolfazl Hashemi and Kaushik Roy},
  title = {{Unveiling Privacy, Memorization, and Input Curvature Links}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=4dxR7awO5n},
}
Figure