EMA: Auditing Data Removal from Trained Models

Yangsibo Huang, Xiaoxiao Li, Kai Li

Introduction

Ensembled Membership Auditing (EMA) is a novel framework designed to verify whether specific data has been successfully removed from a trained machine learning model. By ensembling multiple membership inference metrics and applying two-sample statistical testing, EMA provides a robust, black-box auditing process that outperforms previous methods, especially when dealing with low-quality calibration data or complex medical datasets.

The Data Auditing Problem

With the rise of privacy regulations like GDPR and HIPAA, individuals now have the "right to be forgotten." In machine learning, this necessitates "machine unlearning"—ensuring a data point's influence is purged from a trained model. However, verifying this "forgetting" is difficult. Previous state-of-the-art methods relied on Kolmogorov-Smirnov (KS) distances to compare model outputs, but these often fail in real-world scenarios where calibration data is noisy or query data closely resembles the training set, leading to high error rates.

Methodology

The authors propose EMA, a two-step black-box procedure:

The two-step EMA framework for auditing data memorization.
  1. Sample-wise Inference: For every image in a query dataset, the auditor calculates three distinct membership metrics: correctness, confidence, and negative entropy. By comparing these against thresholds derived from a calibration set, the auditor creates a binary vector M, where 1 indicates the model likely "remembers" the sample.
  2. Statistical Aggregation: Instead of a single distance score, EMA uses a two-sample t-test to compare the distribution of results in vector M against an "all-one" vector (representing perfect memorization). This produces a p-value ($\rho_{EMA}$); a low p-value leads the auditor to reject the hypothesis that the data remains in the model.

Crucially, EMA is efficient as it does not require training a new model on the query dataset.

Experimental Setup

The researchers evaluated EMA across two main domains:

  • Benchmarks: Standard image datasets including MNIST and SVHN.
  • Medical Imaging: Two Chest X-ray datasets (COVIDx and Childx). Medical data requires the highest levels of privacy compliance, making this a critical test case.

To test robustness, they intentionally degraded calibration datasets with Gaussian noise and random rotations.

Key Insights and Ideas

EMA's success stems from several core innovations:

  • Ensembling Metrics: While a single metric like confidence can be fooled by noise, combining correctness, confidence, and entropy provides a stable "fingerprint" of training data usage.
  • Distribution-based Testing: Shifting from point estimates to analyzing the distribution of inferences makes the process resilient to outliers.
  • Practical Black-Box Access: EMA only requires API-level access, mirroring real-world regulatory scenarios.
Comparison of EMA requirements and robustness against previous state-of-the-art methods.

Key Results

  • Robustness to Noise: In MNIST tests with degraded calibration data (50-60% quality), previous methods produced false positives. EMA maintained 100% accuracy.
  • Superiority in Medical Data: On Chest X-ray datasets, EMA consistently identified memorization where previous methods failed, even with high-quality calibration data.
  • Small Sample Efficiency: EMA remains effective with as few as 20 samples in the query set.

Limitations and Future Work

EMA requires a calibration dataset somewhat similar to the original training data. Future work includes testing on more complex medical tasks, investigating different model architectures, and exploring alternative statistical aggregation methods to further improve sensitivity.

Summary updated

BibTeX
@inproceedings{huang2021ema,
  author = {Yangsibo Huang and Xiaoxiao Li and Kai Li},
  title = {{EMA: Auditing Data Removal from Trained Models}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2021},
  url = {https://openreview.net/forum?id=z0FQdoaV9u},
}
Figure