# US 2026/0094247 A1 · Modifying target regions within an image using a diffusion neural network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0094247 A1
- Document ID: US20260094247A1
- Status: Published application
- Kind: A1
- Application number: 19/348,558
- Filed: 2025-10-02
- Published: 2026-04-02
- Earliest claimed: 2024-10-02
- Applicants: Google LLC
- Inventors: Paul Adrian Vicol; Yinxiao Li; Xiaoying Xing; Avinab Saha; Mungyung Ryu; Susan Hao; Feng Yang; Deepak Ramachandran; Junfeng He; Gang Li; Sarah Ming Young; Sahil Singla
- Web page: https://patentgrep.com/patent/US20260094247A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06T 5/60: using machine learning, e.g. neural networks
- G06N 3/096: Transfer learning
- G06T 5/70: Denoising; Smoothing
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for training a diffusion neural network using a region-aware fine-tuning process. After training, the diffusion neural network can be used to generate an image conditioned on a conditioning input.

## Claims

### Claim 1

A method performed by one or more computers for training a diffusion neural network that has parameters, wherein the method comprises:
generating a first image by using a pre-trained diffusion neural network in accordance with pre-trained values of parameters of the pre-trained diffusion neural network;
determining a target region within the first image, wherein the target region comprises a subset of pixels of the first image;
generating a second image by using the diffusion neural network in accordance with current values of the parameters of the diffusion neural network; and
training the diffusion neural network to update current values of at least a subset of the parameters of the diffusion neural network based on optimizing an objective function that depends on (i) a reward score for the second image that is determined by using a reward function and (ii) a product of a first term that depends on the target region within the first image and a second term that depends on a difference between the first image and the second image.

### Claim 2 (depends on 1)

The method of claim 1, wherein generating the first image by using the pre-trained diffusion neural network comprises:
obtaining a conditioning input characterizing one or more desired properties;
obtaining a noise; and
performing, using the pre-trained diffusion neural network and in accordance with the pre-trained values of the parameters of the pre-trained diffusion neural network, a denoising process to generate the first image based on the conditioning input and the noise.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the second image by using the diffusion neural network comprises:
performing, using the diffusion neural network and in accordance with the current values of the parameters of the diffusion neural network, a denoising process to generate the second image based on the conditioning input and the noise.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the target region within the first image comprises:
processing the first image using an image quality model to generate a heatmap or a mask that identifies the target region within the first image.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the target region within the first image comprises:
processing the first image using an image quality model to generate a plurality of quality scores; and
applying a gradient-based saliency map to the plurality of quality scores to identify the target region within the first image.

### Claim 6 (depends on 1)

The method of claim 1, wherein the product of the first term that depends on the target region within the first image and the second term that depends on the difference between the first image and the second image is a Hadamard product.

### Claim 7 (depends on 1)

The method of claim 1, wherein training the diffusion neural network based on optimizing the objective function comprises:
updating current values of a set of adapter parameters of the diffusion neural network based on the gradients while holding current values of a set of base parameters of the diffusion neural network fixed.

### Claim 8 (depends on 7)

The method of claim 7, wherein the set of base parameters of the diffusion neural network comprise the parameters of the pre-trained diffusion neural network, and wherein the current values of the set of base parameters of the diffusion neural network are fixed to the pre-trained values of the parameters of the pre-trained diffusion neural network.

### Claim 9 (depends on 1)

The method of claim 1, wherein the reward function comprises one or more reward models that each measure a different aspect of the second image, and wherein the reward score is a combination of respective reward scores generated by each of the one or more reward models by processing a reward function input that includes at least a portion of the second image.

### Claim 10 (depends on 9)

The method of claim 9, wherein the pre-trained diffusion neural network has been pre-trained on a diffusion model training objective that does not use the reward function.

### Claim 11 (depends on 1)

The method of claim 1, wherein the pre-trained diffusion neural network is the diffusion neural network but has pre-trained values of the parameters of the pre-trained diffusion neural network that are different from the current values of the parameters of the diffusion neural network.

### Claim 12 (depends on 10)

The method of claim 10, wherein the reward function input comprises the conditioning input.

### Claim 13 (depends on 1)

The method of claim 1, further comprising, after the training, using the diffusion neural network to generate an image based on a conditioning input.

### Claim 14

A method performed by one or more computers, wherein the method comprises:
receiving a conditioning input characterizing one or more desired properties for an image;
generating an initial representation of the image;
generating the image by updating the initial representation across a plurality of update steps, the generating comprising, at each of the plurality of update steps:
processing a diffusion input for the update step that comprises an intermediate representation of the image and a representation of the conditioning input using a diffusion neural network to generate a denoising output for the update step;
determining a product of (i) a reward score that is generated by using a reward function based on the intermediate representation of the image and (ii) a regional map that identifies a target region of the image and that is generated by using a mask function;
computing gradients of the product with respect to pixels included in the intermediate representation of the image; and
updating the intermediate representation of the image based on the denoising output and the gradients.

### Claim 15 (depends on 14)

The method of claim 14, wherein the reward function comprises a quality classifier and the reward score comprises a quality score generated by the quality classifier from processing the intermediate representation of the image.

### Claim 16 (depends on 14)

The method of claim 14, wherein the reward function comprises one or more reward models that each measure a different aspect of the intermediate representation of the image, and wherein the reward score is a combination of respective reward scores generated by each of the one or more reward models by processing the intermediate representation of the image.

### Claim 17 (depends on 14)

The method of claim 14, wherein the reward function comprises a summation function and the reward score comprises a sum of regional maps generated by using mask function in preceding update steps.

### Claim 18 (depends on 14)

The method of claim 14, wherein updating the intermediate representation of the image based on the denoising output and the gradients comprises:
determining that a gradient exceeds a predetermined threshold value and, in response, clipping the gradient to have the predetermined threshold value; and
updating the intermediate representation of the image based on the denoising output and the clipped gradient.

### Claim 19

A system comprising one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations for training a diffusion neural network that has parameters, wherein the operations comprise:
generating a first image by using a pre-trained diffusion neural network in accordance with pre-trained values of parameters of the pre-trained diffusion neural network;
determining a target region within the first image, wherein the target region comprises a subset of pixels of the first image;
generating a second image by using the diffusion neural network in accordance with current values of the parameters of the diffusion neural network; and
training the diffusion neural network to update current values of at least a subset of the parameters of the diffusion neural network based on optimizing an objective function that depends on (i) a reward score for the second image that is determined by using a reward function and (ii) a product of a first term that depends on the target region within the first image and a second term that depends on a difference between the first image and the second image.

### Claim 20

A non-transitory computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations for training a diffusion neural network that has parameters, wherein the operations comprise:
generating a first image by using a pre-trained diffusion neural network in accordance with pre-trained values of parameters of the pre-trained diffusion neural network;
determining a target region within the first image, wherein the target region comprises a subset of pixels of the first image;
generating a second image by using the diffusion neural network in accordance with current values of the parameters of the diffusion neural network; and
training the diffusion neural network to update current values of at least a subset of the parameters of the diffusion neural network based on optimizing an objective function that depends on (i) a reward score for the second image that is determined by using a reward function and (ii) a product of a first term that depends on the target region within the first image and a second term that depends on a difference between the first image and the second image.
