Meta-CoT: Enhancing Granularity and Generalization in Image Editing

Shiyi Zhang, Yiji Cheng, Tiankai Hang, Zijin Yin, Runze He, Yu Xu, Wenxun Dai, Yunlong Lin, Chunyu Wang, Qinglin Lu, Yansong TangarXiv 2026

TL;DR

Meta-CoT introduces a hierarchical, two-level decomposition framework for Chain-of-Thought (CoT) reasoning in image editing, breaking complex instructions down into fundamental "meta-tasks" and target-specific actions. By combining this structured reasoning with a novel CoT-Editing Consistency Reward optimized via reinforcement learning, the model achieves a 15.8% performance boost and demonstrates remarkable generalization to unseen editing tasks.

What Problem Does This Paper Address?

While Multimodal Large Language Models (MLLMs) have advanced significantly, applying Chain-of-Thought (CoT) reasoning to image editing still faces a major hurdle: balancing fine-grained understanding with generalizability. Current editing CoT methods are either too generic (failing to capture precise spatial and semantic details) or too specialized (e.g., heavily reliant on bounding boxes, which fails for abstract tasks like style transfer or camera motion).

Furthermore, there is often a frustrating misalignment between a model's textual reasoning and its visual execution—a model might write out a perfect editing plan in text but fail to follow it when generating the final image. The authors set out to answer a core question: What form of CoT and training strategy can simultaneously enhance both understanding granularity and task generalization?

Methods

The authors propose Meta-CoT, which operates on a two-level decomposition paradigm:

  1. Triplet Decomposition (Level 1): Any editing request is formalized as a triplet: (Task, Target, Required Understanding Ability). As illustrated in Figure 2, the model processes this in three steps:
  2. Task Summary: Inductively inferring the task type from the user prompt.
  3. Task Thinking: Generating a task-specific reasoning process (e.g., analyzing style attributes or predicting object appearance changes).
  4. Target Editing Mode Traversal: Explicitly walking through every object/region in the image to determine if and how it should be modified.
Overview of Triplet Decomposition step-by-step reasoning
  1. Meta-task Decomposition (Level 2): To ensure the model can generalize to completely unseen instructions, the authors break complex tasks down into five primitive, universal meta-tasks: Addition, Deletion, Replacement, Camera Motion, and Position Change. Complex edits are simply represented as combinations of these five foundational bases.
  2. CoT-Editing Consistency (CEC) Reward: To fix the mismatch between text plans and visual outputs, the authors introduce a consistency metric. A vision-language model (Qwen2.5-VL) evaluates the alignment between the generated CoT text and the final edited image, scoring it from 0 to 10. This score is used as a reward signal to fine-tune the model using Flow-GRPO (Group Relative Policy Optimization) during a dedicated reinforcement learning stage.

Datasets

  • Training Data: The authors curated a massive 1.5M image-instruction-CoT dataset using Gemini-2.5-Flash for text generation and state-of-the-art diffusion models for editing. To bolster the "Required Understanding Ability," they mixed in 100k visual understanding samples from LLaVA-OV and Mammoth-VL. For the RL stage, an additional 20k editing dataset was utilized.
  • Evaluation Benchmarks: To thoroughly test their approach, they constructed a comprehensive 21-task Editing Benchmark by combining existing suites (GEdit-Bench, RiseBench, ComplexEdit) and introducing 5 new task categories to fill previous gaps. They also validated real-world performance on the standard ImgEdit dataset (734 cases).

Key Insights and Ideas

  • Editing as a Vector Space: The most elegant conceptual leap in the paper is treating the editing task space like a vector space. By defining five primitive meta-tasks as "basis vectors," the model can compose solutions for complex, unseen tasks without needing explicit training data for every unique scenario.
  • The Necessity of Joint Training: To successfully execute the target traversal step, the model cannot just practice editing; it must maintain strong core vision-language capabilities. The ablation studies proved that mixing pure understanding data (like captioning and spatial reasoning) directly prevents the degradation of editing quality.
  • RL for Cognitive Alignment: Simply supervising text generation isn't enough for multimodal tasks. Using GRPO with the CEC Reward forces the generative module to actually pay attention to its own chain of thought, particularly during early denoising timesteps where semantic structure is established.

Key Results

  • Substantial Performance Gains: On the 21-task benchmark, Meta-CoT combined with GRPO achieved a 15.8% improvement over the Train-Edit-Only baseline. On the real-world ImgEdit dataset, it achieved an 11.7% gain over the baseline.
  • Strong Generalization: The meta-task training strategy proved highly effective. As shown in Figure 1, a model trained only on the 5 core meta-tasks ("Meta-task SFT") achieved performance highly comparable to a model trained on the full suite of tasks ("Full-task SFT"), validating their vector-space hypothesis.
Overall performance scores on the 21-tasks benchmark and ImgEdit
  • Qualitative Excellence: Qualitative evaluations (Figure 6) demonstrated that Meta-CoT excels at maintaining spatial and semantic consistency, handling complex multi-step instructions, and executing logical reasoning edits far better than baseline models like Bagel.

Limitations and Future Work

The authors candidly point out a key limitation: Text Editing. Meta-CoT actually caused a performance drop when tasks required modifying text rendered inside an image. They discover that the extensive textual reasoning chain tends to interfere with the model's ability to precisely identify and manipulate exact text strings. The authors note that developing specialized mechanisms to preserve accurate text perception during long-form reasoning remains an important open direction for future research.

Summary updated

BibTeX
@misc{zhang2026meta,
  author = {Shiyi Zhang and Yiji Cheng and Tiankai Hang and Zijin Yin and Runze He and Yu Xu and Wenxun Dai and Yunlong Lin and Chunyu Wang and Qinglin Lu and Yansong Tang},
  title = {{Meta-CoT: Enhancing Granularity and Generalization in Image Editing}},
  year = {2026},
  eprint = {2604.24625},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.24625},
}

Loading related content...

Figure