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