Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learning

Jiajie Su, Haoyuan Wang, Xiaohua Feng, Yunshan Ma, Xiaobo Xia, Yuyuan Li, Xiaolin Zheng, Jianmao Xiao, Chaochao ChenarXiv 2026

TL;DR

ODEdit reformulates knowledge editing in Multimodal Large Language Models (MLLMs) as an out-of-distribution (OOD) generalization problem. By introducing a tripartite risk objective and stabilizing reasoning paths via Invariant Risk Minimization with a Total Variation penalty, it prevents models from overfitting to superficial prompt features. This approach delivers a robust balance between editing accuracy, generalization to rephrased prompts, and preservation of unrelated knowledge.

What Problem Does This Paper Address?

As Multimodal Large Language Models (MLLMs) integrate into real-world applications, efficiently correcting outdated or incorrect facts becomes crucial. Knowledge editing aims to update specific facts without expensive full-model retraining. However, existing methods typically rely on a rigid, direct mapping from parameter modifications to output changes.

In MLLMs, reasoning is a cascaded process: visual perception feeds into cross-modal alignment, which then feeds into a shared semantic space. Because of this complex pipeline, localized parameter edits can trigger unpredictable, non-local semantic side effects. Consequently, current editing methods suffer from two main flaws:

  1. Causal Underfitting (Poor Generality): The model fails to generalize the edited fact to rephrased text or alternative visual contexts.
  2. Causal Overfitting (Poor Locality): The model mistakenly alters unrelated knowledge that happens to share local features with the edit prompt.

The core challenge lies in distinguishing between a semantic-shift (same fact, different phrasing/modality) and a factual-shift (an entirely different, out-of-scope fact), as illustrated in Figure 1.

Figure 1. The motivation of ODEdit. We illustrate how semantic- shift and factual-shift emerge in this editing OOD problem. We give out the formal definition of two shifts in Appendix C.

Methods

The authors introduce ODEdit, a plug-and-play framework grounded in invariant learning. It optimizes a tripartite OOD risk objective designed to handle three distinct data distributions simultaneously:

  1. Reliability Risk ($R_{rel}$): Minimizes negative log-likelihood to ensure the model accurately assimilates the new fact on the target in-distribution instance.
  2. Locality Risk ($R_{loc}$): Uses a Kullback-Leibler (KL) divergence penalty to keep the model's pre- and post-edit output distributions identical for unrelated, out-of-distribution concepts.
  3. Generality Risk ($R_{gen}$): Employs Maximum Mean Discrepancy (MMD) with a multi-scale Gaussian kernel to align the latent representations of edited concepts with their semantic variants (rephrases).

Edit Trajectory Invariant Learning (ETIL)

To stabilize these edits across diverse cross-modal environments, the authors map the OOD objective to an Invariant Risk Minimization (IRM) problem. They treat environment-driven prompt variations as "noise" corrupting the ideal reasoning path.

By integrating a Total Variation (TV) penalty into the objective (creating an IRM-TV formulation), ODEdit denoises the risk profile. This forces the model to capture reusable causal structures rather than superficial correlations. The optimization is solved via an adversarial primal-dual strategy, alternating updates between the model parameters and a dual variable that controls the TV penalty.

Datasets

The framework was evaluated using the popular MMEdit benchmark across two primary sub-tasks:

  • Editing VQA (E-VQA)
  • Editing Image Captioning (E-IC)

The training and testing sets were partitioned into in-distribution ($D_{in}$), semantic-neighboring ($D_{se}$), and out-of-distribution ($D_{out}$) splits. The authors validated ODEdit across three prominent MLLM backbones: BLIP2-OPT (2.7B), MiniGPT-4 (7B), and LLaVA.

Key Insights and Ideas

  • Editing as Denoising: Framing prompt-based distribution shifts as environmental noise allows the use of signal-processing techniques like Total Variation. This mathematically enforces a stable, "piecewise-constant" risk profile across diverse contexts.
  • Distribution-Level vs. Instance-Level Alignment: The authors found that aligning rephrased prompts at the distribution level using MMD is far more effective than instance-level contrastive learning methods.
  • Less is More with Rephrasings: Counterintuitively, aligning the model with a single high-quality rephrase prompt yielded better generalization than using multiple rephrases. Multiple prompts introduced noisy variations that inadvertently created spurious correlations.
  • Resolving the Locality-Generality Trade-off: Standard editing methods usually sacrifice locality to gain generality, or vice versa. ODEdit demonstrates that finding invariant causal trajectories naturally resolves this tension by accurately defining the generalization boundary.

Key Results

ODEdit was integrated into several baseline editing models, including parameter-adjusting (MEND) and model-extending (WISE, T-Patcher, UniKE) approaches.

One-Step Editing

ODEdit consistently improved performance across Reliability, Generality, Text Locality, and Image Locality. For example, adding ODEdit to the WISE baseline on MiniGPT-4 (E-VQA task) improved Image Locality (M-Locality) by 19.2%. On the E-IC task with BLIP2-OPT, T-Patcher+ODEdit boosted Text Locality by 17.2%.

Long-Term Sequential Editing

In sequential editing scenarios (evaluating after 5 and 10 consecutive edits), standard unimodal editors like WISE collapsed completely, with text locality dropping near zero. While specialized multimodal editors like UniKE fared better, they still suffered from performance decay. UniKE+ODEdit successfully mitigated this interference, maintaining high stability over long edit chains.

Latent Space Visualization

t-SNE analysis (Figure 3) revealed that while standard editing methods cause a severe distribution shift between original (SRC) and rephrased (GEN) prompts, the addition of ODEdit maintains tight, robust alignment throughout the editing process.

Limitations and Future Work

The primary trade-off of ODEdit is computational overhead. Because it introduces a supplementary network to process parameters from the knowledge-editing layer, memory usage increases during the editing phase (e.g., WISE memory consumption on BLIP2-OPT rose from 28.47GB to 47.53GB). However, the authors note that it does not significantly increase time cost per step.

For future work, the authors suggest exploring more advanced regularization functions to further refine the model's grasp of invariant trajectories and better suppress complex, spurious cross-modal factors.

Summary updated

BibTeX
@misc{su2026generalizable,
  author = {Jiajie Su and Haoyuan Wang and Xiaohua Feng and Yunshan Ma and Xiaobo Xia and Yuyuan Li and Xiaolin Zheng and Jianmao Xiao and Chaochao Chen},
  title = {{Generalizable Multimodal Large Language Model Editing via Invariant Trajectory Learning}},
  year = {2026},
  eprint = {2601.19700},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.19700},
}
Figure