Visual-Oriented Fine-Grained Knowledge Editing for MultiModal Large Language Models

Zhen Zeng, Leijiang Gu, Xun Yang, Zhangling Duan, Zenglin Shi, Meng Wang

TL;DR

This paper introduces a new challenge: fine-grained visual knowledge editing in multimodal large language models (MLLMs), where edits must precisely target specific visual elements within an image without affecting unrelated content. To address this, they propose MSCKE, a framework featuring a multimodal scope classifier that leverages both visual and textual cues to ensure edits are applied only to relevant information, significantly outperforming existing methods.

What Problem Does This Paper Address?

Traditional knowledge editing for Large Language Models (LLMs) has focused on correcting textual information. However, with the rise of Multimodal Large Language Models (MLLMs) that integrate vision and language, errors can arise from visual components or their interactions. Existing multimodal editing methods often treat the entire image as a single entity and rely primarily on textual information, failing to address the nuanced task of editing specific visual knowledge within complex scenes containing multiple interacting entities. This paper tackles this gap by proposing a visual-oriented, fine-grained multimodal knowledge editing task, which requires precise localization and modification of knowledge tied to specific visual content.

Methods

The core of the proposed solution is the Multimodal Scope Classifier-based Knowledge Editor (MSCKE). MSCKE builds upon the parameter-preserving editing method SERAC but introduces a novel multimodal scope classifier. This classifier is designed to integrate both visual and textual information from an input query and stored editing samples.

Here's how it works:

  • Multimodal Edit Memory: Stores editing samples (image, text prompt, expected output) for fine-grained knowledge.
  • Base Model: A pre-trained MLLM with frozen parameters, responsible for handling unrelated inputs.
  • Counterfactual Model: A trainable model that handles inputs related to editing samples, incorporating the updated knowledge.
  • Multimodal Scope Classifier: This is the key innovation. It takes an input query (image and text) and compares it against stored editing samples. It uses encoders (like CLIP's ViT) to extract features from both modalities, fuses them, and then calculates a similarity score. This score determines if the input is "in-scope" (relevant to the edit) or "out-of-scope."
    • Inputs with a similarity score below a threshold (0.5) are passed to the base model.
  • Inputs with a similarity score above the threshold are passed to the counterfactual model.

This approach ensures that edits are applied precisely to relevant visual and textual contexts, preserving the model's general knowledge.

Datasets

The paper introduces the FGVEdit benchmark specifically for evaluating visual-oriented, fine-grained multimodal knowledge editing. This benchmark is constructed using the VQAv2 dataset and involves a multi-stage process using GPT-40-mini to identify in-scope and out-of-scope questions related to specific visual entities within an image. They also evaluate on the MMEdit benchmark.

Key Insights and Ideas

  • The limitations of text-only editing: The paper strongly emphasizes that simply editing text is insufficient when visual information is central to the knowledge being corrected. Fine-grained visual understanding is crucial.
  • The power of multimodal scope classification: By integrating visual and textual cues, the scope classifier can accurately distinguish between relevant and irrelevant inputs for editing, a capability lacking in text-only classifiers. This is vital for preventing unintended side effects.
  • Specificity as a critical metric: The introduction of the "Specificity" metric highlights the need to evaluate how well editing methods isolate changes to the target knowledge without affecting unrelated facts, especially in complex visual scenes.
  • Transferability of the scope classifier: The multimodal scope classifier demonstrates strong transferability, meaning it can be effectively used with different MLLMs and editing methods without requiring retraining, simplifying deployment.

Key Results

  • Specificity Improvement: MSCKE significantly outperforms baselines like SERAC and IKE on the Specificity metric. For example, on BLIP-2 OPT, Specificity increased from 31.92% to 61.60%. MSCKE-MEND further improved this to 68.38%.
  • Reliability: MSCKE and MSCKE-MEND show consistent improvements in reliability, indicating they effectively update knowledge without compromising accuracy.
  • Locality: MSCKE achieves a perfect score of 100% for Locality, demonstrating its ability to preserve unrelated knowledge after editing.
  • Generality: MSCKE performs well even on text-only tasks, showcasing its versatility.
  • Scope Classification: MSCKE's multimodal scope classifier significantly outperforms SERAC's text-only classifier on text-image editing tasks, correctly classifying in-scope and out-of-scope inputs.

Limitations and Future Work

  • Dataset Complexity: While the FGVEdit dataset is designed to be challenging, the authors acknowledge that retaining specificity data with both hard in-visual-scope and hard out-of-visual-scope categories was difficult, leading to some reliance on non-hard data.
  • Computational Cost: While parameter-preserving methods are generally more efficient than fine-tuning, the addition of a multimodal scope classifier and counterfactual model still incurs computational overhead.
  • Future Work: The authors hope their work inspires further research into fine-grained multimodal knowledge editing, suggesting that MSCKE is a promising framework for advancing this field. The transferability of the multimodal scope classifier also opens avenues for its application in other multimodal editing tasks.

Summary updated

BibTeX
@inproceedings{zeng2025visual,
  author = {Zhen Zeng and Leijiang Gu and Xun Yang and Zhangling Duan and Zenglin Shi and Meng Wang},
  title = {{Visual-Oriented Fine-Grained Knowledge Editing for MultiModal Large Language Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure