Datasets:
id stringlengths 8 11 | source_id stringlengths 3 3 | domain stringclasses 5
values | operation stringclasses 6
values | instruction stringlengths 13 261 | group_id stringlengths 3 3 | original_dimension stringclasses 4
values | width int32 1.15k 1.6k | height int32 560 3.27k | annotation_json stringlengths 3.05k 9.05k | source_image imagewidth (px) 1.15k 1.6k | target_image imagewidth (px) 1.15k 1.6k | source_mask imagewidth (px) 1.15k 1.6k | target_region_mask imagewidth (px) 1.15k 1.6k | eval_mask imagewidth (px) 1.15k 1.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
000_delete | 000 | webpage | delete | Delete 'Japanese sushi rolls'. | 000 | layout | 1,600 | 1,200 | {
"id": "000_delete",
"source_id": "000",
"domain": "webpage",
"original_dimension": "layout",
"operation": "delete",
"instruction": "Delete 'Japanese sushi rolls'.",
"parameters": {},
"selected_unit": {
"id": "u0000",
"text": "Japanese sushi rolls",
"tag": "H1",
"svg": false,
"pure"... | |||||
000_insert | 000 | webpage | insert | Add 'What you’ll learn' above 'Prepare sushi rice' in the left column. | 000 | layout | 1,600 | 1,200 | {
"id": "000_insert",
"source_id": "000",
"domain": "webpage",
"original_dimension": "layout",
"operation": "insert",
"instruction": "Add 'What you’ll learn' above 'Prepare sushi rice' in the left column.",
"parameters": {},
"selected_unit": {
"id": "u0003",
"text": "What you’ll learn",
"tag... | |||||
001_move | 001 | webpage | move | Move 'New and featured' slightly to the right. | 001 | layout | 1,600 | 1,200 | {
"id": "001_move",
"source_id": "001",
"domain": "webpage",
"original_dimension": "layout",
"operation": "move",
"instruction": "Move 'New and featured' slightly to the right.",
"parameters": {
"dx": 24,
"dy": 0
},
"selected_unit": {
"id": "u0018",
"text": "New and featured",
"tag... | |||||
001_scale | 001 | webpage | scale | Make 'pet & co.' smaller. | 001 | layout | 1,600 | 1,200 | {
"id": "001_scale",
"source_id": "001",
"domain": "webpage",
"original_dimension": "layout",
"operation": "scale",
"instruction": "Make 'pet & co.' smaller.",
"parameters": {},
"selected_unit": {
"id": "u0000",
"text": "pet & co.",
"tag": "SPAN",
"svg": false,
"pure": true,
"tra... | |||||
002_color | 002 | webpage | color | Change the color of the text 'forma.' in the lower-left section to dark red. | 002 | layout | 1,600 | 1,200 | {
"id": "002_color",
"source_id": "002",
"domain": "webpage",
"original_dimension": "layout",
"operation": "color",
"instruction": "Change the color of the text 'forma.' in the lower-left section to dark red.",
"parameters": {
"color": "#a42b45"
},
"selected_unit": {
"id": "u0008",
"text":... | |||||
002_delete | 002 | webpage | delete | Delete 'Made for slow, simple living.'. | 002 | layout | 1,600 | 1,200 | {
"id": "002_delete",
"source_id": "002",
"domain": "webpage",
"original_dimension": "layout",
"operation": "delete",
"instruction": "Delete 'Made for slow, simple living.'.",
"parameters": {},
"selected_unit": {
"id": "u0010",
"text": "Made for slow, simple living.",
"tag": "H1",
"svg":... | |||||
003_insert | 003 | webpage | insert | Add 'Beauty, in your own way.' below 'luna' as the main headline. | 003 | layout | 1,600 | 1,600 | {
"id": "003_insert",
"source_id": "003",
"domain": "webpage",
"original_dimension": "layout",
"operation": "insert",
"instruction": "Add 'Beauty, in your own way.' below 'luna' as the main headline.",
"parameters": {},
"selected_unit": {
"id": "u0002",
"text": "Beauty, in your own way.",
"t... | |||||
003_move | 003 | webpage | move | Move 'What We Do' slightly down. | 003 | layout | 1,600 | 1,600 | {
"id": "003_move",
"source_id": "003",
"domain": "webpage",
"original_dimension": "layout",
"operation": "move",
"instruction": "Move 'What We Do' slightly down.",
"parameters": {
"dx": 0,
"dy": 24
},
"selected_unit": {
"id": "u0017",
"text": "What We Do",
"tag": "H2",
"svg": ... | |||||
004_color | 004 | webpage | color | Change the color of 'Medium radius' to dark red. | 004 | layout | 1,600 | 1,200 | {
"id": "004_color",
"source_id": "004",
"domain": "webpage",
"original_dimension": "layout",
"operation": "color",
"instruction": "Change the color of 'Medium radius' to dark red.",
"parameters": {
"color": "#a42b45"
},
"selected_unit": {
"id": "u0002",
"text": "Medium radius",
"tag":... | |||||
004_scale | 004 | webpage | scale | Make 'Large radius' smaller. | 004 | layout | 1,600 | 1,200 | {
"id": "004_scale",
"source_id": "004",
"domain": "webpage",
"original_dimension": "layout",
"operation": "scale",
"instruction": "Make 'Large radius' smaller.",
"parameters": {},
"selected_unit": {
"id": "u0004",
"text": "Large radius",
"tag": "H2",
"svg": false,
"pure": true,
... | |||||
006_delete | 006 | webpage | delete | Delete 'Less noise. More you.'. | 006 | layout | 1,600 | 1,200 | {
"id": "006_delete",
"source_id": "006",
"domain": "webpage",
"original_dimension": "layout",
"operation": "delete",
"instruction": "Delete 'Less noise. More you.'.",
"parameters": {},
"selected_unit": {
"id": "u0004",
"text": "Less noise. More you.",
"tag": "H1",
"svg": false,
"pur... | |||||
006_insert | 006 | webpage | insert | Add 'Made for your music. Designed for your life.' below 'Aura Studio'. | 006 | layout | 1,600 | 1,200 | {
"id": "006_insert",
"source_id": "006",
"domain": "webpage",
"original_dimension": "layout",
"operation": "insert",
"instruction": "Add 'Made for your music. Designed for your life.' below 'Aura Studio'.",
"parameters": {},
"selected_unit": {
"id": "u0011",
"text": "Made for your music. Design... | |||||
008_move | 008 | webpage | move | Move 'AMELIA PARK' slightly down. | 008 | layout | 1,600 | 1,200 | {
"id": "008_move",
"source_id": "008",
"domain": "webpage",
"original_dimension": "layout",
"operation": "move",
"instruction": "Move 'AMELIA PARK' slightly down.",
"parameters": {
"dx": 0,
"dy": 24
},
"selected_unit": {
"id": "u0018",
"text": "AMELIA PARK",
"tag": "H2",
"svg"... | |||||
008_replace | 008 | webpage | replace | Replace 'Field Notes' with 'Field Remarks'. | 008 | layout | 1,600 | 1,200 | {
"id": "008_replace",
"source_id": "008",
"domain": "webpage",
"original_dimension": "layout",
"operation": "replace",
"instruction": "Replace 'Field Notes' with 'Field Remarks'.",
"parameters": {
"text": "Field Remarks"
},
"selected_unit": {
"id": "u0024",
"text": "Field Notes",
"tag... | |||||
012_color | 012 | webpage | color | Change the color of the topmost '✳folio' logo to blue. | 012 | layout | 1,600 | 1,200 | {
"id": "012_color",
"source_id": "012",
"domain": "webpage",
"original_dimension": "layout",
"operation": "color",
"instruction": "Change the color of the topmost '✳folio' logo to blue.",
"parameters": {
"color": "#2354a6"
},
"selected_unit": {
"id": "u0000",
"text": "✳folio",
"tag": ... | |||||
012_scale | 012 | webpage | scale | Make the text 'folio' in the upper-right section smaller. | 012 | layout | 1,600 | 1,200 | {
"id": "012_scale",
"source_id": "012",
"domain": "webpage",
"original_dimension": "layout",
"operation": "scale",
"instruction": "Make the text 'folio' in the upper-right section smaller.",
"parameters": {},
"selected_unit": {
"id": "u0015",
"text": "folio",
"tag": "B",
"svg": false,
... | |||||
018_delete | 018 | webpage | delete | Delete 'Made for everyday rituals.'. | 018 | layout | 1,600 | 1,200 | {
"id": "018_delete",
"source_id": "018",
"domain": "webpage",
"original_dimension": "layout",
"operation": "delete",
"instruction": "Delete 'Made for everyday rituals.'.",
"parameters": {},
"selected_unit": {
"id": "u0001",
"text": "Made for everyday rituals.",
"tag": "H1",
"svg": false... | |||||
018_replace | 018 | webpage | replace | Replace 'Features' with 'Benefits'. | 018 | layout | 1,600 | 1,200 | {
"id": "018_replace",
"source_id": "018",
"domain": "webpage",
"original_dimension": "layout",
"operation": "replace",
"instruction": "Replace 'Features' with 'Benefits'.",
"parameters": {
"text": "Benefits"
},
"selected_unit": {
"id": "u0013",
"text": "Features",
"tag": "SPAN",
"... | |||||
019_insert | 019 | webpage | insert | Add 'Come home to clean. Stay for the calm.' above 'Thoughtful cleaning for the spaces you love.' on the right-hand page. | 019 | layout | 1,600 | 1,200 | {
"id": "019_insert",
"source_id": "019",
"domain": "webpage",
"original_dimension": "layout",
"operation": "insert",
"instruction": "Add 'Come home to clean. Stay for the calm.' above 'Thoughtful cleaning for the spaces you love.' on the right-hand page.",
"parameters": {},
"selected_unit": {
"id":... | |||||
019_move | 019 | webpage | move | Move '7 days' slightly down. | 019 | layout | 1,600 | 1,200 | {
"id": "019_move",
"source_id": "019",
"domain": "webpage",
"original_dimension": "layout",
"operation": "move",
"instruction": "Move '7 days' slightly down.",
"parameters": {
"dx": 0,
"dy": 24
},
"selected_unit": {
"id": "u0017",
"text": "7 days",
"tag": "DIV",
"svg": false,
... | |||||
020_color | 020 | webpage | color | Change the color of 'minds' to blue. | 020 | text | 1,600 | 1,200 | {
"id": "020_color",
"source_id": "020",
"domain": "webpage",
"original_dimension": "text",
"operation": "color",
"instruction": "Change the color of 'minds' to blue.",
"parameters": {
"color": "#2354a6"
},
"selected_unit": {
"id": "u0011",
"text": "minds",
"tag": "SPAN",
"svg": fa... | |||||
020_scale | 020 | webpage | scale | Make 'A revolutionary' smaller. | 020 | text | 1,600 | 1,200 | {
"id": "020_scale",
"source_id": "020",
"domain": "webpage",
"original_dimension": "text",
"operation": "scale",
"instruction": "Make 'A revolutionary' smaller.",
"parameters": {},
"selected_unit": {
"id": "u0009",
"text": "A revolutionary",
"tag": "SPAN",
"svg": false,
"pure": true... | |||||
021_delete | 021 | webpage | delete | Delete 'Every Child Deserves the Best Care'. | 021 | text | 1,600 | 1,200 | {
"id": "021_delete",
"source_id": "021",
"domain": "webpage",
"original_dimension": "text",
"operation": "delete",
"instruction": "Delete 'Every Child Deserves the Best Care'.",
"parameters": {},
"selected_unit": {
"id": "u0004",
"text": "Every Child Deserves the Best Care",
"tag": "H1",
... | |||||
021_replace | 021 | webpage | replace | Replace 'Together, We Make Every Step Count' with 'Together, We Make Every Stage Count'. | 021 | text | 1,600 | 1,200 | {
"id": "021_replace",
"source_id": "021",
"domain": "webpage",
"original_dimension": "text",
"operation": "replace",
"instruction": "Replace 'Together, We Make Every Step Count' with 'Together, We Make Every Stage Count'.",
"parameters": {
"text": "Together, We Make Every Stage Count"
},
"selecte... | |||||
023_insert | 023 | webpage | insert | Add 'Dr. Nakhoda Skin Institute' below the welcome message in the upper-left section. | 023 | text | 1,600 | 1,600 | {
"id": "023_insert",
"source_id": "023",
"domain": "webpage",
"original_dimension": "text",
"operation": "insert",
"instruction": "Add 'Dr. Nakhoda Skin Institute' below the welcome message in the upper-left section.",
"parameters": {},
"selected_unit": {
"id": "u0002",
"text": "Dr. Nakhoda Ski... | |||||
023_move | 023 | webpage | move | Move 'Our Popular Brands' slightly down. | 023 | text | 1,600 | 1,600 | {
"id": "023_move",
"source_id": "023",
"domain": "webpage",
"original_dimension": "text",
"operation": "move",
"instruction": "Move 'Our Popular Brands' slightly down.",
"parameters": {
"dx": 0,
"dy": 24
},
"selected_unit": {
"id": "u0005",
"text": "Our Popular Brands",
"tag": "H2... | |||||
024_color | 024 | webpage | color | Change the color of 'We design, build, and scale' to blue. | 024 | text | 1,600 | 1,200 | {
"id": "024_color",
"source_id": "024",
"domain": "webpage",
"original_dimension": "text",
"operation": "color",
"instruction": "Change the color of 'We design, build, and scale' to blue.",
"parameters": {
"color": "#2354a6"
},
"selected_unit": {
"id": "u0010",
"text": "We design, build, ... | |||||
024_scale | 024 | webpage | scale | Make 'an impact' smaller. | 024 | text | 1,600 | 1,200 | {
"id": "024_scale",
"source_id": "024",
"domain": "webpage",
"original_dimension": "text",
"operation": "scale",
"instruction": "Make 'an impact' smaller.",
"parameters": {},
"selected_unit": {
"id": "u0012",
"text": "an impact",
"tag": "SPAN",
"svg": false,
"pure": true,
"trans... | |||||
027_delete | 027 | webpage | delete | Delete '1200 uL'. | 027 | text | 1,600 | 1,200 | {
"id": "027_delete",
"source_id": "027",
"domain": "webpage",
"original_dimension": "text",
"operation": "delete",
"instruction": "Delete '1200 uL'.",
"parameters": {},
"selected_unit": {
"id": "u0031",
"text": "1200 uL",
"tag": "DIV",
"svg": false,
"pure": true,
"transformable"... | |||||
027_insert | 027 | webpage | insert | Add 'Your Daily Health Snapshot' above the health cards. | 027 | text | 1,600 | 1,200 | {
"id": "027_insert",
"source_id": "027",
"domain": "webpage",
"original_dimension": "text",
"operation": "insert",
"instruction": "Add 'Your Daily Health Snapshot' above the health cards.",
"parameters": {},
"selected_unit": {
"id": "u0011",
"text": "Your Daily Health Snapshot",
"tag": "H1"... | |||||
031_move | 031 | webpage | move | Move 'Apps Store Project Management' slightly down. | 031 | text | 1,600 | 1,200 | {
"id": "031_move",
"source_id": "031",
"domain": "webpage",
"original_dimension": "text",
"operation": "move",
"instruction": "Move 'Apps Store Project Management' slightly down.",
"parameters": {
"dx": 0,
"dy": 24
},
"selected_unit": {
"id": "u0000",
"text": "Apps Store Project Manag... | |||||
031_scale | 031 | webpage | scale | Make 'Create profile page with news feed.' smaller. | 031 | text | 1,600 | 1,200 | {
"id": "031_scale",
"source_id": "031",
"domain": "webpage",
"original_dimension": "text",
"operation": "scale",
"instruction": "Make 'Create profile page with news feed.' smaller.",
"parameters": {},
"selected_unit": {
"id": "u0019",
"text": "Create profile page with news feed.",
"tag": "H... | |||||
033_color | 033 | webpage | color | Change the color of 'Elevate The Everyday With Timeless Jewels' to dark red. | 033 | text | 1,600 | 1,200 | {
"id": "033_color",
"source_id": "033",
"domain": "webpage",
"original_dimension": "text",
"operation": "color",
"instruction": "Change the color of 'Elevate The Everyday With Timeless Jewels' to dark red.",
"parameters": {
"color": "#a42b45"
},
"selected_unit": {
"id": "u0002",
"text": "... | |||||
033_replace | 033 | webpage | replace | Replace 'Features' with 'Benefits'. | 033 | text | 1,600 | 1,200 | {
"id": "033_replace",
"source_id": "033",
"domain": "webpage",
"original_dimension": "text",
"operation": "replace",
"instruction": "Replace 'Features' with 'Benefits'.",
"parameters": {
"text": "Benefits"
},
"selected_unit": {
"id": "u0023",
"text": "Features",
"tag": "SPAN",
"sv... | |||||
034_delete | 034 | webpage | delete | Delete 'Sample heading line about scheduling'. | 034 | text | 1,500 | 2,000 | {
"id": "034_delete",
"source_id": "034",
"domain": "webpage",
"original_dimension": "text",
"operation": "delete",
"instruction": "Delete 'Sample heading line about scheduling'.",
"parameters": {},
"selected_unit": {
"id": "u0000",
"text": "Sample heading line about scheduling",
"tag": "H1"... | |||||
034_replace | 034 | webpage | replace | Replace 'Placeholder copy about viewing a schedule.' with 'Placeholder copy about viewing an agenda.'. | 034 | text | 1,500 | 2,000 | {
"id": "034_replace",
"source_id": "034",
"domain": "webpage",
"original_dimension": "text",
"operation": "replace",
"instruction": "Replace 'Placeholder copy about viewing a schedule.' with 'Placeholder copy about viewing an agenda.'.",
"parameters": {
"text": "Placeholder copy about viewing an agen... | |||||
037_insert | 037 | webpage | insert | Add 'Soroban' above the armored figures on the middle page. | 037 | text | 1,600 | 1,200 | {
"id": "037_insert",
"source_id": "037",
"domain": "webpage",
"original_dimension": "text",
"operation": "insert",
"instruction": "Add 'Soroban' above the armored figures on the middle page.",
"parameters": {},
"selected_unit": {
"id": "u0009",
"text": "Soroban",
"tag": "H2",
"svg": fal... |
EditableDesignBench
EditableDesignBench is a benchmark for instruction-guided text editing in designed images. It contains 400 editing tasks from 200 source designs, spanning six editing operations and five document types.
Each task provides an RGB source image, a short natural-language instruction, an RGB target image, rectangular region masks, and structured annotations. The default model input is the source image and instruction; target images and evaluation annotations are used after generation.
Quick start
pip install datasets pillow
from datasets import load_dataset
dataset = load_dataset("yomi-chen/EditableDesignBench", split="test")
sample = dataset[0]
source_image = sample["source_image"]
instruction = sample["instruction"]
print(sample["id"], instruction)
The Parquet files embed all images and masks, so the dataset can be loaded directly without extracting the archive.
For the original PNG/JSON file layout:
pip install huggingface_hub
hf download yomi-chen/EditableDesignBench EditableDesignBench.zip --repo-type dataset --local-dir .
unzip EditableDesignBench.zip
import json
from pathlib import Path
from PIL import Image
root = Path("EditableDesignBench")
tasks = [json.loads(line) for line in (root / "tasks.jsonl").read_text().splitlines()]
source_image = Image.open(root / tasks[0]["image"])
instruction = tasks[0]["instruction"]
Dataset composition
All 400 cases are provided in one test split. Each source design contributes two tasks. When constructing additional splits, group by source_id / group_id to keep tasks from the same design together.
| Editing operation | Cases |
|---|---|
| Delete | 69 |
| Insert | 69 |
| Replace | 55 |
| Move | 69 |
| Scale | 69 |
| Change color | 69 |
Each of the five document types has 80 cases: webpages, slides, posters, scientific figures, and charts. Images retain their native resolutions; there is no mandatory square-image resize.
Fields
| Field | Meaning |
|---|---|
id |
Stable editing-task identifier |
source_id, group_id |
Source-design identity used for grouping |
domain |
Document type |
original_dimension |
Capability dimension of the original design prompt |
operation |
Editing operation |
instruction |
Short natural-language command |
source_image |
RGB input image |
target_image |
RGB reference result |
source_mask |
Editing region in the source image |
target_region_mask |
Editing region in the target image |
eval_mask |
Union of source and target regions |
width, height |
Native image dimensions |
annotation_json |
JSON string with text, geometry, style, editing parameters, and construction checks |
Masks use 255 for the editing region and 0 for the remaining area. They are unions of rectangular quadrilaterals derived from rendered text boxes with an 8-pixel margin, rather than character-contour masks. Coordinates use the native image canvas with the origin at the top left. For move operations, the source mask marks the original position, while the evaluation mask also covers the destination.
The PNG/JSON archive has this layout:
EditableDesignBench/
tasks.jsonl
references.jsonl
inventory.csv
summary.json
validation.jsonl
cases/<id>/
source.png
target.png
mask.png
target_region_mask.png
eval_mask.png
task.json
annotation.json
tasks.jsonl is the model-input manifest. references.jsonl links the target images and evaluation annotations by task ID.
Construction and evaluation
Image pairs and region annotations are constructed from controlled edits to rendered HTML/SVG designs. The delivered PNGs are the evaluation reference. The release contains image pairs, masks, instructions, and annotations.
Construction checks cover image dimensions and modes, binary masks, region unions, and localization of rendered changes. The data were constructed automatically with representative visual review; exhaustive independent human semantic verification is not claimed.
The evaluation convention follows TextEditBench: background-preservation metrics (MSE, PSNR, SSIM, LPIPS) use the supplied regions, while a multimodal judge can assess instruction following (IF), text accuracy (TA), visual consistency (VC), and layout preservation (LP). A model result must be evaluated against the original instruction. Do not provide the reference target image or evaluation masks to an instruction-only editing model.
License and acknowledgment
The dataset is released under CC BY-NC 4.0: attribution is required and use is limited to noncommercial purposes. See LICENSE and NOTICE.md.
The original design prompts are based on BizGenEval. The editing-benchmark setup is inspired by TextEditBench. EditableDesignBench is a separate dataset, with newly constructed editing pairs and annotations.
Citation
@misc{editabledesignbench2026,
title = {EditableDesignBench},
author = {{yomi-chen}},
year = {2026},
url = {https://huggingface.co/datasets/yomi-chen/EditableDesignBench}
}
- Downloads last month
- 68