Manuscript Offprint

arXiv:2610.18051

inLoRA-MINT: Internal Representations for Auditing Training Data in Domain-adapted LLMs

Gonzalo Mancera, Julian Fierrez, Aythami Morales, Ruben Tolosana, Daniel DeAlcala, Francisco Jurado

Gonzalo Mancera*, Julian Fierrez*, Aythami Morales*†, Ruben Tolosana*, Daniel DeAlcala*, Francisco Jurado†

*BiometricsAI, Universidad Autonoma de Madrid, Spain

†Computer Engineering Dept., Universidad Autonoma de Madrid, Spain

‡Mathematics Dept., Universidad de Las Palmas de Gran Canaria, Spain

Abstract—This work investigates the application of the Membership Inference Test (MINT) to large language models (LLMs) fine-tuned with LoRA. MINT aims to determine whether specific data samples were used during model training, addressing key concerns related to data privacy, data leakage, and model transparency. This work builds on our previous LoRA-MINT framework based on perplexity, which addressed this same auditing problem under a strict black-box assumption, relying exclusively on the perplexity of candidate samples compared against a synthetic reference distribution in the domain. We propose an approach based on extracting intermediate representations from the model, capturing internal behaviors such as activations and parameter-dependent signals. These representations enable the construction of a MINT model that learns to distinguish between training and non-training samples, without requiring full access to the model parameters. We evaluated the method in 4 LLMs (Qwen, Phi-4, DeepSeek-V3, and LLaMA 3.2-3B) fine-tuned in three datasets covering medical, mathematical, and academic reasoning tasks. The results show that MINT is effective across different architectures and domains, achieving performance scores ranging from 95% to 98%, and demonstrating robustness under varying model configurations and data distributions. By allowing efficient auditing of whether sensitive records were used during fine-tuning without requiring full model access, the proposed MINT approach provides a practical mechanism for data provenance in accordance with emerging privacy and AI governance regulations in real-world LLM deployments. For the sake of concreteness and current relevance, our discussion and experiments are centered on LoRA-adjusted 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 AI model.

Index Terms—Membership Inference Test, Large Language Models, LoRA, Model Auditing, Data Privacy, Trustworthy AI,

I. INTRODUCTION

LLMs and VLMs are now revolutionizing multiple domains, including healthcare [1], [2], law [3], [4], human resources management [5], [6], education [7], [8], and finance [9], significantly transforming the way textual information is processed and interpreted. These recent advances have enabled the analysis of large-scale textual corpora, accelerating progress in NLP applications. However, these models require vast amounts of data during training, and the provenance and public availability of such data remain controversial.

Protecting sensitive information in AI applications [10], [11] is now critical in order to preserve user trust and ensure compliance with increasingly stringent social concerns about the proper use of AI systems [12]. In response to these concerns, the European Union introduced new regulations in June 2024 1^{1}, aimed at governing the deployment of artificial intelligence systems [13]. This regulatory framework reflects a larger effort to address the societal and ethical implications of AI technologies, particularly in NLP applications.

A central objective of this legislation is the protection of fundamental rights through mechanisms that promote transparency and accountability in the design and use of AI systems. Consequently, both this framework and related international guidelines emphasize the need for auditing methodologies that enable the responsible deployment of AI/NLP technologies, while also supporting a better understanding of their behavior [14] and potential risks [13].

In the context of increasing privacy concerns in AI deployments [15], a related work proposed Membership Inference Attacks (MIAs), which study whether an adversary can infer if specific data were used during model training [16]. Previous work has shown that such attacks are feasible and has proposed a variety of mitigation and evaluation strategies.

Beyond traditional MIAs, recent work on privacy in machine learning has studied the possibility of inferring whether specific data samples were used during training, highlighting both the feasibility of such an inference and its implications for data protection and model leakage [16], [17]. These approaches typically operate under adversarial assumptions, where an attacker exploits the behavior of the model to extract information about the training dataset.

In line with recent research oriented to develop new technologies for auditing LLMs, the present paper addresses the challenge of identifying whether a given text was utilized in the training of a Language Model (see Fig. 1). The study aims to further highlight the versatility and applicability of the general MINT framework [18] by adapting it to LoRA fine-tuned LLMs and demonstrating its effectiveness in language generation scenarios [19], [20]. In this line, we extend our previous work LoRA-MINT [19], which relied solely on perplexity statistics computed from a synthetic reference distribution, by incorporating: 1) information from internal activations

Support by M2RAI (PID2024-160053OB-I00, MICIU/FEDER) and Cátedra ENIA UAM-VERIDAS en IA Responsible (NextGenerationEU PRTR TSI-100927-2023-2). Mancera is supported by FPI-PRE2022-104499 MICINN/FEDER and DeAlcala is supported by FPU21/05785 MIU.

1^{1}https://artificialintelligenceact.eu

Figure

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).

('in' in inLoRA-MINT is from 'internal'), 2) gradient-based sensitivity, and 3) output-level signals; trading a mild increase in required model access for consistently higher detection performance across the same model families and datasets.

The main contributions of this work are as follows.

• We adapt the MINT framework to LoRA fine-tuned LLMs using internal representations, enabling membership inference without full access to model parameters.

• We evaluate 4 LoRA fine-tuned LLMs (Qwen, Phi-4, DeepSeek-V3, and LLaMA 3.2-3B) across three datasets (medical, mathematical, and academic), analyzing the effect of architecture, scale, and domain.

• Results show that this representation-based approach effectively distinguishes training from non-training samples across models and domains.

For the sake of concreteness and current relevance, our discussion and experiments are centered on LoRA-adjusted LLMs, but note that the presented methodology is easily applicable for auditing training data given any other technique for adapting LLMs or, more generally, any AI model.

References (43)

  • Are Vision-Language Models ready for dietary assessment? Exploring the next frontier in AI-powered food image recognition
  • Personalized weight loss management through wearable devices and artificial intelligence
  • Continuous document layout analysis: Human-in-the-loop AI-based data curation, database, and evaluation in the domain of public affairs
  • Benchmarking graph neural networks for document layout analysis in public affairs
  • PBa-LLM: Privacy-and bias-aware NLP using named-entity recognition (NER)
  • Addressing bias in LLMs: Strategies and application to fair AI-based recruitment
  • A multimodal dataset for understanding the impact of mobile phones on remote online virtual education
  • AIriskEval-edu: New dataset for risk assessment in AI-mediated K-12 educational explanations
  • Natural language processing in finance: A survey
  • SensitiveNets: Learning agnostic representations with application to face recognition
  • Sensitive loss: Improving accuracy and fairness of face representations with discrimination-aware DL
  • Human-centric multimodal machine learning: Recent advances and testbed on AI-based recruitment
  • Overview of risk assessment and management for intelligent systems under the AI Act and beyond
  • Unraveling machine behavior by multi-level bias analysis and detection: Methodology and application to computer vision
  • Springer, 2027
  • Membership inference attacks against machine learning models
  • On the importance of difficulty calibration in membership inference attacks
  • Is my data in your AI? membership inference test (MINT) applied to face biometrics
  • Auditing training data in domain-adapted LLMs: LoRA-MINT
  • Is my vision-language data in your AI? Membership Inference Test (MINT) Demo 2
  • Is my text in your AI model? gradient-based membership inference test applied to LLMs
  • A comprehensive analysis of factors impacting membership inference
  • Active membership inference test (aMINT): Enhancing model auditability with multi-task learning
  • gMINT: Gradient-based membership inference test applied to image models
  • Membership inference test: Auditing training data in object classification models
  • LoRA: Low-rank adaptation of large language models
  • Privacy-preserving comparison of variable-length data with application to biometric template protection
  • Privacy-aware synthetic tabular data generation for healthcare: Application to sepsis detection
  • HuatuoGPT-o1, towards medical complex reasoning with LLMs (opens arXiv in a new tab)
  • CAMEL: Communicative agents for mind exploration of large language model society
  • Maths-College: A mathematics reasoning dataset
  • Qwen Technical Report
  • Phi-4 Technical Report
  • DeepSeek-V3 Technical Report
  • The Llama 3 Herd of Models
  • Membership inference attacks by exploiting loss trajectory
  • Detecting pretraining data from large language models
  • Min-k%++: Improved baseline for pre-training data detection from large language models
  • Symbolic AI (LFIT) for XAI to handle biases
  • DeepID challenge of detecting synthetic manipulations in ID documents
  • Privacy-aware detection of fake identity documents: methodology, benchmark, and improved algorithms (FakeIDet2)
  • Comparative study of domain-adapted VLMs for general document visual question answering
  • Evaluating Social Engineering Risks in AI-based Interaction using Biometrics and a Gaming Setup