Empirical Evaluation of Membership Inference Attacks on NLP Text Classifiers: A Baseline Study on SST-2
Abstract
Membership inference attacks (MIAs) try to determine whether a specific record was used to train a model, a privacy risk that matters in natural language processing (NLP), where training data can contain sensitive user text. This paper presents a controlled benchmark of membership inference vulnerability for text classification on the GLUE SST-2 sentiment dataset. A TF-IDF + Logistic Regression pipeline and a fine-tuned DistilBERT classifier are compared under a loss-threshold MIA, with utility measured by development accuracy and macro F1. DistilBERT reached 0.9466 accuracy and 0.9460 macro F1 against 0.8756 and 0.8727 for Logistic Regression, yet both models leaked membership signal (Attack AUC 0.5615 and 0.5800, respectively). Two mitigations were tested. Stronger regularization reduced leakage for Logistic Regression at a visible utility cost, whereas fine-tuning DistilBERT for 2 epochs instead of 3 reduced leakage with negligible accuracy loss. Lightweight training adjustments can improve the privacy-utility trade-off without complex defenses.
Create a lesson
Metadata
- Categories
- cs.CR, cs.CL, cs.LG
- Comments
- Presented at the 58th Midwest Instruction and Computing Symposium (MICS 2026), Eau Claire, WI, March 27 to 28, 2026. 13 pages, 4 figures, 2 tables
Related papers
Stop using Conventional Metrics to Evaluate Membership Inference Attacks on LLMs: A Call for Holistic Benchmarks
Shared title terminologycs.CRClyde Baidoo, Sayanton Dibbo
Assessing Data Leakage Risk in Fine-Tuned LLMs via Membership Inference Attacks
Shared title terminologycs.CRMohamed-Jalal Baim, Léa Deleris, Myriam Tami et al.
Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis
Shared title terminologycs.CRJoshua Ward, Haoyuan Cheng, Yue Zhang et al.
CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation
Shared title terminologycs.CRTan Xue, Huo Chang, Wang Changhui et al.
Empirical Evaluation of Data Poisoning Attacks in Supervised Learning
Shared title terminologycs.CRToshif Khan, Muhammad Abusaqer
Subgroup Membership Inference Audits of Differentially Private Synthetic Text
Shared title terminologycs.CRYidan Sun, Viktor Schlegel, Srinivasan Nandakumar et al.