Abstract
Generative models such as Large Language Models (LLMs) and Multimodal Large Language Models (MLLMs) trained on massive datasets can lead them to memorize and inadvertently reveal sensitive information, raising ethical and privacy concerns. While some prior works have explored this issue in the context of LLMs, it presents a unique challenge for MLLMs due to the entangled nature of knowledge across modalities, making comprehensive unlearning more difficult. To address this challenge, we propose Modality Aware Neuron Unlearning (MANU), a novel unlearning framework for MLLMs designed to selectively clip neurons based on their relative importance to the targeted forget data, curated for different modalities. Specifically, MANU consists of two stages: important neuron selection and selective pruning. The first stage identifies and collects the most influential neurons across modalities relative to the targeted forget knowledge, while the second stage is dedicated to pruning those selected neurons. MANU effectively isolates and removes the neurons that contribute most to the forget data within each modality, while preserving the integrity of retained knowledge. Our experiments conducted across various MLLM architectures illustrate that MANU can achieve a more balanced and comprehensive unlearning in each modality without largely affecting the overall model utility.
Introduction
As Multimodal Large Language Models (MLLMs) become increasingly integrated into daily applications, the risk of them leaking sensitive or copyrighted information grows. Machine Unlearning (MU) has emerged as a critical technique to remove specific knowledge from a trained model without the immense computational cost of retraining from scratch.
However, unlearning in MLLMs is significantly more complex than in text-only models. Knowledge in MLLMs is often "entangled" across visual and textual modalities. Traditional methods frequently suffer from imbalanced unlearning: a model might be successfully trained to forget a person's identity when presented with their image, yet still correctly identify them when prompted with a text-only query. This discrepancy suggests that standard gradient-based unlearning techniques fail to address the modality-specific pathways within the model's architecture.
The MANU Framework
To overcome the limitations of modality-blind unlearning, we introduce Modality-Aware Neuron Unlearning (MANU). Rather than applying broad gradient updates that can degrade general model performance, MANU adopts a surgical approach by identifying and pruning specific neurons responsible for the targeted knowledge.
1. Important Neuron Selection
The first stage involves profiling neuron activity to identify which neurons are most influential for the "forget set" relative to the "retain set." We utilize four distinct importance metrics to capture different facets of neuron behavior:
- Absolute Importance ($I_{abs}$): Captures the magnitude of activation shifts between modalities.
- Frequency Importance ($I_{freq}$): Measures how often a neuron is significantly active.
- Variance Importance ($I_{var}$): Identifies neurons with high information richness based on activation diversity.
- Root Mean Square Importance ($I_{rms}$): Highlights neurons with consistently strong signals while filtering out redundant, "always-on" neurons.
2. Selective Pruning
After scoring, the top $\alpha\%$ of neurons identified as critical to the forget set—but less vital for the retain set—are pruned. By setting these specific weights to zero, we effectively sever the pathways that store the sensitive information across both visual and textual modalities.
Experimental Evaluation
We evaluated MANU using the MLLMU-Bench, which includes 500 fictitious profiles as a forget set, alongside a retain set and a real celebrity set to monitor general knowledge preservation. Tests were conducted on state-of-the-art architectures including LLaVA-1.5 (7B and 13B) and Idefics2-8B.
Key Results
- Balanced Forgetting: MANU demonstrated superior consistency in forgetting across both image+text and pure text prompts. Unlike baselines like Negative Preference Optimization (NPO), MANU ensures that knowledge is removed from all entry points.
- Utility Preservation: MANU maintains high accuracy on the retain set. For instance, on LLaVA-7B with a 10% forget split, MANU achieved 44.89% accuracy on retained data, whereas aggressive methods like Gradient Ascent (GA) often led to catastrophic utility collapse.
- Scalability: The framework's effectiveness scales with model size, showing robust performance even as parameters increased to 13B.
Conclusion
MANU represents a shift from "blunt force" gradient updates to a surgical, modality-aware pruning strategy for MLLM unlearning. By targeting the specific neurons where multimodal knowledge is entangled, MANU achieves a more thorough and balanced removal of sensitive data while safeguarding the model's general reasoning capabilities. Future work will focus on automating the selection of optimal pruning ratios and testing the method's robustness against adversarial recovery attacks.
Summary updated