Reconstructing Training Data From Real World Models Trained with Transfer Learning
Yakir Oz, Gilad Yehudai, Gal Vardi, Itai Antebi, Michal Irani, Niv Haim
TL;DR
This work investigates privacy risks from training-data reconstruction in realistic transfer-learning scenarios that use embeddings from large foundation models. It introduces a two-stage approach: first reconstruct embedding vectors from a classifier trained on these embeddings, then map those embeddings back to images via model inversion, using a Deep Image Prior for most backbones and UnCLIP for CLIP. A key contribution is a clustering-based method to identify good reconstructions without access to the original training set, enabling practical attacks on Food-101 and iNaturalist across multiple backbones. The findings reveal a tangible privacy threat in transfer-learning pipelines and discuss limitations and potential defenses, emphasizing the need for defenses as transfer learning remains widespread.
Abstract
Current methods for reconstructing training data from trained classifiers are restricted to very small models, limited training set sizes, and low-resolution images. Such restrictions hinder their applicability to real-world scenarios. In this paper, we present a novel approach enabling data reconstruction in realistic settings for models trained on high-resolution images. Our method adapts the reconstruction scheme of arXiv:2206.07758 to real-world scenarios -- specifically, targeting models trained via transfer learning over image embeddings of large pre-trained models like DINO-ViT and CLIP. Our work employs data reconstruction in the embedding space rather than in the image space, showcasing its applicability beyond visual data. Moreover, we introduce a novel clustering-based method to identify good reconstructions from thousands of candidates. This significantly improves on previous works that relied on knowledge of the training set to identify good reconstructed images. Our findings shed light on a potential privacy risk for data leakage from models trained using transfer learning.
