Abstract
Large Language Models (LLMs) trained on massive datasets may inadvertently acquire sensitive information such as personal details and potentially harmful content. This risk is further heightened in multimodal LLMs (aka MLLMs) as they integrate information from multiple modalities (image and text). Adversaries can exploit this stored knowledge by crafting inputs across modalities to extract sensitive details. Evaluating how effectively MLLMs can forget such information (targeted unlearning) necessitates the creation of high-quality, well-annotated image-text pairs. While significant research has addressed the creation of datasets for unlearning within LLMs, it has primarily concentrated on text modality. Creation of analogous datasets for multimodal data and models remain an understudied area. To address this gap, we first introduce a multimodal unlearning benchmark, UnLOK-VQA (Unlearning Outside Knowledge VQA), as well as an “attack and-defense” framework to evaluate methods for deleting specific multimodal knowledge from MLLMs. Our dataset generation process involves an automated pipeline to create samples of varied proximity levels to the target data point for evaluation of generalization and specificity, followed by manual filtering to retain only the high-quality data points. We use this process to extend a visual question-answering dataset for evaluating multimodal information deletion. Next, we present a comprehensive unlearning evaluation involving an attack-and-defense framework consisting of four white box and three blackbox attacks against six unlearning defense objectives. We also design a whitebox attack based on the interpretability of hidden states in LLMs motivated by past work. Our experimental results demonstrate that multimodal extraction attacks (with an attack success rate of 45.5%) are more successful than either image-only (32%) or text-only attacks (39%). The best overall defense mechanism, which removes answer information from internal model hidden states, reduces the success rate of multimodal attack to 15.7%. Furthermore, our findings suggest that larger models exhibit greater resilience to attacks, implying that model scaling could be a valuable strategy for enhancing robustness and developing safer models. UnLOK-VQA thus facilitates a comprehensive evaluation of unlearning in MLLMs and serves as a challenging benchmark for future research in unlearning.
Introduction: The Challenge of Multimodal Memorization
As Large Language Models (LLMs) evolve into Multimodal LLMs (MLLMs) that process both text and images, they inadvertently "memorize" massive amounts of data from their training sets. This often includes sensitive information: private addresses, personal details, or potentially harmful content.
While we have methods to make text-only models "forget" (a process called unlearning), doing so in a multimodal context is significantly more complex. An adversary might not just ask a text question; they might provide a specific image that triggers the model's internal memory. Until now, there hasn't been a rigorous way to measure if an MLLM has truly deleted a fact or if it's just "hiding" it behind a polite refusal. The authors address this gap by creating a specialized dataset and an "attack-defense" evaluation framework.
Methodology: Attack-Defense Framework
The researchers treat unlearning as a model editing problem, using LoRA (Low-Rank Adaptation) to surgically modify model weights to erase specific facts. To evaluate these defenses, they introduce a robust Attack-Defense Framework:
- Whitebox Attacks: These assume access to the model's internal "hidden states," using techniques like the Logit Lens to see if "deleted" information still exists in intermediate layers, even if the final output is a refusal.
- Blackbox Attacks: These involve rephrasing questions or subtly altering images (adding noise or swapping objects) to trick the model into revealing the forgotten fact.
- Defense Objectives: Six strategies were tested, ranging from simple "Empty Response" (teaching the model to say "I don't know") to "Head Projection" (HP), which actively suppresses sensitive tokens within internal layers.
The UnLOK-VQA Benchmark
The core contribution is UnLOK-VQA (Unlearning Outside Knowledge Visual Question Answering), building upon the OK-VQA dataset. It contains 500 high-quality, manually verified samples.
Each sample includes the target fact to be deleted, along with:
- Rephrase Data: Variations of the image and question to test generalization (does the model still "know" the fact if the question is asked differently?).
- Neighborhood Data: Related but different facts used to test specificity (ensuring unrelated knowledge remains intact).
The generation process used an automated pipeline involving SDXL for image generation and LLaVA for descriptions, followed by rigorous human filtering to ensure over 90% consistency.
Key Results and Insights
Experimental results highlight several critical findings regarding the robustness of MLLM unlearning:
- Multimodal Advantage for Attackers: Multimodal attacks (using both tweaked images and questions) are much more successful (45.5%) than text-only (39%) or image-only (32%) attacks. Adversaries can "triangulate" deleted info across modalities.
- Knowledge Location: Editing the LLM backbone is more effective than editing the multimodal projector, suggesting that the core "knowledge" primarily resides in the language layers.
- Defense Efficacy: Head Projection (HP) was the most effective defense, reducing whitebox attack success from 30% to 3.6%. However, multimodal rephrase attacks remain a challenge, succeeding 15.7% of the time against HP.
- Scaling for Safety: Larger models (13B vs 7B parameters) showed greater resilience; once edited to forget something, it was significantly harder for an attacker to recover that information.
Conclusion
UnLOK-VQA provides a necessary benchmark for evaluating unlearning in MLLMs. The study demonstrates that while multimodal leakage is a significant risk, targeted internal state suppression and model scaling offer promising pathways toward developing safer, more privacy-respecting multimodal models.
Summary updated