# US 2024/0004710 A1 · Systems and methods of resource configuration optimization for 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 2024/0004710 A1
- Document ID: US20240004710A1
- Status: Published application
- Kind: A1
- Application number: 18/469,695
- Filed: 2023-09-19
- Published: 2024-01-04
- Earliest claimed: 2020-05-14
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Lianjie Cao; Faraz Ahmed; Puneet Sharma
- Web page: https://patentgrep.com/patent/US20240004710A1

## CPC

- G06F 9/5005: {to service a request}
- G06F 9/3009: {Thread control instructions}
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/505: {considering the load}
- G06F 11/3409: {for performance assessment}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/24: Classification techniques
- G06F 18/24155: {Bayesian classification}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised 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 3/045: Combinations of networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods are provided for optimally allocating resources used to perform multiple tasks/jobs, e.g., machine learning training jobs. The possible resource configurations or candidates that can be used to perform such jobs are generated. A first batch of training jobs can be randomly selected and run using one of the possible resource configuration candidates. Subsequent batches of training jobs may be performed using other resource configuration candidates that have been selected using an optimization process, e.g., Bayesian optimization. Upon reaching a stopping criterion, the resource configuration resulting in a desired optimization metric, e.g., fastest job completion time can be selected and used to execute the remaining training jobs.

## Claims

### Claim 1

An orchestration platform, comprising:
a processor; and
a memory unit operatively connected to the processor including computer code that when executed causes the processor to:
apply a Bayesian optimization technique to a plurality of computing resource configurations used to perform machine learning model training jobs in training a machine learning model, wherein output of the Bayesian optimization technique determines a computing resource configuration of the plurality of computing resource configurations;
execute a subset of the machine learning training jobs using the computing resource configuration of the plurality of computing resource configurations;
repeatedly select additional subsets of the plurality of computing resource configurations and execute the additional subsets of the machine learning training jobs using the additional subsets of the computing resource configurations until a stopping criterion is met for a model hyperparameter associated with the machine learning model; and
select one of the plurality of computing resource configurations from the additional subsets of the plurality of computing resource configurations, wherein the selection of the one of the plurality of computing resource configurations corresponds with a value of the model hyperparameter that is within a desired time within which the additional subsets of the computing resource configurations is completed.

### Claim 2 (depends on 1)

The orchestration platform of claim 1, wherein each of the plurality of computing resource configurations comprises a specified central processing unit (CPU) allocation, a memory allocation, a parameter server allocation, and a worker thread allocation.

### Claim 3 (depends on 1)

The orchestration platform of claim 1, wherein the processor is further caused to:
select the subset of the machine learning training jobs to be executed by the computing resource configuration in accordance with a random selection process.

### Claim 4 (depends on 1)

The orchestration platform of claim 1, wherein the machine learning training jobs comprise hyperparameter tuning machine learning training jobs.

### Claim 5 (depends on 4)

The orchestration platform of claim 4, wherein the hyperparameter tuning machine learning training jobs comprise determining a quality of a machine learning model based on a value of the model hyperparameter associated with the machine learning model.

### Claim 6 (depends on 1)

The orchestration platform of claim 1, wherein the stopping criterion comprises a determined number of computing resource configurations to be tested.

### Claim 7 (depends on 1)

The orchestration platform of claim 1, wherein the stopping criterion comprises an improvement between first and second completion times associated with the execution of two of a plurality of machine learning training jobs that falls below a specified improvement threshold.

### Claim 8 (depends on 1)

The orchestration platform of claim 1, wherein the processor is further caused to:
repeatedly select and execute additional subsets of the machine learning training jobs and execute the additional subsets of the machine learning training jobs in parallel.

### Claim 9 (depends on 1)

The orchestration platform of claim 1, wherein the processor is further caused to:
repeatedly select and execute additional subsets of the machine learning training jobs using selected additional computing resource configurations of the plurality of computing resource configurations and optimally select the additional computing resource configurations.

### Claim 10 (depends on 1)

The orchestration platform of claim 1, wherein the resource configuration comprises a parameter server and worker configuration.

### Claim 11

An orchestration platform, comprising:
a processor; and
a memory unit operatively connected to the processor including computer code that when executed causes the processor to:
using a random selector, select a first subset of machine learning model training jobs to be executed using a first resource configuration of a plurality of computing resource configurations;
execute the first subset of the machine learning model training jobs using the first resource configuration;
determine that a threshold value associated with the execution of the first subset of the machine learning training jobs is met for a model hyperparameter associated with a machine learning model; and
select one of the plurality of computing resource configurations, the selection of one of the plurality of computing resource configurations corresponding with a value of the model hyperparameter and the selection being based on the threshold value.

### Claim 12 (depends on 11)

The orchestration platform of claim 11, wherein each of the resource configurations comprises a specified central processing unit (CPU) allocation, a memory allocation, a parameter server allocation, and a worker thread allocation.

### Claim 13 (depends on 11)

The orchestration platform of claim 11, wherein the machine learning training jobs comprise hyperparameter tuning machine learning training jobs.

### Claim 14 (depends on 13)

The orchestration platform of claim 13, wherein the hyperparameter tuning machine learning training jobs comprise determining performance quality of a machine learning model based on a value of a hyperparameter associated with the machine learning model.

### Claim 15 (depends on 11)

The orchestration platform of claim 11, wherein the processor is further caused to:
determine whether to continue searching for the resource configuration with which to execute the remaining subsets of the machine learning model training jobs based on the threshold value or to execute the remaining subsets of the machine learning model training jobs using the first resource configuration; and
determine if a number of computing resource configurations to be tested has exceeded a determining threshold.

### Claim 16 (depends on 11)

The orchestration platform of claim 11, wherein the processor is further caused to:
determine whether to continue searching for the resource configuration with which to execute the remaining subsets of the machine learning model training jobs based on the threshold value or to execute the remaining subsets of the machine learning model training jobs using the first resource configuration; and
determine if an improvement between the threshold value and a subsequent completion associated with execution a subsequent subset of the machine learning training jobs falls below a specified improvement threshold.

### Claim 17 (depends on 11)

The orchestration platform of claim 11, wherein the processor is further caused to:
determine whether to continue searching for the resource configuration with which to execute the remaining subsets of the machine learning model training jobs based on the threshold value or to execute the remaining subsets of the machine learning model training jobs using the first resource configuration; and
perform an optimization process to determine a second resource configuration of the plurality of computing resource configurations with which to execute a second subset of the machine learning training jobs.

### Claim 18 (depends on 17)

The orchestration platform of claim 17, wherein the optimization process comprises a Bayesian optimization process.

### Claim 19 (depends on 18)

The orchestration platform of claim 18, wherein the Bayesian optimization process is based on an upper confidence bound-based acquisition function.

### Claim 20 (depends on 11)

The orchestration platform of claim 11, wherein the first resource configuration of the plurality of computing resource configurations comprises a TensorFlow configuration.

### Claim 21

A computing resource, comprising:
a set of virtual nodes in a host system;
a processor; and
a memory unit operatively connected to the processor including computer code that when executed causes the processor to:
receive a first computing resource configuration that is determined by an orchestration platform, wherein the first computing resource configuration is determined by applying a Bayesian optimization technique to a plurality of computing resource configurations, and wherein output of the Bayesian optimization technique determines the first computing resource configuration;
execute a set of machine learning training jobs in training a machine learning model in accordance with the first computing resource configuration;
repeatedly receive additional configurations of the plurality of computing resource configurations and execute additional sets of the machine learning training jobs using the additional configurations of the plurality of computing resource configurations until a stopping criterion is met for a model hyperparameter associated with the machine learning model; and
initiate a transmission to the orchestration platform associated with the stopping criterion.
