zkUnlearner: A Zero-Knowledge Framework for Verifiable Unlearning with Multi-Granularity and Forgery-Resistance

Nan Wang, Nan Wu, Xiangyu Hui, Jiafan Wang, Xin YuanarXiv 2025 · DOI

Introduction

As the "right to be forgotten" becomes a legal and ethical standard, users require mechanisms to ensure their data has been effectively removed from trained machine learning models. This concept, known as Verifiable Unlearning, faces significant challenges in modern AI deployment. Existing solutions often struggle with granularity (e.g., removing specific features rather than entire samples), computational efficiency, and vulnerability to "forgery attacks" where malicious trainers might secretly retain deleted data's influence.

zkUnlearner is introduced as the first zero-knowledge framework that allows models to prove they have "forgotten" specific data without revealing the data itself. By leveraging a novel bit-masking technique and verifiable randomness, it supports fine-grained unlearning while remaining resistant to adversarial manipulation.

Problem Statement

Current verifiable unlearning methods face three primary hurdles:

  1. Granularity: Most methods are limited to "sample-level" unlearning. They cannot easily handle "feature-level" (e.g., removing specific attributes from images) or "class-level" (e.g., removing an entire category) unlearning.
  2. Efficiency: Previous zero-knowledge approaches required re-generating the entire mathematical "circuit" for every unlearning request, leading to prohibitive computational overhead.
  3. Forgery Attacks: In Stochastic Gradient Descent (SGD), a malicious trainer could "forge" a model update by using "gradient replicas"—duplicate or highly similar data—to maintain the influence of supposedly deleted information.

Methodology: Bit-Masking and Verifiable Randomness

The core innovation of zkUnlearner is shifting from membership proofs to a Bit-Masking computational model. Instead of physically altering the dataset, the trainer applies a committed "unlearning bit matrix" to the data.

High-level architecture of zkUnlearner

Multi-Granularity Unlearning

Using a Hadamard product (element-wise multiplication), features or samples are multiplied by 1 (to keep) or 0 (to forget). This approach allows the underlying arithmetic circuit to remain invariable, drastically reducing the overhead of the trusted setup required for zero-knowledge proofs. This mechanism supports various levels of data removal as shown below:

Multi-granularity unlearning via bit-masking

Forgery Resistance

To prevent trainers from cherry-picking "forged" minibatches, the framework employs Verifiable Random Functions (VRFs). This forces the use of publicly verifiable randomness during data selection for retraining, making it nearly impossible to strategically manipulate batches to retain unlearned data's influence. Additionally, a State-Preserving Bit Matrix ensures unlearning is permanent across multiple rounds by using bitwise AND operations to combine current and historical masks.

Experimental Evaluation

The framework was implemented using the Groth16 zkSNARK protocol and the Circom language. Evaluation focused on Linear Regression (LR) and a 3-layer Neural Network (NN) to test feature-level and class-level unlearning across various dataset sizes.

Key Results

  • Minimal Complexity: Bit-masking for feature-level unlearning increased R1CS constraints by only 1.6% for LR and 0.17% for NN.
  • High Performance: Proving time for a 50-sample minibatch was under 1 second (0.37s for LR, 0.94s for NN).
  • Constant Verification: Regardless of model size, verification takes approximately 0.2 seconds.
  • Compact Proofs: Cryptographic proofs are only 192 bytes, ideal for on-chain storage or audit logs.

Conclusion and Future Work

zkUnlearner demonstrates that privacy-preserving, verifiable unlearning is feasible with minimal overhead. By using fixed circuits and verifiable randomness, it addresses the critical issues of efficiency and forgery. Future research will focus on addressing "approximate forgery" and the legal implications of automatically deleting similar data ("gradient replicas"), which may impact data ownership policies.

Summary updated

BibTeX
@misc{wang2025zkunlearner,
  author = {Nan Wang and Nan Wu and Xiangyu Hui and Jiafan Wang and Xin Yuan},
  title = {{zkUnlearner: A Zero-Knowledge Framework for Verifiable Unlearning with Multi-Granularity and Forgery-Resistance}},
  year = {2025},
  eprint = {2509.07290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.07290},
}
Figure