Datasets:
Formats:
parquet
Languages:
English
Size:
100K - 1M
ArXiv:
Tags:
image-editing
instruction-based-editing
forgery-localization
manipulation-localization
benchmark
License:
Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: LocateEdit-Bench
|
| 3 |
+
license: cc-by-nc-4.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
task_categories:
|
| 7 |
+
- image-segmentation
|
| 8 |
+
- image-to-image
|
| 9 |
+
tags:
|
| 10 |
+
- image-editing
|
| 11 |
+
- instruction-based-editing
|
| 12 |
+
- forgery-localization
|
| 13 |
+
- manipulation-localization
|
| 14 |
+
- benchmark
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: all
|
| 17 |
+
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: train/*/*.parquet
|
| 20 |
+
- split: validation
|
| 21 |
+
path: val/*/*.parquet
|
| 22 |
+
- config_name: BAGEL
|
| 23 |
+
data_files:
|
| 24 |
+
- split: train
|
| 25 |
+
path: train/BAGEL/*.parquet
|
| 26 |
+
- split: validation
|
| 27 |
+
path: val/BAGEL/*.parquet
|
| 28 |
+
- config_name: Flux-Kontext
|
| 29 |
+
data_files:
|
| 30 |
+
- split: train
|
| 31 |
+
path: train/Flux-Kontext/*.parquet
|
| 32 |
+
- split: validation
|
| 33 |
+
path: val/Flux-Kontext/*.parquet
|
| 34 |
+
- config_name: Qwen-Image-Edit
|
| 35 |
+
data_files:
|
| 36 |
+
- split: train
|
| 37 |
+
path: train/Qwen-Image-Edit/*.parquet
|
| 38 |
+
- split: validation
|
| 39 |
+
path: val/Qwen-Image-Edit/*.parquet
|
| 40 |
+
- config_name: Step1X-Edit
|
| 41 |
+
data_files:
|
| 42 |
+
- split: train
|
| 43 |
+
path: train/Step1X-Edit/*.parquet
|
| 44 |
+
- split: validation
|
| 45 |
+
path: val/Step1X-Edit/*.parquet
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
# LocateEdit-Bench
|
| 49 |
+
|
| 50 |
+
**A Benchmark for Instruction-Based Editing Localization**
|
| 51 |
+
|
| 52 |
+
LocateEdit-Bench is a large-scale benchmark for localizing the regions modified by
|
| 53 |
+
*instruction-based* image editors. Unlike inpainting-based manipulations, where the
|
| 54 |
+
edited area is given by an explicit mask, instruction-based editors (e.g., MMDiT-based
|
| 55 |
+
models) produce semantically coherent and visually seamless edits without any
|
| 56 |
+
predefined region. LocateEdit-Bench provides **231K edited images from four
|
| 57 |
+
state-of-the-art editors**, each paired with its original image, the editing
|
| 58 |
+
instruction, and a pixel-level ground-truth mask.
|
| 59 |
+
|
| 60 |
+
> Paper: [arXiv:2602.05577](https://arxiv.org/abs/2602.05577)
|
| 61 |
+
|
| 62 |
+
## Highlights
|
| 63 |
+
|
| 64 |
+
- **231,092 edited images** from four instruction-based editors: Qwen-Image-Edit,
|
| 65 |
+
Flux-Kontext, Step1X-Edit, and BAGEL.
|
| 66 |
+
- **Three object-level edit types**: object addition, object swap, and attribute
|
| 67 |
+
modification — edits with a well-defined, object-localized region.
|
| 68 |
+
- **High-quality masks**: target object identified by ChatGPT, segmented by SAM3,
|
| 69 |
+
filtered at confidence > 0.5.
|
| 70 |
+
- **5,504 distinct object types**; source images drawn from LAION-5B and
|
| 71 |
+
OpenImages V6 (via [OmniEdit](https://huggingface.co/datasets/codefuse-ai/OmniEdit)).
|
| 72 |
+
- **Dedicated train/validation splits per editor**: the validation split is the
|
| 73 |
+
paper's 24K test set (6,000 images per editor, stratified by edit type).
|
| 74 |
+
|
| 75 |
+
## Dataset structure
|
| 76 |
+
|
| 77 |
+
```
|
| 78 |
+
LocateEdit-Bench/
|
| 79 |
+
├── manifest.json # per-shard split, row-index range, relative path
|
| 80 |
+
├── splits.json # {model: {train: [files], val: [files]}}
|
| 81 |
+
├── stats.json # rows / edit-type counts / sizes per model
|
| 82 |
+
├── summary.json # global totals
|
| 83 |
+
├── train/
|
| 84 |
+
│ ├── BAGEL/BAGEL_train_00001.parquet ...
|
| 85 |
+
│ ├── Flux-Kontext/Flux-Kontext_train_00001.parquet ...
|
| 86 |
+
│ ├── Qwen-Image-Edit/Qwen-Image-Edit_train_00001.parquet ...
|
| 87 |
+
│ └── Step1X-Edit/Step1X-Edit_train_00001.parquet ...
|
| 88 |
+
└── val/
|
| 89 |
+
├── BAGEL/BAGEL_val_00001.parquet ...
|
| 90 |
+
└── ...
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
Each parquet file targets ~1 GiB (roughly 370–560 samples). Filenames are
|
| 94 |
+
`<editor>_<split>_<5-digit index>.parquet`; numbering restarts at `00001` for each
|
| 95 |
+
split and each editor. Shards never mix splits, so a file can be assigned to a split
|
| 96 |
+
by its path alone. `splits.json` lists every file explicitly.
|
| 97 |
+
|
| 98 |
+
## Schema
|
| 99 |
+
|
| 100 |
+
One row per edited image. All images are stored as **raw PNG bytes** (lossless,
|
| 101 |
+
no re-encoding) with width 1024.
|
| 102 |
+
|
| 103 |
+
| Column | Type | Description |
|
| 104 |
+
|---|---|---|
|
| 105 |
+
| `img_name` | string | Unique sample name / original filename, e.g. `addition_100005_4_0.png` |
|
| 106 |
+
| `model` | string | Editing model: `BAGEL`, `Flux-Kontext`, `Qwen-Image-Edit`, `Step1X-Edit` |
|
| 107 |
+
| `split` | string | `train` or `val` |
|
| 108 |
+
| `row_index` | int32 | 0-based position within the split's original sample list |
|
| 109 |
+
| `edit_type` | string | `addition`, `swap`, or `attribute_modification` |
|
| 110 |
+
| `edit_subtype` | string | `facial` for facial attribute edits (BAGEL only), otherwise null |
|
| 111 |
+
| `edit_prompt` | string | Natural-language editing instruction |
|
| 112 |
+
| `sam_prompt` | string | Short phrase describing the edited target, used for segmentation |
|
| 113 |
+
| `boxes` | list<list<float64>> | Bounding boxes `[x1, y1, x2, y2]` of the edited target(s) |
|
| 114 |
+
| `scores` | list<float64> | Segmentation confidence per box |
|
| 115 |
+
| `image` | binary | Original image, PNG bytes |
|
| 116 |
+
| `edited_image` | binary | Edited image, PNG bytes |
|
| 117 |
+
| `mask` | binary | Pixel-level mask of the edited region, PNG bytes |
|
| 118 |
+
|
| 119 |
+
Notes:
|
| 120 |
+
- `boxes` / `scores` are the raw segmentation outputs; boxes may extend slightly
|
| 121 |
+
beyond the image boundary.
|
| 122 |
+
- Masks are 8-bit PNGs with the same spatial size as their images.
|
| 123 |
+
|
| 124 |
+
## Splits
|
| 125 |
+
|
| 126 |
+
| Editor | Train | Validation | Total |
|
| 127 |
+
|---|---:|---:|---:|
|
| 128 |
+
| BAGEL | 47,320 | 6,000 | 53,320 |
|
| 129 |
+
| Flux-Kontext | 52,707 | 6,000 | 58,707 |
|
| 130 |
+
| Qwen-Image-Edit | 55,681 | 6,000 | 61,681 |
|
| 131 |
+
| Step1X-Edit | 51,384 | 6,000 | 57,384 |
|
| 132 |
+
| **All** | **207,092** | **24,000** | **231,092** |
|
| 133 |
+
|
| 134 |
+
Edit-type distribution (all splits):
|
| 135 |
+
|
| 136 |
+
| Editor | Addition | Swap | Attribute Mod. |
|
| 137 |
+
|---|---:|---:|---:|
|
| 138 |
+
| BAGEL | 25,530 | 16,983 | 10,807 |
|
| 139 |
+
| Flux-Kontext | 26,138 | 18,365 | 14,204 |
|
| 140 |
+
| Qwen-Image-Edit | 27,381 | 18,798 | 15,502 |
|
| 141 |
+
| Step1X-Edit | 26,070 | 17,370 | 13,944 |
|
| 142 |
+
| **All** | **105,119** | **71,516** | **54,457** |
|
| 143 |
+
|
| 144 |
+
The validation split follows the paper's protocol: 6,000 images are sampled from each
|
| 145 |
+
editor's outputs, stratified to preserve that editor's edit-type composition.
|
| 146 |
+
|
| 147 |
+
## Construction
|
| 148 |
+
|
| 149 |
+
1. **Source data.** Real images and editing instructions are selected from OmniEdit
|
| 150 |
+
(itself built from LAION-5B and OpenImages V6). Instructions were produced with
|
| 151 |
+
GPT-4o. Roughly 400K image–instruction pairs were retained after filtering.
|
| 152 |
+
2. **Edit-type selection.** Only object addition, object swap, and attribute
|
| 153 |
+
modification are kept. Style transfer, background swap, environment change and
|
| 154 |
+
holistic edits are excluded because they lack a unique object-localized region.
|
| 155 |
+
3. **Editing.** Each edit-type subset is evenly divided among the four editors.
|
| 156 |
+
All images are resized to width ~1024 before editing; generation follows each
|
| 157 |
+
model's recommended inference settings.
|
| 158 |
+
4. **Quality filtering.** Edited images are scored for editing accuracy and
|
| 159 |
+
background consistency; low-confidence samples are discarded.
|
| 160 |
+
5. **Mask generation.** ChatGPT identifies the edited target; SAM3 produces a
|
| 161 |
+
promptable segmentation for it. Samples with segmentation confidence <= 0.5 are
|
| 162 |
+
dropped, yielding the final pixel-level masks.
|
| 163 |
+
|
| 164 |
+
## Usage
|
| 165 |
+
|
| 166 |
+
### Option A — `datasets` (recommended)
|
| 167 |
+
|
| 168 |
+
```python
|
| 169 |
+
from datasets import load_dataset, Image
|
| 170 |
+
|
| 171 |
+
# One editor (config name = editor name)
|
| 172 |
+
ds = load_dataset("MoeNew/LocateEdit-Bench", "BAGEL")
|
| 173 |
+
train, val = ds["train"], ds["validation"]
|
| 174 |
+
|
| 175 |
+
# All four editors merged (distinguish by the `model` column)
|
| 176 |
+
ds_all = load_dataset("MoeNew/LocateEdit-Bench", "all")
|
| 177 |
+
|
| 178 |
+
# Decode the PNG byte columns into PIL images when needed
|
| 179 |
+
train = train.cast_column("image", Image())
|
| 180 |
+
train = train.cast_column("edited_image", Image())
|
| 181 |
+
train = train.cast_column("mask", Image())
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
### Option B — explicit files (no config), e.g. for local copies
|
| 185 |
+
|
| 186 |
+
```python
|
| 187 |
+
from datasets import load_dataset
|
| 188 |
+
|
| 189 |
+
ds = load_dataset("parquet", data_files={
|
| 190 |
+
"train": "train/Qwen-Image-Edit/*.parquet",
|
| 191 |
+
"validation": "val/Qwen-Image-Edit/*.parquet",
|
| 192 |
+
})
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
### Option C — pyarrow / Parquet directly
|
| 196 |
+
|
| 197 |
+
```python
|
| 198 |
+
import pyarrow.dataset as pads
|
| 199 |
+
|
| 200 |
+
d = pads.dataset("LocateEdit-Bench", format="parquet", partitioning=None)
|
| 201 |
+
tbl = d.to_table(filter=(pads.field("split") == "val"))
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
Because each shard contains exactly one split (and one editor), filtering on
|
| 205 |
+
`split` or `model` prunes whole row groups without reading image bytes. Note that
|
| 206 |
+
`split`/`model` live in the path rather than as partition columns, so the quickest
|
| 207 |
+
selection is by file path (`splits.json` / `manifest.json`) or by a column filter.
|
| 208 |
+
|
| 209 |
+
## Evaluation protocols
|
| 210 |
+
|
| 211 |
+
The paper defines two protocols and reports pixel-level and region-level metrics:
|
| 212 |
+
|
| 213 |
+
- **Protocol 1 — Full-set evaluation.** Train on the composite training set
|
| 214 |
+
(all four editors) and test on each editor's validation split.
|
| 215 |
+
- **Protocol 2 — Cross-editor generalization.** Train on a single editor's data and
|
| 216 |
+
test on every editor, measuring transfer to unseen editing models.
|
| 217 |
+
- **Metrics.** Accuracy, AUC and F1 treat each pixel as a binary decision; Dice and
|
| 218 |
+
mIoU measure region overlap. Pixel-level accuracy/AUC are dominated by the large
|
| 219 |
+
untouched background, so Dice/mIoU are the more informative scores.
|
| 220 |
+
- **Robustness.** Evaluation can additionally be performed under JPEG compression
|
| 221 |
+
(quality 0.75) and Gaussian blurring (sigma = 1.0).
|
| 222 |
+
|
| 223 |
+
## Known issues
|
| 224 |
+
|
| 225 |
+
- For 12 samples in Qwen-Image-Edit, the source metadata omitted `img_name` and
|
| 226 |
+
`edit_type`. These fields were recovered from the filename (all 12 are
|
| 227 |
+
`addition` samples); no other field is affected.
|
| 228 |
+
- `boxes` / `scores` are detector/segmenter outputs and can include coordinates
|
| 229 |
+
slightly outside the image, or several boxes for one instruction.
|
| 230 |
+
|
| 231 |
+
## License and citation
|
| 232 |
+
|
| 233 |
+
LocateEdit-Bench is released under the **Creative Commons Attribution-NonCommercial
|
| 234 |
+
4.0 International (CC BY-NC 4.0)** license. The source images originate from LAION-5B
|
| 235 |
+
and OpenImages V6 via OmniEdit, and the edited images were generated with the
|
| 236 |
+
corresponding editing models; please also respect the terms of those upstream
|
| 237 |
+
sources and model licenses.
|
| 238 |
+
|
| 239 |
+
```bibtex
|
| 240 |
+
@article{wu2026locateeditbench,
|
| 241 |
+
title = {LocateEdit-Bench: A Benchmark for Instruction-Based Editing Localization},
|
| 242 |
+
author = {Wu, Shiyu and Li, Shuyan and Li, Jing and Liu, Jing and Wang, Yequan},
|
| 243 |
+
journal = {arXiv preprint arXiv:2602.05577},
|
| 244 |
+
year = {2026}
|
| 245 |
+
}
|
| 246 |
+
```
|
| 247 |
+
|
| 248 |
+
## Contact
|
| 249 |
+
|
| 250 |
+
- Shiyu Wu, Jing Liu (jliu@nlpr.ia.ac.cn), Yequan Wang (tshwangyequan@gmail.com)
|
| 251 |
+
- Issues and questions: please open an issue in this repository.
|