Dataset Size Recovery from LoRA Weights

Mohammad Salama, Jonathan Kahana, Eliahu Horwitz, Yedid Hoshen
6/27/2024
cs.CV

No official code found. Best implementation: MoSalama98/DSiRe (34 stars, last commit 2024-06-30).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MoSalama98/DSiReCommunity100%

Official implementation of "Dataset Size Recovery from LoRA Weights" paper.

340PythonJun 17, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{salama2024dataset,
  title  = {Dataset Size Recovery from LoRA Weights},
  author = {Mohammad Salama and Jonathan Kahana and Eliahu Horwitz and Yedid Hoshen},
  year   = {2024},
  eprint = {2406.19395},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.19395v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.19395.svg)](https://codeofpaper.com/paper/2406.19395)

Discussion