# US 2021/0287085 A1 · Parallel processing method and apparatus for neutral network model

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

- Number: US 2021/0287085 A1
- Document ID: US20210287085A1
- Status: Published application
- Kind: A1
- Application number: 17/023,496
- Filed: 2020-09-17
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Jaeyeon KIM
- Web page: https://patentgrep.com/patent/US20210287085A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F 9/5066: {Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs (mappping at compile time, see G06F8/451)}
- G06F 18/213: Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/285: {Selection of pattern recognition techniques, e.g. of classifiers in a multi-classifier system}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 2209/501: Performance criteria
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A parallel processing method and apparatus for a neural network model. The parallel processing method includes extracting metadata of a target layer included in a target model, measuring a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers, selecting a corresponding layer among the reference layers based on the similarities, and generating a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.

## Claims

### Claim 1

A parallel processing method for a target model based on a neural network, the parallel processing method comprising:
extracting metadata of a target layer included in the target model;
measuring a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
selecting a corresponding layer among the reference layers based on the similarities; and
generating a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.

### Claim 2 (depends on 1)

The parallel processing method of claim 1, wherein selecting the corresponding layer comprises:
in response to a presence of a first reference layer, from among the reference layers, having a same reference metadata as metadata of the target layer, selecting the first reference layer as the corresponding layer; and
in response to an absence of the first reference layer among the reference layers, selecting, from among the reference layers, a second reference layer having most similar reference metadata to the metadata of the target layer as the corresponding layer.

### Claim 3 (depends on 2)

The parallel processing method of claim 2, wherein in response to the second reference layer being selected as the corresponding layer, reference layer information corresponding to the metadata of the target layer is added to a reference database (DB) in which reference metadata of each of the reference layers is stored.

### Claim 4 (depends on 3)

The parallel processing method of claim 3, wherein
the reference layer information comprises link information, and
in response to the second reference layer being selected as the corresponding layer, identification information of the second reference layer is recorded as the link information in the reference layer information.

### Claim 5 (depends on 3)

The parallel processing method of claim 3, further comprising:
in response to the reference layer information corresponding to the metadata of the target layer being added to the reference DB, generating a new parallelization strategy corresponding to the metadata of the target layer.

### Claim 6 (depends on 5)

The parallel processing method of claim 5, wherein the generating of the new parallelization strategy is performed independently of performing of the parallelization strategy for the target layer.

### Claim 7 (depends on 5)

The parallel processing method of claim 5, wherein the generating of the new parallelization strategy is performed in response to an amount of new reference layer information that comprises the reference layer information corresponding to the metadata of the target layer and that is added to the reference DB exceeding a threshold.

### Claim 8 (depends on 5)

The parallel processing method of claim 5, wherein
the similarities are measured using a similarity measurement model that is based on the neural network, and
in response to the new parallelization strategy being generated, the similarity measurement model is retrained based on the new parallelization strategy.

### Claim 9 (depends on 5)

The parallel processing method of claim 5, wherein in response to the new parallelization strategy being generated, the link information of the reference layer information is changed to an empty state.

### Claim 10 (depends on 1)

The parallel processing method of claim 1, further comprising:
performing parallel processing of operations related to the target layer based on the parallelization strategy.

### 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 parallel processing method of claim 1.

### Claim 12

A parallel processing apparatus for a target model based on a neural network, the parallel processing apparatus comprising:
a processor; and
a memory comprising instructions executable by the processor,
wherein in response to the instructions being executed by the processor, the processor is configured to:
extract metadata of a target layer included in the target model;
measure a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
select a corresponding layer among the reference layers based on the similarities; and
generate a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.

### Claim 13 (depends on 12)

The parallel processing apparatus of claim 12, wherein the processor is configured to:
in response to a presence of a first reference layer, from among the reference layers, having a same reference metadata as metadata of the target layer, select the first reference layer as the corresponding layer; and
in response to an absence the first reference layer among the reference layers, select, from among the reference layers, a second reference layer having most similar reference metadata to the metadata of the target layer as the corresponding layer.

### Claim 14 (depends on 13)

The parallel processing apparatus of claim 13, wherein in response to the second reference layer being selected as the corresponding layer, reference layer information corresponding to the metadata of the target layer is added to a reference database (DB) in which the reference metadata of each of the reference layers is stored.

### Claim 15 (depends on 14)

The parallel processing apparatus of claim 14, wherein
the reference layer information comprises link information, and
in response to the second reference layer being selected as the corresponding layer, identification information of the second reference layer is recorded as the link information in the reference layer information.

### Claim 16 (depends on 14)

The parallel processing apparatus of claim 14, wherein the processor is configured to, in response to the reference layer information corresponding to the metadata of the target layer being added to the reference DB, generate a new parallelization strategy corresponding to the metadata of the target layer.

### Claim 17 (depends on 16)

The parallel processing apparatus of claim 16, wherein
the similarities are measured using a similarity measurement model that is based on the neural network, and
in response to the new parallelization strategy being generated, the similarity measurement model is retrained based on the new parallelization strategy.

### Claim 18 (depends on 16)

The parallel processing apparatus of claim 16, wherein in response to the new parallelization strategy being generated, the link information of the reference layer information is changed to an empty state.

### Claim 19

An electronic apparatus comprising:
a processor; and
a memory comprising instructions executable by the processor,
wherein in response to the instructions being executed by the processor, the processor is configured to:
extract metadata of a target layer included in a target model that is based on a neural network;
measure a similarity between the target layer and each of reference layers by comparing the metadata of the target layer to reference metadata of each of the reference layers;
select a corresponding layer among the reference layers based on the similarities; and
generate a parallelization strategy for the target layer based on a reference parallelization strategy matching the corresponding layer.

### Claim 20 (depends on 19)

The electronic apparatus of claim 19, wherein the processor is configured to:
in response to a presence of a first reference layer, from among the reference layers, having a same reference metadata as metadata of the target layer, select the first reference layer as the corresponding layer;
in response to an absence of the first reference layer being among the reference layers, select, from among the reference layers, a second reference layer having most similar reference metadata to the metadata of the target layer as the corresponding layer; and
in response to the second reference layer being selected as the corresponding layer, add reference layer information corresponding to the metadata of the target layer to a reference database (DB) in which the reference metadata of each of the reference layers is stored.

### Claim 21

A processor-implemented method, comprising:
extracting metadata of a target layer included in a target model based on a neural network;
comparing the metadata of the target layer with metadata of each of a plurality of reference layers;
in a case in which the metadata of the target layer matches the metadata of a specific reference layer among the plurality of reference layers, execute the target layer based on a first parallelization strategy corresponding to the specific reference layer; and
in a case in which the metadata of the target layer does not match the metadata of any of the plurality of reference layers, executing the target layer based on a second parallelization strategy corresponding to a reference layer, from among the plurality of reference slayers, have a closest similarity to the target layer, generating a new parallelization strategy for the target layer, and subsequently executing the target layer based on the new parallelization strategy.

### Claim 22 (depends on 21)

The method of claim 21, wherein executing the target layer based on the second parallelization strategy is performed independently of generating the new parallelization strategy for the target layer.

### Claim 23 (depends on 21)

The method of claim 21, wherein generating the new parallelization strategy for the target layer comprises:
determining whether an update condition has been satisfied; and
after the update condition has been satisfied, generating the new parallelization strategy for the target layer based on new reference layer information that has been added to the plurality of reference layers prior to the update condition being satisfied.

### Claim 24 (depends on 23)

The method of claim 23, wherein the update condition corresponds to one or both of an amount of time that has passed and an amount of the new reference layer information that has been added.
