arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.11023cs.CRcs.CVcs.LG
收藏

EncoderMI:对比学习中对预训练编码器的隶属度推断

EncoderMI: Membership Inference against Pre-trained Encoders in Contrastive Learning

Duke University(杜克大学);Huazhong University of Science and Technology(华中科技大学)

Hongbin Liu, Jinyuan Jia, Wenjie Qu, Neil Zhenqiang Gong

摘要:

给定一组未标记的图像或(图像,文本)对,对比学习旨在预训练图像编码器,该图像编码器可用作许多下游任务的特征提取器。在这项工作中,我们提出了EncoderMI,第一个成员推理方法对图像编码器预先训练的对比学习。特别是,给定输入和对图像编码器的黑盒访问,EncoderMI旨在推断输入是否在图像编码器的训练数据集中。EncoderMI可以1)由数据所有者用于审计其(公共)数据是否在未经其授权的情况下被用于预训练图像编码器,或者2)由攻击者用于在训练数据是私有/敏感的情况下损害其隐私。我们的EncoderMI利用图像编码器对其训练数据的过拟合。特别地,过拟合图像编码器更有可能针对其训练数据集中(或不在其训练数据集中)的输入的两个增强版本输出更多(或更少)相似的特征向量。我们在自己在多个数据集上预训练的图像编码器以及对比图像预训练(CLIP)图像编码器上评估EncoderMI,CLIP图像编码器是在从互联网收集并由OpenAI发布的4亿(图像,文本)对上预训练的。我们的研究结果表明,EncoderMI可以实现高准确率,精确度和召回率。我们还探讨了通过早期停止来防止过拟合的对策。我们的结果表明,它实现了EncoderMI的准确性和图像编码器的实用性之间的权衡,即,它会降低EncoderMI的准确性,但也会导致基于图像编码器构建的下游分类器的分类准确性损失。

英文摘要:

Given a set of unlabeled images or (image, text) pairs, contrastive learning aims to pre-train an image encoder that can be used as a feature extractor for many downstream tasks. In this work, we propose EncoderMI, the first membership inference method against image encoders pre-trained by contrastive learning. In particular, given an input and a black-box access to an image encoder, EncoderMI aims to infer whether the input is in the training dataset of the image encoder. EncoderMI can be used 1) by a data owner to audit whether its (public) data was used to pre-train an image encoder without its authorization or 2) by an attacker to compromise privacy of the training data when it is private/sensitive. Our EncoderMI exploits the overfitting of the image encoder towards its training data. In particular, an overfitted image encoder is more likely to output more (or less) similar feature vectors for two augmented versions of an input in (or not in) its training dataset. We evaluate EncoderMI on image encoders pre-trained on multiple datasets by ourselves as well as the Contrastive Language-Image Pre-training (CLIP) image encoder, which is pre-trained on 400 million (image, text) pairs collected from the Internet and released by OpenAI. Our results show that EncoderMI can achieve high accuracy, precision, and recall. We also explore a countermeasure against EncoderMI via preventing overfitting through early stopping. Our results show that it achieves trade-offs between accuracy of EncoderMI and utility of the image encoder, i.e., it can reduce the accuracy of EncoderMI, but it also incurs classification accuracy loss of the downstream classifiers built based on the image encoder.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑