# US 2023/0273832 A1 · Power management for execution of machine learning workloads

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

- Number: US 2023/0273832 A1
- Document ID: US20230273832A1
- Status: Published application
- Kind: A1
- Application number: 18/133,616
- Filed: 2023-04-12
- Published: 2023-08-31
- Earliest claimed: 2023-04-12
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Somnath Paul; Muhammad M. Khellah; Linda Zeng; Mohamed Elmalaki
- Web page: https://patentgrep.com/patent/US20230273832A1

## CPC

- G06F 1/324: by lowering clock frequency
- G06F 9/505: {considering the load}
- G06F 1/3228: Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
- G06F 1/3243: {Power saving in microcontroller unit}
- G06F 1/3296: by lowering the supply or operating voltage
- G06N 3/063: using electronic means
- G06N 3/10: Interfaces, programming languages or software development kits, e.g. for simulating neural networks
- G06F 2209/509: Offload
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A system for autonomous and proactive power management for energy efficient execution of machine learning workloads may include an apparatus such as system-on-chip (SoC) comprising an accelerator configurable to load and execute a neural network and circuitry to receive a profile of the neural network. The profile may be received from a compiler and include information regarding a plurality of layers of the neural network. Responsive to the profile and the information regarding the plurality of layers, circuitry may adjust, using a local power management unit (PMU) included the apparatus, a power level to the accelerator while the accelerator executes the neural network. The power level adjustment may be based on whether the particular layer is a compute-intensive layer or a memory-intensive layer.

## Claims

### Claim 1

An apparatus comprising:
an accelerator, wherein the accelerator is configurable to load and execute a neural network; and
circuitry configured to:
receive a profile of the neural network, the profile including information regarding a plurality of layers of the neural network; and
responsive to the profile and the information regarding the plurality of layers, adjust a power level to the accelerator while the accelerator executes the neural network.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the circuitry is further configured to:
determine, using the profile, whether a particular layer of the plurality of layers is a compute-intensive layer or a memory-intensive layer.

### Claim 3 (depends on 2)

The apparatus of claim 2, further comprising:
a local power management unit (PMU) configured to adjust the power level to the accelerator, and wherein the circuitry causes the PMU to adjust the power level.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the accelerator and the circuitry are implemented by a visual processing unit (VPU), wherein the PMU is located on the VPU, and wherein the neural network is adapted for processing of image or video data.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein to adjust the power level to the accelerator includes adjusting at least one of a voltage level or a frequency of a signal to the accelerator while the accelerator executes the particular layer of the neural network based on whether the particular layer is a compute-intensive layer or a memory-intensive layer.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the profile is generated by a compiler, and wherein an amount of compute bandwidth and an amount of memory bandwidth is determined when the neural network is compiled.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the profile includes a layer-by-layer analysis of the neural network, the layer-by-layer analysis including one or more statistics for one or more respective layers of the plurality of layers of the neural network.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the one or more statistics include an amount of hardware efficiency at the one or more respective layers of the neural network, an amount of hardware utilization at the one or more respective layers of the neural network, a number of compute cycles required to execute the one or more respective layers of the neural network, a number of data cycles required to read or write weights or activations from a memory cache at the one or more respective layers of the neural network.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein to determine whether a particular layer of the plurality of layers is compute-intensive or memory-intensive includes determining whether the number of compute cycles required to execute the particular layer meets a criterion.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the criterion is based on at least one of a number of data cycles or a number of cached cycles.

### Claim 11

A method for dynamic power management of a neural network, the method comprising:
receiving a profile of the neural network, the profile including information regarding a plurality of layers of the neural network; and
responsive to the profile and the information regarding the plurality of layers, adjusting a power level to an accelerator included on a visual processing unit (VPU) being configured to load and execute the neural network as the accelerator executes the neural network.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
determining, using the profile, whether a particular layer of the plurality of layers is a compute-intensive layer or a memory-intensive layer, wherein to adjust the power level to the accelerator includes adjusting at least one of a voltage level or a frequency of a signal to the accelerator while the accelerator executes the particular layer of the neural network based on whether the particular layer is a compute-intensive layer or a memory-intensive layer.

### Claim 13 (depends on 12)

The method of claim 12, wherein to determine whether a particular layer of the plurality of layers is compute-intensive or memory-intensive includes determining whether a number of compute cycles required to execute the particular layer meets a criterion, and wherein the criterion is based on at least one of a maximum number of data cycles or cached cycles.

### Claim 14 (depends on 11)

The method of claim 11, wherein the profile is generated by a compiler, and wherein an amount of compute bandwidth and an amount of memory bandwidth is determined when the neural network is compiled.

### Claim 15 (depends on 11)

The method of claim 11, wherein the profile includes a layer-by-layer analysis of the neural network, the layer-by-layer analysis including one or more metrics for one or more respective layers of the plurality of layers of the neural network.

### Claim 16 (depends on 15)

The method of claim 15, wherein the one or more metrics include an amount of hardware efficiency at the one or more respective layers of the neural network, an amount of hardware utilization at the one or more respective layers of the neural network, a number of compute cycles required to the one or more respective layers of the neural network, a number of data cycles required to read or write weights or activations from a memory cache at the one or more respective layers of the neural network.

### Claim 17

At least one non-transitory machine-readable medium including instructions stored thereon that, when executed by circuitry, cause the circuitry to:
receive a profile of a neural network, the profile including information regarding a plurality of layers of the neural network; and
responsive to the profile and the information regarding the plurality of layers, adjust a power level to an accelerator coupled to the circuitry while the accelerator executes the neural network.

### Claim 18 (depends on 17)

The at least one non-transitory machine-readable medium of claim 17, wherein the instructions cause the circuitry to:
determine, using the profile, whether a particular layer of the plurality of layers is a compute-intensive layer or a memory-intensive layer, wherein to adjust the power level to the accelerator includes adjusting at least one of a voltage level or a frequency of a signal to the accelerator while the accelerator executes the particular layer of the neural network based on whether the particular layer is a compute-intensive layer or a memory-intensive layer, and wherein to determine whether a particular layer of the plurality of layers is compute-intensive or memory-intensive includes determining whether a number of compute cycles required to execute the particular layer meets a criterion, and wherein the criterion is based on at least one of a maximum number of data cycles or cached cycles.

### Claim 19 (depends on 17)

The at least one non-transitory machine-readable medium of claim 17, wherein the profile is generated by a compiler, and wherein an amount of compute bandwidth and an amount of memory bandwidth is determined when the neural network is compiled, and wherein the profile includes a layer-by-layer analysis of the neural network, the layer-by-layer analysis including one or more statistics for one or more respective layers of the plurality of layers of the neural network.

### Claim 20 (depends on 19)

The at least one non-transitory machine-readable medium of claim 19, wherein the one or more statistics include an amount of hardware efficiency at the one or more respective layers of the neural network, an amount of hardware utilization at the one or more respective layers of the neural network, a number of compute cycles required to execute the one or more respective layers of the neural network, a number of data cycles required to read or write weights or activations from a memory cache at the one or more respective layers of the neural network.

### Claim 21

A non-transitory computer-readable medium with instructions stored thereon that configures operations of a compiler, the operations to:
receive data corresponding to a plurality of layers of a neural network;
compile respective layers of the plurality of layers into an executable form of the neural network;
determine, during the compiling, whether one or more of the respective layers is a compute-intensive layer or a memory-intensive layer; and
generate a profile of the compiled one or more respective layers.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, the operations further to:
transmit the profile to a device configured to execute the neural network.

### Claim 23 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the profile includes a layer-by-layer analysis of the neural network, the layer-by-layer analysis including one or more statistics for the one or more respective layers.
