I2EBench: A Comprehensive Benchmark for Instruction-based Image Editing

Yiwei Ma, Jiayi Ji, Ke Ye, Weihuang Lin, Zhibin Wang, Yonghan Zheng, Qiang Zhou, Xiaoshuai Sun, Rongrong Ji

Abstract

Significant progress has been made in the field of Instruction-based Image Editing (IIE). However, evaluating these models poses a significant challenge. A crucial requirement in this field is the establishment of a comprehensive evaluation benchmark for accurately assessing editing results and providing valuable insights for its further development. In response to this need, we propose I2EBench, a comprehensive benchmark designed to automatically evaluate the quality of edited images produced by IIE models from multiple dimensions. I2EBench consists of 2,000+ images for editing, along with 4,000+ corresponding original and diverse instructions. It offers three distinctive characteristics: 1) Comprehensive Evaluation Dimensions: I2EBench comprises 16 evaluation dimensions that cover both high-level and low-level aspects, providing a comprehensive assessment of each IIE model. 2) Human Perception Alignment: To ensure the alignment of our benchmark with human perception, we conducted an extensive user study for each evaluation dimension. 3) Valuable Research Insights: By analyzing the advantages and disadvantages of existing IIE models across the 16 dimensions, we offer valuable research insights to guide future development in the field. We will open-source I2EBench, including all instructions, input images, human annotations, edited images from all evaluated methods, and a simple script for evaluating the results from new IIE models.

Introduction: The Evaluation Crisis in Image Editing

Instruction-based Image Editing (IIE) empowers users to modify images through natural language instructions, such as "replace the dog with a cat." While models like InstructPix2Pix have popularized this capability, the field lacks a robust, standardized method for evaluation.

Traditional metrics often fall short. For instance, the CLIP Score effectively measures text-image similarity but tends to overlook low-level technical details like noise or blur. Conversely, PSNR (Peak Signal-to-Noise Ratio) measures pixel-level similarity but cannot assess semantic changes, such as whether an object was successfully removed or replaced. Existing benchmarks are often limited by small sample sizes or a narrow focus on specific tasks like mask-guided editing. I2EBench addresses this gap by providing a "universal yardstick" for the IIE field.

The I2EBench Framework

The I2EBench framework introduces a multi-dimensional evaluation strategy that categorizes editing tasks into high-level and low-level dimensions.

Overview of the I2EBench pipeline, illustrating the stages from human annotation to automated evaluation and alignment verification.

Evaluation Dimensions

The benchmark evaluates models across 16 distinct dimensions:

  1. High-level Editing (8 dimensions): These focus on semantic understanding and complex reasoning. Tasks include Counting (adding a specific number of objects), Direction Perception (spatial placement), and Object Replacement. To automate this, I2EBench leverages GPT-4V as a judge, asking it to verify if the semantic requirements of the instruction were met in the output image.
  2. Low-level Editing (8 dimensions): These focus on image restoration and global technical processing, such as Deblurring, Rain Removal, and Watermark Removal. These tasks are evaluated using the Structural Similarity Index (SSIM), which is better suited for measuring technical image quality.

To validate these automated metrics, the authors conducted extensive user studies to ensure high correlation with human perception.

Dataset Composition

I2EBench is built upon a substantial dataset designed for diversity and robustness:

  • Images: Over 2,000 images sourced from public datasets like COCO, covering categories such as Animal, Object, Scenery, Plant, and Human.
  • Instructions: Over 4,000 instructions. Each image includes an "Original" instruction and a "Diverse" version rephrased by ChatGPT to test model robustness against linguistic variations.
  • Models Evaluated: The benchmark was used to test 8 state-of-the-art IIE models, including InstructPix2Pix, MagicBrush, MGIE, and HIVE.

Key Results and Research Insights

The evaluation revealed several critical insights into the current state of IIE:

Visual examples of low-level editing tasks in I2EBench, specifically Haze Removal and Lowlight Enhancement.
  • No Universal Leader: No single model dominates across all 16 dimensions. For example, InstructDiffusion leads in several low-level restoration tasks, while MagicBrush and InstructAny2Pix excel in semantic high-level tasks.
  • The LLM Advantage: Models incorporating Large Language Models (LLMs) or Multimodal LLMs (like MGIE) demonstrate superior robustness. They maintain performance even when instructions are rephrased, unlike older models trained on rigid templates.
  • Localization Challenges: While models are proficient at global edits (e.g., style changes), they still struggle with precise local edits, such as placing a small object in a specific coordinate.
  • GPT-4V Effectiveness: The study confirms that MLLMs can serve as effective, scalable proxies for human annotators, showing a Pearson correlation often exceeding 0.8 with human rankings.

Conclusion and Future Directions

I2EBench provides a comprehensive and automated framework for the IIE community. However, it faces limitations such as dependency on proprietary models like GPT-4V and the ongoing challenge of precise spatial localization. Future work will likely focus on improving "grounding" (linking text to pixels) and expanding the benchmark to include multi-step, complex instructions.

The authors have open-sourced the code, dataset, and evaluation scripts on GitHub.

Summary updated

BibTeX
@inproceedings{ma2024i,
  author = {Yiwei Ma and Jiayi Ji and Ke Ye and Weihuang Lin and Zhibin Wang and Yonghan Zheng and Qiang Zhou and Xiaoshuai Sun and Rongrong Ji},
  title = {{I2EBench: A Comprehensive Benchmark for Instruction-based Image Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=1dpmeH6IHa},
}
Figure