Editor’s introduction
IABEdit introduces a training method that measures whether generated edits match ground-truth spatial descriptors extracted from a frozen vision-language model. The residual between the model’s output and the descriptor is used as a gradient to refine the generator, ensuring edits are both structurally accurate and spatially precise. This approach improves structural fidelity and instruction adherence on benchmarks like RealEdit and D-LORD, outperforming existing methods under occlusion. The human study on 30 participants evaluated editing quality in a blinded setting, with participants selecting the best edit based on instruction following and preservation of non-instructed content. The results show that IABEdit produces more localized, perceptually accurate changes than prior models, especially when instructions require substantial modifications.
Introduction
Recent advances in generative image modeling, including diffusion models with U-Net and transformer-based generators, and flow-matching frameworks such as FLUX have enabled high-quality and flexible image manipulation. Instruction-guided image editing extends these capabilities by allowing users to modify images through natural language, supporting tasks such as object removal, attribute modification, scene transformation, and semantic style transfer. Earlier approaches relied on manually specified spatial masks, limiting scalability and usability. Modern generative models instead condition directly using textual instructions, enabling language-based editing.
This semantic supervisor evaluates whether the generated image reflects the intended transformation, capturing both global changes and localized attributes. By making this evaluation differentiable, the generative model is guided by an explicit measure of instruction satisfaction during optimization. Editing thus becomes a process of minimizing the semantic discrepancy between the intended outcome and the generated image. This training paradigm encourages the model to learn not only what must change, but also what must remain preserved, resulting in improved localization, stronger instruction adherence, and better structural consistency. IABEdit facilitates better alignment using supervision.
Related Work
To improve semantic understanding, recent methods incorporate reward information into text conditions. replace CLIP with VLMs to obtain richer textual understanding. However, these approaches still treat the instruction only as a prior conditioning signal in the diffusion process, without providing active or corrective understandings, limiting fine-grained alignment. They also incur high inference cost due to VLM-based conditioning. SuperEdit addresses misalignment through rectified prompts and contrastive supervision, building a discriminative link. Yet, this operates mainly at the prompt level, leaving instruction semantics out of the generation process. Overall, existing methods remain constrained by static conditioning, weak localization, and costly inference, underscoring the need for methods that achieve deeper, more reliable instruction-to-image alignment.
Editing using context as condition
We formalize successful image editing as a balance between two competing objectives: faithful realization of the instruction and preservation of the original visual context. In practice, many editing models rely primarily on static textual conditioning while using the input image only as a spatial prior, which conditions what needs to be edited but does not focus on what needs to be preserved. Thus, edits may propagate beyond the intended regions or alter unrelated content.
Importantly, context preservation and edit fulfillment play fundamentally different roles during generation. The contextual cues (s) of the source image remain constant throughout the denoising trajectory, and therefore can be represented as structurally conditioning latents. In contrast, the degree to which the instruction has been satisfied evolves dynamically at each iteration of generation. The regions requiring modification depend on the current state of the image. Static conditioning alone cannot account for this evolving semantic discrepancy.
This observation motivates the need for a dynamic, output-dependent supervision signal that continuously evaluates how much editing is still required. IABEdit introduces such a mechanism through semantic feedback, enabling the model to adaptively refine edits while preserving context.
Semantic Alignment via Gradient-Enabled VLM Supervision
We address this limitation by leveraging the semantic reasoning capabilities of vision-language models (VLMs). A frozen VLM, Descriptive Anchor, serves as a semantic reference, extracting detailed descriptors from the ground-truth edited image to capture the intended transformation. A trainable VLM, Instruction Aligner, is then optimized to predict these descriptors from the generated output, effectively measuring the discrepancy between the realized and desired edits. The resulting semantic alignment loss produces gradients proportional to the residual discrepancy between the generated image and the intended edit. These gradients are backpropagated to the image generative model, providing output-dependent supervision that adaptively guides both what should be modified and where modifications should be localized.
Through this continuous semantic correction process, IABEdit transforms instruction following from static conditioning into iterative alignment, enabling the model to leverage VLM-level understanding during training while learning to perform precise and efficient edits. Importantly, this semantic feedback operates only during training; inference remains a standard generative process without additional computational overhead.
Experimental Details
Architecture and Implementation Details: The IABEdit framework is model-agnostic, can work with diffusion and flow-based generative models. Semantic supervision is provided using a LLaVA-based VLM model. During inference, IABEdit functions as a lightweight diffusion-only model. It uses CLIP-based 77-token instruction embeddings (where instructions comprise 20-30 effective textual tokens) and conditional image features (CLIP for scene edits and ArcFace for facial edits) with a learned small set of MLP layers. To incorporate deeper semantic guidance with detailed descriptive context, we use LLaVA-based 1362-token (with 100 effective generated textual tokens) descriptors, enabling fine-grained edits aligned with instruction semantics. Additional implementation details, and training and testing protocols are provided in the supplementary.
Evaluation Metrics (Alignment and Preservation): IABEdit is evaluated in terms of quantitative metrics, agent-based assessments, as well as human evaluations. To assess localized edits and structural preservation, we use feature-level metrics: CS-P (Content Similarity Preserving) for measuring content retention of non-edited regions by computing CLIP-similarity between the source and edited image, CLIP-I for measuring similarity to the target-edited image, and CLIP-T for instruction alignment that leverages a pre-trained CLIP model. DINO-I and L1 scores measure structural and pixel-level similarity to the ground truth edited image, while DINO-P is used to measure the facial identity structural preservation of the edited face with respect to source face. To capture the trade-off between instruction adherence and content preservation, we compute Harmonic Mean (HM) between CLIP-T and CS-P, offering a unified measure of balanced editing performance. This helps quantify whether an edit faithfully follows the instruction without significantly altering the non-editing regions. As traditional metrics often miss perceptual and semantic subtleties that humans easily identify, we incorporate MLLM agents like GPT-4o to evaluate alignment, spatial precision, and realism, complemented by a user study grounded in the same criteria.
Results and Analysis
IABEdit’s CS-P score of 89.65 is slightly lower than SuperEdit’s 90.93, but this difference reflects successful editing rather than a limitation. When instructions require substantial changes, the edited image naturally diverges from the source. Many competing methods struggle with this balance: they either preserve too much content and under-edit (high CS-P but low CLIP-T), or they over-edit and introduce unintended changes (low CS-P with inconsistent CLIP-T). IABEdit’s gradient-based distillation provides precise spatial control, modifying only the regions specified by the instruction while leaving other areas unchanged.
Results on the challenging EMU Edit benchmark across diffusion and FLUX-based architectures are provided in the supplementary. IABEdit outperforms the strongest baseline by +1.41 in CLIP-based instruction following, +0.84 in target-caption alignment, and +9.98 in DINO-based structural preservation, demonstrating semantically accurate edits while preserving image structure.
Conclusion
IABEdit reframes instruction-guided editing as a problem of semantic alignment rather than conditioning. The argument is simple, a generative editor should not be trusted to follow an instruction it was never asked to semantically verify. By distilling spatially-aware descriptors from a frozen vision-language model and turning the residual into a gradient, IABEdit makes instruction satisfaction part of the training objective itself. Adherence is no longer assumed, it is measured, and minimized. Because this signal acts only during training, it leaves inference untouched and transfers across architectures, strengthening U-Net and MMDiT backbones alike. It even surpasses a proprietary baseline on the hardest case we tested, identity preservation under heavy occlusion, where curated benchmarks give way to real-world conditions. More broadly, IABEdit shows that gradient-aligned VLM distillation is a general way to supervise generation against meaning, not just pixels. The same principle extends naturally to video editing, 3D generation, and multimodal content creation, wherever verifying what was produced matters as much as producing it.
IABEdit with FLUX
In the main paper, the proposed IABEdit framework is shown with noise-prediction diffusion models. However, our IABEdit framework is model-agnostic and is also compatible with flow-based generative models such as FLUX. In the FLUX.1-dev model, generation is formulated as a continuous flow between Gaussian noise and the clean data distribution, where the model learns a velocity field that progressively transforms a noisy latent toward the clean latent representation.
Human Study Qualitative Results
Human Study Protocol: We conducted a human study on the RealEdit dataset with 30 participants aged 20-45 to evaluate image editing performance from a human-centric perspective. Volunteer participants who are not involved in the proposed research were chosen. Each participant evaluated 30 randomly sampled instances, each consisting of the original image, editing instruction, and edited outputs from different models. The evaluation was performed in a blinded setting, where model identities were hidden and outputs were presented in random order. Participants selected the best-performing model based on instruction following, preservation of non-instructed regions, and overall image quality. Finally, the results were obtained by aggregating participant values across all 30 samples and the complete per-sample breakdown.
Surveillance Results in Low-Resolution Setting
In terms of visual quality, the generated edits demonstrate natural blending with minimal artifacts, despite the low-resolution nature of the original surveillance images. The ability to preserve the inherent characteristics of the unedited regions while introducing realistic occlusions highlights the robustness of the proposed IABEdit framework. It effectively handles real-world face editing scenarios even in low-resolution settings by maintaining strong instruction adherence and high visual quality in the generated results.
These synthetically edited images are then used to train a face recognition model, highlighting how semantically controlled editing can enhance biometric systems under occlusion. We generate a training dataset comprising 40,000 positive image pairs and 120,000 negative pairs each for real and synthetic data. A ResNet-18 model is trained using a contrastive loss objective, with two settings: training from scratch (sc) and fine-tuning (ft) on the edited data. Our test set includes images at varied distances and having variations in occlusions covering different regions of face captured from surveillance camera, showcasing real-world surveillance scenarios.
These results confirm the practical applicability of IABEdit in surveillance-driven biometric pipelines. The model enables high-quality, instruction-guided face edits that can simulate challenging real-world occlusions. When used for training, these edits enhance recognition accuracy, offering a powerful tool for augmenting face datasets in low-visibility and occlusion-heavy environments.
Qualitative Results on MagicBrush Benchmark
For instance, in the first example, the instruction “Let’s add some flowers in the field” is correctly interpreted, with IABEdit adding flowers while preserving the zebra and overall scene composition. However, the ground truth image indeed shows only a few small flowers added in the background, whereas IABEdit seems to add flowers more prominently and naturally in the scene. While IABEdit also preserves the fine-grained detail in the image, like the back toe of the zebra. For structural edits such as “make the field a cornfield”, IABEdit introduces the new background while preserving foreground objects like the tractor and horse. In the instruction “Let the desktop be black”, our method applies localized, very fine changes to the desktop region without distorting surrounding objects. Finally, for “The bus is yellow”, the proposed IABEdit model accurately and sharply recolors the bus while preserving other elements of the scene, whereas in the ground truth image, instead of just changing the color of the actual bus, the whole bus is modified. In the second row for instruction: “Have an orange instead of a baseball”, our model is not able to replace the baseball with an orange, but it tried to reduce the seam of the ball to make it look like an orange, in contrast, the ground truth image changes the color of the ball to an orange color ball, by creating seams on the original image.
Results on Complex Instruction Scenarios
To assess the vulnerability of editing models, we evaluated the editing methods across distinct types of complex editing instruction scenarios. We modified the editing instructions based on various semantic types (Direct Simple, Morphological, Lexical and Syntactic instructions), while maintaining the actual meaning of the instructions. We created the modified editing instruction sets benchmark for the complete RealEdit dataset. The modified instructions based on different semantic types are created using the GeminiAI Pro 2.5 model. The Morphological types of instructions include words like “non-yellow” and “unfluffy”. Lexical editing instructions include “empty” and “devoid”, while Syntactic editing instructions consist of words such as “without” and “do not”. Furthermore, the complex instruction scenario-based image editing will be incorporated into the training mechanism by handling them specifically for a wide variety of acceptable prompt-based image editing tasks in future research directions.
Masked CS-P evaluation on RealEdit dataset
IABEdit and SuperEdit achieve masked CS-P scores of 99.68 and 99.60, respectively. Masks are generated for instructions with known edit regions, such as “Remove”, “Erase”, “Replace”, “Object Transform”, or “Change Region”. However, masked-CS-P is less precise for “Add” or “Insert” instructions, since the original image lacks the object, a reference mask cannot be accurately established, given the vast potential for varied model localizations.
Results on EMU Edit test set
IABEdit (+FLUX.1) achieves the best performance across all metrics. It attains the highest CLIPdir score (11.21), indicating more accurate instruction-following edits, and the highest CLIPout score (25.06), demonstrating stronger alignment with the target description. It also achieves the highest CLIPimg (88.81) and DINO (91.02) scores, showing that the edited images preserve the original content and structural details while performing the desired modifications. Compared with the strongest baseline (EMU Edit), IABEdit (+FLUX.1) improves CLIPdir by +0.84, CLIPout by +1.41, CLIPimg by +5.92, and DINO by +9.98, demonstrating that gradient-aligned semantic supervision effectively balances precise instruction following with faithful content preservation.


