Skip to main content
QUICK REVIEW

[Paper Review] Measuring Unintended Memorisation of Unique Private Features in Neural Networks

John Hartley, Sotirios A. Tsaftaris|arXiv (Cornell University)|Feb 16, 2022
Machine Learning in HealthcareComputer Science5 citations
TL;DR

This paper proposes a black-box memorisation score to detect unintended memorisation of unique private features—such as a patient's name in medical images—within trained neural networks. By comparing KL divergences of model outputs on modified out-of-distribution images, the method reveals that even with regularisation (e.g., dropout, batch norm, data augmentation), models on MNIST, Fashion-MNIST, and CIFAR-10 memorise unique features present only once in training data, posing a significant privacy risk.

ABSTRACT

Neural networks pose a privacy risk to training data due to their propensity to memorise and leak information. Focusing on image classification, we show that neural networks also unintentionally memorise unique features even when they occur only once in training data. An example of a unique feature is a person's name that is accidentally present on a training image. Assuming access to the inputs and outputs of a trained model, the domain of the training data, and knowledge of unique features, we develop a score estimating the model's sensitivity to a unique feature by comparing the KL divergences of the model's output distributions given modified out-of-distribution images. Our results suggest that unique features are memorised by multi-layer perceptrons and convolutional neural networks trained on benchmark datasets, such as MNIST, Fashion-MNIST and CIFAR-10. We find that strategies to prevent overfitting (e.g.\ early stopping, regularisation, batch normalisation) do not prevent memorisation of unique features. These results imply that neural networks pose a privacy risk to rarely occurring private information. These risks can be more pronounced in healthcare applications if patient information is present in the training data.

Motivation & Objective

  • To investigate whether neural networks unintentionally memorise unique private features—such as names or IDs—present only once in training data.
  • To develop a black-box method for measuring such memorisation without access to training data, using only model inputs, outputs, and knowledge of the unique feature.
  • To evaluate the effectiveness of common regularisation techniques (e.g., dropout, batch norm, data augmentation) in preventing memorisation of unique features.
  • To assess the relationship between model memorisation and example influence, such as self-influence scores from TracIn.
  • To highlight privacy risks in real-world applications, particularly in healthcare, where patient identifiers may inadvertently be encoded in model weights.

Proposed method

  • Inject synthetic 'canary' images with unique private features (e.g., names) into benchmark datasets like MNIST, Fashion-MNIST, and CIFAR-10.
  • Train multi-layer perceptrons and convolutional neural networks on these augmented datasets to simulate real-world training scenarios.
  • Define a memorisation score M as the KL divergence between model output distributions on original and modified canary images, where modifications preserve the unique feature but alter other visual content.
  • Use out-of-distribution images with the same unique feature but different background or context to probe model sensitivity.
  • Compute the score across multiple canaries and report average M values to assess memorisation levels.
  • Evaluate the impact of regularisation techniques (dropout, data augmentation, batch norm) on memorisation by comparing M scores across models.

Experimental results

Research questions

  • RQ1Can neural networks memorise unique private features that appear only once in a training dataset, even when the features are not part of the label or class distribution?
  • RQ2Does the proposed black-box memorisation score effectively detect such unintended memorisation using only model inputs and outputs?
  • RQ3Do standard regularisation techniques—such as dropout, batch normalisation, and data augmentation—effectively prevent memorisation of unique private features?
  • RQ4Is there a correlation between the self-influence of a training example (measured via TracIn) and the model’s memorisation of its unique features?
  • RQ5How does data augmentation affect the memorisation of unique features, particularly when it increases the effective number of examples with the same unique feature?

Key findings

  • The proposed memorisation score successfully detects unintended memorisation of unique private features in both multi-layer perceptrons and convolutional neural networks trained on MNIST, Fashion-MNIST, and CIFAR-10.
  • Memorisation scores (M) remain significant even after applying regularisation: for example, M = 1.7 for a CNN-2 model on CIFAR-10 with batch normalisation, indicating strong memorisation.
  • Data augmentation increases memorisation scores—from 0.018 to 0.13 in one case—because it implicitly increases the number of examples with the same unique feature, strengthening spurious correlations.
  • There is no strong correlation between self-influence (via TracIn) and memorisation score in Fashion-MNIST and CIFAR-10, suggesting that high-influence examples are not the primary drivers of memorisation in complex datasets.
  • The study reveals that even in standard benchmark datasets, unique private features are memorised, implying a persistent privacy risk in real-world applications such as healthcare, where patient identifiers may be inadvertently included in training data.

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.