Introduction
Large Language Models (LLMs) are known to inadvertently memorize sensitive or private information from their training data. While safety alignment techniques like Reinforcement Learning from Human Feedback (RLHF) can discourage models from outputting this data, the underlying knowledge often remains embedded in the model's weights. This vulnerability is exacerbated in Multimodal Large Language Models (MLLMs), where the combination of visual and textual inputs provides a significantly larger attack surface for extracting hidden information.
To address this, researchers have proposed "machine unlearning"—the targeted deletion of specific facts from a model's weights. However, multimodal unlearning is still in its infancy. This paper introduces a rigorous evaluation framework and a new benchmark, UnLOK-VQA, to test whether an MLLM can truly forget a visual-textual fact without compromising its general capabilities.
The UnLOK-VQA Benchmark
Evaluating unlearning requires more than just checking if a model fails to answer a specific question. A robust evaluation must ensure that the unlearning generalizes to different ways of asking the same question (Rephrase Data) and that it is specific enough not to destroy related but different knowledge (Neighborhood Data).
The authors developed UnLOK-VQA (Unlearning Outside Knowledge VQA) by extending the existing OK-VQA dataset. It consists of 500 high-quality, manually filtered multimodal samples. For each target fact, the benchmark includes:
- Rephrase Data: Variations in images (e.g., adding noise, using generative models like SDXL) and text (e.g., paraphrasing, jailbreak prompts) that point to the same answer.
- Neighborhood Data: Similar images or questions that require a different answer, ensuring the model hasn't simply become "blind" to a broad category of information.
Attack-and-Defense Framework
The study employs a comprehensive security-centric framework to evaluate unlearning efficacy:
1. Defense Mechanisms (Unlearning)
The goal is to edit the model's weights (via LoRA fine-tuning) to erase a specific fact. The researchers tested six objectives, including:
- Empty Response: Training the model to say "I don't know."
- Error Injection: Forcing the model to provide an incorrect answer.
- Head Projection & Max-Entropy: Mathematically hiding the answer within the model's internal hidden states to maximize uncertainty.
2. Extraction Attacks
To test if the information is truly gone, the authors deployed both blackbox and whitebox attacks:
- Blackbox Attacks: Querying the model with adversarial rephrased questions or altered images.
- Whitebox Attacks: Probing internal layers using techniques like Logit Lens and a novel method called Probability Delta$^2$ (PD$^2$), which analyzes second-order differences in token probabilities across layers to detect traces of deleted information.
Key Insights and Results
The evaluation revealed several critical findings regarding the nature of knowledge in MLLMs:
- Multimodal Strength: Adversaries are much more successful when combining adversarial images and text. Multimodal attacks achieved a 45.5% success rate, significantly higher than text-only (39%) or image-only (32%) attempts.
- Strategic Editing: Editing the internal layers of the LLM component is far more effective for unlearning than editing the multimodal projector. This indicates that deep semantic knowledge resides late in the processing pipeline. Specifically, editing LLM MLP layers reduced whitebox attack success to 0.036, compared to 0.205 when editing the projector.
- Uncertainty as a Shield: Defenses that maximize internal uncertainty (like Head Projection) are superior to those that simply provide wrong answers. Head Projection reduced whitebox attack success from ~30% to just 3.6%.
- The Benefit of Scale: Larger models (13B vs. 7B parameters) proved more robust after unlearning. Their increased capacity allows for more precise weight adjustments, leading to cleaner erasure with less collateral damage.
Conclusion
Unlearning in multimodal models is a complex challenge, as information can be retrieved through various cross-modal pathways. While multimodal extraction attacks are potent, this research demonstrates that sophisticated internal model-editing defenses—particularly those focused on maximizing uncertainty in the LLM's core layers—can significantly improve safety. The UnLOK-VQA benchmark provides a vital tool for the community to continue developing robust, privacy-preserving multimodal systems.
Summary updated