FedUHB: Accelerating Federated Unlearning via Polyak Heavy Ball Method

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

TL;DR

FedUHB is a new framework for "exact" federated unlearning that uses the Polyak Heavy Ball optimization method to rapidly retrain models after data removal. It achieves the gold-standard privacy of full retraining at a fraction of the time and communication cost, significantly outperforming existing approximate methods in both speed and accuracy.

What Problem Does This Paper Address?

In Federated Learning (FL), multiple clients collaboratively train a global model without sharing their raw data. However, privacy regulations like GDPR and CCPA grant users the "right to be forgotten," requiring their data's influence to be completely removed from a trained model upon request. This process is known as Federated Unlearning (FU).

The challenge lies in the trade-off between efficiency and "forgetting" quality:

  1. Approximate Unlearning: These methods try to "patch" the model to remove data influence. While fast, they often leave "residual influence" (knowledge permeability), meaning a clever attacker could still infer if a specific user's data was used.
  2. Exact Unlearning (Retraining): The only way to guarantee total data removal is to retrain the model from scratch without the target data. In a federated setting, this is prohibitively slow and expensive due to the massive communication overhead between the server and clients.

FedUHB aims to make exact unlearning practical by drastically accelerating the retraining process.

Methods

The authors introduce two primary innovations to speed up the unlearning process:

  • Polyak Heavy Ball (HB) Optimization: This is a first-order optimization technique that incorporates a "momentum" term. Unlike standard gradient descent, which only looks at the current gradient, the Heavy Ball method uses the direction of the previous update to accelerate convergence. While usually avoided in FL because it requires storing historical model states, the authors demonstrate that storing just one additional round of data provides a massive speedup for unlearning with minimal overhead.
  • Dynamic Stopping Mechanism: To prevent wasting computational resources, the authors designed a criterion that monitors the standard deviation of model weight changes over time. The server tracks these changes and terminates the unlearning process automatically once the model stabilizes, ensuring optimal performance without unnecessary iterations.

The paper also includes a theoretical proof (Theorem 1) that establishes an upper bound on the difference between a model unlearned via FedUHB and one unlearned via traditional retraining, proving that FedUHB converges toward the "exact" solution.

Datasets

The researchers evaluated FedUHB using two standard computer vision benchmarks:

  • MNIST: A dataset of 70,000 handwritten digits.
  • CIFAR-10: A more complex dataset of 60,000 color images across 10 classes (e.g., airplanes, dogs, ships).

They utilized Convolutional Neural Network (CNN) architectures tailored for these datasets within a simulated federated environment of 20 clients.

Key Insights and Ideas

  • Momentum as a Shortcut: The "Heavy Ball" isn't just a training trick; it's a powerful tool for re-training. When a client leaves, the model needs to shift its weights to a new equilibrium. The momentum feature helps the model navigate this landscape much faster than standard methods.
  • The "Exact" Advantage: By focusing on rapid retraining rather than approximation, FedUHB bypasses the privacy risks associated with "residual data influence." It provides the same privacy guarantees as starting from scratch but at a speed comparable to approximate methods.
  • Efficiency through Intelligence: The dynamic stopping mechanism is a crucial "aha" moment. By mathematically defining when a model has "learned enough" based on weight stability, they avoid the common FL pitfall of over-training or setting arbitrary round limits.

Key Results

  • Superior Speed: On the MNIST dataset, FedUHB completed unlearning rounds in 0.77 seconds, compared to 1.26s for standard retraining and 2.00s for FedRecover. On CIFAR-10, it was roughly 4 seconds faster per round than standard retraining.
  • Faster Convergence: FedUHB reached satisfactory performance in approximately 20 rounds, whereas competing methods like FedEraser exhibited much slower convergence.
  • Higher Accuracy: On CIFAR-10, FedUHB maintained high accuracy while other unlearning methods (like FedRecover) saw performance tank to around 30%.
  • Robust Privacy: The researchers tested the model against Membership Inference Attacks (MIA). FedUHB achieved a lower Membership Inference Success Rate (MISR) than other methods, proving it more effectively "erased" the target data from the model's memory.

Limitations and Future Work

  • Storage Overhead: While FedUHB is communication-efficient, it does require the server to store the model from the previous round to calculate momentum. While this is only one extra round of storage, it is still a factor for extremely large models.
  • Hyperparameter Sensitivity: The performance of the system relies on tuning the momentum ($\beta$) and the stopping threshold ($\lambda$). While the paper provides guidance, these may need adjustment for different types of neural architectures.
  • Scalability: The experiments were conducted with 20 clients. Future work could explore how FedUHB scales to massive cross-device federated learning scenarios with thousands of intermittent clients.

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},
}

Loading related content...

Figure