# US 2023/0410475 A1 · Polynomial self-attention

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

- Number: US 2023/0410475 A1
- Document ID: US20230410475A1
- Status: Published application
- Kind: A1
- Application number: 18/460,319
- Filed: 2023-09-01
- Published: 2023-12-21
- Earliest claimed: 2021-03-16
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Francesca Babiloni; Ioannis Marras; Jiankang Deng; Stefanos Zafeiriou
- Web page: https://patentgrep.com/patent/US20230410475A1

## CPC

- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/764: using classification, e.g. of video objects
- G06F 18/24133: {Distances to prototypes}
- G06V 10/56: relating to colour
- G06V 10/7747: {Organisation of the process, e.g. bagging or boosting}
- G06V 10/776: Validation; Performance evaluation
- 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 classification apparatus for allocating a raw image to a respective class out of a plurality of classes, the apparatus comprising one or more processors and a memory storing in non-transient form data defining program code executable by the one or more processors to implement an image classification model, the apparatus being configured to: receive a raw image; generate a plurality of raw matrices from the raw image, wherein each of the plurality of raw matrices is formed by one spatial value and one characteristic value; and allocate the raw image to the respective class depending on the plurality of raw matrices. By forming each of the raw matrices by one spatial value and one characteristic value the computational cost may be reduced.

## Claims

### Claim 1

An apparatus for allocating a raw image to a respective class out of a plurality of classes, the apparatus comprising:
one or more processors; and
a memory storing program code that, when executed by the one or more processors, cause the apparatus to implement an image classification model including operations comprising:
receiving a raw image;
generating a plurality of raw matrices from the raw image, wherein each raw matrix of the plurality of raw matrices is formed by one spatial value and one characteristic value; and
allocating the raw image to the respective class out of the plurality of classes based on the plurality of raw matrices.

### Claim 2 (depends on 1)

The apparatus according to claim 1, wherein implementing the image classification model further includes operations comprising:
before generating the plurality of raw matrices, generating a plurality of raw tensors from the raw image, wherein each raw tensor of the plurality of raw tensors comprises two or more spatial values and one characteristic value; and
unfolding each raw tensor of the plurality of raw tensors to generate the plurality of raw matrices.

### Claim 3 (depends on 1)

The apparatus according to claim 1, wherein implementing the image classification model further includes operations comprising:
allocating the raw image to the respective class out of the plurality of classes based on the plurality of raw matrices by comparing the raw matrices with the image classification model and allocating the raw image to the respective class based on comparing the raw matrices with the image classification model.

### Claim 4 (depends on 3)

The apparatus according to claim 3, wherein implementing the image classification model further includes operations comprising:
comparing the raw matrices with the image classification model by comparing an error difference between the raw matrices and the image classification model and allocating the raw image to the respective class based on comparing the error difference between the raw matrices and the image classification model.

### Claim 5 (depends on 3)

The apparatus according to claim 3, wherein implementing the image classification model further includes operations comprising:
comparing the raw matrices with the image classification model by a convolutional neural network.

### Claim 6 (depends on 3)

The apparatus according to claim 3, wherein implementing the image classification model further includes operations comprising:
comparing the raw matrices with the image classification model by a self-attention weighting operation.

### Claim 7 (depends on 3)

The apparatus according to claim 3, wherein implementing the image classification model further includes operations comprising:
comparing the raw matrices with the image classification model by an average pooling down-sampling operation.

### Claim 8 (depends on 3)

The apparatus according to claim 3, wherein implementing the image classification model further includes operations comprising:
comparing the raw matrices with the image classification model by a max pooling down-sampling operation.

### Claim 9 (depends on 1)

The apparatus according to claim 1, wherein the spatial values in the plurality of raw matrices represent a coordinate position of the raw image.

### Claim 10 (depends on 1)

The apparatus according to claim 1, wherein characteristic values of the plurality of raw matrices represent colour values of the raw image.

### Claim 11

A method for allocating a raw image to a respective class out of a plurality of classes, the method comprising:
receiving a raw image;
generating a plurality of raw matrices from the raw image, wherein each raw matrix of the plurality of raw matrices is formed by one spatial value and one characteristic value; and
allocating the raw image the respective class out of the plurality of classes based on the plurality of raw matrices.

### Claim 12

An apparatus for training an image classification model, the apparatus comprising one or more processors configured to:
receive a training image;
generate a plurality of training matrices from the training image, wherein each training matrix of the plurality of training matrices is formed of one spatial value and one characteristic value; and
adapt the image classification model based on the plurality of training matrices.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the one or more processors are further configured to:
before generating the plurality of training matrices, generate a plurality of training tensors from the training image, wherein each training tensor the plurality of training tensors comprises two or more spatial values and one characteristic value; and
unfold each training tensor of the plurality of training tensors to generate the plurality of training matrices.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein the one or more processors are further configured to:
before adapting the image classification model, receive a truth image corresponding to the training image; and
generate a plurality of truth matrices from the truth image, wherein each truth matrix of the plurality of truth matrices has one spatial value and one characteristic value.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the one or more processors are further configured to:
before generating the plurality of truth matrices, generate a plurality of truth tensors from the truth image, wherein each truth tensor of the plurality of truth tensors comprises two or more spatial values and one characteristic value; and
unfold each truth tensor of the plurality of truth tensors to generate the plurality of truth matrices.

### Claim 16 (depends on 14)

The apparatus according to claim 14, wherein the one or more processors are further configured to:
adapt the image classification model based on the plurality of training matrices by comparing the training matrices with the truth matrices and adapting the image classification model based on comparing the training matrices with the truth matrices.

### Claim 17 (depends on 12)

The apparatus according to claim 12, wherein the one or more processors are further configured to:
carry out the steps of claim 12 for one or more subsequent training images, wherein each subsequent training image of the one or more subsequent training images comprises an input for a subsequent training iteration of the image classification model.

### Claim 18 (depends on 14, 17)

The apparatus according to claim 17, wherein the one or more processors are further configured to:
carry out the steps claim 14 for one or more subsequent truth images, wherein the one or more subsequent truth images correspond to the one or more subsequent training images, and wherein the one or more subsequent truth images provide a subsequent truth iteration.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein the one or more processors are further configured to:
provide one or more input conditions of a subsequent training iteration, wherein the one or more input conditions are dependent on a difference between preceding training matrices and preceding truth matrices.

### Claim 20

A method for training an image classification model, the method comprising:
receiving a training image;
generating a plurality of training matrices from the training image, wherein each training matrix of the plurality of training matrices is formed of one spatial value and one characteristic value; and
adapting the image classification model based on the plurality of training matrices.
