Measuring Déjà vu Memorization Efficiently
Narine Kokhlikyan, Bargav Jayaraman, Florian Bordes, Chuan Guo, Kamalika Chaudhuri
TL;DR
This work tackles the challenge of measuring memorization in representation learning without retraining large models. It replaces the traditional two-model Déjà Vu setup with lightweight one-model reference strategies to estimate dataset-level correlations for both image representations and vision-language models. Empirical results show that one-model tests closely align with two-model benchmarks in aggregate, enabling principled memorization assessment for open-source models and revealing that OSS models generally memorize less than subset-trained counterparts. The proposed methods offer practical tools for privacy risk evaluation in pre-trained encoders and highlight complementary strengths across reference-model strategies, with code released to facilitate adoption.
Abstract
Recent research has shown that representation learning models may accidentally memorize their training data. For example, the déjà vu method shows that for certain representation learning models and training images, it is sometimes possible to correctly predict the foreground label given only the representation of the background - better than through dataset-level correlations. However, their measurement method requires training two models - one to estimate dataset-level correlations and the other to estimate memorization. This multiple model setup becomes infeasible for large open-source models. In this work, we propose alternative simple methods to estimate dataset-level correlations, and show that these can be used to approximate an off-the-shelf model's memorization ability without any retraining. This enables, for the first time, the measurement of memorization in pre-trained open-source image representation and vision-language representation models. Our results show that different ways of measuring memorization yield very similar aggregate results. We also find that open-source models typically have lower aggregate memorization than similar models trained on a subset of the data. The code is available both for vision and vision language models.
