Introduction
Large Language Models (LLMs) are increasingly integrated with visual encoders to form Vision-Language Models (VLLMs). However, these models often suffer from "static" knowledge, where factual errors or outdated information cannot be easily corrected without expensive retraining. While text-based model editing techniques like ROME or MEMIT have seen success, they often struggle with the multi-modal nature of VLLMs, leading to poor generalization across visual inputs or "collateral damage" to unrelated knowledge—a challenge known as the locality problem.
Attribution Analysis: Locating Knowledge Flow
To address these challenges, the researchers first conducted a two-step attribution analysis to understand how visual information influences factual predictions within the LLM backbone.
The analysis revealed two key insights:
- Module Output Attribution: Mid-to-late layers (e.g., around layer 19 in a 32-layer model) contribute significantly more to factual output than shallow layers. Shallow layers tend to aggregate prompt meaning, while deeper layers are responsible for querying visual features.
- Visual Representation Attribution: By using noise perturbation on image embeddings, the study identified that the model primarily attends to specific visual regions mentioned in the text prompt during these high-contribution layers. This "Late Bloomer" effect suggests that visual knowledge is processed surgically rather than holistically throughout the stack.
The VisEdit Framework
Building on these insights, the researchers developed VisEdit, a framework designed to correct VLLM knowledge by modifying intermediate visual representations at precisely identified locations.
VisEdit consists of three core components:
- Visual Edit ADapter (VEAD): A small, trainable cross-attention module inserted at a high-contribution layer to "infuse" corrected knowledge into the visual features.
- Influence Mapper (IM): A gating mechanism that identifies image regions relevant to the edit. This ensures the editor only modifies the specific "subject" of the edit while leaving the rest of the image representation untouched.
- Balanced Training: The VLLM backbone remains frozen. Only VEAD and IM are trained using a loss function that balances Reliability (fixing the error), Generality (handling rephrased prompts), and Locality (preserving unrelated facts).
Experimental Evaluation and Results
VisEdit was evaluated using three VLLM backbones—BLIP2-OPT (2.7B), LLaVA-V1.5 (7B), and MiniGPT-4 (7B)—across two primary benchmarks: E-VQA (Editing Visual Question Answering) and E-IC (Editing Image Captioning).
VisEdit achieved state-of-the-art performance, significantly outperforming baselines such as MEND, LTE, and standard fine-tuning. On the E-VQA dataset with BLIP2, VisEdit reached an average score of 97.53%, compared to 94.13% for the best baseline (LTE). Notably, VisEdit maintained near-perfect locality scores, demonstrating its ability to correct specific facts without degrading unrelated model knowledge. The study also confirmed that layer selection is critical; placing the adapter at attribution-selected layers yielded superior results compared to early or late-stage placement.
Conclusion
VisEdit demonstrates that effective VLLM editing requires treating visual representations as dynamic knowledge sources that can be surgically updated. While highly effective for current architectures, future work will explore scaling this approach for mass editing of thousands of facts and adapting it for Modal Deep Fusion architectures.
Summary updated