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

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

17 Aug 2022arXiv:2208.08270archive 2025-07-28

Xiao Li, Qiongxiu Li, Zhanhao Hu, Xiaolin Hu

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.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2208.08270")

Code

Syntology Ran 14 of 17 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 13 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lixiaothu/privacy_and_aug officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 14 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
13ran
3unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from lixiaothu/privacy_and_aug. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ROC_curve lixiaothu/privacy_and_aug/eval_privacy.py official repository ran MIT (permissive) · 2fef971a40606cc9 · report
ResNet18 lixiaothu/privacy_and_aug/models/ResNet.py official repository ran MIT (permissive) · e646ab652ba06157 · report
ResNet34 lixiaothu/privacy_and_aug/models/ResNet.py official repository ran MIT (permissive) · bdfee6e9a24e258f · report
ResNet9 lixiaothu/privacy_and_aug/models/ResNet.py official repository ran MIT (permissive) · 0ed6b1f3db7c187f · report
SoftLabelNLL lixiaothu/privacy_and_aug/inference.py official repository ran fingerprinted MIT (permissive) · 28d5109e1b7c352f · report
cal_adv lixiaothu/privacy_and_aug/advtrain.py official repository ran MIT (permissive) · dae43d0752d48a19 · report
computeMetrics lixiaothu/privacy_and_aug/utils_h.py official repository ran MIT (permissive) · 91e35de2120c235c · report
create_path lixiaothu/privacy_and_aug/utils.py official repository ran fingerprinted MIT (permissive) · cbc1ea670dc40bb6 · report
diff_in_weights lixiaothu/privacy_and_aug/trades_awp.py official repository ran · our draft was wrong MIT (permissive) · 4170809219439d13 · report
fake_inputs lixiaothu/privacy_and_aug/utils_h.py official repository ran MIT (permissive) · 7fc21d4ca47b24eb · report
load_model lixiaothu/privacy_and_aug/utils.py official repository ran MIT (permissive) · 0619c0c4d30c7511 · report
log_display lixiaothu/privacy_and_aug/utils.py official repository ran MIT (permissive) · 55fbccf29c619901 · report
normal lixiaothu/privacy_and_aug/eval_privacy.py official repository ran MIT (permissive) · 5f7d0e7a485b4a1a · report
test lixiaothu/privacy_and_aug/utils_h.py official repository ran MIT (permissive) · 79317dc18351550d · report
get_cifar100_datasets lixiaothu/privacy_and_aug/dataset.py official repository unverified MIT (permissive) · afa8aab43a77d953 · report
get_cifar10_datasets lixiaothu/privacy_and_aug/dataset.py official repository unverified MIT (permissive) · 2410b3bdf17c6a79 · report
get_loaders lixiaothu/privacy_and_aug/dataset.py official repository unverified MIT (permissive) · e259e3b8e5627125 · report

Tasks

Adversarial RobustnessData AugmentationMemorization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections