Abstract
Machine unlearning has become a promising solution for fulfilling the "right to be forgotten", under which individuals can request the deletion of their data from machine learning models. However, existing studies of machine unlearning mainly focus on the efficacy and efficiency of unlearning methods, while neglecting the investigation of the privacy vulnerability during the unlearning process. With two versions of a model available to an adversary, that is, the original model and the unlearned model, machine unlearning opens up a new attack surface. In this paper, we conduct the first investigation to understand the extent to which machine unlearning can leak the confidential content of the unlearned data. Specifically, under the Machine Learning as a Service setting, we propose unlearning inversion attacks that can reveal the feature and label information of an unlearned sample by only accessing the original and unlearned model. The effectiveness of the proposed unlearning inversion attacks is evaluated through extensive experiments on benchmark datasets across various model architectures and on both exact and approximate representative unlearning approaches. The experimental results indicate that the proposed attack can reveal the sensitive information of the unlearned data. As such, we identify three possible defenses that help to mitigate the proposed attacks, while at the cost of reducing the utility of the unlearned model. The study in this paper uncovers an underexplored gap between machine unlearning and the privacy of unlearned data, highlighting the need for the careful design of mechanisms for implementing unlearning without leaking the information of the unlearned data.
Introduction: The Privacy Gap in Machine Unlearning
As privacy regulations like GDPR and CCPA take hold, "Machine Unlearning" (MU) has emerged as a critical field. It allows individuals to request that their data be "erased" from a model without requiring a full, expensive retrain from scratch. However, the unlearning process inherently involves two versions of a model: the original ($M$) and the unlearned ($M_u$). To an adversary, this "before and after" snapshot provides a differential signal that can be exploited.
This research investigates a fundamental question: To what extent do current unlearning methods leak the sensitive information they are meant to protect? As shown in the comparison above, the proposed unlearning inversion attacks require significantly less prior knowledge of the dataset or the specific unlearning method compared to existing attacks like membership inference or camouflaged poisoning, making them a more universal threat.
Methodology: Unlearning Inversion Attacks
The authors propose two primary attack vectors based on the level of access an attacker has within a Machine Learning as a Service (MLaaS) ecosystem:
- Feature Leakage (White-box Attack): If an attacker (such as a curious MLaaS server provider) has access to the model parameters, they can calculate the difference between the original parameters ($\theta$) and the unlearned parameters ($\theta_u$). This difference serves as an approximation of the gradient of the unlearned data. By using gradient inversion techniques—optimizing a "dummy" input to match the direction of this estimated gradient—the attacker can reconstruct the actual images or data points removed.
- Label Leakage (Black-box Attack): If an attacker only has API access, they use probing samples. These are adversarial examples designed to be predicted as a specific class with high confidence. After unlearning, the model's confidence in these probing samples will drop most significantly for the class that was unlearned. By monitoring this "confidence drop," the attacker can infer which category of data was deleted.
Experimental Evaluation
The study evaluates these attacks across a diverse range of data types, including standard vision benchmarks (CIFAR-10/100, STL-10), medical imaging (Chest X-Rays), and tabular financial data (German Credit dataset).
Key Results
- High Fidelity Reconstruction: In approximate unlearning settings, the attacks reconstructed images with enough detail to be easily recognizable (e.g., identifying a specific dog or deer from the CIFAR datasets).
- Label Inference Accuracy: The black-box attack achieved label inference accuracy often exceeding 90% for approximate unlearning and remaining surprisingly effective (up to 70-90%) for exact unlearning.
- Defense Trade-offs: The authors tested three defenses: Parameter Obfuscation (adding noise), Model Pruning, and Fine-tuning. While these can mitigate the attacks, they come at a heavy cost, often reducing the model's validation accuracy by 5-15% to achieve meaningful privacy.
Discussion: The Efficiency-Privacy Paradox
A critical insight from this work is the "Efficiency-Privacy Paradox." "Approximate" unlearning methods—which are fast and popular—are significantly more vulnerable than "Exact" unlearning (retraining from scratch). Because approximate methods directly modify weights based on the target data's gradient, they leave a much clearer "fingerprint" for attackers to follow. Even "Exact" unlearning isn't perfectly safe; if the training dataset is small, the difference between a retrained model and the original is still distinct enough to allow for successful feature reconstruction.
Limitations and Future Work
The feature reconstruction attack currently struggles when many samples are unlearned simultaneously (the "one-to-many" problem), as the optimizer has difficulty disentangling the combined gradients of a large batch. Future research should use these inversion attacks as a measurement tool to build unlearning algorithms that are "private by design," rather than just efficient.
Summary updated