Membership Inference Attack against Long-Context Large Language Models
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Recent advances in Large Language Models (LLMs) have enabled them to overcome their context window limitations, and demonstrate exceptional retrieval and reasoning capacities on longer context. Quesion-answering systems augmented with Long-Context Language Models (LCLMs) can automatically search massive external data and incorporate it into their contexts, enabling faithful predictions and reducing issues such as hallucinations and knowledge staleness. Existing studies targeting LCLMs mainly concentrate on addressing the so-called lost-in-the-middle problem or improving the inference effiencicy, leaving their privacy risks largely unexplored. In this paper, we aim to bridge this gap and argue that integrating all information into the long context makes it a repository of sensitive information, which often contains private data such as medical records or personal identities. We further investigate the membership privacy within LCLMs external context, with the aim of determining whether a given document or sequence is included in the LCLMs context. Our basic idea is that if a document lies in the context, it will exhibit a low generation loss or a high degree of semantic similarity to the contents generated by LCLMs. We for the first time propose six membership inference attack (MIA) strategies tailored for LCLMs and conduct extensive experiments on various popular models. Empirical results demonstrate that our attacks can accurately infer membership status in most cases, e.g., 90.66% attack F1-score on Multi-document QA datasets with LongChat-7b-v1.5-32k, highlighting significant risks of membership leakage within LCLMs input contexts. Furthermore, we examine the underlying reasons why LCLMs are susceptible to revealing such membership information.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 31 of its 34 references that are in the map. First posted on arXiv 18 Nov 2024.
Builds on
31 of 34 references.
Closest ancestors · 5
Same direction, newest first
- 2024Membership Inference Attacks Against In-Context Learning2 Sep
- 2024Is My Data in Your Retrieval Database? Membership Inference Attacks Against Retrieval Augmented Generation30 May
- 2023Practical Membership Inference Attacks Against Large-Scale Multi-Modal Models: A Pilot Study29 Sep
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attacks8 Mar
Other references · 26
- 2017Attention Is All You Needcited by 59,932
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
- 2023Mistral 7Bcited by 3,065
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
14 more
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2024Long-context LLMs Struggle with Long In-context Learningcited by 285
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2024Eliminating Position Bias of Language Models: A Mechanistic Approachcited by 61
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reductioncited by 39
- 2024Insights into LLM Long-Context Failures: When Transformers Know but Don't Tellcited by 36
- 2021Is Sparse Attention more Interpretable?cited by 31
Built on by
Citing papers per year: 2025: 1.
1 paper.