Object attribute editing in images using generative neural networks

A supervised training method using generative neural networks edits intrinsic object attributes in images while preserving identity by conditioning on identity reference images and textual prompts, achieving state-of-the-art results in intrinsic object attribute editing.

WO2026241686A1PCT designated stage Publication Date: 2026-11-19GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/US2026/028449
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-15
Filing Date
2026-05-15
Publication Date
2026-11-19

AI Technical Summary

Technical Problem

Existing neural networks struggle with editing intrinsic properties of objects in images while preserving their identity, as they often require multiple views of the same object with varying intrinsic attributes, which are difficult to gather or create.

Method used

A supervised training approach that conditions the model on identity reference images, textual prompts, and background images to edit intrinsic attributes while preserving extrinsic context, using generative neural networks to modify intrinsic properties like color, texture, and shape.

Benefits of technology

The system achieves state-of-the-art results in editing intrinsic object attributes while maintaining the object's identity, even with a single unified model, making it feasible to tackle challenging intrinsic object attribute edits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US2026028449_19112026_PF_FP_ABST
    Figure US2026028449_19112026_PF_FP_ABST
Patent Text Reader

Abstract

System and methods for performing image editing using neural networks. More specifically, the editing requires modifying one or more intrinsic attributes of one or more objects depicted in an input image. The method comprising: receiving an input image depicting an object; receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified; processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising: initializing a representation of the target image; and updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps, at each of one or more steps: generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) a representation of the input image, and (iii) a representation of the text input using the neural network to generate a first output; and updating the representation of the target image using the output; and after updating the representation of the target image using the neural network, generating the target image using the representation of the target image.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] ATTORNEY DOCKET NO. 56113-0911WO1 / / GP-309360-00-PCT

[0002] OBJECT ATTRIBUTE EDITING IN IMAGES USING GENERATIVE NEURAE NETWORKS CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to U.S. Provisional Application No. 63 / 806,655, filed on May 15, 2025. The disclosure of the prior application is considered part of and is incorporated by reference in the disclosure of this application.

[0003] BACKGROUND

[0004] This specification relates to using neural networks to generate images.

[0005] Neural networks are machine learning models that employ one or more layers of nonlinear units to predict an output for a received input. Some neural networks include one or more hidden layers in addition to an output layer. The output of each hidden layer is used as input to the next layer in the network, i.e., the next hidden layer or the output layer. Each layer of the network generates an output from a received input in accordance with current value inputs of a respective set of parameters.

[0006] SUMMARY

[0007] This specification describes a system implemented as computer programs on one or more computers in one or more locations that generates a target image using a neural network. In particular, the system receives an input image that depicts an object and a text input specifying a respective new value for each of one or more attributes of the object to be modified and then generates a target image that depicts the object having the respective new values for each of the one or more attributes. More specifically, the one or more attributes include one or more intrinsic attributes of the object. That is, the system generates a target image depicts the object with edits to values of one or more intrinsic attributes of the object.

[0008] The subject matter described in this specification can be implemented in particular embodiments so as to realize one or more of the following advantages.

[0009] Generative neural networks have recently exhibited good results in a variety of image generation and image editing tasks. However, these neural networks struggle with tasks that require editing a specified object in an image, e.g., rather than making imagelevel changes.In particular, editing an object in an image means changing some of its properties while trying to preserve its identity’. This can be a difficult task because an object's appearance in an image is derived from a combination of intrinsic properties: color, texture, material, and shape, as well as extrinsic factors, including camera pose, lighting, and background. Many previous image editing works allow changing extrinsic properties that preserve identity, but existing methods struggle with editing intrinsic properties. For example, many existing editing methods rely on the unsupervised prior of diffusion models and, in practice, only preserve a coarse notion of identity. In contrast, subject-driven generation methods are conditioned on several views of the object identity7to preserve identity but require multiple views of the same object to be available.

[0010] This specification describes techniques that can edit an image by editing intrinsic object attributes while preserving its perceived identity.

[0011] For example, the system can improve the performance of the neural network on this task by utilizing a supervised training approach. However, directly tackling this task ideally requires many image pairs depicting the same scene and object, differing only in intrinsic attributes. Such data may not exist and may be challenging to gather or create. In some examples, to account for this, the system can relax the original task objective during training: instead of developing a method that exclusively edits intrinsic attributes, the described techniques train a model capable of editing both intrinsic and extrinsic attributes. Specifically, the described techniques can condition the model on two or more and, in some cases of all three, of the following inputs: (i) an identity reference image that captures the object’s identity7, (ii) a textual prompt describing the target intrinsic attributes, and (iii) a background image and object mask that define the extrinsic context of the target scene. At inference, the described techniques can constrain the model to preserve extrinsic context by reusing the original background and mask from the input image, ensuring that only the intrinsic attributes are altered. While this may appear to overgeneralize the task, it introduces a critical advantage: object image pairs with both intrinsic and extrinsic changes are far easier to find than those with only intrinsic changes. This makes it feasible to tackle the general task in a supervised manner, which is infeasible in the original task.

[0012] At inference time, given a source image and a text prompt specify ing the change of the target attribute (e.g., “color: red”, “material: wood”), the described techniques modify only the specified intrinsic attribute while preserving all other intrinsic and extrinsic properties, as well as the identity of the object. Thus, the described techniquessupport edits across all intrinsic attributes using a single unified model, achieving state-of-the-art results on challenging intrinsic object attribute edits - including identitypreserving object reshaping, a capability largely underexplored in prior work.

[0013] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the description below.

[0014] Other features, aspects, and advantages of the subject matter will become apparent from the description, the drawings, and the claims.

[0015] BRIEF DESCRIPTION OF THE DRAWINGS

[0016] FIG. 1 is a block diagram of an example image editing system.

[0017] FIG. 2 shows an example of object attribute editing tasks that can be performed by the system.

[0018] FIG. 3 is a flow diagram of an example process for editing an input image. FIG. 4 shows an example of the operation of the system.

[0019] FIG. 5 is a flow diagram of an example process for training the neural network. FIG. 6 shows an example of the operation of the system during training.

[0020] Like reference numbers and designations in the various drawings indicate like elements.

[0021] DETAILED DESCRIPTION FIG. 1 shows an example image editing system 100. The image editing system 100 is an example of a system implemented as computer programs on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.

[0022] The system 100 generates a target image 112 using a neural network 110.

[0023] In particular, the system 100 receives an input image 102 that depicts an object 103 and a text input 104 specifying a respective new' value for each of one or more attributes of the object to be modified. Generally, the one or more attributes include one or more intrinsic attributes (“intrinsic properties7’) of the object 103. Examples of intrinsic properties include the color, texture, material, and shape of the object 103. This is in contrast to extrinsic attributes, w'hich may impact the appearance of the object in the image but are not properties of the object itself. Examples of these include camera pose, lighting, and background.The system 100 then generates a target image 112 that depicts the object 103 having the respective new values for each of the one or more attributes. That is, the target image 112 depicts the same object 103 as the input image, but with the values of the one or more attributes being modified to new values. Thus, when depicted in the target image 112, the object 103 can have a different color, a different texture, a different material, or a different shape relative to when the object is depicted in the input image. In other words, the system 100 generates a target image 112 that preserves the identity of the object 103 while modifying one or more intrinsic attributes of the object 103.

[0024] FIG. 2 shows an example 200 of object attribute editing tasks that can be performed by the system 100. In particular, as shown in the example 200, the system 100 receives an image 202 of an object 203 (a stuffed animal toy). The system 100 can then generate target images that modify any of a variety of properties of the object 203, depending on the text input that is received by the system 100 with the input image 202.

[0025] For example, FIG. 2 shows a set of target images 210 that each modify7the texture of the object 203 to a different value based on a corresponding text input that specifies the corresponding value of the texture attribute.

[0026] As another example, FIG. 2 shows a set of target images 220 that each modify the shape of the object 203 to a different value based on a corresponding text input that specifies the corresponding value of the shape attribute.

[0027] As another example, FIG. 2 shows a set of target images 230 that each modify the color of the object 203 to a different value based on a corresponding text input that specifies the corresponding value of the color attribute.

[0028] As another example, FIG. 2 shows a set of target images 240 that each modify7the material of the object 203 to a different value based on a corresponding text input that specifies the corresponding value of the material attribute.

[0029] In particular, as shown in FIG. 1, to perform the generation, the system 100 initializes a representation 120 of the target image 112.

[0030] The system 100 then updates the representation 120 of the target image 112 using a neural network 110.

[0031] As part of the updating, at each of one or more steps, the system 100 generates an output for the step using the neural network 110 conditioned on the target image 112, the input image 102, and the text input 104 and then updates the representation 120 using the output.After updating the representation 120 of the target image 112 at the one or more steps using the neural network 110, the system generates the target image 112 using the representation 120 of the target image 112.

[0032] The type of output generated by the neural network 102 at each step and how the system 100 uses the output to update the representation 120 is dependent on the type of the neural network 102.

[0033] Generally, the neural network 110 can be any appropriate neural network that maps a conditioning input to an output image.

[0034] For example, the neural network 110 can be a denoising neural network that generates images as part of a diffusion model framework, i.e., a neural network that the system 100 uses to perform a reverse diffusion process to generate an image.

[0035] As a particular example, the neural network can be a pixel-space denoising neural network that is used to perform a reverse diffusion process in pixel space. Examples of such diffusion neural networks include Imagen (Saharia et al., 2022, “Photorealistic text-to-image diffusion models with deep language understanding”, Advances in Neural Information Processing Systems (NeurlPS), 35, 36479-36494).

[0036] As another particular example, the neural network can be a latent denoising neural network that is used to perform a reverse diffusion process in latent space, i.e., that generates and operates on latent representations in the latent space, e.g., in a latent space that is lower-dimensional than the pixel space. That is, the images (“representations”) operated on by the denoising neural network are latent images and the values for the pixels of the images are learned, latent values rather than color values.

[0037] Examples of such denoising neural networks include mobileDiffusion (Zhao et al., 2023. “MobileDiffusion: Subsecond Text-to-Image Generation on Mobile Devices”, arXiv:2311.16567).

[0038] In these implementations, during training, the denoising neural network can be associated with a latent encoder neural network to encode training images into the latent space and, after training and to generate new target images, a latent decoder neural network that receives an input that includes a latent representation of an image and decodes the latent representation to reconstruct the image. For example, both the encoder and the decoder neural networks can be convolutional neural networks, can be selfattention neural networks, or can include both convolutional and self-attention layers.

[0039] As another example, the neural network can be a different type of denoising neural network, e.g., a rectified flow generative neural network that operates in the latentspace or in the pixel space. One example of such a neural network is described in Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow, available at arXiv:2209.03003.

[0040] As another example, the neural network can be a different type of denoising neural network, e.g., a multistep consistency generative neural network that operates in the latent space or in the pixel space. One example of such a neural network is described in Multistep Consistency Models, available at arXiv:2403.06807.

[0041] In implementations where the denoising neural network operates in the latent space, during training, the denoising neural network can be associated with a latent encoder neural network to encode training images into the latent space and, after training and to generate new target images, a latent decoder neural network that receives an input that includes a latent representation of an image and decodes the latent representation to reconstruct the image. For example, both the encoder and the decoder neural networks can be convolutional neural networks, can be self-attention neural networks, or can include both convolutional and self-attention layers.

[0042] The denoising neural network can have any appropriate architecture that allows the neural network to map an input that includes an input representation of a data item and to map the input representation to a denoising output that has the same dimensionality as the input representation.

[0043] For example, the denoising neural network can be a convolutional neural network, e.g., a U-Net or other architecture that maps one input of a given dimensionality to an output of the same dimensionality.

[0044] As another example, the denoising neural network can be a Transformer neural network that processes the diffusion input through a set of self-attention layers to generate the denoising output.

[0045] As yet another example, the denoising neural network can include both convolutional layers and self-attention layers.

[0046] The denoising neural network can be conditioned on the conditioning input in any of a variety of ways.

[0047] As one example, the denoising neural network can use an encoder neural network to generate one or more embeddings that represent the conditioning input and the diffusion neural network can include one or more cross-attention layers that each crossattend into the one or more embeddings.As another example, the denoising neural network can include one or more other types of neural network layers that are conditioned on the one or more embeddings. Examples of such layers include Feature-wise Linear Modulation (FiLM) layers, layers with conditional gated activation functions, and so on.

[0048] As another example, the output(s) of the encoder(s) when encoding the conditioning input can be combined, e.g., through a weighted sum, with features of the representation of the output image, and the combined features can be processed by the remainder of the diffusion neural network.

[0049] An embedding, as used in this specification, is an ordered collection of numerical values, e.g., a vector of floating point values or other types of values.

[0050] As described above, the conditioning input generally includes text. For the text conditioning input, the denoising neural network can use a text encoder neural network, e.g., a Transformer neural network or a recurrent neural network, to generate a fixed or variable number of text embeddings that represent the conditioning text. For example, the text embeddings, which encode the target intrinsic attributes specified in the text input, e.g. a target color, texture, material, or shape, can be injected into the denoising neural network through one or more cross-attention layers or otherwise, as described above. This allows the denoising neural network to apply the requested intrinsic attribute modifications to the target image, while preserving the core identity of the object.

[0051] The denoising input at any given updating iteration can also include data defining a noise level for the iteration. Generally, each updating iteration has a corresponding time step t and the noise level for the iteration depends on the time step. For example, the noise level can be a decreasing function of the time step t. Examples of such functions include a linear function, a cosine function, and a sigmoid function. In these cases, data identifying the noise level, the time step, or both can be embedded using an appropnate neural network, e.g., a multi-layer perceptron (MLP) and used to condition the denoising neural netw ork as described above for the conditioning input.

[0052] As another example, the denoising neural netw ork can have a single, unified Transformer architecture to handle both discrete text and continuous image data within a single sequence. Instead of relying on an isolated text encoder, the system processes the text input — which specifies new values for the intrinsic attributes of the object to be modified — by tokenizing it into a discrete sequence, e.g., using a text tokenizer, e.g., a SentencePiece or BPE tokenizer. These discrete text tokens are then combined directly w ith continuous latent representations of the visual inputs, which include, e.g., thereference image, the object mask, and the background image as described below, forming a single unified sequence for the model to process.

[0053] To generate the final output, the unified Transformer functions as the denoising neural network within a denoising process. The system initializes a noisy representation of the target image and iteratively updates it across multiple time steps based on a specific noise level. During these denoising steps, the Transformer applies bidirectional attention across all the continuous image representations while attending to the causal text tokens. By processing the text conditions and image patches together in this unified manner rather than through separate cross-attention layers, the network generates a denoising output that iteratively refines the representation of the target image in the latent space. Once the iterative denoising process is complete, a latent decoder neural network reconstructs this finalized representation back into the target image depicting the modified object as described above.

[0054] Generally, the denoising output that is generated by the denoising neural network defines an estimate of the final image given the current image.

[0055] In some implementations, the denoising output is an estimate of the noise component of the current image, i.e., the noise that needs to be combined with, e.g., added to or subtracted to, the final image to generate the current image.

[0056] In some other implementations, the denoising output is an estimate of the final image given the current image, i.e., an estimate of the image that would result from removing the noise component of the current image.

[0057] In yet other implementations, the system parametrizes the denoising output differently, e.g., using a v-parameterization (Salimans and Ho arXiv: 2202.00512, 2022, section 4; Appendix D) or another appropriate parameterization.

[0058] Prior to using the neural network 110 to generate outputs, the system 100 or another training system trains the neural network 110 to generate accurate outputs, i.e., outputs that result in target images being generated that accurately reflect the requested edits. One example of training the neural network 110 will be described below with reference to FIGS. 5 and 6.

[0059] FIG. 3 is a flow diagram of an example process 300 for editing an input image. For convenience, the process 300 will be described as being performed by a system of one or more computers located in one or more locations. For example, an image editing system, e.g., the image editing system 100 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 300.The system receives an input image depicting an object (step 302).

[0060] The system receives a text input specifying a respective new value for each of one or more attributes of the object to be modified (step 304). For example, the text input can include, for each of one or more attributes, a respective natural language description of a target value for the attribute.

[0061] The system processes the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes (step 306).

[0062] To generate the target image, the system initializes a representation of the target image (step 308). For example, the system can sample the values in the representation from a noise distribution, e.g., a Gaussian distribution or another appropriate distribution. As described above, the representation can be a representation in the latent space or a representation in the pixel space.

[0063] The system updates the representation of the target image using a neural network (step 310). More specifically, the system updates the representation at each of one or more steps, e.g., denoising steps. At each step, the system generates an output for the step, e.g., a denoising output for the step, and then updates the representation using the generated output for the step.

[0064] As part of this, the system processes a first input for the step that includes (i) the representation of the target image, (ii) a representation of the input image, and (iii) a representation of the text input using the neural network to generate a first output. For example, when the neural network is a denoising neural network, the output is a denoising output, e.g., one of the example types of denoising outputs described above. The neural network can have been trained as described later, e.g. with reference to FIG. 3.

[0065] In some implementations, to generate the representation of the input image that is included first input for the step, the system can generate, from the input image, a reference image that depicts the obj ect but that does not depict the background of the input image. For example, the system can crop the background from the input image, so that the reference image includes only the foreground portion of the input image (that includes the object). As another example, the system can mask the background from the input image, so that the reference image includes the foreground portion and a masked out portion that corresponds to the background. The system can then generate the representation of the input image from the reference image. For example, the system can process the reference image using a latent encoder neural network to generate a latentrepresentation in the latent space and use the representation in the latent space as at least part of the representation of the input image.

[0066] Moreover, in some of these implementations, the first input also includes a representation of a background image that depicts a target background for the target image with the object masked out. For example, the system can obtain the background image by masking out the foreground of the input image and can then process the background image using the latent encoder neural network to generate a latent representation of the background image in the latent space.

[0067] Additionally, in some implementations, the input to the neural network also includes a representation of an object mask that identifies a target location of the object in the target image. That is, the object mask identifies, with a first value, each pixel of the target image that corresponds to the target location of the object and, with a second value, each pixel of the target image that does not correspond to the target location of the object. For example, the system can generate the representation of the object mask by resizing the object mask to have the same size as the representation of the target image, e.g., to have the same spatial dimensionality as latent representations in the latent space.

[0068] As will be described in more detail below with reference to FIG. 4, in some implementations, the system can use one of types of object masks: (i) an object mask that represents the target location of the object in the target image as a pixel -level segmentation of the object in the input image and (ii) an object mask that represents the target location of the object in the target image is a bounding box around a pixel -level segmentation of the object in the input image.

[0069] An example of the input to the denoising neural network will be described below with reference to FIG. 4.

[0070] In some cases, the system uses the first output as the output for the step. In some other cases, the system makes use of classifier-free guidance. In these cases, the system processes one or more additional inputs for the step using the neural network, e.g. for the denoising neural network, to generate one or more additional outputs, e.g., one or more additional denoising outputs. Each additional input includes the representation of the target image but does not include the representation of the input image, the representation of the text input, or both. The system then combines the first output and the one or more additional outputs in accordance with one or more guidance w eights for the step, e.g. for the reverse diffusion step, to generate the output, e.g. the denoising output.The system can update the representation using the output for the step in any of a variety of ways. For example, when the denoising neural network employs a reverse diffusion model framework, the system can apply a reverse diffusion update rule, e.g., by¬ applying a diffusion sampler to the output and to the current representation, to update the representation. As another example, when the denoising neural network employs a rectified flow framework, the system can apply a rectified flow update rule to update the representation.

[0071] After updating the representation of the target image using the neural network, the system generates the target image using the representation of the target image (312). For example, when the neural network operates in the latent space, the system can process the representation of the target image using a latent decoder neural network to generate the target image, e.g., the latent decoder neural network described above. When the neural network operates in the pixel space, the system can use the representation of the target image as the target image.

[0072] FIG. 4 shows an example 400 of the operation of the system.

[0073] In particular, in the example 400, the system processes the input image to generate a reference image that depicts the object but that does not depict a background of the input image and then generates the representation of the input image from the reference image. For example, the system can process the reference image using a latent encoder neural network to generate a latent representation in the latent space.

[0074] To generate the reference image, the system can crop or mask the background from the input image.

[0075] Moreover, to provide additional context to the neural network, in the example 400, the input to the neural network also includes a representation of a background image that depicts a target background for the target image. For example, the system can obtain the background image and then process the background image using the latent encoder neural network to generate a latent representation of the background image in the latent space.

[0076] Additionally, in the example 400, the input to the neural network also includes a representation of an object mask that identifies a target location of the object in the target image. For example, the system can generate the representation of the object mask by resizing the object mask to have the same size as the representation of the target image, e.g., to have the same spatial dimensionality as latent representations in the latent space.More specifically, the example 400 shows two examples of object masks: (i) an object mask that represents the target location of the object in the target image as a pixellevel segmentation of the object in the input image and (ii) an object mask that represents the target location of the object in the target image is a bounding box around a pixel-level segmentation of the object in the input image.

[0077] In some implementations, for any given image to be edited, the system can determine whether to represent the target location of the object in the target image as the pixel-level segmentation of the object or a bounding box around the pixel-level segmentation based on the one or more attributes to be modified, e.g., based on which attribute is requested to be modified by the text input received with the input image. That is. the system can use the same architecture to process both different types of inputs and can dynamically decide which type of input to use. In general any segmentation or bounding box model can be used, e.g., as illustrations, kMaX-DeepLab (Yu et al. arXiv:2207.04044, 2022) or OWL v2 (Minderer et al., NeurlPS 2023)

[0078] For example, the system can determine to represent the target location of the object in the target image as the bounding box around the pixel-level segmentation of the object when the one or more attributes to be modified include one or more attributes that define a shape of the object and determine to represent the target location of the object in the target image as the pixel-level segmentation of the object when the one or more attributes to be modified do not include any attributes that define the shape of the object.

[0079] In the example 400, the system uses pixel-level segmentation for the color / texture / material edits, e.g., “transparent glass,” while using the bounding box representation for shape edits, e.g., “three seat sofa.”

[0080] Thus, the input to the neural network can include multiple representations of various images or image masks.

[0081] The system can arrange these representations within the input in any of a variety of ways.

[0082] For example, the input can include an image grid that includes the representation of the target image adjacent to the representation of the input image. In this example, the representation of the object mask can be concatenated with the representation of the target image along a channel dimension of the image grid. Similarly, the representation of the background image can also be concatenated with the representation of the target image along the channel dimension of the image grid.In other words, in this example, the system can organize the inputs into a 1 x 2 image grid. For example, when each representation has a resolution of 512 x 512, this results in a composite input image of size 512 x 1024. One half, e.g., the left half contains the noisy representation of the target image, and the right half contains the representation of the reference image. This spatial layout can allow7self-attention layers in the neural network to propagate identity features across the tw o halves. In addition, the input includes the representation of the background image, in which the object region is masked, e g., with gray pixels, and a binary mask that specifies the object’s target location. In these examples, each of these inputs is placed only in the same half of the grid as the representation of the target image, e.g., the left half of the grid, and the other half is filled with zeros. All inputs are concatenated along the channel axis.

[0083] FIG. 5 is a flow7diagram of an example process 500 for training the neural network. For convenience, the process 500 will be described as being performed by a system of one or more computers located in one or more locations. For example, an image editing system, e.g., the image editing system 100 of FIG. 1, appropriately programmed in accordance with this specification, can perform the process 500.

[0084] The system can repeatedly perform iterations of the process 500 in order to train the neural network. In some cases, prior to the training by the system, the neural network can have been pre-trained. For example, the neural network can have been pre-trained on a large data set on text-to-image objective or another appropriate objective that results in the neural netw ork having general-purpose image generation capabilities.

[0085] The system selects, from a plurality of images that have been classified as belonging to the same visual category, a training input image and a training target image (step 502). In other word, the system can maintain, for each of multiple visual categories, a set of images that have been classified as corresponding to the visual categories. The system can then select a visual category from the multiple visual categories and then select the training input image and the training target image from the images that have been classified into the visual category.

[0086] For example, the system can randomly select one image from the images that have been classified as belonging to the same visual category as the training input image and another of the images that have been classified as belonging to the same visual category as the training target image.

[0087] For example, the categories can be fine-grained visual identity categories (e.g., ■‘Granny Smith apples”, ‘'Red maple trees”) that reflect how7people naturally refer tospecific object types. Unlike broad categories (e.g., ‘‘car”), which are too coarse and permit excessive variation, or instance-level identifiers, which are overly restrictive and allow minimal variation, these visual categories can strike a practical balance.

[0088] Specifically, the visual identity categories can group visually similar objects sharing a common semantic label, permitting variations in intrinsic and extrinsic attributes while preserving identity.

[0089] In some cases, the images have been classified as belonging to the same category by another system.

[0090] In some other cases, the system performs the classification.

[0091] For example, the sy stem can process each of the plurality of images using a generative neural network, e.g., a large language model (LLM) or other appropriate neural network, to generate a respective visual category label for each of the plurality’ of images. Here “LLM” generally includes a vision-language model or multimodal language model, e.g. Gemma 4 (Google DeepMind, 2026). The plurality of images can be obtained from any suitable dataset, e.g. the Openimages dataset (Kuznetsova et al., 2020, International Journal of Computer Vision, 128(7), 1956-1981).

[0092] The system can then determine that the respective visual category labels for each of the plurality of images are the same.

[0093] The system obtains training text data specifying respective values for each of one or more attributes of an object depicted in the training target image (step 504). For example, the system can use a generative neural network, e.g., the same generative neural network as above other appropriate neural network, to generate the training text data. In particular, the system can process an input that includes (i) a prompt input that instructs the generative neural network to enumerate values of a set of attributes of the training input image and (ii) the training target image using the generative neural network to generate the training text data. Because the training target image and the training input data are merely images in the same visual category’, they can differ in terms of both intrinsic and extrinsic attributes. In some cases, even if the neural network is used to edit intrinsic attributes of the object during inference, during training the text data can describe both extrinsic and intrinsic properties. This can be beneficial as training a supervised model to edit exclusively the intrinsic attributes of an object while keeping all extrinsic factors fixed is highly infeasible. Such training would require paired images of the same object with varying intrinsic attributes but identical extrinsic context, a type of data that are virtually nonexistent and extremely difficult to collect or generate. Toovercome this limitation, the system relaxes the training objective by including both intrinsic and extrinsic attributes in the training text data. Thus, instead of restricting the model to intrinsic edits alone, the system allows the model to modify both intrinsic and extrinsic attributes during training. Paired examples of this broader setting are easier to obtain, making the relaxed task feasible in a supervised setting, unlike the original restricted task.

[0094] The system generates a representation of the training target image (step 506). For example, when the neural network is a denoising neural network, the system can sample a time step and process the training target image using the latent encoder neural network to generate an initial representation of the training target image. The system can then sample noise from the noise distribution and combine the sampled noise with the initial representation of the training target image in accordance with a noise level corresponding to the sampled time step to generate the "noisy" representation.

[0095] The system processes a training input that includes (i) the representation of the training target image, (ii) a representation of the training input image, and (iii) a representation of the training text input using the neural network to generate a training output (step 508).

[0096] For example, the system can process the training input image to generate a reference training image that depicts the object but that does not depict a background of the training input image and then generate the representation of the training input image from the reference training image.

[0097] In some cases, the training input also includes other data.

[0098] For example, the sy stem can process the training target image to generate a training background image that depicts a portion of the training target image with the target location of the object in the training target image masked out and then include, in the training input, a representation of the training background image.

[0099] As another example, the system can process the training target image to generate a training object mask that identifies a target location of the object in the training target image, and then include, in the training input, a representation of the training object mask. As described above, the target location of the object in the training target image can be (i) a pixel-level segmentation of the object in the training target image or (ii) a bounding box around a pixel-level segmentation of the object in the training target image. For example, the system can determine at random whether to represent the target location of the object in the training target image as the pixel -lev el segmentation of the object or the boundingbox around the pixel -level segmentation of the object.

[0100] The system trains the neural network on an objective that measures an error between the training output and a target output for the training target image (step 510).

[0101] Depending on the denoising framework being used for training, the target output can be any appropriate target output. For example, the target output for the training target image can be (i) the sampled noise, (ii) the initial representation of the training target image, or (iii) a combination of the sampled noise and the initial representation of the training target image.

[0102] Merely as a few examples, the objective used to train the neural network can comprise a Mean Squared Error (MSE), an L2 loss, or a Huber loss. As described herein, this objective (loss) can be spatially masked so that it is calculated only over a spatial region (e.g. a portion of an image grid) corresponding to the noised representation of the target image, in particular ignoring a spatial region corresponding to the representation of the input image. Depending on the chosen denoising framework, this target output can be parameterized in various ways. Merely as some examples, the target output can be an s-prediction objective (e.g. the neural network can be trained to predict sampled noise e added to the image); an xo-prediction objective (the neural network can be trained to predict a clean, i.e. denoised image representation xo) or a v-prediction objective (the neural network can predict a velocity vector v that represents a combination of the sampled noise and the initial representation).

[0103] FIG. 6 shows an example 600 of the operation of the system during training. In the example 600, the input to the neural network includes an image grid that includes a representation of the target image adjacent to a representation of the input image. In this example, the representation of the object mask is concatenated with the representation of the target image along a channel dimension of the image grid.

[0104] Thus, during training, the image grid includes a noised representation of the target image adjacent to a representation of the input image, i.e., the representation of the reference image. Moreover, the input also includes another image grid concatenated to the image grid along the channel dimension, with the representation of the background image being concatenated with the representation of the target image.

[0105] As can be seen in the example 600, during training, the loss is only applied to the portion of the output that corresponds to the noised representation of the target image.

[0106] The above description generally describes editing intrinsic attributes at inference time. More generally, however, the described techniques can be used to edit bothintrinsic and extrinsic attributes at inference time. In this example, the system is given a new background image, a reference object image, and a textual prompt describing the desired attribute modifications. The neural network then composes the object into the new scene while applying the specified intrinsic edits. If the prompt is empty (i. e. , ” ”), the neural network is instructed to preserve all intrinsic attributes from the reference identity' and perform only the insertion of the object into the new context. Thus, in this example, the background image is generated from the background of a different, context image rather than the input image.

[0107] In this specification, the term "configured" is used in relation to computing systems and environments, as well as computer program components. A computing system or environment is considered "configured" to perform specific operations or actions when it possesses the necessary software, firmware, hardware, or a combination thereof, enabling it to carry' out those operations or actions during operation. For instance, configuring a system might involve installing a software library wi th specific algorithms, updating firmware with new instructions for handling data, or adding a hardware component for enhanced processing capabilities. Similarly, one or more computer programs are "configured" to perform particular operations or actions when they contain instructions that, upon execution by a computing device or hardware, cause the device to perform those intended operations or actions.

[0108] The embodiments and functional operations described in this specification can be implemented in various forms, including digital electronic circuitry, software, firmware, computer hardware (encompassing the disclosed structures and their structural equivalents), or any combination thereof. The subj ect matter can be realized as one or more computer programs, essentially modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by or to control the operation of a computing device or hardware. The storage medium can be a storage device such as a hard drive or solid-state drive (SSD), a storage medium, a random or serial access memory' device, or a combination of these. Additionally or alternatively, the program instructions can be encoded on a transmitted signal, such as a machine-generated electrical, optical, or electromagnetic signal, designed to carry' information for transmission to a receiving device or system for execution by a computing device or hardware. Furthermore, implementations may leverage emerging technologies like quantum computing or neuromorphic computing for specific applications, and may bedeployed in distributed or cloud-based environments where components reside on different machines or within a cloud infrastructure.

[0109] The term "computing device or hardware" refers to the physical components involved in data processing and encompasses all types of devices and machines used for this purpose. Examples include processors or processing units, computers, multiple processors or computers working together, graphics processing units (GPUs), tensor processing units (TPUs). and specialized processing hardware such as field-programmable gate arrays (FPGAs) or application-specific integrated circuits (ASICs). Tn addition to hardware, a computing device or hardware may also include code that creates an execution environment for computer programs. This code can take the form of processor firmware, a protocol stack, a database management system, an operating system, or a combination of these elements. Embodiments may particularly benefit from utilizing the parallel processing capabilities of GPUs, in a General-Purpose computing on Graphics Processing Units (GPGPU) context, where code specifically designed for GPU execution, often called kernels or shaders, is employed. Similarly, TPUs excel at running optimized tensor operations crucial for many machine learning algorithms. By leveraging these accelerators and their specialized programming models, the system can achieve significant speedups and efficiency gains for tasks involving artificial intelligence and machine learning, particularly in areas such as computer vision, natural language processing, and robotics.

[0110] A computer program, also referred to as software, an application, a module, a script, code, or simply a program, can be written in any programming language, including compiled or interpreted languages, and declarative or procedural languages. It can be deployed in various forms, such as a standalone program, a module, a component, a subroutine, or any other unit suitable for use within a computing environment. A program may or may not correspond to a single file in a file system and can be stored in various ways. This includes being embedded within a file containing other programs or data (e.g., scripts within a markup language document), residing in a dedicated file, or distributed across multiple coordinated files (e.g.. files storing modules, subprograms, or code segments). A computer program can be executed on a single computer or across multiple computers, whether located at a single site or distributed across multiple sites and interconnected through a data communication network. The specific implementation of the computer programs may involve a combination of traditional programming languages and specialized languages or libraries designed for GPGPU programming or TPUutilization, depending on the chosen hardware platform and desired performance characteristics.

[0111] In this specification, the term "engine" broadly refers to a software-based system, subsystem, or process designed to perform one or more specific functions. An engine is ty pically implemented as one or more software modules or components installed on one or more computers, which can be located at a single site or distributed across multiple locations. In some instances, one or more dedicated computers may be used for a particular engine, while in other cases, multiple engines may operate concurrently on the same one or more computers. Examples of engine functions within the context of Al and machine learning could include data pre-processing and cleaning, feature engineering and extraction, model training and optimization, inference and prediction generation, and post-processing of results. The specific design and implementation of engines will depend on the overall architecture and the distribution of computational tasks across various hardware components, including CPUs, GPUs, TPUs, and other specialized processors.

[0112] The processes and logic flows described in this specification can be executed by one or more programmable computers running one or more computer programs to perform functions by operating on input data and generating output. Additionally, graphics processing units (GPUs) and tensor processing units (TPUs) can be utilized to enable concurrent execution of aspects of these processes and logic flows, significantly accelerating performance. This approach offers significant advantages for computationally intensive tasks often found in Al and machine learning applications, such as matrix multiplications, convolutions, and other operations that exhibit a high degree of parallelism. By leveraging the parallel processing capabilities of GPUs and TPUs, significant speedups and efficiency gains compared to relying solely on CPUs can be achieved. Alternatively or in combination with programmable computers and specialized processors, these processes and logic flows can also be implemented using specialized processing hardware, such as field-programmable gate arrays (FPGAs) or applicationspecific integrated circuits (ASICs), for even greater performance or energy’ efficiency in specific use cases.

[0113] Computers capable of executing a computer program can be based on general-purpose microprocessors, special -purpose microprocessors, or a combination of both. They can also utilize any other type of central processing unit (CPU). Additionally, graphics processing units (GPUs), tensor processing units (TPUs), and other machinelearning accelerators can be employed to enhance performance, particularly for tasks involving artificial intelligence and machine learning. These accelerators often work in conjunction with CPUs, handling specialized computations while the CPU manages overall system operations and other tasks. Typically, a CPU receives instructions and data from read-only memory' (ROM), random access memory' (RAM), or both. The elements of a computer include a CPU for executing instructions and one or more memory devices for storing instructions and data. The specific configuration of processing units and memory' will depend on factors like the complexity of the Al model, the volume of data being processed, and the desired performance and latency requirements. Embodiments can be implemented on a wide range of computing platforms, from small embedded devices with limited resources to large-scale data center systems with high-performance computing capabilities. The system may include storage devices like hard drives, SSDs, or flash memory for persistent data storage.

[0114] Computer-readable media suitable for storing computer program instructions and data encompass all forms of non-volatile memory, media, and memory devices.

[0115] Examples include semiconductor memory devices such as read-only memory (ROM), solid-state drives (SSDs), and flash memory devices; hard disk drives (EIDDs); optical media; and optical discs such as CDs, DVDs, and Blu-ray discs. The specific type of computer-readable media used will depend on factors such as the size of the data, access speed requirements, cost considerations, and the desired level of portability or permanence.

[0116] To facilitate user interaction, embodiments of the subject matter described in this specification can be implemented on a computing device equipped with a display device, such as a liquid crystal display (LCD) or an organic light-emitting diode (OLED) display, for presenting information to the user. Input can be provided by the user through various means, including a keyboard), touchscreens, voice commands, gesture recognition, or other input modalities depending on the specific device and application. Additional input methods can include acoustic, speech, or tactile input, while feedback to the user can take the form of visual, auditory’, or tactile feedback. Furthermore, computers can interact with users by exchanging documents with a user's device or application. This can involve sending web content or data in response to requests or sending and receiving text messages or other forms of messages through mobile devices or messaging platforms. The selection of input and output modalities will depend on the specific application and the desired form of user interaction.Machine learning models can be implemented and deployed using machine learning frameworks, such as TensorFlow or JAX. These frameworks offer comprehensive tools and libraries that facilitate the development, training, and deployment of machine learning models.

[0117] Embodiments of the subject matter described in this specification can be implemented within a computing system comprising one or more components, depending on the specific application and requirements. These may include a back-end component, such as a back-end server or cloud-based infrastructure; an optional middleware component, such as a middleware server or application programming interface (API), to facilitate communication and data exchange; and a front-end component, such as a client device with a user interface, a web browser, or an app, through which a user can interact with the implemented subject matter. For instance, the described functionality could be implemented solely on a client device (e.g., for on-device machine learning) or deployed as a combination of front-end and back-end components for more complex applications. These components, when present, can be interconnected using any form or medium of digital data communication, such as a communication network like a local area network (LAN) or a wide area netw ork (WAN) including the Internet. The specific system architecture and choice of components w ill depend on factors such as the scale of the application, the need for real-time processing, data security requirements, and the desired user experience.

[0118] The computing system can include clients and servers that may be geographically separated and interact through a communication network. The specific type of network, such as a local area network (LAN), a wide area network (WAN), or the Internet, will depend on the reach and scale of the application. The client-server relationship is established through computer programs running on the respective computers and designed to communicate with each other using appropriate protocols. These protocols may include HTTP, TCP / IP, or other specialized protocols depending on the nature of the data being exchanged and the security requirements of the system. In certain embodiments, a server transmits data or instructions to a user's device, such as a computer, smartphone, or tablet, acting as a client. The client device can then process the received information, display results to the user, and potentially send data or feedback back to the server for further processing or storage. This allows for dynamic interactions between the user and the system, enabling a wide range of applications and

[0119] functionalities.While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially be claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.

[0120] Similarly, while operations are depicted in the drawings and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0121] Particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. As one example, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Innovative aspects of the present disclosure are also set out in the following numbered clauses.

[0122] Clause 1. A method performed by one or more computers, the method comprising:

[0123] receiving an input image depicting an object;

[0124] receiving a text input specifying a respective new value for each of one or moreatributes of the object to be modified; and

[0125] processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more atributes, comprising:

[0126] initializing a representation of the target image; and

[0127] updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:

[0128] generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) a representation of the input image, and (iii) a representation of the text input using the neural network to generate a first output; and

[0129] updating the representation of the target image using the output; and

[0130] after updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

[0131] Clause 2. The method of clause 1, wherein the neural network is a denoising neural network.

[0132] Clause 3. The method of clause 2, wherein the one or more steps are a plurality of reverse diffusion steps.

[0133] Clause 4. The method of clause 3, wherein the first input for the step is a first diffusion input for the reverse diffusion step, and the first output is a first denoising output.

[0134] Clause 5. The method of clause 4, wherein each reverse diffusion step is associated with a respective time step that has a corresponding noise level and wherein the diffusion input for the reverse diffusion step comprises data characterizing the respective time step, the corresponding noise level, or both.

[0135] Clause 6. The method of clause 1, wherein the neural network is a multi-step consistency neural network.Clause 7. The method of clause 1, wherein the neural network is a rectified flow generative neural network.

[0136] Clause 8. The method of any preceding clause, wherein:

[0137] the representation of the target image is a latent representation in a latent space, and

[0138] generating the target image using the representation of the target image comprises processing the representation of the target image using a latent decoder neural network to generate the target image.

[0139] Clause 9. The method of any preceding clause, further comprising:

[0140] processing the input image to generate a reference image that depicts the object but that does not depict a background of the input image; and

[0141] generating the representation of the input image from the reference image.

[0142] Clause 10. The method of clause 9, when dependent on clause 8, wherein generating the representation of the input image from the reference image comprises:

[0143] processing the reference image using a latent encoder neural network to generate a latent representation in the latent space.

[0144] Clause 11. The method of clause 9 or clause 10, wherein processing the input image to generate a reference image that depicts the object but that does not depict a background of the input image comprises cropping or masking the background from the input image.

[0145] Clause 12. The method of any preceding clause, further compnsing:

[0146] processing the input image to generate an object mask that identifies a target location of the obj ect in the target image.

[0147] Clause 13. The method of clause 12, wherein the first input for the step further comprises a representation of the object mask.

[0148] Clause 14. The method of clause 13 when dependent on clause 8, further comprising:

[0149] generating the representation of the object mask by resizing the object mask tohave a same size as the representation of the target image.

[0150] Clause 15. The method of any preceding clause, further comprising:

[0151] obtaining a background image that depicts a target background for the target image with a target location of the obj ect in the target image masked out.

[0152] Clause 16. The method of clause 15. wherein the first input for the step further comprises a representation of the background image.

[0153] Clause 17. The method of clause 16 when dependent on clause 8, further comprising:

[0154] generating the representation of the background image by processing the background image using a latent encoder neural network.

[0155] Clause 18. The method of any one of clauses 12-17, wherein the target location of the object in the target image is a pixel-level segmentation of the object in the input image.

[0156] Clause 19. The method of any one of clauses 12-17, wherein the target location of the object in the target image is a bounding box around a pixel -lev el segmentation of the object in the input image.

[0157] Clause 20. The method of clause 18 or clause 19, further comprising:

[0158] determining whether to represent the target location of the object in the target image as the pixel -lev el segmentation of the object or a bounding box around the pixellevel segmentation based on the one or more attributes to be modified.

[0159] Clause 21. The method of clause 20, wherein determining whether to represent the target location of the object in the target image as a pixel-level segmentation of the object or a bounding box around the pixel -level segmentation of the object based on the one or more attributes to be modified comprises:

[0160] determining to represent the target location of the object in the target image as the bounding box around the pixel-level segmentation of the obj ect when the one or more attributes to be modified include one or more attributes that define a shape of the object; and

[0161] determining to represent the target location of the object in the target image as thepixel-level segmentation of the object when the one or more attributes to be modified do not include any attributes that define the shape of the object.

[0162] Clause 22. The method of any preceding clause, wherein the first input comprises an image grid that comprises the representation of the target image adjacent to the representation of the input image.

[0163] Clause 23. The method of clause 22, when dependent on clause 13, wherein the representation of the object mask is concatenated with the representation of the target image along a channel dimension of the image grid.

[0164] Clause 24. The method of clause 22 or clause 23, when dependent on clause 16, wherein the representation of the background image is concatenated with the representation of the target image along a channel dimension of the image grid.

[0165] Clause 25. The method of any preceding clause, wherein the output for the step is the first output.

[0166] Clause 26. The method of any one of clauses 1-24, wherein generating an output for the step further comprises:

[0167] processing one or more additional inputs for the step using the denoising neural network to generate one or more additional outputs, wherein each additional input includes the representation of the target image but does not include one or more of the representation of the input image or the representation of the text input; and combining the first output and the one or more additional outputs in accordance with one or more guidance weights for the reverse step to generate the denoising output.

[0168] Clause 27. A method of training a neural network to perform an attribute editing task, the method comprising:

[0169] selecting, from a plurality of images that have been classified as belonging to a same visual category, a training input image and a training target image;

[0170] obtaining training text data specifying respective values for each of one or more attributes of an object depicted in the training target image;

[0171] generating a representation of the training target image;processing a training input that comprises (i) the representation of the training target image, (ii) a representation of the training input image, and (iii) a representation of the training text input using the neural network to generate a training output; and training the neural network on an objective that measures an error between the training output and a target output for the training target image.

[0172] Clause 28. The method of clause 27. wherein obtaining training text data specifying respective values for each of one or more attributes of an object depicted in the training target image comprises:

[0173] processing an input comprising (i) a prompt input and (ii) the training target image using a first generative neural network to generate the training text data.

[0174] Clause 29. The method of clause 27 or clause 28, further comprising:

[0175] classifying the plurality of images as belonging to the same visual category, comprising:

[0176] processing each of the plurality of images using a second generative neural network to generate a respective visual category label for each of the plurality of images; and

[0177] determining that the respective visual category labels for each of the plurality of images are the same.

[0178] Clause 30. The method of any one of clauses 27-29, further comprising:

[0179] processing the training input image to generate a reference training image that depicts the object but that does not depict a background of the training input image; and generating the representation of the training input image from the reference training image.

[0180] Clause 31. The method of any one of clauses 27-30, further comprising:

[0181] processing the training target image to generate a training object mask that identifies a target location of the object in the training target image, wherein the training input further comprises a representation of the training object mask.

[0182] Clause 32. The method of any one of clauses 27-30, further comprising:

[0183] processing the training target image to generate a training background image thatdepicts a portion of the training target image with the target location of the object in the training target image masked out, wherein the training input comprises a representation of the training background image.

[0184] Clause 33. The method of any one of clause 31 or 32, wherein the target location of the object in the training target image is a pixel-level segmentation of the object in the training target image.

[0185] Clause 34. The method of any one of clauses 31 or 32, wherein the target location of the object in the training target image is a bounding box around a pixel-level segmentation of the object in the training target image.

[0186] Clause 35. The method of clause 33 or clause 34, further comprising:

[0187] determining at random whether to represent the target location of the obj ect in the training target image as the pixel-level segmentation of the object or the bounding box around the pixel-level segmentation of the object.

[0188] Clause 36. The method of any one of clauses 27-35, wherein the neural network is a denoising neural network.

[0189] Clause 37. The method of clause 36, wherein the training input is a diffusion input and the training output is a denoising output.

[0190] Clause 38. The method of clause 37, wherein the representation of the target image is a noisy representation generated by adding noise to an initial representation of the target image.

[0191] Clause 39. The method of any one of clauses 27-35, wherein the neural network is a multi-step consistency neural network.

[0192] Clause 40. The method of any one of clauses 27-35, wherein the neural network is a rectified flow generative neural network.Clause 41. The method of any one of clauses 27-40, wherein:

[0193] the representation of the target image is a latent representation in a latent space, and wherein the method further comprises

[0194] generating the representation of the target image, comprising processing the target image using a latent encoder neural network that encodes images into the latent space.

[0195] Clause 42. The method of any one of clauses 1-41, wherein generating a representation of the training target image comprises:

[0196] sampling a time step;

[0197] sampling noise from a noise distribution; and

[0198] combining the sampled noise with an initial representation of the training target image in accordance with a noise level corresponding to the sampled time step.

[0199] Clause 43. The method of clause 42, wherein the initial representation of the training target image is (i) the training target image or (ii) a latent representation the training target image.

[0200] Clause 44. The method of clause any one of clauses 42 or 43, wherein the target output for the training target image is (i) the sampled noise, (ii) the initial representation of the training target image, or (iii) a combination of the sampled noise and the initial representation of the training target image.

[0201] Clause 45. The method of any preceding clause, when dependent on clause 15, wherein obtaining the background image comprises:

[0202] processing the input image to generate an image that depicts a portion of the input image with the target location of the object in the target image masked out.

[0203] Clause 46. The method of any one of clauses 1-44, when dependent on clause 15. wherein obtaining the background image comprises:

[0204] processing a different context image to generate an image that depicts a portion of the context image with the target location of the object in the target image masked out.Clause 47. A method performed by one or more computers, the method comprising: receiving an input image depicting an object;

[0205] receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified;

[0206] generating a representation of a reference image that depicts the object but that does not depict a background of the input image;

[0207] generating a representation of a background image that depicts a target background for the target image with a target location of the object in the target image masked out;

[0208] processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising:

[0209] initializing a representation of the target image, and updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:

[0210] generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) the representation of the reference image, (iii) the representation of the background image, and (iv) a representation of the text input using the neural network to generate a first output; and updating the representation of the target image using the output; and

[0211] after updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

[0212] Clause 48. A method performed by one or more computers, the method comprising: receiving an input image depicting an object;

[0213] receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified;

[0214] determining whether to represent a target location of the object in the input image as a pixel-level segmentation or a coarse bounding mask encompassing the object based on the one or more attributes to be modified, comprising:

[0215] determining to represent the target location as the coarse bounding mask when the text input specifies modifying a shape of the object; and

[0216] determining to represent the target location as the precise pixel-level segmentation when the text input does not specify modifying the shape of the object;generating a representation of an object mask based on the determination; processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising:

[0217] initializing a representation of the target image, and updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:

[0218] generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) a representation of the input image, (iii) a representation of the text input, and (iv) the representation of the object mask using the neural network to generate a first output; and updating the representation of the target image using the output; and

[0219] after updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

[0220] Clause 49. 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 the operations of the respective method of any preceding clause.

[0221] Clause 50. A computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the respective method of any one of clauses 1-48.

[0222] What is claimed is:

Claims

CLAIMS1. A method performed by one or more computers, the method comprising:receiving an input image depicting an obj ect;receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified; andprocessing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising:initializing a representation of the target image; andupdating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) a representation of the input image, and (iii) a representation of the text input using the neural network to generate a first output; andupdating the representation of the target image using the output; andafter updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

2. The method of claim 1, wherein the neural network is a denoising neural network.

3. The method of claim 2, wherein the one or more steps are a plurality of reverse diffusion steps.

4. The method of claim 3, wherein the first input for the step is a first diffusion input for the reverse diffusion step, and the first output is a first denoising output.

5. The method of claim 4, wherein each reverse diffusion step is associated with a respective time step that has a corresponding noise level and wherein the diffusion input for the reverse diffusion step comprises data characterizing the respective time step, the corresponding noise level, or both.

6. The method of claim 1, wherein the neural network is a multi-step consistency neural network.

7. The method of claim 1, wherein the neural network is a rectified flow generative neural network.

8. The method of any preceding claim, wherein:the representation of the target image is a latent representation in a latent space, andgenerating the target image using the representation of the target image comprises processing the representation of the target image using a latent decoder neural network to generate the target image.

9. The method of any preceding claim, further comprising:processing the input image to generate a reference image that depicts the object but that does not depict a background of the input image; andgenerating the representation of the input image from the reference image.

10. The method of claim 9, when dependent on claim 8, wherein generating the representation of the input image from the reference image comprises:processing the reference image using a latent encoder neural network to generate a latent representation in the latent space.

11. The method of claim 9 or claim 10. wherein processing the input image to generate a reference image that depicts the object but that does not depict a background of the input image comprises cropping or masking the background from the input image.

12. The method of any preceding claim, further comprising:processing the input image to generate an object mask that identifies a target location of the object in the target image.

13. The method of claim 12, wherein the first input for the step further comprises a representation of the object mask.

14. The method of claim 13 when dependent on claim 8, further comprising: generating the representation of the object mask by resizing the object mask to have a same size as the representation of the target image.

15. The method of any preceding claim, further comprising:obtaining a background image that depicts a target background for the target image.

16. The method of claim 15, wherein the first input for the step further comprises a representation of the background image.

17. The method of claim 16 when dependent on claim 8, further comprising:generating the representation of the background image by processing the background image using a latent encoder neural network.

18. The method of any one of claims 12-17, wherein the target location of the object in the target image is a pixel-level segmentation of the object in the input image.

19. The method of any one of claims 12-17, wherein the target location of the object in the target image is a bounding box around a pixel-level segmentation of the object in the input image.

20. The method of claim 18 or claim 19, further comprising:determining whether to represent the target location of the object in the target image as the pixel-level segmentation of the object or a bounding box around the pixellevel segmentation based on the one or more attributes to be modified.

21. The method of claim 20, wherein determining whether to represent the target location of the object in the target image as a pixel -level segmentation of the object or a bounding box around the pixel-level segmentation of the object based on the one or more attributes to be modified comprises:determining to represent the target location of the object in the target image as the bounding box around the pixel-level segmentation of the object when the one or more attributes to be modified include one or more attributes that define a shape of the object;anddetermining to represent the target location of the object in the target image as the pixel-level segmentation of the object when the one or more attributes to be modified do not include any attributes that define the shape of the object.

22. The method of any preceding claim, wherein the first input comprises an image grid that comprises the representation of the target image adjacent to the representation of the input image.

23. The method of claim 22, when dependent on claim 13, wherein the representation of the object mask is concatenated with the representation of the target image along a channel dimension of the image grid.

24. The method of claim 22 or claim 23, when dependent on claim 16, wherein the representation of the background image is concatenated with the representation of the target image along a channel dimension of the image grid.

25. The method of any preceding claim, wherein the output for the step is the first output.

26. The method of any one of claims 1 -24, wherein generating an output for the step further comprises:processing one or more additional inputs for the step using the neural network to generate one or more additional outputs, wherein each additional input includes the representation of the target image but does not include one or more of the representation of the input image or the representation of the text input; andcombining the first output and the one or more additional outputs in accordance with one or more guidance weights for the step to generate the output.

27. A method of training a neural network to perform an attribute editing task, the method comprising:selecting, from a pl urality of images that have been classified as belonging to a same visual category, a training input image and a training target image;obtaining training text data specifying respective values for each of one or moreatributes of an object depicted in the training target image;generating a representation of the training target image;processing a training input that comprises (i) the representation of the training target image, (ii) a representation of the training input image, and (iii) a representation of the training text input using the neural network to generate a training output; and training the neural network on an objective that measures an error between the training output and a target output for the training target image.

28. The method of claim 27, wherein obtaining training text data specifying respective values for each of one or more atributes of an obj ect depicted in the training target image comprises:processing an input comprising (i) a prompt input and (ii) the training target image using a first generative neural network to generate the training text data.

29. The method of claim 27 or claim 28, further comprising:classifying the plurality of images as belonging to the same visual category, comprising:processing each of the plurality of images using a second generative neural network to generate a respective visual category label for each of the plurality of images; anddetermining that the respective visual category labels for each of the plurality of images are the same.

30. The method of any one of claims 27-29, further comprising:processing the training input image to generate a reference training image that depicts the obj ect but that does not depict a background of the training input image; and generating the representation of the training input image from the reference training image.

31. The method of any one of claims 27-30, further comprising:processing the training target image to generate a training object mask that identifies a target location of the object in the training target image, wherein the training input further comprises a representation of the training object mask.

32. The method of any one of claims 27-31, further comprising:processing the training target image to generate a training background image that depicts a portion of the training target image with a target location of the object in the training target image masked out, wherein the training input comprises a representation of the training background image.

33. The method of any one of claim 31 or 32, wherein the target location of the object in the training target image is a pixel-level segmentation of the object in the training target image.

34. The method of any one of claims 31 or 32, wherein the target location of the object in the training target image is a bounding box around a pixel-level segmentation of the object in the training target image.

35. The method of claim 33 or claim 34, further comprising:determining at random whether to represent the target location of the object in the training target image as the pixel-level segmentation of the object or the bounding box around the pixel-level segmentation of the object.

36. The method of any one of claims 27-35, wherein the neural network is a denoising neural network.

37. The method of claim 36, wherein the training input is a diffusion input and the training output is a denoising output.

38. The method of claim 37, wherein the representation of the target image is a noisy representation generated by adding noise to an initial representation of the target image.

39. The method of any one of claims 27-35, wherein the neural network is a multi-step consistency neural network.

40. The method of any one of claims 27-35, wherein the neural network is a rectified flow generative neural network.

41. The method of any one of claims 27-40, wherein:the representation of the target image is a latent representation in a latent space, and wherein the method further comprisesgenerating the representation of the target image, comprising processing the target image using a latent encoder neural network that encodes images into the latent space.

42. The method of any one of claims 1-41, wherein generating a representation of the training target image comprises:sampling a time step;sampling noise from a noise distribution; andcombining the sampled noise with an initial representation of the training target image in accordance with a noise level corresponding to the sampled time step.

43. The method of claim 42, wherein the initial representation of the training target image is (i) the training target image or (ii) a latent representation of the training target image.

44. The method of claim any one of claims 42 or 43, wherein the target output for the training target image is (i) the sampled noise, (ii) the initial representation of the training target image, or (iii) a combination of the sampled noise and the initial representation of the training target image.

45. The method of any preceding claim, when dependent on claim 15. wherein obtaining the background image comprises:processing the input image to generate an image that depicts a portion of the input image with the target location of the object in the target image masked out.

46. The method of any one of claims 1-44. when dependent on claim 15, wherein obtaining the background image comprises:processing a different context image to generate an image that depicts a portion of the context image with the target location of the object in the target image masked out.

47. A method performed by one or more computers, the method comprising: receiving an input image depicting an object;receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified;generating a representation of a reference image that depicts the object but that does not depict a background of the input image;generating a representation of a background image that depicts a target background for the target image with a target location of the object in the target image masked out;processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising:initializing a representation of the target image, and updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) the representation of the reference image, (iii) the representation of the background image, and (iv) a representation of the text input using the neural network to generate a first output; and updating the representation of the target image using the output; andafter updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

48. A method performed by one or more computers, the method comprising:receiving an input image depicting an object;receiving a text input specifying a respective new value for each of one or more attributes of the object to be modified;determining whether to represent a target location of the object in the input image as a pixel-level segmentation or a coarse bounding mask encompassing the object based on the one or more attributes to be modified, comprising:determining to represent the target location as the coarse bounding mask when the text input specifies modifying a shape of the object; anddetermining to represent the target location as the precise pixel-level segmentation when the text input does not specify modifying the shape of the object;generating a representation of an object mask based on the determination; processing the text input and the input image to generate a target image that depicts the object having the respective new values for each of the one or more attributes, comprising:initializing a representation of the target image, and updating the representation of the target image using a neural network, the updating comprising, at each of one or more steps:generating an output for the step, comprising processing a first input for the step that comprises (i) the representation of the target image, (ii) a representation of the input image, (iii) a representation of the text input, and (iv) the representation of the object mask using the neural network to generate a first output; and updating the representation of the target image using the output; andafter updating the representation of the target image using the neural network, generating the target image using the representation of the target image.

49. 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 the operations of the respective method of any preceding claim.

50. A computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the respective method of any one of claims 1-48.