SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.02912 · ICLR · 2023

CANIFE: Crafting Canaries for Empirical Privacy Measurement in Federated Learning

Samuel Maddock, Alexandre Sablayrolles, Pierre Stock

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
facebookresearch/canife canonical 6 of 9
FunctionStatusWhere it lives
Canary Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("efd48121fda654d5")
clip_grad Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("36d4d6b369158343")
compute_batch_grad Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("05c54dfb2ad9fbf2")
compute_local_update Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("164f09c0405b4f1d")
count_params Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("dba1320ceee3fa62")
state_dict_to_cpu Ran facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("0abf6ba1505650e8")
CanaryDesigner Not yet run facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("eb238c8369a08547")
compute_sample_grads Not yet run facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("8e8a5c37c5473f34")
display_gpu_mem Not yet run facebookresearch/canife/canife/canary_designer.py
code served (permissive licence) · get_code("a45df143257b6101")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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 -5× lower than the theoretical bound.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2210.02912")
get_code_for_paper("2210.02912")
have("2210.02912")

Connect an agent — have() is free.