Lifelong Knowledge Editing for Vision Language Models with Low-Rank Mixture-of-Experts

Qizhou Chen, Chengyu Wang, Dakan Wang, Taolin Zhang, Wangyue Li, Xiaofeng He

Vision-Language Models (VLMs) such as LLaVA and BLIP-2 have demonstrated remarkable capabilities in multimodal understanding. However, their internal knowledge base is static and prone to obsolescence or hallucinations. Updating these models through traditional retraining is computationally prohibitive. While "model editing" has emerged as a solution for text-based models, VLMs introduce unique challenges: the inherent noise of visual data and the requirement for "lifelong" editing, where thousands of updates must be applied sequentially without degrading the model's original performance.

Overview of the lifelong knowledge editing process, showing sequential edits and evaluation across generality and locality domains.

The LiveEdit Framework

To address these challenges, we introduce LiveEdit, a framework designed for the continuous, interference-free editing of VLMs. LiveEdit treats every new piece of knowledge as a specialized "mini-task" managed by an independent, low-rank expert. This approach ensures that new information is integrated without overwriting the model's foundational weights.

Dynamic Expert Generation

Instead of modifying the backbone model, LiveEdit employs an Expert Generator. For each edit (e.g., correcting a visual fact about a specific object), the generator produces a pair of low-rank matrices ($U$ and $V$). These matrices function as a lightweight "patch"—similar to LoRA—that adjusts the model's internal representations for that specific context. These experts are then stored in an external repository, allowing the system to scale to thousands of edits with minimal parameter overhead.

Two-Stage Visual-Textual Routing

At inference time, the model must determine which stored experts are relevant to a given query. LiveEdit utilizes a novel two-stage routing system to ensure precision:

  1. Hard Filtering (Visual): The system compares the input image's features against the stored experts. A trainable "Vision Sentinel" acts as a threshold; if the input image is more similar to the sentinel than to a stored edit, that edit is discarded as visually irrelevant. This prevents "false positive" edits from affecting unrelated queries.
  2. Soft Routing (Textual): For the remaining candidates, the system calculates the semantic similarity between the user's text prompt and the original edit prompt. The outputs of the most relevant experts are then fused using a weighted average to produce the final response.
The LiveEdit architecture, detailing the dynamic generation of experts and the two-stage routing flow (Hard Visual and Soft Textual).

Experimental Evaluation

LiveEdit was evaluated using three primary benchmarks: E-VQA (Editing Visual Question Answering), E-IC (Editing Image Captioning), and the VLKEB (Vision-Language Knowledge Editing Benchmark). Testing across backbones like LLaVA-V1.5 (7B) and BLIP2-OPT (2.7B) revealed several key insights:

  • Unprecedented Scaling: In a lifelong scenario involving 1,000 sequential edits, LiveEdit maintained an average accuracy of ~92.76%. In comparison, standard fine-tuning methods saw performance plumet to ~58%, while other state-of-the-art editors like MEND failed completely.
  • Perfect Locality: LiveEdit achieved nearly 100% Locality, meaning it has zero impact on the model's performance regarding unedited, unrelated knowledge.
  • Optimal Placement: Attribution analysis indicated that inserting experts into the middle-to-late layers of the LLM (e.g., layer 21 of 32 in LLaVA) is most effective, as this is where the model transitions from understanding input to generating output.

Conclusion and Future Directions

LiveEdit provides a robust, scalable solution for maintaining the factual accuracy of VLMs over time. By decoupling edits into a library of low-rank experts and employing a dual-stage router, it avoids the catastrophic forgetting and interference typical of previous methods. Future work will focus on optimizing the linear growth of the expert repository and exploring how this framework handles explicitly contradictory edits or complex multi-step reasoning tasks.

Summary updated

BibTeX
@inproceedings{chen2025lifelong,
  author = {Qizhou Chen and Chengyu Wang and Dakan Wang and Taolin Zhang and Wangyue Li and Xiaofeng He},
  title = {{Lifelong Knowledge Editing for Vision Language Models with Low-Rank Mixture-of-Experts}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00883},
}
Figure