Extracting Training Data from Document-Based VQA Models
Francesco Pinto, Nathalie Rauschmayr, Florian Tramèr, Philip Torr, Federico Tombari
TL;DR
This work uncovers privacy risks in document-based Vision-Language Models by showing that training data can be memorized and partially extracted as answers to questions even when the corresponding visual evidence is removed. It introduces a formal framework to distinguish memorization from generalization using a generalization baseline and canaries, and defines Extractable Memorization ($\mathcal{M}_E$) and Extractable Simplicity ($\mathcal{S}_E$) scores to quantify extractability under partial context. Through controlled ablations (e.g., No Text in Image, paraphrasing, perturbations, modality permutation) across Donut, Pix2Struct, and PaLI-3 on DocVQA_2021_WACV, the paper shows that memorization is modulated by training resolution and pretraining, with OCR-free models like PaLI-3 generally exhibiting less memorization at high resolutions. As a practical defense, Extraction Blocking (EB) nearly eliminates extractable data while maintaining or improving DocVQA performance, offering a feasible privacy-preserving direction, though challenges remain (e.g., potential side channels, the role of differential privacy).
Abstract
Vision-Language Models (VLMs) have made remarkable progress in document-based Visual Question Answering (i.e., responding to queries about the contents of an input document provided as an image). In this work, we show these models can memorize responses for training samples and regurgitate them even when the relevant visual information has been removed. This includes Personal Identifiable Information (PII) repeated once in the training set, indicating these models could divulge memorised sensitive information and therefore pose a privacy risk. We quantitatively measure the extractability of information in controlled experiments and differentiate between cases where it arises from generalization capabilities or from memorization. We further investigate the factors that influence memorization across multiple state-of-the-art models and propose an effective heuristic countermeasure that empirically prevents the extractability of PII.
