mlsanityData to 7 Oct 2026

AttenMIA: LLM Membership Inference Attack through Attention Signals

arXiv 2601.18110 ↗First posted 26 Jan 2026cs.LGcited by 4

On the map: LLM safety and security → Membership inference attacks

Abstract (arXiv)

Large Language Models (LLMs) are increasingly deployed to enable or improve a multitude of real-world applications. Given the large size of their training data sets, their tendency to memorize training data raises serious privacy and intellectual property concerns. A key threat is the membership inference attack (MIA), which aims to determine whether a given sample was included in the model's training set. Existing MIAs for LLMs rely primarily on output confidence scores or embedding-based features, but these signals are often brittle, leading to limited attack success. We introduce AttenMIA, a new MIA framework that exploits self-attention patterns inside the transformer model to infer membership. Attention controls the information flow within the transformer, exposing different patterns for memorization that can be used to identify members of the dataset. Our method uses information from attention heads across layers and combines them with perturbation-based divergence metrics to train an effective MIA classifier. Using extensive experiments on open-source models including LLaMA-2, Pythia, and Opt models, we show that attention-based features consistently outperform baselines, particularly under the important low-false-positive metric (e.g., achieving up to 0.996 ROC AUC & 87.9% TPR@1%FPR on the WikiMIA-32 benchmark with Llama2-13b). We show that attention signals generalize across datasets and architectures, and provide a layer- and head-level analysis of where membership leakage is most pronounced. We also show that using AttenMIA to replace other membership inference attacks in a data extraction framework results in training data extraction attacks that outperform the state of the art. Our findings reveal that attention mechanisms, originally introduced to enhance interpretability, can inadvertently amplify privacy risks in LLMs, underscoring the need for new defenses.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 35 of its 53 references that are in the map. First posted on arXiv 26 Jan 2026.

Builds on

35 of 53 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025Towards Label-Only Membership Inference Attack against Pre-trained Large Language Models26 Feb
  2. 2024A Method to Facilitate Membership Inference Attacks in Deep Learning Models2 Jul
  3. 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods23 Jun
  4. 2024Semantic Membership Inference Attack against Large Language Models14 Jun
  5. 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
  6. 2023Chameleon: Increasing Label-Only Membership Leakage with Adaptive Poisoning5 Oct
  7. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
  8. 2021Membership Inference Attacks From First Principles7 Dec
  9. 2021Membership Inference Attacks on Machine Learning: A Survey14 Mar

Other references · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  5. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  7. 2019Attention is not Explanationcited by 916
  8. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
  9. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  10. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  11. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  12. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
14 more
  1. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  2. 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
  3. 2019Privacy Risks of Securing Machine Learning Models against Adversarial Examplescited by 136
  4. 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 102
  5. 2022Truth Serum: Poisoning Machine Learning Models to Reveal Their Secretscited by 94
  6. 2022Do Language Models Plagiarize?cited by 72
  7. 2023Bag of Tricks for Training Data Extraction from Language Modelscited by 67
  8. 2024Attention Heads of Large Language Models: A Surveycited by 65
  9. 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
  10. 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
  11. 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 14
  12. 2021On-the-Fly Attention Modulation for Neural Generationcited by 12
  13. 2025Attention Eclipse: Manipulating Attention to Bypass LLM Safety-Alignmentcited by 6
  14. 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.