PRUNE: A Patching Based Repair Framework for Certifiable Unlearning of Neural Networks

Xuran Li, Jingyi Wang, Xiaohan Yuan, Peixin Zhang, Zhan Qin, Zhibo Wang, Kui RenarXiv 2025 · DOI

Abstract

Machine unlearning has emerged as a critical requirement for AI systems to comply with privacy regulations like the GDPR's "right to be forgotten." However, the gold standard of retraining from scratch is computationally expensive, while approximate methods often degrade overall model performance or lack verifiable guarantees. This paper introduces PRUNE (Patching based Repair framework for certifiable UNlearning), a novel approach that frames unlearning as a surgical model repair task. By appending a lightweight, localized "patch" network to the original model, PRUNE can effectively "forget" specific data points by forcing incorrect predictions on them while maintaining the model's accuracy on the remaining dataset. Experimental results across four diverse datasets demonstrate that PRUNE achieves over 90% unlearning effectiveness with near-zero impact on general performance, offering a superior balance of efficiency and integrity.

Introduction

The rapid proliferation of machine learning models has brought significant privacy concerns to the forefront. Regulations such as the General Data Protection Regulation (GDPR) grant individuals the "right to be forgotten," necessitating mechanisms to remove specific training data from a model's influence. While retraining a model from scratch without the target data ensures complete removal, it is often prohibitively expensive for large-scale neural networks.

Existing "approximate unlearning" techniques attempt to update model weights to simulate retraining. However, these methods frequently suffer from two major drawbacks: performance degradation on the remaining data due to global weight shifts, and a lack of verifiable proof that the specific data has been forgotten. PRUNE addresses these challenges by treating unlearning not as a weight-tuning problem, but as a localized repair task.

The PRUNE Framework

The core innovation of PRUNE is the introduction of a "patch" network. Instead of modifying the original model's weights, PRUNE appends a small sub-network that is specifically designed to activate only for the data points requested for deletion.

Conceptual comparison of standard training, unlearning by retraining, and the proposed PRUNE framework using a 'patch' network.

As shown in Figure 1, PRUNE contrasts with traditional retraining. While retraining builds a new model from a modified dataset, PRUNE "patches" the original model. This patch strategically seeks to falsify predictions on the withdrawn data, satisfying the data holder's need for verification while meeting the model owner's expectation of preserved overall performance.

Methodology

PRUNE leverages the mathematical properties of Continuous Piecewise Linear (CPWL) networks, such as those utilizing ReLU activation functions. The unlearning process follows three primary steps:

  1. Locating the Linear Region: The framework identifies the specific polytope (linear region) in the input space where the target data point resides.
  2. Optimizing a Confusion Network: A minimal sub-network is crafted to redirect the model’s prediction for the target point to an incorrect label, effectively "confusing" the model on that specific input.
  3. Applying a Support Network: To ensure surgical precision, a support network restricts the patch's influence to the target linear region. This ensures the patch has zero effect on data points outside the specified region, preventing collateral damage to the model's general accuracy.

For scenarios involving multipoint unlearning, PRUNE utilizes K-Means clustering to identify representative centroids of the data to be deleted, optimizing patches for these clusters to maintain computational efficiency.

Experimental Evaluation

The authors evaluated PRUNE against several baselines, including Retraining, SISA (Sharded, Isolated, Sliced, and Aggregated training), and approximate methods like AML (Amnesiac Machine Learning). The evaluation spanned four datasets: Purchase-20 (tabular), HAR (sensor data), MNIST (handwritten digits), and CIFAR-10 (images).

Key Results

PRUNE demonstrated exceptional effectiveness, achieving a drop of over 90% in accuracy on unlearned data across all benchmarks. Crucially, this was achieved with minimal impact on the model's performance on the rest of the dataset. For instance, on Purchase-20, HAR, and MNIST, PRUNE maintained 0% change in test accuracy, whereas baseline methods like AML saw drops of up to 12.59%.

Efficiency comparison across four datasets (Purchase-20, HAR, MNIST, CIFAR-10) showing running/retrain time for PRUNE versus baseline methods.

In terms of efficiency, as illustrated in Figure 3, PRUNE is significantly faster than retraining or SISA in many scenarios, particularly as the complexity of the dataset increases (e.g., CIFAR-10). While it may be slightly slower than some closed-form approximate methods, the trade-off is justified by its superior performance preservation and the "certifiable" nature of the unlearning—where forgetting can be verified simply by observing the model's failure on the specific withdrawn input.

Conclusion and Future Work

PRUNE offers a robust, efficient, and verifiable solution for machine unlearning in ReLU-based networks. By framing unlearning as a localized repair task, it bypasses the pitfalls of global weight modification. Future research will focus on extending these theoretical guarantees to non-CPWL architectures (e.g., those using Sigmoid or Tanh activations) and optimizing the scalability of patch networks for extremely large-scale unlearning requests.

Summary updated

BibTeX
@misc{li2025prune,
  author = {Xuran Li and Jingyi Wang and Xiaohan Yuan and Peixin Zhang and Zhan Qin and Zhibo Wang and Kui Ren},
  title = {{PRUNE: A Patching Based Repair Framework for Certifiable Unlearning of Neural Networks}},
  year = {2025},
  eprint = {2505.06520},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.06520},
}
Figure