Towards the Flatter Landscape and Better Generalization in Federated Learning under Client-level Differential Privacy

Yifan Shi, Kang Wei, Li Shen, Yingqi Liu, Xueqian Wang +2 more
5/1/2023
cs.LGcs.CRcs.DC

No official code found. Best implementation: YMJS-Irfan/DP-FedSAM (56 stars, last commit 2025-10-12).

Abstract

To defend the inference attacks and mitigate the sensitive information leakages in Federated Learning (FL), client-level Differentially Private FL (DPFL) is the de-facto standard for privacy protection by clipping local updates and adding random noise. However, existing DPFL methods tend to make a sharp loss landscape and have poor weight perturbation robustness, resulting in severe performance degradation. To alleviate these issues, we propose a novel DPFL algorithm named DP-FedSAM, which leverages gradient perturbation to mitigate the negative impact of DP. Specifically, DP-FedSAM integrates Sharpness Aware Minimization (SAM) optimizer to generate local flatness models with improved stability and weight perturbation robustness, which results in the small norm of local updates and robustness to DP noise, thereby improving the performance. To further reduce the magnitude of random noise while achieving better performance, we propose DP-FedSAM-$top_k$ by adopting the local update sparsification technique. From the theoretical perspective, we present the convergence analysis to investigate how our algorithms mitigate the performance degradation induced by DP. Meanwhile, we give rigorous privacy guarantees with Rényi DP, the sensitivity analysis of local updates, and generalization analysis. At last, we empirically confirm that our algorithms achieve state-of-the-art (SOTA) performance compared with existing SOTA baselines in DPFL.

View on arXivView PDF

Code Implementations(1)

This repository contains the official implementation for the manuscript: Make Landscape Flatter in Differentially Private Federated Learning (2023 CVPR)

564Shell, PythonMay 3, 20231 years ago

Similar Papers

Cite this paper

@article{shi2023towards,
  title  = {Towards the Flatter Landscape and Better Generalization in Federated Learning under Client-level Differential Privacy},
  author = {Yifan Shi and Kang Wei and Li Shen and Yingqi Liu and Xueqian Wang and Bo Yuan and Dacheng Tao},
  year   = {2023},
  eprint = {2305.00873},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.00873v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.00873.svg)](https://codeofpaper.com/paper/2305.00873)

Discussion