# US 2021/0174202 A1 · Method and apparatus with model optimization, and accelerator system

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

- Number: US 2021/0174202 A1
- Document ID: US20210174202A1
- Status: Published application
- Kind: A1
- Application number: 16/923,382
- Filed: 2020-07-08
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Jae-Ki HONG
- Web page: https://patentgrep.com/patent/US20210174202A1

## CPC

- G06N 3/063: using electronic means
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06F 18/29: {Graphical models, e.g. Bayesian networks}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 20/00: Machine learning
- G06N 3/045: Combinations of networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method with model optimization includes: determining a graph representing operations performed in a target model; determining an attribute of input data of the target model; determining a predicted performance of the target model based on a behavior pattern of hardware that executes the target model; and optimizing the operations performed in the target model based on the graph, the attribute of the input data, and the predicted performance of the target model.

## Claims

### Claim 1

A method with model optimization, comprising:
determining a graph representing operations performed in a target model;
determining an attribute of input data of the target model;
determining a predicted performance of the target model based on a behavior pattern of hardware that executes the target model; and
optimizing the operations performed in the target model based on the graph, the attribute of the input data, and the predicted performance of the target model.

### Claim 2 (depends on 1)

The method of claim 1, wherein the optimizing of the operations comprises optimizing a scheme of performing the operations.

### Claim 3 (depends on 1)

The method of claim 1, wherein the behavior pattern of the hardware comprises operational data associated with any one or any combination of any two or more of a memory access pattern of the hardware, a memory latency, and a use rate of the hardware when the operations are performed.

### Claim 4 (depends on 1)

The method of claim 1, wherein the hardware comprises an accelerator configured to infer data input to the target model based on the target model.

### Claim 5 (depends on 1)

The method of claim 1, wherein the attribute of the input data indicates either one or both of whether the input data is sparse or dense and whether the input data is a blocked matrix, a diagonal matrix, or a coordinate list-based matrix.

### Claim 6 (depends on 1)

The method of claim 1, wherein the optimizing of the operations comprises optimizing the operations performed in the target model at a point in time determined based on any one or any combination of any two or more of a degree to which the behavior pattern of the hardware is cumulative, a use rate of the hardware, whether data is input to the target model, and a predetermined period.

### Claim 7 (depends on 1)

The method of claim 1, wherein the determining of the attribute of the input data comprises determining the attribute of the input data using a first machine learning (ML) model separate from the target model, and
wherein the determining of the predicted performance of the target model comprises determining the predicted performance of the target model using the target model and a second ML model separate from the first ML model.

### Claim 8 (depends on 1)

The method of claim 1, wherein the target model is executed in the hardware based on the optimized operations to infer data input to the target model.

### Claim 9 (depends on 1)

The method of claim 1, wherein the hardware is a user terminal in which data to be recognized using the target model is input or a server that receives the data to be recognized from the user terminal.

### Claim 10 (depends on 1)

The method of claim 1, further comprising executing, by one or more processors, the target model to infer input data in any one of object recognition, speech recognition, pattern recognition, computer vision, and machine translation.

### Claim 11 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1.

### Claim 12

An apparatus with model optimization, comprising:
at least one processor configured to:
determine a graph representing operations performed in a target model;
determine an attribute of input data of the target model;
determine a predicted performance of the target model based on a behavior pattern of hardware that executes the target model; and
optimize the operations performed in the target model based on the graph, the attribute of the input data, and the predicted performance of the target model.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the at least one processor is further configured to optimize the operations by optimizing a scheme of performing the operations.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the behavior pattern of the hardware comprises operational data associated with any one or any combination of any two or more of a memory access pattern of the hardware, a memory latency, and a use rate of the hardware when the operations are performed.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein the hardware comprises an accelerator configured to infer data input to the target model based on the target model.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the attribute of the input data indicates either one or both of whether the input data is sparse or dense and whether the input data is a blocked matrix, a diagonal matrix, or a coordinate list-based matrix.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein the at least one processor is further configured to determine the attribute of the input data using a first machine learning (ML) model separate from the target model, and determine the predicted performance of the target model using the target model and a second ML model separate from the first ML model.

### Claim 18 (depends on 12)

The apparatus of claim 12, wherein the target model is configured to be executed in the hardware based on the optimized operations to infer data input to the target model.

### Claim 19 (depends on 12)

The apparatus of claim 12, wherein the hardware comprises a user terminal configured to be input with data to be recognized using the target model, or a server configured to receive the data to be recognized from the user terminal.

### Claim 20 (depends on 12)

The apparatus of claim 12, wherein the hardware comprises:
a user terminal configured to implement the target model to recognize data input to the user terminal by performing any one of an object recognition method, a speech recognition method, a pattern recognition method, a computer vision method, and machine translation method; or
a server configured to receive, from the user terminal, the data input to the user terminal, and implement the target model to recognize the data input to the user terminal by performing any one of an object recognition method, a speech recognition method, a pattern recognition method, a computer vision method, and machine translation method.

### Claim 21

An accelerator system, comprising:
a model optimization apparatus configured to optimize operations performed in a target model based on a graph representing the operations, an attribute of input data of the target model, and a predicted performance of the target model determined based on a behavior pattern of an accelerator in which the target model is executed; and
an accelerator configured to infer input data using a target model to which the optimized operations are applied.

### Claim 22 (depends on 21)

The accelerator system of claim 21, wherein the target model comprises a deep neural network model, and
wherein the model optimization apparatus is further configured to optimize the operations by optimizing a scheme of performing the operations, without changing any weights in the neural network model or any connection relationships between nodes included in the neural network model.
