inLoRA-MINT: Internal Representations for Auditing Training Data in Domain-adapted LLMs
Organizations: BiometricsAI, Universidad Autonoma de Madrid, Spain · Mathematics Dept., Universidad de Las Palmas de Gran Canaria, Spain · Computer Engineering Dept., Universidad Autonoma de Madrid, Spain
Abstract
This work investigates the application of the Membership Inference Test (MINT) to large language models (LLMs) fine-tuned with LoRA, aiming to determine whether specific samples were used during training and address concerns about data privacy, leakage, and transparency. Building on our previous LoRA-MINT framework, which relies exclusively on perplexity under a strict black-box setting, we propose an approach based on intermediate model representations, including activations and parameter-dependent signals. These representations enable a MINT classifier to distinguish training from non-training samples without requiring full access to model parameters. We evaluated the method on four LLMs (Qwen, Phi-4, DeepSeek-V3, and LLaMA 3.2-3B) fine-tuned on three datasets covering medical, mathematical, and academic reasoning tasks. Results show consistent performance across architectures and domains, achieving scores between 95% and 98%, with robustness to variations in model configurations and data distributions. The proposed approach enables efficient auditing of sensitive training data and supports data provenance and compliance with emerging privacy and AI governance regulations. Although our experiments focus on LoRA-based fine-tuning, the methodology can be extended to other LLM adaptation techniques and, more broadly, to other AI models.
Figures & tables
| DATASET | PROPOSED METHOD | Qwen3 | Phi-4 | DeepSeek-V3 | LLaMA 3.2-3b | |
|---|---|---|---|---|---|---|
| Medical-o1-reasoning-SFT | Loss [ 36 ] (Relevant literature 2022) | 0.7508 | 0.9390 | 0.8840 | 0.8000 | |
| MinK [ 37 ] (Relevant literature 2024) | 0.7690 | 0.9440 | 0.8840 | 0.7770 | ||
| MinK++ [ 38 ] (Relevant literature 2025) | 0.7780 | 0.9590 | 0.8625 | 0.7812 | ||
| Antepenultimate Layer (L1) | 0.8306 | 0.9800 | 0.9697 | 0.8811 | ||
| Penultimate Layer (L2) | 0.9179 | 0.9788 | 0.9840 | 0.9202 | ||
| Last Layer (L3) | 0.9272 | 0.9811 | 0.9846 | 0.9210 |
| Target Modules | AUC | |
|---|---|---|
| q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj | 0.6178 | |
| q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj | 0.6978 | |
| q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj | 0.7945 | |
| q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj | 0.9019 | |
| q_proj , k_proj , v_proj , o_proj , gate_proj , up_proj , down_proj | 0.9819 |
LLM Auditing
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
See all 644 papers