Can We Edit Multimodal Large Language Models?

Siyuan Cheng, Bozhong Tian, Qingbin Liu, Xi Chen, Yongheng Wang, Huajun Chen, Ningyu Zhang

Introduction

Large Language Models (LLMs) have evolved into Multimodal Large Language Models (MLLMs) like BLIP-2 and MiniGPT-4, capable of processing both visual and textual information. However, these models are not infallible; they can internalize misinformation or become outdated. While "model editing"—the process of updating specific facts without full retraining—is a mature field for text-only models, it remains a nascent challenge for multimodal systems. This paper introduces MMEdit, the first comprehensive benchmark designed to evaluate how effectively we can correct knowledge within MLLMs.

The Multimodal Editing Challenge

An error in an MLLM is fundamentally more complex than in a text-only model. A failure to correctly identify an object (e.g., calling a street barrier a "ladder") could stem from the vision encoder, the language model, or the "bridge" (like a Q-former) connecting them. To address this, the researchers investigate whether it is more effective to edit the Language Module (the LLM core) or the Vision Module (the projection layers or Q-former).

Overview of the MLLM architecture and the distinction between Vision and Language editing.

Methodology and Benchmark

The authors evaluate several editing paradigms adapted for the multimodal context:

  • Meta-learning (MEND & KE): Employs an external editor network to predict necessary weight updates for a specific fact.
  • Memory-based (SERAC): Uses an external cache to store edits and a scope classifier to determine when to override the base model.
  • In-Context Editing (IKE): Provides the updated fact as a demonstration within the prompt, requiring no structural changes to the model.

These methods were tested on the MMEdit benchmark, which includes two primary tasks: Editing Visual Question Answering (E-VQA) and Editing Image Captioning (E-IC). To ensure robustness, the benchmark utilizes rephrased text generated by ChatGLM and reinterpreted images created via Stable Diffusion 2.1.

Key Insights: The Vision Bottleneck

The study reveals a significant performance gap between editing modalities. While modifying the LLM layers achieves near-perfect reliability (~99%), editing the vision components often results in significantly lower performance (~65%). The authors characterize the vision module as "upstream"; changes made here have a diluted impact by the time they reach the final output stage of the LLM.

Furthermore, editing the vision module is prone to unintended side effects. Locality—the ability to update one fact without breaking unrelated knowledge—suffers greatly when vision components are targeted. As shown in the experimental results, methods like MEND and KE maintain high locality when editing the LLM but see a sharp decline when applied to the vision area.

Comparison of M-Locality when editing the LLM versus the Vision module across different methods, highlighting the difficulty of localized vision edits.

Results and Generality

  • Reliability: Specialized editing methods like MEND and SERAC far outperform standard finetuning, which often leads to catastrophic forgetting of unrelated knowledge.
  • Generality: While models handle rephrased text well, they struggle with "Image Generality." Recognizing an edited fact when presented with a different, AI-generated version of the same object remains a major hurdle.
  • The Locality Trade-off: Memory-based methods like SERAC, while highly reliable, can be disastrous for multimodal locality. In some instances, a single edit caused the model's understanding of unrelated images to collapse to near 1%.

Conclusion and Future Work

The researchers conclude that "efficient vision editing" is the next major frontier in MLLM research. Current methods are effective at patching the language output but struggle to synchronize those changes with the underlying visual representations. Future work must focus on "co-editing" techniques that update both modalities simultaneously and developing more sophisticated scope classifiers to prevent the locality failures observed in current memory-based approaches.

Summary updated

BibTeX
@inproceedings{cheng2023can,
  author = {Siyuan Cheng and Bozhong Tian and Qingbin Liu and Xi Chen and Yongheng Wang and Huajun Chen and Ningyu Zhang},
  title = {{Can We Edit Multimodal Large Language Models?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.856},
}
Figure