Verifiable and Provably Secure Machine Unlearning

Thorsten Eisenhofer, Doreen Riepel, Varun Chandrasekaran, Esha Ghosh, Olga Ohrimenko, Nicolas Papernot · DOI

Abstract

Machine unlearning allows users to request the removal of their data from a trained model. However, verifying that a service provider has actually performed the unlearning remains a significant challenge. This paper introduces a formal cryptographic framework for verifiable machine unlearning. By utilizing SNARKs and hash chains, the protocol provides users with a mathematical receipt proving their data was removed and has not been secretly re-added. We evaluate our implementation on several binary classification tasks, demonstrating that verifiable unlearning is computationally feasible and significantly faster than retraining from scratch.

Introduction

Under regulations such as GDPR and CCPA, individuals possess the "right to be forgotten," requiring companies to "unlearn" user data from their models upon request. Machine learning models often memorize training data, making the relationship between weights and inputs complex. A dishonest server might claim to have unlearned data to save on computational costs or maintain accuracy. Since users cannot typically detect the absence of data by observing model parameters or predictions, this work focuses on proving the correctness of the unlearning process itself.

Methodology

The proposed framework treats unlearning as a security problem, employing several key components:

  • Admissible Functions: A generic interface for training and unlearning algorithms, supporting techniques like retraining, amnesiac unlearning, or optimization-based updates.
  • Iteration-Based Protocol: The protocol tracks the "conceptual dataset" across multiple iterations to prevent the silent re-addition of deleted data.
  • Cryptographic Primitives: The system uses Spartan (a SNARK proof system) to generate succinct proofs of model updates and Hash Chains (using the Poseidon hash function) to maintain commitments to the training set.
The proposed two-party protocol for verifiable machine unlearning.

Key Insights: Unlearning as a Security Game

A central contribution is the formal definition of "unlearning-secure" through a game-based approach. In this model, a protocol is considered secure if a server cannot win a game where it attempts to secretly retain a "deleted" data point within the model.

The formal security game definition for unlearning-secure protocols.

The framework shifts the focus from verifying the final state of a model to verifying the transition between states. By proving that the set of unlearnt data points is append-only, the system ensures that once data is removed, it remains excluded unless the user opts back in.

Experimental Evaluation

The implementation was evaluated using the PMLB (Penn Machine Learning Benchmark) suite on binary classification tasks including Creditscore, Patient, and Breast Cancer.

Performance Results

  • Feasibility: The framework successfully implemented verifiable unlearning for linear regression, logistic regression, and simple neural networks.
  • Efficiency: Proving the training of 100 data points for a linear model took approximately 4.5 minutes, with verification taking under 2 minutes.
  • Unlearning vs. Retraining: Amnesiac unlearning was 2x faster to prove than retraining, while optimization-based unlearning was 5x faster.
  • Scalability: Proof generation time scales linearly with dataset size (total features), suggesting potential for larger datasets as SNARK technology matures.

Limitations and Future Directions

While the approach is feasible, generating SNARK proofs for every update is computationally intensive, particularly for deep neural networks. Future work should explore "SNARK-friendly" machine learning algorithms—such as those using quantization—to reduce circuit constraints. Additionally, formalizing the privacy of the proofs themselves is a critical area for ensuring that the unlearning receipt does not inadvertently leak information about other users' data.

Summary updated

BibTeX
@inproceedings{eisenhofer2025verifiable,
  author = {Thorsten Eisenhofer and Doreen Riepel and Varun Chandrasekaran and Esha Ghosh and Olga Ohrimenko and Nicolas Papernot},
  title = {{Verifiable and Provably Secure Machine Unlearning}},
  booktitle = {SaTML},
  year = {2025},
  doi = {10.1109/satml64287.2025.00033},
}
Figure