ByteEdit: Boost, Comply and Accelerate Generative Image Editing

Yuxi Ren, Jie Wu, Yanzuo Lu, Huafeng Kuang, Xin Xia, Xionghui Wang, Qianqian Wang, Yixing Zhu, Pan Xie, Shiyin Wang, Xuefeng Xiao, Yitong Wang, Min Zheng, Lean Fu

Abstract

Generative image editing tasks, such as inpainting and outpainting, have advanced significantly with the advent of diffusion models. However, existing tools often struggle with three primary challenges: visual inconsistencies at the boundaries of edited regions, failure to adhere to complex text instructions, and high computational latency. We present ByteEdit, a framework that addresses these hurdles by incorporating Reinforcement Learning from Human Feedback (RLHF) into the generative pipeline. By utilizing a multi-level Perceptual Feedback Learning (PeFL) mechanism and an adversarial progressive training strategy, ByteEdit achieves superior aesthetic quality and seamless blending while reducing inference requirements to just 8 steps. Experimental results demonstrate that ByteEdit significantly outperforms industry-leading products like Adobe Firefly and Canva in both human preference and quantitative benchmarks.

Introduction

While text-to-image generation has reached a high level of maturity, generative image editing remains a distinct and difficult challenge. Effective editing requires a precise balance of aesthetic appeal, strict adherence to user instructions, and perfect coherence with the original image's style, color, and texture. Current models frequently produce results with visible "seams" or artifacts where the new content meets the old, and they often fail to interpret nuanced prompts accurately. Furthermore, the iterative denoising process required by standard diffusion models—often exceeding 50 steps—is too slow for many real-world applications.

ByteEdit is designed to "Boost, Comply, and Accelerate" the editing process. It moves beyond simple automated metrics by integrating human-centric reward systems directly into the training loop, ensuring that the model's outputs align more closely with human intuition and aesthetic standards.

The Perceptual Feedback Learning (PeFL) Framework

The core innovation of ByteEdit is its Perceptual Feedback Learning (PeFL) mechanism. This system employs three specialized reward models to guide the diffusion process toward higher-quality outcomes:

  1. Aesthetic Reward Model ($R_\alpha$): This model is trained on a massive dataset of human-ranked images. It prioritizes high-level visual features such as composition, clarity, and overall beauty.
  2. Alignment Reward Model ($R_\beta$): To ensure the generated content matches the text prompt, the researchers utilized LLaVA (a multimodal Large Language Model) to generate highly descriptive, clean captions for training data. This approach mitigates the noise found in standard web-crawled alt-text, leading to superior instruction following.
  3. Coherent Reward Model ($R_\gamma$): Unlike global reward models, this is a dense, pixel-level model designed to detect local inconsistencies. It specifically monitors the boundaries of the edited area to eliminate the "seams" that typically plague AI-edited images.

Stage-wise Denoising

A key insight from the ByteEdit research is that reward models are most effective during the later stages of the diffusion process. In the early, high-noise stages, the image is essentially a blur, making feedback less meaningful. By focusing the reward mechanisms on the "refinement" steps, the framework significantly reduces training overhead without sacrificing quality.

Acceleration via Adversarial Progressive Training

To address the issue of inference speed, ByteEdit employs an Adversarial and Progressive Training strategy. The Coherent reward model ($R_\gamma$) doubles as a discriminator, similar to the architecture of a Generative Adversarial Network (GAN). This allows the model to learn to produce sharp, realistic images in a fraction of the time. While standard models require 50 or more denoising steps, ByteEdit can generate high-fidelity results in just 8 steps, making it one of the fastest high-quality editors currently available.

Experimental Evaluation

The researchers evaluated ByteEdit using several rigorous benchmarks, including EditBench and a new, high-quality dataset called UserBench, which consists of 100 hand-picked image-text pairs.

Human Preference and Quantitative Results

In "Good-Same-Bad" (GSB) evaluations, ByteEdit was compared against industry giants such as Adobe Firefly, Canva, and MeiTu. The results were striking:

  • Human Preference: Users preferred ByteEdit over Adobe Firefly by 105% in outpainting tasks and 163% in instruction-based editing.
  • Quantitative Metrics: On the UserBench dataset, ByteEdit achieved a 5.8% lead in CLIPScore (measuring text alignment) and a 47.1% lead in BLIPScore over its closest competitor, Canva.

Conclusion

ByteEdit represents a significant leap forward in generative image editing by successfully bridging the gap between human intuition and automated generation. By combining pixel-level coherence rewards with an accelerated training regime, it provides a solution that is both higher in quality and faster than current industry standards. Future work may extend this framework to video editing, where maintaining temporal consistency across frames presents a similar challenge to the spatial coherence addressed here.

Summary updated

BibTeX
@inproceedings{ren2024byteedit,
  author = {Yuxi Ren and Jie Wu and Yanzuo Lu and Huafeng Kuang and Xin Xia and Xionghui Wang and Qianqian Wang and Yixing Zhu and Pan Xie and Shiyin Wang and Xuefeng Xiao and Yitong Wang and Min Zheng and Lean Fu},
  title = {{ByteEdit: Boost, Comply and Accelerate Generative Image Editing}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72646-0\_11},
}
Figure