spot_img
HomeResearch & DevelopmentUn-pruning: Enabling Data Forgetting in the Structure of Sparse...

Un-pruning: Enabling Data Forgetting in the Structure of Sparse AI Models

TLDR: A new research paper introduces “un-pruning,” a novel method to eliminate the influence of deleted data on the pruned structure (topology) of sparse machine learning models. This addresses the “Right to be Forgotten” by ensuring that the model’s architecture no longer reflects forgotten data. The proposed algorithm integrates with existing unlearning methods, significantly reduces computational costs compared to full retraining, and introduces new metrics to evaluate structural forgetting, demonstrating that pruning is data-dependent and requires specific unlearning techniques for its topology.

In the evolving landscape of artificial intelligence, the concept of the “Right to be Forgotten” has gained significant traction, driven by regulations like GDPR and CCPA. This principle mandates that individuals have the right to have their personal data erased from systems, including machine learning models. While traditional machine unlearning methods aim to remove the influence of deleted data from a model, a new research paper introduces a novel approach called “un-pruning” to address this right specifically for sparse models.

Sparse models, which are optimized to use fewer parameters (weights) for efficiency, are becoming increasingly popular. This optimization process is known as pruning, where less important connections in the neural network are removed. However, the authors of the paper, Yang Xiao, Gen Li, Jie Ji, Ruimeng Ye, Xiaolong ma, and Bo Hui, empirically discovered a critical issue: the pruning process itself is data-dependent. This means that even if data is deleted, its initial influence on the model’s structure (which parameters were pruned) can persist. This poses a challenge to truly forgetting data, as the model’s very architecture might still carry a memory of the deleted information.

The Challenge of Forgetting in Sparse Models

Imagine a model trained on a large dataset, and then a portion of that data is requested to be deleted. The ideal scenario, often called the “gold standard,” is to retrain the model from scratch on only the remaining data and then re-prune it. However, this “retraining + repruning” approach is incredibly time-consuming and computationally expensive, especially for large, complex models and frequent deletion requests. Existing unlearning algorithms primarily focus on updating the model’s parameters but don’t typically alter the underlying pruned structure, leaving the data-dependent topology intact.

Introducing Un-pruning: A New Approach to Forgetting

To tackle this, the researchers define “un-pruning” as a method to eliminate the impact of deleted data on the pruned topology of a sparse model. The goal is to generate a new sparse model whose structure aligns with what it would have been if the deleted data had never been seen during the initial pruning process. This is crucial because, as the paper highlights, the continued use of sparse models derived from deleted data instances could be deemed illegal under privacy regulations.

How Un-pruning Works

The proposed un-pruning algorithm is designed to be flexible, allowing it to integrate with any existing machine unlearning method. At its core, the process involves several iterative steps:

  • First, the parameters that were initially pruned (set to zero) are “unfrozen” and re-initialized with non-zero values. This is a crucial step, as it allows the model’s structure to change.
  • Next, a chosen unlearning algorithm is applied to the now “dense” model, aiming to remove the influence of the deleted data.
  • After unlearning, the model’s mask (its sparse topology) is updated. This involves identifying and re-enabling a certain percentage of parameters with the highest magnitude values, effectively changing which connections are kept or pruned.
  • This process is repeated over several iterations, gradually adjusting the model’s topology. Finally, the model is pruned back to its original sparsity level for a fair comparison with the ideal “retraining + repruning” scenario.

The un-pruning method is versatile, applicable to both unstructured pruning (where individual parameters are removed) and structured pruning (where entire channels or filters are removed).

Measuring Success Beyond Accuracy

The paper also addresses the challenge of evaluating unlearning in sparse models. While traditional metrics like test accuracy (TA) and unlearning accuracy (UA) are used, the authors empirically found that Membership Inference Attack (MIA) accuracy is unreliable for assessing whether a model has truly forgotten deleted data. They observed that small changes in data proportions could lead to arbitrary MIA results, making it akin to guesswork.

To provide more robust evaluation, the researchers propose new performance metrics focused on structural similarity: Intersection over Mask (IoM) and Intersection over Union (IoU). These metrics measure the overlap between the un-pruned model’s mask and the ideal re-pruned model’s mask. A higher intersection ratio indicates greater similarity between the topologies, signifying more effective un-pruning. They also use KL-divergence to measure the difference in parameter distributions.

Also Read:

Experimental Validation and Efficiency

The effectiveness and efficiency of the un-pruning algorithm were verified through extensive experiments using models like ResNet-18, AlexNet, and ViT on datasets such as CIFAR-10, FashionMNIST, and ImageNet. The results consistently showed that un-pruned models, when compared to the original models, achieved a topology and unlearning accuracy much closer to the “retraining + repruning” gold standard. This demonstrates that un-pruning successfully modifies the model’s structure to reflect the removal of data.

Furthermore, the un-pruning method significantly reduces computational time compared to the costly retraining and repruning approach. For instance, retraining + repruning could take thousands of seconds, while un-pruning with various integrated unlearning algorithms completed in tens to hundreds of seconds, showcasing a substantial efficiency gain. The study also found that re-initializing pruned parameters with their original initialization weights (rather than random values) led to better performance, suggesting that the initial network configuration plays a role in effective un-pruning.

This research introduces a crucial advancement in machine unlearning, particularly for sparse models. By defining and providing a practical algorithm for “un-pruning,” the authors offer a viable path for AI systems to truly forget data, not just in their parameters but also in their fundamental structure, thereby upholding the “Right to be Forgotten” in an efficient manner. For more details, you can read the full research paper here.

Nikhil Patel
Nikhil Patelhttps://blogs.edgentiq.com
Nikhil Patel is a tech analyst and AI news reporter who brings a practitioner's perspective to every article. With prior experience working at an AI startup, he decodes the business mechanics behind product innovations, funding trends, and partnerships in the GenAI space. Nikhil's insights are sharp, forward-looking, and trusted by insiders and newcomers alike. You can reach him out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -