EVLM: Self-Reflective Multimodal Reasoning for Cross-Dimensional Visual Editing

Umar Khalid, Hasan Iqbal, Azib Farooq, Nazanin Rahnavard, Jing Hua, Chen Chen · OpenReview

Abstract

Editing complex visual content based on ambiguous instructions remains a challenging problem in vision-language modeling. While existing models can contextualize content, they often struggle to grasp the underlying intent within a reference image or scene, leading to misaligned edits. We introduce the Editing Vision-Language Model (EVLM), a system designed to interpret such instructions in conjunction with reference visuals, producing precise and context-aware editing prompts. Leveraging Chain-of-Thought (CoT) reasoning and KL-Divergence Target Optimization (KTO) alignment technique, EVLM captures subjective editing preferences without requiring binary labels. Fine-tuned on a dataset of 30,000 CoT examples, with rationale paths rated by human evaluators, EVLM demonstrates substantial improvements in alignment with human intentions. Experiments across image, video, 3D, and 4D editing tasks show that EVLM generates coherent, high-quality instructions, supporting a scalable framework for complex vision-language applications.

Introduction

Visual editing models have revolutionized how we interact with digital media, yet they remain brittle when faced with ambiguous or complex multimodal instructions. A simple prompt like "Give him an Einstein face" accompanied by a reference image of a mustache requires a model to synthesize disparate pieces of information: the target subject, the concept of Albert Einstein, and specific visual cues. Current models often lack the "reflective reasoning" necessary to bridge these gaps, leading to misaligned or nonsensical edits.

Multimodal reference inputs including visual (mustache) and textual ("GREEN JACKET") cues.

Methodology

EVLM (Editing Vision-Language Model) addresses these challenges by incorporating a structured reasoning process. Built on the Qwen2-VL-7B architecture, it utilizes a Chain-of-Thought (CoT) framework consisting of four stages: initial thinking, draft instruction generation, self-reflection/critique, and final output. This allows the model to catch and correct its own errors before producing a final instruction and spatial mask for downstream editors like IP2P or Tune-A-Video.

To align this reasoning with human intent, the authors developed RKTO (Reflection-Aware KL-Divergence Target Optimization). Unlike traditional alignment methods that focus solely on the final answer, RKTO optimizes for both the effectiveness of the instruction and the quality of the internal reflection. It uses a reward function that integrates text embedding similarity and Intersection-over-Union (IoU) scores for spatial accuracy, ensuring the model's internal logic aligns with human preferences.

Dataset and Training

The model was trained on REFLECTIVE-EDIT, a novel dataset of 30,000 multimodal examples. Each entry includes reasoning traces generated by GPT-4o and verified by human annotators. The dataset spans 2D images, video, and 3D/4D scenes, ensuring the model's reasoning capabilities generalize across different media dimensions.

Results and Discussion

EVLM-RKTO demonstrates significant improvements over existing benchmarks, achieving an average accuracy of 95.1% on the REFLECTIVE-EDIT benchmark. This performance significantly surpasses much larger models, such as Llama-3.2-90B (63.5%). Crucially, the model maintains high performance on general VLM benchmarks, scoring 59.1 on MathVista, which proves that specialized editing training does not degrade general reasoning abilities.

The final target output demonstrating successful cross-modal reasoning and precise editing.

Conclusion

EVLM introduces a scalable framework for complex vision-language tasks by treating editing as a reasoning problem. By "thinking twice" through self-reflection and utilizing nuanced alignment techniques like RKTO, EVLM provides a robust solution for interpreting subjective human intent in visual media. Future work will focus on expanding the modality range to include audio and improving the computational efficiency of the reflective process.

Summary updated

BibTeX
@misc{khalid2024evlm,
  author = {Umar Khalid and Hasan Iqbal and Azib Farooq and Nazanin Rahnavard and Jing Hua and Chen Chen},
  title = {{EVLM: Self-Reflective Multimodal Reasoning for Cross-Dimensional Visual Editing}},
  year = {2024},
  eprint = {2412.10566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.10566},
}
Figure