Large Multi-modal Models (LMMs), such as MiniGPT-4 and BLIP-2, are typically static snapshots of knowledge. As real-world facts evolve, these models quickly become outdated. While traditional fine-tuning is computationally prohibitive for frequent updates, "model editing" has emerged as a lightweight alternative. However, existing editing techniques struggle with the Generality-Locality Trade-off.
The Generality-Locality Challenge
Effective model editing requires balancing two competing goals:
- Generality: An edit (e.g., "HP is now Lenovo") should apply across various visual contexts and linguistic phrasings of the same fact.
- Locality: An edit should be precise, ensuring the model does not erroneously apply the new knowledge to unrelated data (e.g., calling a Dell laptop "Lenovo") or produce hallucinations when presented with out-of-scope inputs.
Previous methods often utilized a fixed "influence scope," which led to either over-generalization (causing hallucinations) or under-generalization (failing to update the fact across contexts).
Methodology: BalancEdit
BalancEdit is a "plug-and-play" memory-augmented module that wraps around a specific layer of a pre-trained LMM. It utilizes a localized codebook to store weight transformations for each edit. The core innovation is the Dynamic Influence Radius ($\epsilon$).
To determine the optimal influence scope for a new fact, BalancEdit automatically generates:
- Positive Samples: Rephrased versions of the original query to ensure the edit generalizes across different ways of asking.
- Negative Samples: A pure black image serves as a universal proxy for "out-of-scope" data.
By measuring the distance between these samples in the model's latent space, BalancEdit calculates a custom radius for every edit. If a new query falls within this radius, the edited transformation is applied; otherwise, the model retains its original behavior.
Experimental Results
The researchers introduced OKEDIT, a rigorous new benchmark based on OKVQA, featuring 5,000 samples across 20 categories. BalancEdit demonstrated significant improvements over state-of-the-art methods like MEND and GRACE.
Key Performance Metrics:
- Reliability: BalancEdit achieved 100% success in updating target facts.
- Superior Balance: On the OKEDIT dataset, BalancEdit reached a Harmonic Mean (HM) of 71.85, far exceeding MEND's 51.70. The HM metric specifically measures the balance between generality and locality.
- Efficiency: The module requires zero pre-training and completes an edit in approximately 8 seconds—3x faster than other memory-based approaches.
- Sequential Robustness: The model maintains high accuracy even after 50 consecutive updates, proving its viability for continuous real-world application.
Conclusion and Future Work
BalancEdit successfully addresses the rigid influence scope problem by making the editing boundary dynamic and data-dependent. While highly effective, future research is needed to optimize inference latency for massive codebooks and to improve the model's ability to handle "multi-hop" reasoning, where an edit to one fact should logically imply changes to related downstream knowledge.
Summary updated