Abstract
Machine unlearning has emerged as a critical tool for implementing the "right to be forgotten" in machine learning systems, allowing for the removal of specific data points from trained models. However, this work demonstrates that the unlearning process itself can be a significant privacy liability. We introduce HRec, a reconstruction attack that exploits the difference between model parameters before and after a deletion request. Our analysis shows that even simple linear models, often perceived as low-risk for data memorization, are highly vulnerable. By observing the model's transition, an attacker can reconstruct deleted samples with near-perfect accuracy across both tabular and image datasets.
Introduction
As data privacy regulations like GDPR become standard, the ability to remove individual data points from a model—machine unlearning—is increasingly necessary. The prevailing assumption has been that simple models, such as linear regression, pose minimal privacy risks because they do not "memorize" data in the same way deep neural networks do.
This paper challenges that assumption by shifting the focus from the static model to the unlearning transition. We show that the update step required to "forget" a sample effectively releases the gradient of the model with respect to that sample. This "gradient release" provides a high-bandwidth channel for data leakage, enabling an attacker with white-box access to the model parameters to perform a high-fidelity reconstruction of the deleted data.
Methodology: The HRec Attack
The HRec attack is built on the principle of a "differencing attack." We assume a threat model where an attacker has white-box access to the model parameters before ($\beta^+$) and after ($\beta^-$) a deletion, along with a small set of public data to estimate population statistics.
For linear regression, the attack leverages the Sherman-Morrison formula. The difference between the two parameter sets is mathematically proportional to the deleted sample $x$. By estimating the data's covariance matrix from public samples, the attacker can solve for $x$ directly. For more complex models like logistic regression or SVMs, HRec employs a second-order Taylor approximation, demonstrating that the parameter change is approximately the product of the inverse Hessian of the loss function and the gradient of the deleted sample. In cases involving fixed embeddings (e.g., Random Fourier Features), the attack first reconstructs the high-dimensional embedding and then optimizes to invert it back into the original input space.
Experimental Evaluation
We evaluated the HRec attack on several benchmarks, including the ACS Income tabular dataset and standard image datasets like MNIST and CIFAR10. The study focuses on how well an attacker can recover the exact input features from the observed model updates.
Key Results
The HRec attack demonstrates remarkable efficacy across all tested scenarios. On tabular data, it achieves near-perfect reconstruction of deleted samples. On image datasets, the results are visually striking, producing reconstructions that are often indistinguishable from the originals.
Quantitatively, HRec consistently achieves cosine similarity scores near 1.0, significantly outperforming baseline methods that rely on simple averaging or maximum difference heuristics. This high similarity indicates that the reconstructed data is a faithful representation of the private user data that was supposedly "forgotten."
Discussion and Insights
The core insight of this work is that unlearning is equivalent to gradient release. In a dynamic environment where models are updated to accommodate deletion requests, the sequence of models must be analyzed for privacy, not just individual snapshots. Paradoxically, the mathematical simplicity of linear models makes them more vulnerable to these reconstruction attacks because the relationship between the data and the parameter updates is more stable and direct.
Conclusion and Future Work
Our findings suggest that exact machine unlearning, while legally compliant, may be privacy-destructive unless paired with robust defense mechanisms. Currently, the only reliable defense against such second-order reconstruction attacks is Differential Privacy (DP). Future research should focus on integrating DP into unlearning pipelines to balance the "right to be forgotten" with the need for data confidentiality.
Summary updated