# US 2021/0279589 A1 · Electronic device and control method thereof

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

- Number: US 2021/0279589 A1
- Document ID: US20210279589A1
- Status: Published application
- Kind: A1
- Application number: 17/258,617
- Filed: 2019-05-10
- Published: 2021-09-09
- Earliest claimed: 2018-08-28
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Dongsoo LEE; Parichay KAPOOR; Byeoungwook KIM
- Web page: https://patentgrep.com/patent/US20210279589A1

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 18/2163: {Partitioning the feature space}
- G06F 18/25: Fusion techniques
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06V 10/776: Validation; Performance evaluation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Disclosed is an electronic device. The electronic device comprises a storage in which sample data and a matrix included in an artificial intelligence model which is trained on the basis of the sample data are stored, and a processor, wherein the processor is configured to: on the basis of the sizes of a plurality of elements included in the matrix, obtain a first matrix pruned by converting values of elements in the number corresponding to a first proportion to zero values; on the basis of test data, obtain first accuracy of an artificial intelligence model including the first matrix; if the first accuracy is within a preset range with respect to a preset value, retrain the artificial intelligence model including the first matrix on the basis of the sample data; and, on the basis of the sizes of a plurality of elements included in the retrained first matrix, obtain a second matrix pruned by converting values of elements in the number corresponding to a second proportion, which is greater than the first proportion, to zero values.

## Claims

### Claim 1

An electronic device comprising:
a storage in which sample data and a matrix included in an artificial intelligence model which is trained based on the sample data are stored, and
a processor configured to:
based on sizes of a plurality of elements included in the matrix, obtain a first matrix pruned by converting values of elements in the number corresponding to a first proportion to zero values,
based on test data, obtain first accuracy of an artificial intelligence model including the first matrix,
based on the first accuracy being within a preset range with respect to a preset value, retrain the artificial intelligence model including the first matrix based on the sample data, and
based on sizes of a plurality of elements included in the retrained first matrix, obtain a second matrix pruned by converting values of elements in the number corresponding to a second proportion, which is greater than the first proportion, to zero values.

### Claim 2 (depends on 1)

The electronic device of claim 1,
wherein the processor is configured to:
identify elements in the number corresponding to the first proportion in the order of having smaller sizes of absolute values among the plurality of elements included in the matrix, and
identify elements in the number corresponding to the second proportion in the order of having smaller sizes of absolute values among the plurality of elements included in the retrained first matrix.

### Claim 3 (depends on 1)

The electronic device of claim 1,
wherein the processor is configured to:
obtain second accuracy of an artificial intelligence model including the second matrix based on the test data,
based on the second accuracy being within the preset range with respect to the preset value, retrain the artificial intelligence model including the second matrix based on the sample data, and
based on sizes of a plurality of elements included in the retrained second matrix, obtain a third matrix pruned by converting values of elements in the number corresponding to a third proportion, which is greater than the second proportion, to zero values.

### Claim 4 (depends on 3)

The electronic device of claim 3,
wherein the processor is configured to:
obtain third accuracy of an artificial intelligence model including the third matrix based on the test data, and
based on the third accuracy being outside the preset range with respect to the preset value, determine the second matrix as the final matrix of the matrix included in the artificial intelligence model.

### Claim 5 (depends on 3)

The electronic device of claim 3,
wherein the processor is configured to:
based on the number of times of pruning applied to the third matrix being a preset number of times, determine the third matrix as the final matrix of the matrix included in the artificial intelligence model.

### Claim 6 (depends on 1)

The electronic device of claim 1,
wherein the processor is configured to:
based on the first accuracy being outside the preset range with respect to the preset value, convert values of elements in the number corresponding to a proportion smaller than the first proportion to zero values, based on the sizes of a plurality of elements included in the matrix, so as to obtain a re-pruned first matrix.

### Claim 7 (depends on 1)

The electronic device of claim 1,
wherein the preset value was obtained based on the accuracy of the artificial intelligence model including the matrix based on the test data.

### Claim 8 (depends on 1)

The electronic device of claim 1,
wherein the processor is configured to:
divide the matrix into a first sub matrix and a second sub matrix through singular value decomposition (SVD) based on a first rank value, instead of a pruning operation based on the first proportion, and combine the first sub matrix and the second sub matrix to obtain the first matrix, and
divide the retrained first matrix into a third sub matrix and a fourth sub matrix through SVD based on a second rank value smaller than the first rank value, instead of a pruning operation based on the second proportion, and combine the third sub matrix and the fourth sub matrix to obtain the second matrix.

### Claim 9 (depends on 8)

The electronic device of claim 8,
wherein the processor is configured to:
obtain second accuracy of an artificial intelligence model including the second matrix based on the test data, and
based on the second accuracy being outside the preset range with respect to the preset value, determine the first sub matrix and the second sub matrix as the final matrices of the matrix included in the artificial intelligence model.

### Claim 10 (depends on 8)

The electronic device of claim 8,
wherein the processor configured to:
based on the first accuracy being outside the preset range with respect to the preset value, redivide the matrix into the first sub matrix and the second sub matrix through SVD based on a second rank value bigger than the first rank value, and combine the first sub matrix and the second sub matrix to reobtain the first matrix.

### Claim 11

A control method of an electronic device storing sample data and a matrix included in an artificial intelligence model which is trained based on the sample data, the method comprising:
based on sizes of a plurality of elements included in the matrix, obtaining a first matrix pruned by converting values of elements in the number corresponding to a first proportion to zero values;
based on test data, obtaining first accuracy of an artificial intelligence model including the first matrix;
based on the first accuracy being within a preset range with respect to a preset value, retraining the artificial intelligence model including the first matrix based on the sample data; and
based on sizes of a plurality of elements included in the retrained first matrix, obtaining a second matrix pruned by converting values of elements in the number corresponding to a second proportion, which is greater than the first proportion, to zero values.

### Claim 12 (depends on 11)

The control method of claim 11,
wherein the obtaining a first matrix comprises:
identifying elements in the number corresponding to the first proportion in the order of having smaller sizes of absolute values among the plurality of elements included in the matrix, and
the obtaining a second matrix comprises:
identifying elements in the number corresponding to the second proportion in the order of having smaller sizes of absolute values among the plurality of elements included in the retrained first matrix.

### Claim 13 (depends on 11)

The control method of claim 11, further comprising:
obtaining second accuracy of an artificial intelligence model including the second matrix based on the test data;
based on the second accuracy being within the preset range with respect to the preset value, retraining the artificial intelligence model including the second matrix based on the sample data; and
based on sizes of a plurality of elements included in the retrained second matrix, obtaining a third matrix pruned by converting values of elements in the number corresponding to a third proportion, which is greater than the second proportion, to zero values.

### Claim 14 (depends on 13)

The control method of claim 13, further comprising:
obtaining third accuracy of an artificial intelligence model including the third matrix based on the test data; and
based on the third accuracy being outside the preset range with respect to the preset value, determining the second matrix as the final matrix of the matrix included in the artificial intelligence model.

### Claim 15 (depends on 13)

The control method of claim 13, further comprising:
based on the number of times of pruning applied to the third matrix being a preset number of times, determining the third matrix as the final matrix of the matrix included in the artificial intelligence model.
