# US 2022/0019880 A1 · Hardware and neural architecture co-search

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

- Number: US 2022/0019880 A1
- Document ID: US20220019880A1
- Status: Published application
- Kind: A1
- Application number: 17/362,997
- Filed: 2021-06-30
- Published: 2022-01-20
- Earliest claimed: 2020-07-14
- Assignees: Edgecortix Pte. Ltd.
- Applicants: Edgecortix Pte. Ltd.
- Inventors: Sakyasingha DASGUPTA; Weiwen JIANG; Yiyu SHI
- Web page: https://patentgrep.com/patent/US20220019880A1

## CPC

- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/063: using electronic means
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06N 3/092: Reinforcement learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Hardware and neural architecture co-search may be performed by operations including obtaining a specification of a function and a plurality of hardware design parameters. The hardware design parameters include a memory capacity, a number of computational resources, a communication bandwidth, and a template configuration for performing neural architecture inference. The operations further include determining, for each neural architecture among a plurality of neural architectures, an overall latency of performance of inference of the neural architecture by an accelerator within the hardware design parameters. Each neural architecture having been trained to perform the function with an accuracy. The operations further include selecting, from among the plurality of neural architectures, a neural architecture based on the overall latency and the accuracy.

## Claims

### Claim 1

A computer program including instructions that are executable by a computer to cause the computer to perform operations comprising:
obtaining a specification of a function and a plurality of hardware design parameters, the hardware design parameters including a memory capacity, a number of computational resources, a communication bandwidth, and a template configuration for performing neural architecture inference;
determining, for each neural architecture among a plurality of neural architectures, each neural architecture having been trained to perform the function with an accuracy, an overall latency of performance of inference of the neural architecture by an accelerator within the hardware design parameters; and
selecting, from among the plurality of neural architectures, a neural architecture based on the overall latency and the accuracy;
wherein the determining the overall latency further includes determining a latency model of a plurality of hyper-parameters to execute the performance of inference of the neural architecture by the accelerator while interfacing with an external memory storing activation data.

### Claim 2 (depends on 1)

The computer program of claim 1, wherein the plurality of hyperparameters include a tiling design and a bandwidth allocation during performance of inference of the neural architecture by the accelerator.

### Claim 3 (depends on 1)

The computer program of claim 1, wherein the determining the latency model further includes:
detecting, for each layer, a latency bottleneck among latency factors of:
copying activation data from an external memory to an internal memory of the accelerator,
copying weight values from the external memory to the internal memory,
performing computations on the activation data, and
copying the activation data from the internal memory to the external memory.

### Claim 4 (depends on 3)

The computer program of claim 3, wherein the determining the latency model further includes:
assigning, for at least one layer of the selected neural architecture, a latency-decreasing technique corresponding to the latency bottleneck, each latency-decreasing technique associated with a hyper-parameter among the plurality of hyper-parameters and a range.

### Claim 5 (depends on 3)

The computer program of claim 3, wherein the determining the latency model further includes:
assigning, for at least one layer of the selected neural architecture, an accuracy-increasing technique corresponding to any among the latency factors other than the latency bottleneck, each latency-decreasing technique associated with a hyper-parameter among the plurality of hyper-parameters and a range.

### Claim 6 (depends on 1)

The computer program of claim 1, wherein the determining the overall latency further includes:
generating a plurality of unique combinations of values of the hyper-parameters in the latency model.

### Claim 7 (depends on 6)

The computer program of claim 6, wherein the determining the overall latency further includes:
calculating, for each of the plurality of unique combinations of values of the hyper-parameters, a resultant latency.

### Claim 8 (depends on 1)

The computer program of claim 1, further comprising:
determining values of the hyper-parameters of the latency model.

### Claim 9 (depends on 8)

The computer program of claim 8, wherein the determining the values of the hyper-parameters of the latency model includes
applying a function approximator to the latency model.

### Claim 10 (depends on 9)

The computer program of claim 9, wherein the function approximator is a recurrent neural network with reinforcement learning using a reward including a latency component and an accuracy component.

### Claim 11 (depends on 9)

The computer program of claim 9, wherein the determining the values of the hyper-parameters of the latency model includes
determining the accuracy component by training the neural architecture using a hold-out training data set.

### Claim 12 (depends on 1)

The computer program of claim 1, wherein the selecting further includes selecting, from among neural architectures within the plurality of neural architectures that have a latency of performance of inference that is lower than a threshold latency value, a neural architecture trained to perform the function with a greatest accuracy.

### Claim 13

A method comprising:
obtaining a specification of a function and a plurality of hardware design parameters, the hardware design parameters including a memory capacity, a number of computational resources, a communication bandwidth, and a template configuration for performing neural architecture inference;
determining, for each neural architecture among a plurality of neural architectures, each neural architecture having been trained to perform the function with an accuracy, an overall latency of performance of inference of the neural architecture by an accelerator within the hardware design parameters; and
selecting, from among the plurality of neural architectures, a neural architecture based on the overall latency and the accuracy;
wherein the determining the overall latency further includes determining a latency model of a plurality of hyper-parameters to execute the performance of inference of the neural architecture by the accelerator while interfacing with an external memory storing activation data.

### Claim 14 (depends on 13)

The method of claim 13, wherein the plurality of hyperparameters include a tiling design and a bandwidth allocation during performance of inference of the neural architecture by the accelerator.

### Claim 15 (depends on 13)

The method of claim 13, wherein the determining the latency model further includes:
detecting, for each layer, a latency bottleneck among latency factors of:
copying activation data from an external memory to an internal memory of the accelerator,
copying weight values from the external memory to the internal memory,
performing computations on the activation data, and
copying the activation data from the internal memory to the external memory.

### Claim 16 (depends on 15)

The method of claim 15, wherein the determining the latency model further includes:
assigning, for at least one layer of the selected neural architecture, a latency-decreasing technique corresponding to the latency bottleneck, each latency-decreasing technique associated with a hyper-parameter among the plurality of hyper-parameters and a range.

### Claim 17 (depends on 15)

The method of claim 15, wherein the determining the latency model further includes:
assigning, for at least one layer of the selected neural architecture, an accuracy-increasing technique corresponding to any among the latency factors other than the latency bottleneck, each latency-decreasing technique associated with a hyper-parameter among the plurality of hyper-parameters and a range.

### Claim 18

An apparatus comprising:
an obtaining section configured to obtain a specification of a function and a plurality of hardware design parameters, the hardware design parameters including a memory capacity, a number of computational resources, a communication bandwidth, and a template configuration for performing neural architecture inference;
a determining section configured to determine, for each neural architecture among a plurality of neural architectures, each neural architecture having been trained to perform the function with an accuracy, an overall latency of performance of inference of the neural architecture by an accelerator within the hardware design parameters; and
a selecting section configured to select, from among the plurality of neural architectures, a neural architecture based on the overall latency and the accuracy;
wherein the determining section is further configured to determine the overall latency by determining a latency model of a plurality of hyper-parameters to execute the performance of inference of the neural architecture by the accelerator while interfacing with an external memory storing activation data.
