Quantifying Cross-Modality Memorization in Vision-Language Models

Yuxin Wen, Yangsibo Huang, Tom Goldstein, Ravi Kumar, Badih Ghazi, Chiyuan Zhang

Abstract

Vision-Language Models (VLMs) are increasingly used in multimodal contexts, yet how they transfer factual knowledge between text and image modalities remains poorly understood. This paper investigates cross-modality memorization by training models on a novel synthetic persona dataset. Our findings reveal a significant, asymmetric "modality gap": knowledge learned in one modality transfers imperfectly to the other, with image-to-text transfer being more effective than text-to-image. We also identify critical vulnerabilities in multimodal systems, including failures in cross-modal unlearning, the "multi-hop curse," and unintentional privacy leaks.

Introduction

Large Language Models (LLMs) are known to memorize training text verbatim, and diffusion models can regurgitate training images. However, as AI becomes increasingly multimodal, a critical question arises: if a model learns a fact in one modality (e.g., what a person looks like from a photo), can it reliably recognize them based on another (e.g., a text description)?

This study tackles the unexplored dynamics of cross-modality memorization. The authors quantify whether a fact learned in a "source" modality automatically and robustly transfers to a "target" modality. To avoid the data contamination issues inherent in foundation models trained on massive, opaque web datasets, the researchers utilized a perfectly controlled environment with synthetic "canaries" to measure transfer rates precisely.

Methodology

To maintain strict experimental control, the authors developed a Synthetic Persona Dataset consisting of 100 unique personas. Each persona includes a unique name, a "favorite number" (serving as surrogate PII), specific demographic attributes, and 100 variants of both training images (generated via Imagen 3) and text descriptions (generated via Gemini 2.0).

The experimental setup involved fine-tuning the Gemma-3 family of VLMs (4B, 12B, and 27B parameters) using LoRA. Models were trained to associate a person's name using only one modality (either images or text). During inference, the models were evaluated on their ability to recall the name using the held-out modality. The study also explored variations in model scale, training diversity, and machine unlearning techniques.

Key Insights and Results

The Asymmetric Modality Gap

The primary finding is that factual memorization does transfer between modalities, but with a significant drop-off. Notably, this gap is asymmetric: knowledge transfers more effectively from Image → Text than from Text → Image. While larger models achieve higher absolute accuracy, the rate of cross-modal transferability does not improve with scaling; bigger models simply become better at memorizing within a single modality.

Reasoning and Privacy Vulnerabilities

  • The Multi-Hop Curse: VLMs struggle with transitive reasoning across modalities. When trained on Description → Name and Name → Favorite Number, models achieved near-perfect accuracy on individual tasks but plummeted to 11% accuracy when asked to link Description → Favorite Number.
  • Privacy Risks: Models were found to silently memorize irrelevant visual details. Even when the objective was only to learn a name, models inadvertently memorized the "favorite number" visually embedded in training images, achieving a membership inference attack AUC of ~70%.
  • Unlearning Challenges: Cross-modal unlearning is highly resistant. If a model learns a fact via an image, attempting to "unlearn" it using text data is largely ineffective. Unlearning only succeeds when applied in the original source modality.

Conclusion and Future Work

The study demonstrates that while VLMs can bridge the gap between vision and language, the transfer is neither seamless nor symmetric. The discovery of unintentional PII memorization highlights a need for more rigorous data filtering in multimodal training. Future research will aim to expand these findings to audio and video modalities and develop more robust cross-modal unlearning algorithms to address the persistent "modality gap."

Summary updated

BibTeX
@inproceedings{wen2025quantifying,
  author = {Yuxin Wen and Yangsibo Huang and Tom Goldstein and Ravi Kumar and Badih Ghazi and Chiyuan Zhang},
  title = {{Quantifying Cross-Modality Memorization in Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=bYRSuZteeK},
}
Figure