In-Context Probing for Membership Inference in Fine-Tuned Language Models
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
- 2025Membership Inference Attacks as Privacy Tools: Reliability, Disparity and Ensemble16 Jun
- 2024Membership Inference Attacks against Large Vision-Language Models5 Nov
- 2024Detecting Training Data of Large Language Models via Expectation Maximization10 Oct
- 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)25 Jun
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods23 Jun
- 2024PANORAMIA: Privacy Auditing of Machine Learning Models without Retraining12 Feb
- 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
- 2023Black-box Membership Inference Attacks against Fine-tuned Diffusion Models13 Dec
- 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibration10 Nov
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
- 2023Membership Inference Attacks against Diffusion Models7 Feb
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attacks8 Mar
2 more
Other references · 42
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2016Deep Learning with Differential Privacycited by 2,728
30 more
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2024Mixtral of Expertscited by 1,823
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2015Teaching Machines to Read and Comprehendcited by 1,049
- 2024DoRA: Weight-Decomposed Low-Rank Adaptationcited by 758
- 2021P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-tuning Universally Across Scales and Taskscited by 689
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 533
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 463
- 2021Differentially Private Fine-tuning of Language Modelscited by 400
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
- 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
- 2023ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledgecited by 325
- 2023Towards Unbounded Machine Unlearningcited by 268
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
- 2024A Dynamical Model of Neural Scaling Lawscited by 111
- 2023To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisiscited by 92
- 2023AlpaCare:Instruction-tuned Large Language Models for Medical Applicationcited by 90
- 2021The Shape of Learning Curves: a Reviewcited by 70
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 55
- 2019One Epoch Is All You Needcited by 41
- 2024Instruction Fine-Tuning: Does Prompt Loss Matter?cited by 26
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 22
- 2024Con-ReCall: Detecting Pre-training Data in LLMs via Contrastive Decodingcited by 20
- 2024DETAIL: Task DEmonsTration Attribution for Interpretable In-context Learningcited by 5
- 2023In-Context Probing: Toward Building Robust Classifiers via Probing Large Language Modelscited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Have You Ever Seen Them? Entity-level Membership Inference through Interrogating Large Language Modelscited by 0
- 2026One Framework for All: Cross-Modal Membership Inference for Generative Modelscited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generationcited by 0
- 2026CIG-MIA: Context-Induced Information Gain Membership Inference Attacks against Retrieval-Augmented Generation13 Sep 2026
- 2026One Framework for All: Cross-Modal Membership Inference for Generative Models5 Jul 2026
- 2026Have You Ever Seen Them? Entity-level Membership Inference through Interrogating Large Language Models22 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models
- 2024A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models
- 2024Membership Inference Attacks Against In-Context Learning
- 2026CheckMIABench: Firm Foundations For Membership Inference Attacks on Language Models
- 2024Context-Aware Membership Inference Attacks against Pre-trained Large Language Models
- 2024MIA-Tuner: Adapting Large Language Models as Pre-training Text Detector
- 2025Exploring the limits of strong membership inference attacks on large language models
- 2025Towards Label-Only Membership Inference Attack against Pre-trained Large Language Models