SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.08270 · 2022

On the Privacy Effect of Data Enhancement via the Lens of Memorization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 17 functions out of this paper's own repositories and ran 14 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
lixiaothu/privacy_and_aug canonical 14 of 17
FunctionStatusWhere it lives
ROC_curve Ran lixiaothu/privacy_and_aug/eval_privacy.py
code served (permissive licence) · get_code("2fef971a40606cc9")
ResNet18 Ran lixiaothu/privacy_and_aug/models/ResNet.py
code served (permissive licence) · get_code("e646ab652ba06157")
ResNet34 Ran lixiaothu/privacy_and_aug/models/ResNet.py
code served (permissive licence) · get_code("bdfee6e9a24e258f")
ResNet9 Ran lixiaothu/privacy_and_aug/models/ResNet.py
code served (permissive licence) · get_code("0ed6b1f3db7c187f")
SoftLabelNLL Ran lixiaothu/privacy_and_aug/inference.py
code served (permissive licence) · get_code("28d5109e1b7c352f")
cal_adv Ran lixiaothu/privacy_and_aug/advtrain.py
code served (permissive licence) · get_code("dae43d0752d48a19")
computeMetrics Ran lixiaothu/privacy_and_aug/utils_h.py
code served (permissive licence) · get_code("91e35de2120c235c")
create_path Ran lixiaothu/privacy_and_aug/utils.py
code served (permissive licence) · get_code("cbc1ea670dc40bb6")
diff_in_weights Ran lixiaothu/privacy_and_aug/trades_awp.py
code served (permissive licence) · get_code("4170809219439d13")
fake_inputs Ran lixiaothu/privacy_and_aug/utils_h.py
code served (permissive licence) · get_code("7fc21d4ca47b24eb")
load_model Ran lixiaothu/privacy_and_aug/utils.py
code served (permissive licence) · get_code("0619c0c4d30c7511")
log_display Ran lixiaothu/privacy_and_aug/utils.py
code served (permissive licence) · get_code("55fbccf29c619901")
normal Ran lixiaothu/privacy_and_aug/eval_privacy.py
code served (permissive licence) · get_code("5f7d0e7a485b4a1a")
test Ran lixiaothu/privacy_and_aug/utils_h.py
code served (permissive licence) · get_code("79317dc18351550d")
get_cifar100_datasets Not yet run lixiaothu/privacy_and_aug/dataset.py
code served (permissive licence) · get_code("afa8aab43a77d953")
get_cifar10_datasets Not yet run lixiaothu/privacy_and_aug/dataset.py
code served (permissive licence) · get_code("2410b3bdf17c6a79")
get_loaders Not yet run lixiaothu/privacy_and_aug/dataset.py
code served (permissive licence) · get_code("e259e3b8e5627125")

Repositories linked to this paper

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

Abstract

Machine learning poses severe privacy concerns as it has been shown that the learned models can reveal sensitive information about their training data. Many works have investigated the effect of widely adopted data augmentation and adversarial training techniques, termed data enhancement in the paper, on the privacy leakage of machine learning models. Such privacy effects are often measured by membership inference attacks (MIAs), which aim to identify whether a particular example belongs to the training set or not. We propose to investigate privacy from a new perspective called memorization. Through the lens of memorization, we find that previously deployed MIAs produce misleading results as they are less likely to identify samples with higher privacy risks as members compared to samples with low privacy risks. To solve this problem, we deploy a recent attack that can capture individual samples' memorization degrees for evaluation. Through extensive experiments, we unveil several findings about the connections between three essential properties of machine learning models, including privacy, generalization gap, and adversarial robustness. We demonstrate that the generalization gap and privacy leakage are less correlated than those of the previous results. Moreover, there is not necessarily a trade-off between adversarial robustness and privacy as stronger adversarial robustness does not make the model more susceptible to privacy attacks.

For agents

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

get_harvested_code_for_paper("2208.08270")
get_code_for_paper("2208.08270")
have("2208.08270")

Connect an agent — have() is free.