Manuscript Offprint

arXiv:2610.35211

Efficient Exact Unlearning for Federated Zeroth-Order Optimization

Weijun Yin, Yanqing Yao, Falko Dressler, Di Wang, Youming Tao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Weijun Yin, Yanqing Yao, Falko Dressler, Fellow, IEEE, Di Wang, Member, IEEE, Youming Tao Member, IEEE

Abstract—Federated zeroth-order optimization (FedZOO) reduces the memory and communication costs of collaborative training for edge intelligence by avoiding backpropagation while communicating only random seeds and scalar coefficients. However, existing methods lack efficient mechanisms for exact unlearning to fully remove the influence of training data when users request deletion. A key insight is that total variation stability of the learning algorithm creates overlap between model distributions before and after data deletion, allowing exact unlearning to reuse computation through coupling. Based on this observation, we jointly design two stable zeroth-order learning algorithms and their corresponding exact-unlearning procedures: FEDZOO-S obtains stability through client and mini-batch subsampling, enabling FEDZOUL-S to perform efficient unlearning by preserving earlier updates and restarting from the first affected step. FEDZOO-NS further combines subsampling with Gaussian noise to increase overlap between update distributions; FEDZOUL-NS exploits this overlap through rejection-reflection coupling to reuse affected updates when the coupling is accepted. We prove exact unlearning for both algorithms: the model and saved state have the same joint distribution as retraining with the corresponding learner on retained data. We further establish stability and convergence guarantees for the learning algorithms and derive upper bounds on expected unlearning cost. Experiments demonstrate effective unlearning with competitive model utility and up to 56.1% less cumulative unlearning time than re-optimization. Compared with first-order baselines, our methods reduce communication overhead by up to approximately four orders of magnitude.

Index Terms—Federated learning, Exact Unlearning, Zeroth-Order Optimization, Total Variation Stability

I. INTRODUCTION

Driven by advances in mobile and IoT hardware, edge intelligence has developed rapidly in recent years. Federated learning (FL) enables collaborative optimization across edge devices by allowing them to exchange model parameters or gradients without moving data out of the local domain [1]. However, practical deployment remains constrained by limited memory and communication resources, with growing model sizes further amplifying these challenges. Techniques such as quantization [2]–[4], sparsification [5]–[7], pruning and submodel training [8]–[11], and knowledge distillation [12]–[14] can reduce computation or communication costs. More recently, parameter-efficient and subspace-based federated fine-tuning methods have been developed to adapt large language models (LLMs) with fewer trainable parameters [15], [16]. Nevertheless, these training approaches still rely on backpropagation, whose intermediate activations can impose substantial memory overhead even when only a small subset of parameters is trainable. Exchanging tensor-valued updates can also remain costly over bandwidth-constrained edge networks.

Federated zeroth-order optimization (FedZOO) provides a promising alternative. Unlike first-order methods, zeroth-order optimization (ZOO) estimates descent directions using only function evaluations and therefore avoids backpropagation [17]. This substantially reduces the memory required for optimization. Moreover, recent FedZOO methods exploit shared randomness to represent high-dimensional perturbations by random seeds and scalar coefficients [18], enabling communication costs that do not scale with the model dimension. In particular, a fixed finite seed pool allows accumulated zeroth-order updates to be represented in a compact seed-coordinate space. These properties make FedZOO particularly attractive for collaborative optimization of large models on resource-constrained edge devices.

Existing FedZOO methods, however, do not address machine unlearning (MU). Federated systems may receive requests to remove training samples because of data corrections, user withdrawal, or privacy requirements such as the right to be forgotten under regulations under GDPR [19]. Simply deleting the requested samples from local storage is insufficient because their effects may already have been incorporated into the global model. Federated unlearning therefore aims to remove these historical contributions from the learned model without repeating the entire training process. This requirement is especially relevant to edge intelligence, where participating devices may continuously contribute user-generated and potentially sensitive data.

Achieving efficient exact unlearning for FedZOO is challenging. Existing federated unlearning methods are largely designed around first- or second-order optimization and can reintroduce backpropagation, high-dimensional model states, or tensor-level communication, thereby losing the resource advantages that motivate FedZOO. Moreover, exact unlearning requires distributional equivalence to rerunning the learning algorithm on the retained data [20], for which retraining from scratch is always valid but computationally expensive.

A key insight from stability-based exact unlearning is that this difficulty can be addressed from the learning side [20]–

Weijun Yin and Yanqing Yao are with the School of Cyber Science and Technology, Beihang University, Beijing 100191, China, and also with the Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, Beihang University, Beijing 100083, China (e-mail: yinweijun@buaa.edu.cn; yaoyq@buaa.edu.cn).

Falko Dressler and Youming Tao are with the School of Electrical Engineering and Computer Science, TU Berlin, 10623 Berlin, Germany (e-mail: dressler@ccs-labs.org; tao@ccs-labs.org).

Di Wang is with the Division of Computer, Electrical and Mathematical Sciences and Engineering, King Abdullah University of Science and Technology, Saudi Arabia (email: di.wang@kaust.edu.sa).

[22]. If a randomized learning algorithm is stable in total variation under a single-sample change, then the output distributions on neighboring datasets overlap, creating opportunities to reuse computation through an appropriate coupling. This leads to a fundamental question in our setting:

How can we design federated zeroth-order learning algorithms that are TV-stable while retaining the communication and memory advantages of FedZOO?

To answer this question, we develop two TV-stable FedZOO learning algorithms and their corresponding exact-unlearning procedures, built on a common seed-encoded representation. The first, FEDZOO-S, obtains stability from client and mini-batch subsampling: a single sample changes the realized trajectory only when its client participates and the sample is selected for a local update. Its unlearning counterpart, FEDZOUL-S, therefore preserves the unaffected prefix and replays only from the first affected step. The second, FEDZOO-NS, augments subsampling with Gaussian randomization. The added noise creates overlap between the conditional update distributions on neighboring datasets, allowing some affected updates to be coupled rather than immediately replayed. Its unlearning counterpart, FEDZOUL-NS, exploits this overlap through rejection-reflection coupling so that some affected realized updates can still be reused exactly.

Our contributions are summarized as follows.

(1) We formulate efficient exact federated unlearning for zeroth-order optimization through the lens of algorithmic total variation stability. Rather than treating unlearning as a post hoc correction to an arbitrary FedZOO procedure, we design the learning algorithm itself to be TV-stable, so that neighboring training datasets induce overlapping output distributions that can be exploited through coupling for computation reuse. At the same time, we retain the fixed finite seed representation of FedZOO to avoid high-dimensional model-update communication.

(2) We propose FEDZOO-S, a TV-stable federated zeroth-order learning algorithm whose stability arises from client and mini-batch subsampling, together with its exact-unlearning algorithm FEDZOUL-S. A deletion leaves the realized trajectory unchanged when the deleted samples have not contributed to any realized local update. Otherwise, FEDZOUL-S preserves the unaffected prefix and replays only the suffix starting from the first affected local step.

(3) We further propose FEDZOO-NS, which augments subsampling with Gaussian randomization, together with its corresponding exact-unlearning algorithm FEDZOUL-NS. The added noise creates overlap between the conditional update distributions on neighboring datasets, enabling rejection-reflection coupling. Consequently, some affected realized updates can still be reused exactly, and replay is required only after the first rejected coupling.

(4) We establish exact-unlearning guarantees for both learning–unlearning pairs and analyze their TV stability, optimization utility, and unlearning efficiency. We further evaluate their optimization and unlearning performance across federated learning settings with conventional models and large language models.

References (49)

  • Communication-efficient learning of deep networks from decentralized data
  • FracTrain: Fractionally Squeezing Bit Savings Both Temporally and Spatially for Efficient DNN Training
  • FedPAQ: A Communication-Efficient Federated Learning Method with Periodic Averaging and Quantization
  • LBI-FL: Low-Bit Integerized Federated Learning with Temporally Dynamic Bit-Width Allocation
  • Deep Gradient Compression: Reducing the Communication Bandwidth for Distributed Training
  • Private Over-the-Air Federated Learning at Band-Limited Edge
  • SparsyFed: Sparse Adaptive Federated Learning
  • Deepadapter: A collaborative deep learning framework for the mobile web using context-aware network pruning
  • FjORD: Fair and Accurate Federated Learning under Heterogeneous Targets with Ordered Dropout
  • Adaptive pruning-based Newton’s method for distributed learning
  • AutoSub: Autonomous Submodel Averaging
  • Be your own teacher: Improve the performance of convolutional neural networks via self distillation
  • Ensemble distillation for robust model fusion in federated learning
  • FedCoT: Federated Chain-of-Thought Distillation for Large Language Models
  • Fed-petuning: When federated learning meets the parameter-efficient tuning methods of pre-trained language models
  • Fed-SubMuon: Communication-Efficient Federated LLM Fine-Tuning via Structured Subspace Muon
  • Scalable Zeroth-Order Fine-Tuning for Extremely Large Language Models with Limited GPU Memory
  • Federated Full-Parameter Tuning of Billion-Sized Language Models with Communication Cost under 18 Kilobytes
  • Springer, 2024
  • Communication Efficient and Provable Federated Unlearning
  • Machine unlearning via algorithmic stability
  • One-Shot Federated Model Editing for Device Dynamics at the Edge
  • Communication-efficient stochastic zeroth-order optimization for federated learning
  • On the convergence of zeroth-order federated tuning for large language models
  • Achieving dimension-free communication in federated learning via zeroth-order optimization
  • Converge faster, talk less: Hessian-informed federated zeroth-order optimization
  • DPZero: private fine-tuning of language models without backpropagation
  • Differentially Private Zeroth-Order Methods for Scalable Large Language Model Fine-tuning
  • Unlocking the Power of Differentially Private Zeroth-order Optimization for Fine-tuning $LLMs$
  • The right to be forgotten in federated learning: An efficient realization with rapid retraining
  • FedEraser: Enabling efficient client-level data removal from federated learning models
  • Server-initiated federated unlearning to eliminate impacts of low-quality data
  • F2ul: Fairness-aware federated unlearning for data trading
  • Federated unlearning with gradient descent and conflict mitigation
  • Fast federated machine unlearning with nonlinear functional theory
  • Fedreccovery: Differentially private machine unlearning for federated learning frameworks
  • Sifu: Sequential informed federated unlearning for efficient and provable client unlearning in federated optimization
  • Certified Unlearning in Decentralized Federated Learning
  • Trajectory-Aware Certified Decentralized Unlearning via SGD Stability
  • Federated unlearning with fast recovery
  • Federated Unlearning via Distilled Data
  • Oblivionis: A Lightweight Learning and Unlearning Framework for Federated Large Language Models
  • Not All Change Is Damage: Update-Matched Unlearning for Large Language Models
  • Gradient-based learning applied to document recognition
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms
  • Reading digits in natural images with unsupervised feature learning
  • Learning multiple layers of features from tiny images
  • TOFU: A Task of Fictitious Unlearning for LLMs
  • Introduction to the non-asymptotic analysis of random matrices