DP-FedAdamW: An Efficient Optimizer for Differentially Private Federated Large Models
Organizations: School of Cyber Engineering, Xidian University, Xi’an, China · College of Intelligence and Computing, Tianjin University, Tianjin, China
Abstract
Balancing convergence efficiency and robustness under Differential Privacy (DP) is a central challenge in Federated Learning (FL). While AdamW accelerates training and fine-tuning in large-scale models, we find that directly applying it to Differentially Private FL (DPFL) suffers from three major issues: (i) data heterogeneity and privacy noise jointly amplify the variance of second-moment estimator, (ii) DP perturbations bias the second-moment estimator, and (iii) DP amplify AdamW sensitivity to local overfitting, worsening client drift. We propose DP-FedAdamW, the first AdamW-based optimizer for DPFL. It restores AdamW under DP by stabilizing second-moment variance, removing DP-induced bias, and aligning local updates to the global descent to curb client drift. Theoretically, we establish an unbiased second-moment estimator and prove a linearly accelerated convergence rate without any heterogeneity assumption, while providing tighter -DP guarantees. Our empirical results demonstrate the effectiveness of DP-FedAdamW across language and vision Transformers and ResNet-18. On Tiny-ImageNet (Swin-Base, ), DP-FedAdamW outperforms the state-of-the-art (SOTA) by 5.83%. The code is available in Appendix.
Figures & tables
| Method | DP-FedAvg | DP-SCAFFOLD | DP-FedSAM | DP-LocalAdamW | DP-FedAdamW |
|---|---|---|---|---|---|
| Optimizer Type | SGD | SGD | SAM | AdamW | AdamW |
| Scalability to Large Models | Limited | Limited | Moderate | Moderate | High |
| Client Drift | Strong | Weakened | Slightly weakened | Slightly weakened | Weakened |
| Communication Cost | 1 | 2 | 2 | 1 | 1 |
| Method | CIFAR-10 (ResNet-18) | CIFAR-100 (ResNet-18) | CIFAR-10 (ViT-Base) | CIFAR-100 (ViT-Base) | Privacy Budget | ||||
|---|---|---|---|---|---|---|---|---|---|
| DP-FedAvg | |||||||||
| DP-SCAFFOLD | |||||||||
| DP-FedAvg-LS | |||||||||
| DP-FedSAM | |||||||||
| DP-LocalAdamW | |||||||||
| Method | CIFAR-100 (Swin-T) | CIFAR-100 (Swin-B) | Tiny-ImageNet (Swin-T) | Tiny-ImageNet (Swin-B) | Privacy Budget | ||||
|---|---|---|---|---|---|---|---|---|---|
| DP-FedAvg | |||||||||
| DP-SCAFFOLD | |||||||||
| DP-FedAvg-LS | |||||||||
| DP-FedSAM | |||||||||
| DP-LocalAdamW | |||||||||
| Method | SST-2 | QQP | QNLI | MNLI |
|---|---|---|---|---|
| DP-FedAvg | ||||
| DP-SCAFFOLD | ||||
| DP-FedAvg-LS | ||||
| DP-FedSAM | ||||
| DP-LocalAdamW | ||||
| DP-FedAdamW | \color[rgb]{1,0,0}{91.17}_{\pm 0.32} | \color[rgb]{1,0,0}{83.34}_{\pm 0.39} | \color[rgb]{1,0,0}{86.33}_{\pm 0.34} | \color[rgb]{1,0,0}{78.68}_{\pm 0.38} |
| Method | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | ||||||
|---|---|---|---|---|---|---|---|---|---|
| DP-FedAvg | |||||||||
| DP-SCAFFOLD | |||||||||
| DP-FedAvg-LS | |||||||||
| DP-FedSAM | |||||||||
| DP-LocalAdamW | |||||||||
| Method | CIFAR-100 | Tiny-ImageNet |
|---|---|---|
| DP-LocalAdamW | ||
| w/o Agg | ||
| w/o BC | ||
| w/o Align | ||
| DP-FedAdamW (full) | \color[rgb]{1,0,0}{67.42} | \color[rgb]{1,0,0}{50.73} |
| Strategy | CIFAR-100 | Tiny-ImageNet | Comm(↑) |
|---|---|---|---|
| NoAgg | M | ||
| Agg- | M | ||
| Agg- mean - | \color[rgb]{1,0,0}{67.45}_{\pm 0.10} | \color[rgb]{1,0,0}{50.76}_{\pm 0.10} | 5.7M |
| \color[rgb]{1,0,0}0.50 | |||||
|---|---|---|---|---|---|
| CIFAR-100 (%) | \color[rgb]{1,0,0}67.45 | ||||
| Tiny-ImageNet (%) | \color[rgb]{1,0,0}50.76 |
| Method | CIFAR-100 | Tiny-ImageNet |
|---|---|---|
| DP-FedOpt(Adam) [ 57 ] | ||
| DP-FAFED [ 69 ] | ||
| DP-FedLADA [ 65 ] | ||
| DP-FedAdamW (ours) | \color[rgb]{1,0,0}{67.45}_{\pm 0.26} | \color[rgb]{1,0,0}{50.76}_{\pm 0.51} |
| Method | Swin-Tiny | Swin-Base | Privacy Budget | ||
|---|---|---|---|---|---|
| DP-FedAvg | |||||
| DP-SCAFFOLD | |||||
| DP-FedAvg-LS | |||||
| DP-FedSAM | |||||
| DP-LocalAdamW | |||||
| Method | ||||||||
|---|---|---|---|---|---|---|---|---|
| DP-FedAvg | ||||||||
| DP-SCAFFOLD | ||||||||
| DP-FedAvg-LS | ||||||||
| DP-FedSAM | ||||||||
| DP-LocalAdamW | ||||||||
| Dataset | #Classes | Image Size | Train / Test |
|---|---|---|---|
| CIFAR-10 [ 28 ] | 10 | 50,000 / 10,000 | |
| CIFAR-100 [ 28 ] | 100 | 50,000 / 10,000 | |
| Tiny-ImageNet [ 30 ] | 200 | 100,000 / 10,000 |
| Dataset | Task Type | #Classes | Train/Test |
|---|---|---|---|
| SST-2 | Sentiment Classification (binary) | 2 | 67,349 / 1,821 |
| QQP | Duplicate Question Detection (binary) | 2 | 363,846 / 390,965 |
| QNLI | Question-Answer NLI (binary) | 2 | 104,743 / 5,463 |
| MNLI | Natural Language Inference (entailment) | 3 | 392,702 / 9,815 |
| Model | Family | Depth | Stages | Width / Dim | Heads |
|---|---|---|---|---|---|
| ResNet-18 (GN) | CNN | 18 | – | ||
| ViT-Base | ViT Transformer | 12 | – | 768 hidden, 3072 MLP | 12 / layer |
| Swin-Tiny | Swin Transformer | 12 | |||
| Swin-Base | Swin Transformer | 24 | |||
| RoBERTa-Base | NLP Transformer | 12 | – | 768 hidden, 3072 FFN | 12 / layer |
| Dataset | Model | (LoRA) | (LoRA) | Dropout | |||||||
| CIFAR-10 | ResNet-18 (GN) | 50 | 300 | 50 | 0.2 | 50 | 1.0 | 16 | 32 | 0.1 | |
| ViT-Base | 50 | 100 | 20 | 0.1 | 16 | 1.0 | 16 | 32 | 0.1 | ||
| Swin-Tiny/Base | 50 | 100 | 20 | 0.1 | 16 | 1.0 | 16 | 32 | 0.1 | ||
| CIFAR-100 | ResNet-18 (GN) | 50 | 300 | 50 | 0.2 | 50 | 1.0 | 16 | 32 | 0.1 | |
| ViT-Base | 50 | 100 | 20 | 0.1 | 16 | 1.0 | 16 | 32 | 0.1 | ||
| Swin-Tiny/Base | 50 | 100 | 20 | 0.1 | 16 | 1.0 | 16 | 32 | 0.1 |
| Dataset | Model | (LoRA) | (LoRA) | Length_max | Dropout | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SST-2 | RoBERTa-Base | 4 | 100 | 20 | 1.0 | 16 | 1.0 | 16 | 32 | 128 | 0.1 | |
| QQP | 4 | 100 | 20 | 1.0 | 16 | 1.0 | 16 | 32 | 128 | 0.1 | ||
| QNLI | 4 | 100 | 20 | 1.0 | 16 | 1.0 | 16 | 32 | 128 | 0.1 | ||
| MNLI | 4 | 100 | 20 | 1.0 | 16 | 1.0 | 16 | 32 | 128 | 0.1 |
| Method | Local Optimizer | Weight Decay | |||
|---|---|---|---|---|---|
| DP-FedAvg | SGD | - | - | 0.001 | |
| DP-SCAFFOLD | SGD | - | - | 0.001 | |
| DP-FedAvg-LS | SGD | - | - | 0.001 | |
| DP-FedSAM | SAM | - | - | 0.001 | |
| DP-LocalAdamW | AdamW | 0.9 | 0.999 | 0.01 | |
| DP-FedAdamW | AdamW | 0.9 | 0.999 | 0.01 |
Differentially Private Federated Learning
Differentially private federated learning trains shared models across data-holding clients while limiting what updates reveal about individual records or users.
See all 62 papers