PRECODE - A Generic Model Extension to Prevent Deep Gradient Leakage

Daniel Scheliga, Patrick Mäder, Marco Seeland
8/10/2021
cs.LGcs.AI

Official code: dAI-SY-Group/PRECODE (10 stars, Jupyter Notebook, PyTorch, last commit 2022-02-15).

Abstract

Collaborative training of neural networks leverages distributed data by exchanging gradient information between different clients. Although training data entirely resides with the clients, recent work shows that training data can be reconstructed from such exchanged gradient information.

Show full abstract

To enhance privacy, gradient perturbation techniques have been proposed. However, they come at the cost of reduced model performance, increased convergence time, or increased data demand. In this paper, we introduce PRECODE, a PRivacy EnhanCing mODulE that can be used as generic extension for arbitrary model architectures. We propose a simple yet effective realization of PRECODE using variational modeling. The stochastic sampling induced by variational modeling effectively prevents privacy leakage from gradients and in turn preserves privacy of data owners. We evaluate PRECODE using state of the art gradient inversion attacks on two different model architectures trained on three datasets. In contrast to commonly used defense mechanisms, we find that our proposed modification consistently reduces the attack success rate to 0% while having almost no negative impact on model training and final performance. As a result, PRECODE reveals a promising path towards privacy enhancing model extensions.

View on arXivView PDF

Code Implementations(1)

PyTorch

Source code and demonstration for our paper "PRECODE - A Generic Model Extension to Prevent Deep Gradient Leakage".

101Jupyter Notebook, PythonOct 20, 20214 years ago
deep-learningfederated-learninggradient-leakagepytorch

Similar Papers

Cite this paper

@article{scheliga2021precode,
  title  = {PRECODE - A Generic Model Extension to Prevent Deep Gradient Leakage},
  author = {Daniel Scheliga and Patrick Mäder and Marco Seeland},
  year   = {2021},
  eprint = {2108.04725},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.04725}
}

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

Discussion