Dataset Size Recovery from LoRA Weights
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Model inversion and membership inference attacks aim to reconstruct and verify the data which a model was trained on. However, they are not guaranteed to find all training samples as they do not know the size of the training set. In this paper, we introduce a new task: dataset size recovery, that aims to determine the number of samples used to train a model, directly from its weights. We then propose DSiRe, a method for recovering the number of images used to fine-tune a model, in the common case where fine-tuning uses LoRA. We discover that both the norm and the spectrum of the LoRA matrices are closely linked to the fine-tuning dataset size; we leverage this finding to propose a simple yet effective prediction algorithm. To evaluate dataset size recovery of LoRA weights, we develop and release a new benchmark, LoRA-WiSE, consisting of over 25000 weight snapshots from more than 2000 diverse LoRA fine-tuned models. Our best classifier can predict the number of fine-tuning images with a mean absolute error of 0.36 images, establishing the feasibility of this attack.
Key facts. Cited by 7 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 46 of its 56 references that are in the map. First posted on arXiv 27 Jun 2024.
Builds on
46 of 56 references.
Closest ancestors · 8
Same direction, newest first
- 2023Students Parrot Their Teachers: Membership Inference on Model Distillation6 Mar
- 2023Membership Inference Attacks against Diffusion Models7 Feb
- 2023Are Diffusion Models Vulnerable to Membership Inference Attacks?2 Feb
- 2023Membership Inference of Diffusion Models24 Jan
- 2021Membership Inference Attacks From First Principles7 Dec
- 2021On the Importance of Difficulty Calibration in Membership Inference Attacks15 Nov
- 2021Membership Inference Attacks on Machine Learning: A Survey14 Mar
- 2021Membership Inference Attacks are Easier on Difficult Problems15 Feb
Other references · 38
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 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
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,300
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
26 more
- 2022Visual Prompt Tuningcited by 1,681
- 2023ProlificDreamer: High-Fidelity and Diverse Text-to-3D Generation with Variational Score Distillationcited by 1,219
- 2022Multi-Concept Customization of Text-to-Image Diffusioncited by 1,106
- 2023mPLUG-Owl: Modularization Empowers Large Language Models with Multimodalitycited by 1,040
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
- 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 577
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 498
- 2019Dreaming to Distill: Data-free Knowledge Transfer via DeepInversioncited by 423
- 2021Data-Free Knowledge Distillation for Heterogeneous Federated Learningcited by 383
- 2023Emu: Enhancing Image Generation Models Using Photogenic Needles in a Haystackcited by 279
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 271
- 2023Break-A-Scene: Extracting Multiple Concepts from a Single Imagecited by 231
- 2022SpaText: Spatio-Textual Representation for Controllable Image Generationcited by 217
- 2022Fine-tuning Global Model via Data-Free Knowledge Distillation for Non-IID Federated Learningcited by 172
- 2021FedPara: Low-Rank Hadamard Product for Communication-Efficient Federated Learningcited by 141
- 2017Data-Free Knowledge Distillation for Deep Neural Networkscited by 136
- 2022Reconstructing Training Data from Trained Neural Networkscited by 133
- 2019Reconstruction and Membership Inference Attacks against Generative Modelscited by 122
- 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
- 2020Generative Low-bitwidth Data Free Quantizationcited by 88
- 2022PSAQ-ViT V2: Towards Accurate and General Data-Free Quantization for Vision Transformerscited by 42
- 2021Qimera: Data-free Quantization with Synthetic Boundary Supporting Samplescited by 40
- 2023Re-thinking Model Inversion Attacks Against Deep Neural Networkscited by 39
- 2024Recovering the Pre-Fine-Tuning Weights of Generative Modelscited by 16
- 2024Data-free Knowledge Distillation for Fine-grained Visual Categorizationcited by 4
Built on by
Citing papers per year: 2024: 4; 2025: 2; 2026: 1.
7 papers.
- 2024Stable Flow: Vital Layers for Training-Free Image Editingcited by 113
- 2025Symmetry in Neural Network Parameter Spacescited by 36
- 2025We Should Chart an Atlas of All the World's Modelscited by 25
- 2024Learning on LoRAs: GL-Equivariant Processing of Low-Rank Weight Spaces for Large Finetuned Modelscited by 22
- 2024Deep Linear Probe Generators for Weight Space Learningcited by 17
- 2024Learning on Model Weights using Tree Expertscited by 7
- 2026W2T: LoRA Weights Already Know What They Can Docited by 5
- 2026W2T: LoRA Weights Already Know What They Can Do16 Mar 2026
- 2025Symmetry in Neural Network Parameter Spaces16 Jun 2025
- 2025We Should Chart an Atlas of All the World's Models13 Mar 2025
- 2024Stable Flow: Vital Layers for Training-Free Image Editing21 Nov 2024
- 2024Learning on Model Weights using Tree Experts17 Oct 2024
- 2024Deep Linear Probe Generators for Weight Space Learning14 Oct 2024
- 2024Learning on LoRAs: GL-Equivariant Processing of Low-Rank Weight Spaces for Large Finetuned Models5 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025StolenLoRA: Exploring LoRA Extraction Attacks via Synthetic Data
- 2024Risks When Sharing LoRA Fine-Tuned Diffusion Model Weights
- 2025LoRA-Leak: Membership Inference Attacks Against LoRA Fine-tuned Language Models
- 2024IterIS: Iterative Inference-Solving Alignment for LoRA Merging
- 2024Machine Unlearning on Pre-trained Models by Residual Feature Alignment Using LoRA
- 2025LoRA-X: Bridging Foundation Models with Training-Free Cross-Model Adaptation
- 2026The Intruder Threshold: A Spectral Law for LoRA Fine-Tuning
- 2025Recover-LoRA: Data-Free Accuracy Recovery of Degraded Language Models via Low-Rank Adaptation