Papers › Mitigating Privacy Risk in Membership Inference by Convex-Concave Loss

Mitigating Privacy Risk in Membership Inference by Convex-Concave Loss

8 Feb 2024arXiv:2402.05453archive 2025-07-28

Zhenlong Liu, Lei Feng, Huiping Zhuang, Xiaofeng Cao, Hongxin Wei

Machine learning models are susceptible to membership inference attacks (MIAs), which aim to infer whether a sample is in the training set. Existing work utilizes gradient ascent to enlarge the loss variance of training data, alleviating the privacy risk. However, optimizing toward a reverse direction may cause the model parameters to oscillate near local minima, leading to instability and suboptimal performance. In this work, we propose a novel method -- Convex-Concave Loss, which enables a high variance of training loss distribution by gradient descent. Our method is motivated by the theoretical analysis that convex losses tend to decrease the loss variance during training. Thus, our key idea behind CCL is to reduce the convexity of loss functions with a concave term. Trained with CCL, neural networks produce losses with high variance for training data, reinforcing the defense against MIAs. Extensive experiments demonstrate the superiority of CCL, achieving state-of-the-art balance in the privacy-utility trade-off.

PaperPDFCodeCode Syntology ran

In Syntology 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="2402.05453")

Code

Syntology Ran 15 of 16 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · our draft was wrong; 10 ran with no contract checked.

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

ml-stat-sustech/convexconcaveloss officialmentioned in papermentioned on GitHubpytorch 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

16 samples harvested; 15 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · our draft was wrong
10ran
1unverified

Licence: 16 of the 16 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 ml-stat-sustech/convexconcaveloss. “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.

CCEL ml-stat-sustech/convexconcaveloss/source/defenses/membership_inference/loss_function.py official repository ran no licence file found · pointer only · 44dc0ab35e0ce208 · report
call_function_from_module ml-stat-Sustech/ConvexConcaveLoss/source/utils.py official repository ran no licence file found · pointer only · aa4d7b77f7ce2a82 · report
ce_concave_exp_loss ml-stat-sustech/convexconcaveloss/source/defenses/membership_inference/loss_function.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · c97bd6f10fdb8caa · report
conv3x3 ml-stat-Sustech/ConvexConcaveLoss/source/models/resnet.py official repository ran no licence file found · pointer only · 4dec1b673b8a327b · report
dict_str ml-stat-Sustech/ConvexConcaveLoss/source/utils.py official repository ran no licence file found · pointer only · bb81c0c5dd65ef6c · report
focal_loss ml-stat-sustech/convexconcaveloss/source/defenses/membership_inference/loss_function.py official repository ran · our draft was wrong no licence file found · pointer only · b6c954a2933604c5 · report
get_image_shape ml-stat-sustech/convexconcaveloss/source/examples/mia.py official repository ran · honoured contract no licence file found · pointer only · d0e5d7703aefba71 · report
get_loss ml-stat-sustech/convexconcaveloss/source/defenses/membership_inference/loss_function.py official repository ran · our draft was wrong no licence file found · pointer only · 95e364953588331d · report
p1_score ml-stat-Sustech/ConvexConcaveLoss/source/utils.py official repository ran fingerprinted no licence file found · pointer only · d340646b8b16aabd · report
prepare_backdoor_attack ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/data_loader_target.py official repository ran no licence file found · pointer only · 7b26b959ff1b54da · report
prepare_dataset ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/dataset_preprocessing.py official repository ran no licence file found · pointer only · 0f643892107414ea · report
prepare_dataset_inference ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/dataset_preprocessing.py official repository ran no licence file found · pointer only · ce042b6471ccd220 · report
prepare_dataset_ni ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/dataset_preprocessing.py official repository ran no licence file found · pointer only · b91749293b14eb0e · report
prepare_texas ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/data_no_image.py official repository ran no licence file found · pointer only · 6ee069ade3ca3b94 · report
taylor_exp ml-stat-sustech/convexconcaveloss/source/defenses/membership_inference/loss_function.py official repository ran · our draft was wrong no licence file found · pointer only · 3f8a0715e9d1a0db · report
prepare_purchase ml-stat-Sustech/ConvexConcaveLoss/source/data_preprocessing/data_no_image.py official repository unverified no licence file found · pointer only · 9330d696182447fd · report

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