Exact Federated Continual Unlearning for Ridge Heads on Frozen Foundation Models

Yijun Quan, Wentai Wu, Giovanni Montana

TL;DR

This paper introduces a method for exact machine unlearning in federated learning environments where a frozen foundation model is paired with a ridge regression head. By leveraging the additive nature of sufficient statistics, the authors enable a "right to be forgotten" that is mathematically identical to retraining from scratch, but at a fraction of the computational and communication cost.

What Problem Does This Paper Address?

In the era of GDPR and the "right to erasure," AI models must be able to "forget" specific data points or users upon request. In Federated Learning (FL), where data stays on local devices, this is notoriously difficult. Standard deep learning models usually require expensive retraining or "approximate" unlearning techniques that don't perfectly remove the influence of the deleted data.

The authors identify a specific, increasingly common deployment pattern: using a massive, frozen foundation model (like DINOv2 or RoBERTa) as a feature extractor and only training a lightweight linear "head" on top. They tackle the challenge of making unlearning in this regime exact (identical to retraining), continual (handling a stream of additions and deletions), and efficient (avoiding multiple communication rounds).

Methods

The core "aha!" moment of the paper is that for Ridge Regression (least-squares with $\ell_2$ regularization), the optimal weights depend on the data only through two "sufficient statistics":

  1. The Gram Matrix ($S$): A summary of feature interactions ($F^\top F$).
  2. The Feature-Label Moment ($G$): A summary of how features relate to labels ($F^\top Y$).

Because these statistics are additive, unlearning a data point is as simple as subtracting its contribution from the global sums. The authors propose a protocol where:

  • Clients compute these statistics locally and send them to the server.
  • The Server maintains a "ledger" of these statistics. When a delete request arrives, the server simply subtracts the relevant statistics and re-solves the linear system.

The paper offers two server-side implementations:

  • Variant A (Exact Recomputation): Uses a numerically stable Cholesky solver to find the new weights.
  • Variant B (Incremental Updates): Uses the Sherman-Morrison-Woodbury (SMW) identity to update the matrix inverse directly, which is even faster for small, frequent updates.

Datasets

The researchers evaluated their approach on four diverse benchmarks using state-of-the-art frozen backbones:

  • CIFAR-10 & CIFAR-100: Image classification using a DINOv2 backbone.
  • FeMNIST: A federated version of EMNIST for character classification, also using DINOv2.
  • Sentiment140: Twitter sentiment analysis using a RoBERTa backbone.

These datasets were partitioned into non-IID (not identically and independently distributed) sets to simulate realistic federated environments.

Key Insights and Ideas

  • Analytic Exactness: Unlike iterative gradient descent, ridge regression has a closed-form solution. This allows for "deterministic retrain equivalence"—the unlearned model is bit-for-bit identical to one trained without the deleted data (in exact arithmetic).
  • Second-Order Necessity: The authors prove that you must share second-order information (the Gram matrix) to achieve exact unlearning. Protocols that only share first-order means cannot distinguish between different data distributions that happen to have the same average.
  • Order and Partition Invariance: The final model is the same regardless of the order in which data was added or deleted, or how it was distributed across different clients.
  • Bayesian Certificate: By viewing ridge regression through a Bayesian lens, they show the protocol maintains the exact posterior distribution, providing a "zero KL divergence" guarantee between the unlearned and retrained models.

Key Results

  • Precision: Both variants matched centralized retraining to within a relative error of $10^{-9}$ (using 64-bit floats), confirming the theoretical exactness.
  • Efficiency: In "burst" scenarios (200 consecutive single-point deletions), the proposed method was orders of magnitude faster than standard federated retraining (FedAvg).
  • Communication: Communication costs are fixed based on the feature dimension ($d$), making it highly efficient when the number of samples is much larger than the number of features.

Limitations and Future Work

  • The "Frozen" Assumption: The method only removes the influence of data from the head. If the foundation model (backbone) itself was trained on the data to be forgotten, this method cannot excise that information. The authors note that backbone unlearning remains an "orthogonal and challenging" problem.
  • Privacy Risks: While raw data is never shared, the sufficient statistics ($S$ and $G$) can still leak information about the feature distribution. The authors suggest that future work should integrate Secure Aggregation or Differential Privacy to mitigate this.
  • Numerical Drift: Variant B (the SMW update) can accumulate small floating-point errors over many deletions. The authors recommend periodic "resets" using Variant A to maintain numerical integrity.

Summary updated

Abstract

Foundation models are commonly deployed as frozen feature extractors with a small trainable head to adapt to private, user-generated data in federated settings. The ``right to be forgotten'' requires removing the influence of specific samples or users from the trained model on demand. Existing federated unlearning methods target general deep models and rely on approximate reconstruction or selective retraining, making exactness costly or elusive. We study this problem in a practically relevant but under-explored regime: a frozen foundation model with a ridge-regression head. The exact optimum depends on the data only through two additive sufficient statistics, which we turn into a communication protocol supporting an arbitrary stream of add and delete requests via fixed-size messages. The server maintains a head that is, in exact arithmetic, pointwise identical to centralized retraining after every request. We provide deterministic retrain-equivalence guarantees, order and partition invariance, two server-side variants, and a Bayesian certificate of zero KL divergence. Experiments on four benchmarks confirm the guarantees: both variants match centralized ridge retraining to within $10^{-9}$ relative Frobenius error and complete each request at orders-of-magnitude lower cost than federated retraining baselines.
BibTeX
@misc{quan2026exact,
  author = {Yijun Quan and Wentai Wu and Giovanni Montana},
  title = {{Exact Federated Continual Unlearning for Ridge Heads on Frozen Foundation Models}},
  year = {2026},
  eprint = {2603.12977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12977},
}
Figure