Netinfo Security ›› 2026, Vol. 26 ›› Issue (9): 1341-1353.doi: 10.3969/j.issn.1671-1122.2026.09.002

Previous Articles     Next Articles

A survey of membership inference attacks and defenses for large language models

Nie Haojie1,2, Sun Degang1,2, Pan Xingbo1,2, Wan Wei1,2, Long Chun1,2()   

  1. 1 Computer Network Information Center, Chinese Academy of Sciences, Beijing 100083, China
    2 School of Computer Science and Technology, University of Chinese Academy of Sciences, Beijing 101408, China
  • Received:2026-05-06 Online:2026-09-10 Published:2026-09-30
  • Contact: Long Chun E-mail:anquanip@cnic.cn

Abstract:

To address the privacy leakage, copyright disputes, and data transparency issues brought by large language models, this article systematically reviewed membership inference attacks and defense techniques. Taking the large model lifecycle and system components as two main lines: First, it explained the formal definition and threat model of membership inference, and elaborated on the theoretical basis of its evolution from overfitting to local and conditional memorization, clarifying the study’s incremental contribution compared with existing general surveys on membership inference. Then, it organized attacks in scenarios such as pretraining, fine-tuning, alignment, black-box application programming interfaces (API), multimodal, and retrieval-augmented generation (RAG), with emphasis on supplementing LiRA, MoPe, ReCaLL, and multiple types of RAG attacks. Furthermore, it quantitatively compared representative results of benchmarks such as WikiMIA and MIMIR, pointing out that the distribution bias caused by temporal splitting could significantly overestimate attack capability. Finally, it constructed a defense-in-depth framework from five levels: data governance, regularization and differential privacy, knowledge distillation, decoding filtering, and machine unlearning. The analysis shows that attack signals have shifted from global statistics to per-sample calibration, local memorization peaks, conditional changes, and system knowledge coverage, while strict in-distribution and low false-positive-rate evaluation remains a core issue constraining practical auditing.

Key words: large language model, membership inference attack, privacy preservation

CLC Number: