FedEraser: Enabling Efficient Client-Level Data Removal from Federated Learning Models

Gaoyang Liu, Xiaoqiang Ma, Yang Yang, Chen Wang, Jiangchuan Liu

TL;DR

FedEraser introduces the first efficient "federated unlearning" framework to completely remove a client's data footprint from a trained federated learning model without retraining it from scratch. By intelligently caching and calibrating historical parameter updates, it achieves a $4\times$ speedup while maintaining high model accuracy and robustly protecting user privacy against membership inference attacks.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple decentralized clients to collaboratively train a global machine learning model without sharing their raw data. However, real-world demands—such as privacy legislation like GDPR/CCPA ("the right to be forgotten") or the need to purge malicious data following a poisoning attack—require a mechanism to make the global model "forget" a specific client's contributions.

In centralized machine learning, "machine unlearning" techniques can remove data points relatively easily. FL, however, presents a unique challenge called forward coupling. Because FL is an iterative process, each round's local training begins from a global model that already aggregates updates from all clients (including the target client) from previous rounds. This tightly intertwines the target client's information into the entire training lineage. The naive solution is to retrain the model from scratch without the target client, but this is computationally prohibitive and slow.

Methods

The authors propose FedEraser, a method that trades central server storage for reconstruction speed. Instead of discarding historical client updates after aggregation, the central server retains them. When a client requests data removal, FedEraser reconstructs the unlearned model using a four-step pipeline:

  1. Calibration Training: The remaining ("calibrating") clients perform a small number of local training epochs ($E_{cali}$) using the current unlearned global model to find the correct optimization direction without the target client.
  2. Update Calibrating: The server adjusts the historical updates. It adopts the direction (orientation) from the new calibration training but retains the magnitude (norm) of the original historical updates to preserve the optimization pace.
  3. Calibrated Update Aggregating: The server computes a weighted average of these calibrated updates, matching standard FL aggregation rules.
  4. Unlearned Model Updating: The global model is updated, and the process repeats sequentially across the historical training rounds.

Two key hyperparameters control this process: the retaining interval ($\Delta t$), which dictates how frequently updates are saved, and the calibration ratio ($r = E_{cali}/E_{loc}$), which balances calibration time against accuracy.

Datasets

The method was evaluated on four standard machine learning datasets spanning different modalities:

  • UCI Adult (Census Income): Tabular data used for binary classification.
  • Purchase: Customer shopping history dataset clustered into 2 classes.
  • MNIST: 70,000 handwritten digit images (10 classes).
  • CIFAR-10: 60,000 color images across 10 distinct object classes.

Key Insights and Ideas

  • Direction vs. Magnitude: The core insight of the paper is that client updates contain two distinct pieces of information: where to go (direction) and how far to go (magnitude). The target client primarily skews the direction. By re-aligning the direction via quick local calibration while keeping the historical magnitude, the server can accurately simulate a training trajectory that never included the target client.
  • Storage-Time Tradeoff: In cloud environments, storage is cheap but synchronous distributed computation (FL training rounds) is expensive. Caching historical updates is a highly practical trade-off to avoid full retraining.
  • Information Decoupling: Simple accumulation of remaining updates (FedAccum) fails because it leaves the forward-coupled target information intact. Active calibration is strictly necessary to decouple this historical influence.

Key Results

  • Speedup: FedEraser achieves an expected $4\times$ speedup compared to retraining from scratch (FedRetrain), and up to a $10\times$ speedup when tuning the calibration ratio down to $r=0.1$.
  • Model Utility: The prediction accuracy of the unlearned model closely tracks the gold-standard retrained model, with an average difference of just 0.61% across all datasets.
  • Privacy Erasure: To verify if the data was truly forgotten, the authors launched Membership Inference Attacks (MIAs). The attack success (F1-score, precision, recall) on the FedEraser-unlearned model dropped significantly, matching the baseline of a model that had never seen the target data at all.

![Fig.

  1. Prediction performance comparison.](/figures/art_bd6007b8860b4eee8288709030c1ac1e)

![Fig.

  1. Performance of membership inference attacks.](/figures/art_fdbf95d07a4e4246855f2c723ee94c86)

Limitations and Future Work

  • Client-Level Granularity: FedEraser currently removes an entire client's dataset. It does not natively support "instance-level" unlearning (e.g., removing a single image or row from a client who wishes to remain in the federation).
  • Dependency on Client Availability: The calibration step still requires active participation from the remaining clients to run local training rounds, which might be challenging if clients are offline or resource-constrained.
  • Future Directions: The authors highlight instance-level federated unlearning, completely client-free unlearning methods, and verifiable unlearning protocols as critical next steps for the community.

Summary updated

BibTeX
@inproceedings{liu2021federaser,
  author = {Gaoyang Liu and Xiaoqiang Ma and Yang Yang and Chen Wang and Jiangchuan Liu},
  title = {{FedEraser: Enabling Efficient Client-Level Data Removal from Federated Learning Models}},
  booktitle = {IWQoS},
  year = {2021},
  doi = {10.1109/iwqos52092.2021.9521274},
}
Figure