User-Level Label Leakage from Gradients in Federated Learning

Aidmar Wainakh, Fabrizio Ventola, Till Müßig, Jens Keim, Carlos Garcia Cordero +4 more
5/19/2021
76 citations
cs.CRcs.LG
federated

Official code: tklab-tud/LLG (8 stars, Python, MIT, last commit 2022-01-25).

Abstract

Federated learning enables multiple users to build a joint model by sharing their model updates (gradients), while their raw data remains local on their devices. In contrast to the common belief that this provides privacy benefits, we here add to the very recent results on privacy risks when sharing gradients.

Show full abstract

Specifically, we investigate Label Leakage from Gradients (LLG), a novel attack to extract the labels of the users' training data from their shared gradients. The attack exploits the direction and magnitude of gradients to determine the presence or absence of any label. LLG is simple yet effective, capable of leaking potential sensitive information represented by labels, and scales well to arbitrary batch sizes and multiple classes. We mathematically and empirically demonstrate the validity of the attack under different settings. Moreover, empirical results show that LLG successfully extracts labels with high accuracy at the early stages of model training. We also discuss different defense mechanisms against such leakage. Our findings suggest that gradient compression is a practical technique to mitigate the attack.

View on arXivView PDF

Code Implementations(1)

tklab-tud/LLGOfficial100%
MIT
83PythonNov 29, 20214 years agoMIT

Similar Papers

Cite this paper

@article{wainakh2021userlevel,
  title  = {User-Level Label Leakage from Gradients in Federated Learning},
  author = {Aidmar Wainakh and Fabrizio Ventola and Till Müßig and Jens Keim and Carlos Garcia Cordero and Ephraim Zimmer and Tim Grube and Kristian Kersting and Max Mühlhäuser},
  year   = {2021},
  eprint = {2105.09369},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.09369}
}

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/2105.09369.svg)](https://codeofpaper.com/paper/2105.09369)

Discussion