CoCoEdit: Content-Consistent Image Editing via Region Regularized Reinforcement Learning

Yuhui Wu, Chenxi Xie, Ruibin Li, Liyi Chen, Qiaosi Yi +1 more
2/15/2026
cs.CV

No official code found. Best implementation: langmanbusi/CoCoEdit (25 stars, MIT, last commit 2026-03-19).

Abstract

Image editing has achieved impressive results with the development of large-scale generative models. However, existing models mainly focus on the editing effects of intended objects and regions, often leading to unwanted changes in unintended regions. We present a post-training framework for Content-Consistent Editing (CoCoEdit) via region regularized reinforcement learning. We first augment existing editing datasets with refined instructions and masks, from which 40K diverse and high quality samples are curated as training set. We then introduce a pixel-level similarity reward to complement MLLM-based rewards, enabling models to ensure both editing quality and content consistency during the editing process. To overcome the spatial-agnostic nature of the rewards, we propose a region-based regularizer, aiming to preserve non-edited regions for high-reward samples while encouraging editing effects for low-reward samples. For evaluation, we annotate editing masks for GEdit-Bench and ImgEdit-Bench, introducing pixel-level similarity metrics to measure content consistency and editing quality. Applying CoCoEdit to Qwen-Image-Edit and FLUX-Kontext, we achieve not only competitive editing scores with state-of-the-art models, but also significantly better content consistency, measured by PSNR/SSIM metrics and human subjective ratings.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch implementation of paper “CoCoEdit: Content-Consistent Image Editing via Region Regularized Reinforcement Learning”

250PythonFeb 13, 20267 months agoMIT

Similar Papers

Cite this paper

@article{wu2026cocoedit,
  title  = {CoCoEdit: Content-Consistent Image Editing via Region Regularized Reinforcement Learning},
  author = {Yuhui Wu and Chenxi Xie and Ruibin Li and Liyi Chen and Qiaosi Yi and Lei Zhang},
  year   = {2026},
  eprint = {2602.14068},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.14068v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.14068.svg)](https://codeofpaper.com/paper/2602.14068)

Discussion