DP-FedAdamW: An Efficient Optimizer for Differentially Private Federated Large Models

Jin Liu, Ning Xi, Yinbin Miao, Junkang Liu

TL;DR

Large Transformer models thrive on adaptive optimizers like AdamW, but combining AdamW with Differentially Private Federated Learning (DPFL) usually breaks it due to noise, bias, and severe client drift. This paper introduces DP-FedAdamW, the first principled AdamW variant designed specifically for DPFL. By stabilizing second-moment variance, correcting DP-induced bias, and aligning local updates globally, it restores AdamW's rapid convergence and high performance while maintaining strict privacy guarantees.

What Problem Does This Paper Address?

Federated Learning (FL) allows machine learning models to be trained across decentralized devices without sharing raw data. To prevent privacy leaks from model updates, researchers use Differential Privacy (DP), which clips gradients and injects random Gaussian noise.

While modern large-scale models (like vision and language Transformers) rely heavily on adaptive optimizers like AdamW to achieve state-of-the-art results, directly applying AdamW in a private federated setting fails miserably—often performing worse than standard SGD. The authors identify three core reasons for this failure:

  1. Variance Explosion: Non-IID (heterogeneous) data across clients combined with DP noise drastically inflates the variance of AdamW's second-moment estimator ($v_t$).
  2. Systematic Bias: Gradient clipping and noise injection introduce a persistent, additive bias into the second-moment calculation, skewing the step sizes.
  3. Severe Client Drift: Private updates are inherently noisy, which amplifies AdamW's tendency to overfit to local client data, causing individual client models to drift far away from the global optimum.

Methods

To overcome these challenges, the authors propose DP-FedAdamW, which introduces three novel components into the federated training loop:

  • Block-wise Second-Moment Aggregation: Instead of tracking and communicating per-parameter second moments (which would double communication costs and fluctuate wildly under noise), the algorithm averages second-moment statistics across structural blocks (e.g., attention heads or full layers) and communicates only one statistic per block.
  • Unbiased Second-Moment Correction: It mathematically subtracts the known variance of the injected DP Gaussian noise from the local second-moment estimate, completely removing the systematic bias introduced by privacy mechanisms.
  • Local-Global Update Alignment: It introduces a regularization term that softly guides local client updates toward the global descent direction from the previous round, preventing individual clients from drifting apart.
Figure 1. Illustration of our DP-FedAdamW. It aggregates the mean of block-wise bias-corrected second-moment estimates and performs local–global alignment to stabilize DPFL optimization.

Datasets

The authors evaluated their method across a diverse set of vision and language benchmarks:

  • Vision Tasks: CIFAR-10, CIFAR-100, and Tiny-ImageNet.
  • Language Tasks: Four GLUE benchmarks (SST-2, QQP, QNLI, and MNLI).
  • Data Partitioning: They simulated realistic federated environments using a Dirichlet partition ($\alpha \in \{0.1, 0.6, 0.8\}$) to test varying levels of severe data heterogeneity (non-IID data).

Key Insights and Ideas

  • The Private Second-Moment Trap: In standard AdamW, the second-moment estimator ($v_t$) updates very slowly ($\beta_2 \approx 0.999$). Because it retains memory for so long, the amplified noise from DP accumulates and dominates the optimization process, leading to highly unstable scaling.
  • Heterogeneity Independence: Remarkably, by introducing global update alignment, the authors theoretically prove a linearly accelerated convergence rate without needing the standard (and often unrealistic) "bounded heterogeneity" assumption common in FL proofs.
  • Structural Alignment Matters: Grouping parameters by their architectural roles (like attention heads) for block-averaging provides a massive stabilization benefit while keeping communication overhead at a strict $1\times$ multiplier.
Variance evolution and client drift comparison showing how naive local AdamW fails compared to standard baselines.

Key Results

DP-FedAdamW consistently outperformed all state-of-the-art (SOTA) DPFL baselines across vision and language models:

  • Vision Transformers: On Tiny-ImageNet using a Swin-Base architecture under a strict privacy budget ($\varepsilon=1$), DP-FedAdamW achieved a 5.83% accuracy boost over the next best baseline.
  • Robustness to Extreme Heterogeneity: When data was highly non-IID ($\alpha=0.1$), DP-FedAdamW outperformed standard DP-LocalAdamW by 4.85% on CIFAR-100 using ResNet-18.
  • SOTA Language Fine-Tuning: When fine-tuning RoBERTa-Base on the GLUE MNLI task, DP-FedAdamW beat the strongest baseline by 3.48%.

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

BibTeX
@inproceedings{liu2026dp,
  author = {Jin Liu and Ning Xi and Yinbin Miao and Junkang Liu},
  title = {{DP-FedAdamW: An Efficient Optimizer for Differentially Private Federated Large Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=58RdFZpPSG},
}
Figure