File size: 507 Bytes
a2ffd07
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
DualEdit baseline for multimodal knowledge editing.

Adapted from: https://github.com/zhiyiscs/DualEdit
Paper: "DualEdit: Dual Editing for Knowledge Updating in Vision-Language Models" (COLM 2025)

This adaptation:
  - Reuses the cross-attention adapter architecture from the original DualEdit
  - Adapts training from per-sample edits to distributional (batched) editing
  - Integrates with our run_baselines.py / validate.py pipeline
"""

from .dualedit_main import apply_dualedit_to_multimodal_model