inLoRA-MINT: Internal Representations for Auditing Training Data in Domain-adapted LLMs
Authors: Gonzalo Mancera, Julian Fierrez, Aythami Morales, Ruben Tolosana, Daniel DeAlcala, Francisco Jurado
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
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
Fig. 1: MINT discerns whether given data ( d ) were utilized in the training process of an AI Model ( M ) trained with a specific database ( D ).
Fig. 2: The MINT model T(q(d)∣θ) is trained to determine whether a given data instance d was part of the training data D used to develop a language model MLoRA . The inputs to the MINT model are represented by q(d) , which consists of features extracted from MLoRA , including activation-based statistics, gradient-derived sensitivity measures, and output-level features computed with respect to the sample d .
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
TABLE I: Performance comparison (AUC) of different MINT-based variants across three datasets and 4 LoRA fine-tuned models. Layer-based configurations are reported as Antepenultimate (L1), Penultimate (L2), and Last Layer (L3).
TABLE II: Ablation study of LoRA target modules using the Phi-4 model evaluated on the Medical-o1-SF dataset. All experiments are conducted using the configuration that aggregates the representations from the last three transformer layers together with the MaxGradProb scoring criterion. Active LoRA injection points are shown in bold, while inactive modules appear in gray. Each configuration isolates a specific subset of attention or MLP pathways to quantify their contribution to detection performance.
Large language model auditing tests models and deployed systems for bias, safety, privacy, reliability, and provenance using behavioral and internal evidence.
We present LoRA-MINT, a new methodology for Membership Inference Test (MINT) applied to recent Large Language Models (LLMs) fine-tuned for specific Natural Language Processing (NLP) tasks through Low-Rank Adaptation (LoRA). The primary goal is to assess whether individual samples were part of the training data of these adapted models, providing a useful auditing tool for the management of intellectual property and sensitive data. Our analysis explores the relationship between model perplexity and membership status, providing a systematic framework for estimating data exposure in fine-tuned LLMs. We conducted experiments on four models and three benchmark datasets, obtaining precision values in determining if given data were used for training ranging from 0.77 to 0.92, which outperform state-of-the-art baselines and demonstrate the robustness and generality of the proposed method. In general, our findings underscore the potential of LoRA-MINT as an effective and scalable framework for auditing LLMs, improving transparency, and fostering the ethical and responsible deployment of AI and NLP technologies. For the sake of concreteness and current relevance, our discussion and experiments are centered on LoRAadjusted LLMs, but note that most of the presented methodology is easily applicable for auditing training data given any other technique for adapting LLMs or, more generally, any other domain-adapted AI models.
Gonzalo Mancera, Daniel DeAlcala, Aythami Morales +3
BiometricsAI, Universidad Autonoma de Madrid, Spain · Department of Mathematics, Universidad de Las Palmas de Gran Canaria, Spain · Computer Engineering Department, Universidad Autonoma de Madrid, Spain
We present the Membership Inference Test (MINT) Demo 2, a framework designed to improve transparency in machine learning training processes. MINT is a technique for experimentally determining whether specific data were used during machine learning model training. We establish the theoretical framework and propose multiple architectures for MINT depending on the amount of information known about the models that are being audited. Experimental results using a popular face recognition model, 4 state-of-the-art LLMs, and multiple, diverse, and large-scale public image and text databases achieve promising accuracy levels in the detection of training data of up to 90%. Building on these results, we introduce a comprehensive web platform1 that expands these capabilities to image and text modalities. The platform integrates a diverse technological stack, including MINT, aMINT, and gMINT, allowing users to audit a wide range of models. This demonstrator aims to promote AI transparency and provides a practical tool to foster compliance with emerging AI regulations.
Daniel DeAlcala, Gonzalo Mancera, Julian Fierrez +3
BiometricsAI, Universidad Aut´onoma de Madrid, Spain
The proliferation of customized Large Language Models (LLMs) poses critical risks of Data Intellectual Property (Data IP) infringement via unauthorized fine-tuning on proprietary data. Existing audit techniques are limited, as they require intervention during data preparation or training and remain fragile under malicious obfuscations such as data paraphrasing and knowledge distillation. We propose Distribution Provenance Audit (DPA), a post-hoc framework for auditing data IP infringement in LLM fine-tuning under black-box and malicious settings. DPA is grounded in a critical insight: regardless of fine-tuning tactics to evade provenance, the practical necessity of maintaining utility constrains the model to preserve the fundamental intersection of semantic substance and lexical form. Accordingly, DPA captures this persistent lexical-semantic intersection as intrinsic distributional fingerprints. The framework formulates the audit as a statistical hypothesis test, effectively quantifying these fingerprints via unbiased output sampling to reliably reject the null hypothesis of non-usage. Extensive experiments on medical and legal fine-tuning tasks show that DPA consistently outperforms existing baselines, remaining robust against adversarial trainers employing paraphrasing and knowledge distillation. We further highlight a fundamental dual-use tension: the same high-fidelity distributional fingerprints enabling reliable auditing may also facilitate privacy attacks.
Zirui Huang, Yunlong Mao, Wei Tong +3
State Key Laboratory of Novel Software Technology, Nanjing University Nanjing, Jiangsu, China