Prompt-Based Image Editing with Masked Diffusion Refinement

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing prompt-based image editing techniques often produce unrealistic or undesirable results, especially when editing specific image elements, as they tend to affect the entire image rather than confining edits to the intended area.

Innovation Solution

A method involving a masking step during the denoising process using a trained model to confine edits to specific image elements by generating a masked latent based on a user-selected area and applying a noise schedule, combined with a diffusion model to iteratively refine the edit.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If automated prompt-based image editing is applied to the entire image, then editing efficiency is improved, but edit precision and realism deteriorate because edits spread to unintended areas

Engineering Contradiction:
Improveediting efficiencyVSAvoidedit precision
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The image is segmented into a selected area (to be edited) and a masked area (to be protected). A mask is generated based on user selection or AI detection, creating distinct regions that are processed differently during the diffusion editing process. This segmentation allows automated editing to operate efficiently on the target area while preserving the integrity of surrounding regions.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different quality requirements are applied to different regions of the image. The selected area undergoes full diffusion-based editing transformation to achieve the desired prompt-based changes, while the masked area maintains its original characteristics or receives minimal processing. This local differentiation ensures high edit precision in the target area while preventing unwanted changes elsewhere.

Inventive Principle:
Principle #3Local quality

2Manufacturing precision

If manual pixel-level manipulation is performed to achieve realistic edits, then edit precision is improved, but productivity deteriorates due to the time-consuming nature of the process

Engineering Contradiction:
Improveedit precisionVSAvoidediting efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

Solution Approach 1:

Instead of manually manipulating individual pixels, the system uses a diffusion model to generate a complete edited version of the selected area based on the prompt. This copied/generated content is then integrated into the original image, replacing the need for tedious pixel-by-pixel manual editing while maintaining realistic results through the probabilistic nature of diffusion processes.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The manual mechanical process of pixel-level manipulation is replaced with an automated diffusion-based generative system. The diffusion model automatically performs the complex series of operations that would otherwise require manual intervention, substituting human labor with an intelligent algorithm that can process and generate image content efficiently.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Productivity

If diffusion-based automated editing is applied globally, then productivity is improved, but realism deteriorates due to unrealistic artifacts in surrounding areas

Engineering Contradiction:
Improveediting efficiencyVSAvoidrealism
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The potential for unrealistic artifacts is extracted and isolated to only the selected editing area. By confining the diffusion process to the masked region and protecting the surrounding areas with a mask, the system prevents the propagation of artifacts to unintended regions. The mask acts as a boundary that extracts and contains the generative process within the desired scope.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

A mask is applied in advance to protect areas that should not be edited from the diffusion process. This preliminary protective action prevents unrealistic artifacts from being generated in the masked regions before the editing process even begins, ensuring that only the selected area undergoes transformation while surrounding areas remain pristine and realistic.

Inventive Principle:
Principle #9Preliminary anti-action

Data Source

PatentUS12361619B2Methods and systems for prompt-based image editing
Publication Date: 2025.07.15 CANVA PTY LTD
  • US12361619B2 patent drawing
  • US12361619B2 patent drawing
  • US12361619B2 patent drawing

AI summary

Some embodiments relate to a method of performing prompt-based image editing. The method includes accessing an image; receiving a selected area of the image; receiving a prompt, wherein the prompt is indicative of an editing instruction; generating a latent by transforming the image into visual noise; predicting, based on the latent and the prompt, a noise image corresponding to the latent; subtracting at least a portion of the noise image from the latent to generate an updated latent; generating a noisy representation of the image; generating a masked latent based on the noisy representation, the updated latent and selected area, wherein the masked latent comprises the updated latent in the areas corresponding to the selected area, and the noisy representation in the areas that do not correspond to the selected area.