Papers › UltraEdit: Instruction-based Fine-Grained Image Editing at Scale

UltraEdit: Instruction-based Fine-Grained Image Editing at Scale

7 Jul 2024arXiv:2407.05282archive 2025-07-28

Haozhe Zhao, Xiaojian Ma, Liang Chen, Shuzheng Si, Rujie Wu, Kaikai An, Peiyu Yu, Minjia Zhang, Qing Li, Baobao Chang

This paper presents UltraEdit, a large-scale (approximately 4 million editing samples), automatically generated dataset for instruction-based image editing. Our key idea is to address the drawbacks in existing image editing datasets like InstructPix2Pix and MagicBrush, and provide a systematic approach to producing massive and high-quality image editing samples. UltraEdit offers several distinct advantages: 1) It features a broader range of editing instructions by leveraging the creativity of large language models (LLMs) alongside in-context editing examples from human raters; 2) Its data sources are based on real images, including photographs and artworks, which provide greater diversity and reduced bias compared to datasets solely generated by text-to-image models; 3) It also supports region-based editing, enhanced by high-quality, automatically produced region annotations. Our experiments show that canonical diffusion-based editing baselines trained on UltraEdit set new records on MagicBrush and Emu-Edit benchmarks. Our analysis further confirms the crucial role of real image anchors and region-based editing data. The dataset, code, and models can be found in https://ultra-editing.github.io.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.05282")

Code

Syntology Ran 10 of 17 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pkunlp-icler/ultraedit officialmentioned in papermentioned on GitHubjax report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 10 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
9ran
7unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pkunlp-icler/ultraedit. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

check_mask_size pkunlp-icler/ultraedit/data_generation/data_generation.py official repository ran no licence file found · pointer only · a56d6564fd11974d · report
convert_to_np pkunlp-icler/ultraedit/traning/train_sdxl_pix2pix.py official repository ran no licence file found · pointer only · 629773a88a55f9e6 · report
download_image pkunlp-icler/ultraedit/traning/train_sdxl_pix2pix.py official repository ran no licence file found · pointer only · 1c34ef7c86b190fb · report
find_contours_number pkunlp-icler/ultraedit/data_generation/data_generation.py official repository ran no licence file found · pointer only · 56b8d77956f342de · report
generate_Contours_mask pkunlp-icler/ultraedit/data_generation/data_generation.py official repository ran no licence file found · pointer only · c00e5e79dd083932 · report
get_time_words_attention_alpha pkunlp-icler/ultraedit/data_generation/processors.py official repository ran no licence file found · pointer only · 0a26bb2a52f65689 · report
import_model_class_from_model_name_or_path pkunlp-icler/ultraedit/traning/train_sdxl_pix2pix.py official repository ran no licence file found · pointer only · dd89dacf389e9e01 · report
rescale_noise_cfg pkunlp-icler/ultraedit/data_generation/prompt_to_prompt_pipeline.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · bea2d776a332f2b0 · report
tokenize_prompt pkunlp-icler/ultraedit/traning/train_sd3_pix2pix.py official repository ran no licence file found · pointer only · dce9df5004a68cce · report
update_alpha_time_word pkunlp-icler/ultraedit/data_generation/processors.py official repository ran no licence file found · pointer only · dd498a88e593fe37 · report
check_tags_chinese pkunlp-icler/ultraedit/data_generation/Grounded-Segment-Anything/automatic_label_ram_demo.py official repository unverified no licence file found · pointer only · be76f458330f9eec · report
create_controller pkunlp-icler/ultraedit/data_generation/processors.py official repository unverified no licence file found · pointer only · 93889c3f8ba8ba23 · report
create_controller pkunlp-icler/ultraedit/data_generation/util.py official repository unverified no licence file found · pointer only · a91b81d1e36f84e1 · report
encode_prompt pkunlp-icler/ultraedit/traning/train_sd3_pix2pix.py official repository unverified no licence file found · pointer only · 1b3f076c87d15223 · report
generate_caption pkunlp-icler/ultraedit/data_generation/Grounded-Segment-Anything/automatic_label_demo.py official repository unverified no licence file found · pointer only · d893c774b1f34088 · report
generate_tags pkunlp-icler/ultraedit/data_generation/Grounded-Segment-Anything/automatic_label_demo.py official repository unverified no licence file found · pointer only · c0648fc5a77afd71 · report
load_text_encoders pkunlp-icler/ultraedit/traning/train_sd3_pix2pix.py official repository unverified no licence file found · pointer only · 74ab2d24d15218ee · report

Tasks

DiversityImage Editing

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Editing ImgEdit-Data UltraEdit Action 2.98 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Add 3.44 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Adjust 2.81 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Background 2.83 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Extract 2.13 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Hybrid 1.91 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Overall 2.70 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Remove 1.45 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Replace 2.96 #6 of 9 Archive leaderboard report
Image Editing ImgEdit-Data UltraEdit Style 3.76 #6 of 9 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections