Decoding Web Memorization: A Semantic Membership Inference Attack on LLMs
Zhiyao Wu, Zi Liang, Haibo Hu
Abstract
While Large Language Models (LLMs) are increasingly deployed in Web applications such as search, dialogue, and recommendation systems, their reliance on large-scale Web data raises serious privacy concerns, particularly the risk of memorizing sensitive content. Existing Membership Inference Attacks (MIA) rely heavily on the surface form of inputs, rendering them ineffective against semantically preserved but structurally altered samples. This methodological weakness results in widespread false negatives and compromises the integrity of privacy evaluations in large-scale Web corpora. To address this limitation, we propose Adversarial Semantic Membership Inference Attack (ASMIA). ASMIA enhances MIA effectiveness by generating semantically diverse adversarial samples, extracting multi-layer attention features from the target model, and training a contrastive classifier that leverages similarity metrics and logarithmic probabilities to distinguish members from non-members. Experiments on LLMs trained with Wikipedia, a representative large-scale Web corpus, demonstrate that ASMIA significantly outperforms existing methods, highlighting the value of semantic perturbations and attention patterns in detecting training data leakage.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 6f2e115f-07a1-4c04-9bf4-08059558eec6Cited by top-tier papers1
Ask how each one uses itRelated papers
- Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMsEyal German, Sagiv Antebi, Daniel Samira, Asaf Shabtai et al.ICLR 2026 · 3 citations
- Membership Inference Attack Against Large Language Model-Based Recommendation Systems: A New Distillation-Based ParadigmCuihong Li, Xiaowen Huang, Chuanhuan Yin, Jitao SangAAAI 2026
- ReCaLL: Membership Inference via Relative Conditional Log-LikelihoodsRoy Xie, Junlin Wang, Ruomin Huang, Minxing Zhang et al.EMNLP 2024 · 8 citations
- Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory ProbingJinhua Yin, Peiru Yang, Chen Yang, Huili Wang et al.NeurIPS 2025 · 4 citations
- LOMIA: Label-Only Membership Inference Attacks against Pre-trained Large Vision-Language ModelsYihao Liu, Xinqi Lyu, Dong Wang, Yanjie Li et al.NeurIPS 2025 · 3 citations
