# US 2024/0185578 A1 · Image encoding learning and application

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

- Number: US 2024/0185578 A1
- Document ID: US20240185578A1
- Status: Published application
- Kind: A1
- Application number: 18/398,945
- Filed: 2023-12-28
- Published: 2024-06-06
- Earliest claimed: 2023-01-10
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Quan Cui; Hao Wu; Cheng Yang
- Web page: https://patentgrep.com/patent/US20240185578A1

## CPC

- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/82: using neural networks
- G06V 10/98: Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V 30/10: Character recognition
- G06V 30/19173: {Classification techniques}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments of the present disclosure provide a solution for image encoding learning and application. A method for image encoding learning comprises: extracting an image feature representation of a sample image using an image encoder to be trained; extracting a text feature representation of a sample text sequence using a text encoder, the sample text sequency being associated with the sample image; generating, using the text encoder, a predicted text sequence based on the text feature representation and the image feature representation; and training the image encoder at least based on a text error between the predicted text sequence and the sample text sequence.

## Claims

### Claim 1

A method for data encoding learning, comprising:
extracting an image feature representation of a sample image using an image encoder to be trained;
extracting a text feature representation of a sample text sequence using a text encoder, the sample text sequency being associated with the sample image;
generating, using the text encoder, a predicted text sequence based on the text feature representation and the image feature representation; and
training the image encoder at least based on a text error between the predicted text sequence and the sample text sequence.

### Claim 2 (depends on 1)

The method of claim 1, wherein training the image encoder comprises:
generating, using the image encoder, a predicted image based on the image feature representation; and
training the image encoder further based on an image error between the predicted image sequence and the sample image sequence.

### Claim 3 (depends on 1)

The method of claim 1, wherein training the image encoder comprises:
jointly training the image encoder and the text encoder at least based on the text error; and
wherein the method further comprises:
providing the trained image encoder for a downstream task, wherein the text encoder is discarded.

### Claim 4 (depends on 1)

The method of claim 1, wherein extracting the image feature representation comprises:
masking at least one image block of the sample image; and
extracting, using the image encoder, the image feature representation from at least one unmasked image block of the sample image.

### Claim 5 (depends on 1)

The method of claim 1, wherein the sample text sequence comprises a plurality of text units, and wherein extracting the text feature representation comprises: for a given text unit of the plurality of text units,
extracting a text feature representation for the given text unit from the given text unit and at least one text unit preceding the given text unit in the sample text sequence.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating the predicted text sequence comprises: for a given text unit of the plurality of text units,
determining a predicted text unit from the text feature representation for the given text unit and the image feature representation, the predicted text unit a prediction of a text unit following the given text unit in the sample text sequence.

### Claim 7 (depends on 5)

The method of claim 5, wherein the given text unit is a last text unit in the sample text sequence, and the predicted text unit is a prediction of an end of the sample text sequence.

### Claim 8 (depends on 1)

The method of claim 1, wherein the sample text sequence comprises a plurality of text units, and wherein generating the predicted text sequence comprises:
determining self-attention weights for the sample image based on the image feature representation and the text feature representation; and
generating the predicted text sequence based on the image feature representation and the self-attention weights.

### Claim 9 (depends on 1)

The method of claim 1, wherein the text encoder comprises a transformer block, and the text feature representation is defined as a query feature input to the transformer block, and the image feature representation is defined as a key feature and a value feature input to the transformer block.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
extracting, using the trained image encoder, an image feature representation of a target image; and
performing a predetermined vision task for the target image based on the image feature representation of the target image.

### Claim 11

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions executable by the at least one processing unit, the instructions, upon execution by the at least one processing unit, causing the device to perform acts comprising:
extracting an image feature representation of a sample image using an image encoder to be trained;
extracting a text feature representation of a sample text sequence using a text encoder, the sample text sequency being associated with the sample image;
generating, using the text encoder, a predicted text sequence based on the text feature representation and the image feature representation; and
training the image encoder at least based on a text error between the predicted text sequence and the sample text sequence.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein training the image encoder comprises:
generating, using the image encoder, a predicted image based on the image feature representation; and
training the image encoder further based on an image error between the predicted image sequence and the sample image sequence.

### Claim 13 (depends on 11)

The electronic device of claim 11, wherein training the image encoder comprises:
jointly training the image encoder and the text encoder at least based on the text error; and
wherein the device further comprises:
providing the trained image encoder for a downstream task, wherein the text encoder is discarded.

### Claim 14 (depends on 11)

The electronic device of claim 11, wherein extracting the image feature representation comprises:
masking at least one image block of the sample image; and
extracting, using the image encoder, the image feature representation from at least one unmasked image block of the sample image.

### Claim 15 (depends on 11)

The electronic device of claim 11, wherein the sample text sequence comprises a plurality of text units, and wherein extracting the text feature representation comprises: for a given text unit of the plurality of text units,
extracting a text feature representation for the given text unit from the given text unit and at least one text unit preceding the given text unit in the sample text sequence.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein generating the predicted text sequence comprises: for a given text unit of the plurality of text units,
determining a predicted text unit from the text feature representation for the given text unit and the image feature representation, the predicted text unit a prediction of a text unit following the given text unit in the sample text sequence.

### Claim 17 (depends on 15)

The electronic device of claim 15, wherein the given text unit is a last text unit in the sample text sequence, and the predicted text unit is a prediction of an end of the sample text sequence.

### Claim 18 (depends on 11)

The electronic device of claim 11, wherein the sample text sequence comprises a plurality of text units, and wherein generating the predicted text sequence comprises:
determining self-attention weights for the sample image based on the image feature representation and the text feature representation; and
generating the predicted text sequence based on the image feature representation and the self-attention weights.

### Claim 19 (depends on 11)

The electronic device of claim 11, wherein the text encoder comprises a transformer block, and the text feature representation is defined as a query feature input to the transformer block, and the image feature representation is defined as a key feature and a value feature input to the transformer block.

### Claim 20

A non-transitory computer-readable storage medium, having a computer program stored thereon which, upon execution by a processor, implements acts comprising:
extracting an image feature representation of a sample image using an image encoder to be trained;
extracting a text feature representation of a sample text sequence using a text encoder, the sample text sequency being associated with the sample image;
generating, using the text encoder, a predicted text sequence based on the text feature representation and the image feature representation; and
training the image encoder at least based on a text error between the predicted text sequence and the sample text sequence.
