# US 2026/0073576 A1 · Computing perceptual similarity directly in latent space

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

- Number: US 2026/0073576 A1
- Document ID: US20260073576A1
- Status: Published application
- Kind: A1
- Application number: 18/827,195
- Filed: 2024-09-06
- Published: 2026-03-12
- Earliest claimed: 2024-09-06
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Richard Zhang; Taesung Park; Michaël Gharbi; Elya Shechtman
- Web page: https://patentgrep.com/patent/US20260073576A1

## CPC

- G06T 11/00: Two-dimensional [2D] image generation
- G06T 5/60: using machine learning, e.g. neural networks
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method, apparatus, non-transitory computer readable medium, and system for assessing perceptual similarity include training an image generation model based on a latent code perceptual similarity by obtaining training data including a first latent code representing a first image and a second latent code representing a second image and encoding, using a perceptual similarity model, the first latent code and the second latent code to obtain a first feature stack and a second feature stack, respectively. The perceptual similarity model generates the latent code perceptual similarity based on the first feature stack and the second feature stack, wherein the latent code perceptual similarity represents a perceptual similarity between the first image and the second image. Then parameters of the image generation model are updated based on the latent code perceptual similarity.

## Claims

### Claim 1

A method of training an image generation model, the method comprising:
training an image generation model based on a latent code perceptual similarity by:
obtaining training data including a first latent code representing a first image and a second latent code representing a second image;
encoding, using a perceptual similarity model, the first latent code and the second latent code to obtain a first feature stack and a second feature stack, respectively; and
generating, using the perceptual similarity model, the latent code perceptual similarity based on the first feature stack and the second feature stack, wherein the latent code perceptual similarity represents a perceptual similarity between the first image and the second image; and
updating parameters of the image generation model based on the latent code perceptual similarity.

### Claim 2 (depends on 1)

The method of claim 1, wherein the encoding comprises:
successively generating features at a plurality of levels, wherein each successive level of the plurality of levels has a smaller number of pixels or a larger number of channels than a previous level of the plurality of levels.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the latent code perceptual similarity comprises:
generating a combined feature stack by combining the first feature stack and the second feature stack, wherein the latent code perceptual similarity is based on the combined feature stack.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the combined feature stack comprises:
normalizing the first feature stack and the second feature stack to obtain a first normalized feature stack and a second normalized feature stack, respectively; and
subtracting the second normalized feature stack from the first normalized feature stack to obtain the combined feature stack.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
weighting the combined feature stack using weights of the perceptual similarity model to obtain a weighted feature stack, wherein the latent code perceptual similarity is based on the weighted feature stack.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
computing an L1 norm and a spatial average based on the weighted feature stack to obtain the latent code perceptual similarity.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
obtaining additional training data including a positive sample pair of perceptually similar images, wherein the first image and the second image correspond to the positive sample pair;
training, using the additional training data, the perceptual similarity model to generate the latent code perceptual similarity.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
obtaining additional training data including a negative sample pair of perceptually dissimilar images, wherein the perceptual similarity model is trained based on the additional training data.

### Claim 9 (depends on 1)

The method of claim 1, wherein obtaining the training data comprises:
encoding the first image and the second image to obtain the first latent code and the second latent code, respectively.

### Claim 10

A method of training a perceptual similarity model, the method comprising:
obtaining training data including a first latent code representing a first image, a second latent code representing a second image, and ground-truth perceptual similarity between the first image and the second image; and
training, using the training data, a perceptual similarity model to determine a latent code perceptual similarity between the first latent code and the second latent code.

### Claim 11 (depends on 10)

The method of claim 10, wherein training the perceptual similarity model comprises:
computing a latent code perceptual similarity between the first latent code and the second latent code;
comparing the latent code perceptual similarity and the ground-truth perceptual similarity; and
updating parameters of the perceptual similarity model based on the comparison.

### Claim 12 (depends on 10)

The method of claim 10, wherein:
the latent code perceptual similarity is determined without decoding the first latent code or the second latent code.

### Claim 13 (depends on 10)

The method of claim 10, wherein obtaining training data comprises:
encoding the first image and the second image to obtain the first latent code and the second latent code, respectively.

### Claim 14 (depends on 10)

The method of claim 10, further comprising:
training an image generation model using an output of the perceptual similarity model.

### Claim 15

An apparatus comprising:
at least one processor;
at least one memory storing instructions executable by the at least one processor; and
an image generation model comprising parameters stored in the at least one memory and trained to generate a latent code representing perceptual attributes of the image element based on the input prompt and to generate a synthetic image depicting the image element with the perceptual attributes based on the latent code wherein the image generation model is trained to generate the perceptual attributes based a latent code perceptual similarity between training latent codes.

### Claim 16 (depends on 15)

The apparatus of claim 15, further comprising:
a perceptual similarity model trained to generate the latent code perceptual similarity.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein:
the perceptual similarity model comprises a feature pyramid network comprising a plurality of feature levels.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein:
the perceptual similarity model generates the latent code perceptual similarity without decoding the training latent codes.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein:
the image generation model comprises a latent diffusion model.

### Claim 20 (depends on 15)

The apparatus of claim 15, wherein:
the image generation model comprises a decoder trained to decode the latent code.
