CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learning

Samuel Maddock, Alexandre Sablayrolles, Pierre Stock
10/6/2022
cs.LGcs.CR
federated

Official code: facebookresearch/canife (9 stars, Python, BSD-3-Clause, last commit 2023-02-28).

Abstract

Federated Learning (FL) is a setting for training machine learning models in distributed environments where the clients do not share their raw data but instead send model updates to a server. However, model updates can be subject to attacks and leak private information.

Show full abstract

Differential Privacy (DP) is a leading mitigation strategy which involves adding noise to clipped model updates, trading off performance for strong theoretical privacy guarantees. Previous work has shown that the threat model of DP is conservative and that the obtained guarantees may be vacuous or may overestimate information leakage in practice. In this paper, we aim to achieve a tighter measurement of the model exposure by considering a realistic threat model. We propose a novel method, CANIFE, that uses canaries - carefully crafted samples by a strong adversary to evaluate the empirical privacy of a training round. We apply this attack to vision models trained on CIFAR-10 and CelebA and to language models trained on Sent140 and Shakespeare. In particular, in realistic FL scenarios, we demonstrate that the empirical per-round epsilon obtained with CANIFE is 4-5x lower than the theoretical bound.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Crafting canaries to measure empirical privacy of DP-FL training under a realistic threat model.

93Python, Jupyter NotebookOct 4, 20223 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{maddock2022canife,
  title  = {CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learning},
  author = {Samuel Maddock and Alexandre Sablayrolles and Pierre Stock},
  year   = {2022},
  eprint = {2210.02912},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.02912}
}

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

Discussion