# US 2025/0095393 A1 · Text-augmented object centric relationship detection

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

- Number: US 2025/0095393 A1
- Document ID: US20250095393A1
- Status: Published application
- Kind: A1
- Application number: 18/470,778
- Filed: 2023-09-20
- Published: 2025-03-20
- Earliest claimed: 2023-09-20
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Ziyan Yang; Kushal Kafle; Zhe Lin; Scott Cohen; Zhihong Ding
- Web page: https://patentgrep.com/patent/US20250095393A1

## CPC

- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06F 40/205: Parsing
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, apparatus, and non-transitory computer readable medium for image processing are described. Embodiments of the present disclosure obtain an image and an input text including a subject from the image and a location of the subject in the image. An image encoder encodes the image to obtain an image embedding. A text encoder encodes the input text to obtain a text embedding. An image processing apparatus based on the present disclosure generates an output text based on the image embedding and the text embedding. In some examples, the output text includes a relation of the subject to an object from the image and a location of the object in the image.

## Claims

### Claim 1

A method comprising:
obtaining an image and an input text including a subject from the image and a location of the subject in the image;
encoding the image to obtain an image embedding;
encoding the input text to obtain a text embedding; and
generating an output text based on the image embedding and the text embedding, wherein the output text includes a relation of the subject to an object from the image and a location of the object in the image.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
combining the image embedding and the text embedding to obtain a combined embedding, wherein the output text is generated based on the combined embedding.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating a first portion of the output text indicating the relation; and
generating a second portion of the output text indicating the location of the object based on the relation.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the location of the subject comprises coordinates for a bounding box surrounding the subject.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
the input text comprises a symbol between the subject and the location of the subject, and wherein the output text comprises the symbol between the relation and the location of the object.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
obtaining the subject in the image; and
generating the input text based on the obtaining.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
modifying the image to obtain a modified image based on the subject, the object, and the relation of the subject to the object.

### Claim 8

A method comprising:
receiving training data including a training image, a training input text including a subject from the training image, a ground-truth relation of the subject to an object from the training image, and a ground-truth location of the object in the training image; and
training, using the training data, a machine learning model to generate an output text that includes a relation of the subject to the object and a location of the object in the training image.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
obtaining additional training data including an additional training image, an additional training input including an additional subject from the additional training image, an additional ground-truth relation of the additional subject to an additional object from the additional training image, wherein the machine learning model is trained based on the additional training data.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
obtaining a plurality of captions; and
parsing a caption of the plurality of captions, wherein the additional training input is obtained based on the parsing.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
encoding the training image to obtain an image embedding;
encoding the training input text to obtain a text embedding;
generating a predicted output text based on the image embedding and the text embedding; and
computing a loss function based on the predicted output text, the ground-truth relation, and the ground-truth location, wherein the machine learning model is trained based on the loss function.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
combining the image embedding and the text embedding to obtain a combined embedding, wherein the predicted output text is generated based on the combined embedding.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
generating a first portion of the output text indicating the relation; and
generating a second portion of the output text indicating the location of the object based on the relation.

### Claim 14

An apparatus comprising:
at least one processor;
at least one memory including instructions executable by the at least one processor; and
a machine learning model comprising parameters stored in the at least one memory, wherein the machine learning model is trained to generate an output text including a relation of a subject to an object from an image and a location of the object in the image based on an input text including the subject from the image and a location of the subject in the image.

### Claim 15 (depends on 14)

The apparatus of claim 14, further comprising:
an image encoder configured to encode the image to obtain an image embedding.

### Claim 16 (depends on 14)

The apparatus of claim 14, further comprising:
a text encoder configured to encode the input text to obtain a text embedding.

### Claim 17 (depends on 14)

The apparatus of claim 14, further comprising:
a multi-modal encoder configured to combine an image embedding and a text embedding to obtain a combined embedding, wherein the output text is generated based on the combined embedding.

### Claim 18 (depends on 14)

The apparatus of claim 14, further comprising:
a decoder configured to generate a first portion of the output text indicating the relation and a second portion of the output text indicating the location of the object based on the relation.

### Claim 19 (depends on 14)

The apparatus of claim 14, further comprising:
a training component configured to compute a loss function based on training data and to train the machine learning model based on the loss function.

### Claim 20 (depends on 14)

The apparatus of claim 14, wherein:
the machine learning model obtains the subject in the image, wherein the input text is generated based on the obtaining.
