mlsanityData to 14 Oct 2026

In-Context Probing for Membership Inference in Fine-Tuned Language Models

arXiv 2512.16292 ↗First posted 18 Dec 2025cs.CR cs.LGcited by 3

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

Abstract (arXiv)

Membership inference attacks (MIAs) pose a critical privacy threat to fine-tuned large language models (LLMs), especially when models are adapted to domain-specific tasks using sensitive data. While prior black-box MIA techniques rely on confidence scores or token likelihoods, these signals are often entangled with a sample's intrinsic properties - such as content difficulty or rarity - leading to poor generalization and low signal-to-noise ratios. In this paper, we propose ICP-MIA, a novel MIA framework grounded in the theory of training dynamics, particularly the phenomenon of diminishing returns during optimization. We introduce the Optimization Gap as a fundamental signal of membership: at convergence, member samples exhibit minimal remaining loss-reduction potential, while non-members retain significant potential for further optimization. To estimate this gap in a black-box setting, we propose In-Context Probing (ICP), a training-free method that simulates fine-tuning-like behavior via strategically constructed input contexts. We propose two probing strategies: reference-data-based (using semantically similar public samples) and self-perturbation (via masking or generation). Experiments on three tasks and multiple LLMs show that ICP-MIA significantly outperforms prior black-box MIAs, particularly at low false positive rates. We further analyze how reference data alignment, model type, PEFT configurations, and training schedules affect attack effectiveness. Our findings establish ICP-MIA as a practical and theoretically grounded framework for auditing privacy risks in deployed LLMs.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 56 of its 77 references that are in the map. First posted on arXiv 18 Dec 2025.

Builds on

56 of 77 references.

Closest ancestors · 14

Same direction, newest first

  1. 2025Membership Inference Attacks as Privacy Tools: Reliability, Disparity and Ensemble16 Jun
  2. 2024Membership Inference Attacks against Large Vision-Language Models5 Nov
  3. 2024Detecting Training Data of Large Language Models via Expectation Maximization10 Oct
  4. 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)25 Jun
  5. 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods23 Jun
  6. 2024PANORAMIA: Privacy Auditing of Machine Learning Models without Retraining12 Feb
  7. 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
  8. 2023Black-box Membership Inference Attacks against Fine-tuned Diffusion Models13 Dec
  9. 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration10 Nov
  10. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
  11. 2023Membership Inference Attacks against Diffusion Models7 Feb
  12. 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attacks8 Mar
2 more
  1. 2021Membership Inference Attacks From First Principles7 Dec
  2. 2021Accuracy-Privacy Trade-off in Deep Ensemble: A Membership Inference Perspective12 May

Other references · 42

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2020Scaling Laws for Neural Language Modelscited by 6,586
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  7. 2024Qwen2.5 Technical Reportcited by 4,942
  8. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  9. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  11. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  12. 2016Deep Learning with Differential Privacycited by 2,728
30 more
  1. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  2. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  3. 2020Extracting Training Data from Large Language Modelscited by 2,189
  4. 2024Mixtral of Expertscited by 1,823
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  6. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  7. 2015Teaching Machines to Read and Comprehendcited by 1,049
  8. 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 758
  9. 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  11. 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 533
  12. 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 463
  13. 2021Differentially Private Fine-tuning of Language Modelscited by 400
  14. 2023Detecting Pretraining Data from Large Language Modelscited by 387
  15. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
  16. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
  17. 2023ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledgecited by 325
  18. 2023Towards Unbounded Machine Unlearningcited by 268
  19. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
  20. 2024A Dynamical Model of Neural Scaling Lawscited by 111
  21. 2023To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisiscited by 92
  22. 2023AlpaCare:Instruction-tuned Large Language Models for Medical Applicationcited by 90
  23. 2021The Shape of Learning Curves: a Reviewcited by 70
  24. 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 55
  25. 2019One Epoch Is All You Needcited by 41
  26. 2024Instruction Fine-Tuning: Does Prompt Loss Matter?cited by 26
  27. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 22
  28. 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decodingcited by 20
  29. 2024DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learningcited by 5
  30. 2023In-Context Probing: Toward Building Robust Classifiers via Probing Large Language Modelscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models
  2. 2024A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models
  3. 2024Membership Inference Attacks Against In-Context Learning
  4. 2026CheckMIABench: Firm Foundations For Membership Inference Attacks on Language Models
  5. 2024Context-Aware Membership Inference Attacks against Pre-trained Large Language Models
  6. 2024MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector
  7. 2025Exploring the limits of strong membership inference attacks on large language models
  8. 2025Towards Label-Only Membership Inference Attack against Pre-trained Large Language Models