FedUHB: Accelerating Federated Unlearning via Polyak Heavy Ball Method

Yu Jiang, Chee-Wei Tan, Kwok-Yan Lam · OpenReview

Abstract

Federated learning (FL) facilitates collaborative machine learning, enabling multiple participants to collectively develop a shared model while preserving the privacy of individual data. However, the growing importance of the "right to be forgotten" calls for effective mechanisms to facilitate data removal upon request. In response, federated unlearning (FU) has been developed to efficiently eliminate the influence of specific data from the model. Current FU methods primarily rely on approximate unlearning strategies, which seek to balance data removal efficacy with computational and communication costs, but often fail to completely erase data influence. To address these limitations, we propose FedUHB, a novel exact unlearning approach that leverages the Polyak heavy ball optimization technique, a first-order method, to achieve rapid retraining. In addition, we introduce a dynamic stopping mechanism to optimize the termination of the unlearning process. Our extensive experiments show that FedUHB not only enhances unlearning efficiency but also preserves robust model performance after unlearning. Furthermore, the dynamic stopping mechanism effectively reduces the number of unlearning iterations, conserving both computational and communication resources. FedUHB is an effective and efficient solution for exact data removal in federated learning settings.

Introduction

Federated Learning (FL) has emerged as a cornerstone of privacy-preserving machine learning, allowing multiple clients to train a global model without ever sharing their raw data. Despite these privacy safeguards, modern regulations like the General Data Protection Regulation (GDPR) and the California Consumer Privacy Act (CCPA) grant users the "right to be forgotten." This necessitates Federated Unlearning (FU)—the process of completely removing a specific user's data influence from a previously trained global model.

Historically, FU has faced a difficult trade-off. Approximate Unlearning methods attempt to "patch" the model to remove data influence quickly, but they often leave behind "residual influence" that can be exploited by Membership Inference Attacks (MIA). Conversely, Exact Unlearning (retraining from scratch) provides the gold standard for privacy but is prohibitively expensive in terms of time and communication overhead. FedUHB (Federated Unlearning via Heavy Ball) bridges this gap by making exact unlearning practical through accelerated retraining.

Methodology

FedUHB introduces two primary innovations to accelerate the retraining process while maintaining the privacy guarantees of exact unlearning.

1. Polyak Heavy Ball (HB) Optimization

Standard gradient descent methods in FL typically rely on the current gradient to update model weights. FedUHB incorporates the Polyak Heavy Ball method, a first-order optimization technique that adds a "momentum" term. By utilizing the direction of the previous update, the Heavy Ball method allows the model to navigate the loss landscape more efficiently. While momentum is common in centralized training, FedUHB demonstrates that storing just one additional round of historical model state on the server provides a massive speedup for the unlearning process with negligible storage overhead.

2. Dynamic Stopping Mechanism

A common inefficiency in FL is the use of fixed iteration counts, which often leads to over-training or premature termination. FedUHB introduces a dynamic stopping criterion that monitors the standard deviation of model weight changes over time. The server tracks these fluctuations and automatically terminates the unlearning process once the model reaches a stable state. This ensures that the model achieves optimal performance while minimizing unnecessary communication rounds.

Experimental Evaluation

The researchers evaluated FedUHB against standard computer vision benchmarks, including MNIST (70,000 handwritten digits) and CIFAR-10 (60,000 color images), using Convolutional Neural Network (CNN) architectures in a simulated environment of 20 clients.

Key Results

  • Computational Efficiency: FedUHB significantly reduced the time per unlearning round. On MNIST, FedUHB completed rounds in 0.77 seconds, outperforming standard retraining (1.26s) and FedRecover (2.00s). On the more complex CIFAR-10 dataset, it was approximately 4 seconds faster per round than standard retraining.
  • Rapid Convergence: FedUHB reached target performance levels in roughly 20 rounds, whereas competing methods like FedEraser exhibited much slower convergence rates.
  • Model Integrity: Unlike approximate methods like FedRecover, which saw accuracy drop significantly on CIFAR-10 (sometimes to as low as 30%), FedUHB maintained high accuracy, comparable to a model trained from scratch.
  • Privacy Verification: To ensure the "forgetting" was successful, the researchers employed Membership Inference Attacks (MIA). FedUHB achieved a lower Membership Inference Success Rate (MISR) than existing methods, confirming that the target data's influence was effectively erased.

Discussion and Limitations

FedUHB demonstrates that exact unlearning does not have to be a bottleneck for federated systems. By focusing on rapid retraining rather than approximation, it bypasses the privacy risks associated with knowledge permeability.

However, some considerations remain for deployment:

  • Storage: The server must store the model state from the previous round to calculate momentum. While manageable for most models, this could be a factor for extremely large-scale architectures.
  • Hyperparameters: The effectiveness of the system depends on the momentum coefficient ($\beta$) and the stopping threshold ($\lambda$), which may require tuning for specific datasets.
  • Scalability: While tested with 20 clients, future research is needed to evaluate FedUHB in massive cross-device scenarios involving thousands of intermittent participants.

Conclusion

FedUHB provides a robust framework for exact federated unlearning. By combining the momentum-based acceleration of the Polyak Heavy Ball method with an intelligent dynamic stopping mechanism, it achieves the privacy of full retraining with the efficiency required for real-world federated applications.

Summary updated

Abstract

Federated learning facilitates collaborative machine learning, enabling multiple participants to collectively develop a shared model while preserving the privacy of individual data. The growing importance of the "right to be forgotten" calls for effective mechanisms to facilitate data removal upon request. In response, federated unlearning (FU) has been developed to efficiently eliminate the influence of specific data from the model. Current FU methods primarily rely on approximate unlearning strategies, which seek to balance data removal efficacy with computational and communication costs, but often fail to completely erase data influence. To address these limitations, we propose FedUHB, a novel exact unlearning approach that leverages the Polyak heavy ball optimization technique, a first-order method, to achieve rapid retraining. In addition, we introduce a dynamic stopping mechanism to optimize the termination of the unlearning process. Our extensive experiments show that FedUHB not only enhances unlearning efficiency but also preserves robust model performance after unlearning. Furthermore, the dynamic stopping mechanism effectively reduces the number of unlearning iterations, conserving both computational and communication resources. FedUHB can be proved as an effective and efficient solution for exact data removal in federated learning settings.
BibTeX
@inproceedings{jiang2024feduhb,
  author = {Yu Jiang and Chee-Wei Tan and Kwok-Yan Lam},
  title = {{FedUHB: Accelerating Federated Unlearning via Polyak Heavy Ball Method}},
  booktitle = {ITW},
  year = {2024},
  url = {https://openreview.net/forum?id=714prICmJW},
}
Figure