# US 2021/0065064 A1 · Automatically tuning parameters in a layered model framework

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

- Number: US 2021/0065064 A1
- Document ID: US20210065064A1
- Status: Published application
- Kind: A1
- Application number: 16/557,823
- Filed: 2019-08-30
- Published: 2021-03-04
- Earliest claimed: 2019-08-30
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Zhiyuan Xu; Jinyun Yan; Kinjal Basu; Revant Kumar; Onkar A. Dalal
- Web page: https://patentgrep.com/patent/US20210065064A1

## CPC

- G06N 20/00: Machine learning
- G06F 18/2113: by ranking or filtering the set of features, e.g. using a measure of variance or of feature cross-correlation
- G06F 18/24: Classification techniques
- G06N 20/20: Ensemble learning
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for automatically tuning a parameter in a layered model framework. One or more machine learning techniques are used to train multiple versions of a first model that includes a first version and a second version. A second model is stored that includes a parameter and accepts, as input, output from the first model. Multiple parameter values of the parameter are tested when processing content requests using the first and second versions of the first model. A strict subset of the plurality of parameter values are selected for the parameter of the second model, such that processing a first subset of the content requests using the first version of the first model results in a first value of a particular metric that matches a second value of the particular metric resulting from processing a second subset of the content requests using the second version of the first model.

## Claims

### Claim 1

A method comprising:
using one or more machine learning techniques to train a plurality of versions of a first model that includes a first version of the first model and a second version of the first model;
storing a second model that includes a parameter and that accepts, as input, output from the first model;
testing a plurality of parameter values of the parameter of the second model when processing a plurality of content requests using the first and second versions of the first model;
selecting, for the parameter of the second model, a strict subset of the plurality of parameter values such that processing a first subset of the plurality of content requests using the first version of the first model results in a first value of a particular metric that matches a second value of the particular metric resulting from processing a second subset of the plurality of content requests using the second version of the first model;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein processing the plurality of content request comprises:
for each content request in the plurality of content requests:
identifying a plurality of content items;
selecting a single parameter value from among the plurality of parameter values;
using the second model to generate a score, based on the single parameter value, for each content item in the plurality of content items.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing history data that is generated based on processing the plurality of content requests, wherein the history data indicates a plurality of metric values, each of which corresponds to a different parameter value of the plurality of parameter values, wherein the plurality of metric values includes a first metric value and a second metric value that is different than the first metric value;
wherein automatically tuning the parameter comprises:
generating a function based on the history data;
determining a particular value of the parameter based on the function.

### Claim 4 (depends on 3)

The method of claim 3, wherein each metric value of the plurality of metric values is based on a difference between (1) a third value, of the particular metric, that is calculated based on using the parameter value corresponding to said each metric value and (2) a fourth value, of the particular metric, that is calculated for a control group.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
based on the history data, generating a plurality of functions using a Gaussian process;
wherein determining the particular value of the parameter is based on the plurality of functions.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the particular value comprises:
generating a plurality of samples from each function of the plurality of functions;
wherein determining the particular value is based on the plurality of samples from each function of the plurality of functions.

### Claim 7 (depends on 6)

The method of claim 6, wherein the plurality of samples are a second plurality of samples and the plurality of functions are a second plurality of functions, further comprising, prior to generated the second plurality of functions:
generating a first plurality of functions using the Gaussian process;
generating a first plurality of samples from each function of the first plurality of functions;
based on the first plurality of samples, selecting a strict subset of the plurality of parameter values;
receiving a second plurality of content requests;
processing the second plurality of content requests based on parameter values in the strict sub set;
generating a portion of the history data based on processing the second plurality of content request;
wherein the second plurality of functions are based on the portion of the history data.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
for each content request in the plurality of content requests:
generating a ranking of the plurality of content items based on the score for each content item in the plurality of content items;
causing at least a portion of the plurality of content items to be presented in an order that is based on the ranking.

### Claim 9 (depends on 2)

The method of claim 2, wherein:
the plurality of content items comprises a first set of content items of a first type and a second set of content items of a second type that is different than the first type;
the first model is used to generate a plurality of scores, one for each content item in the first set of content items of the first type, but not for any content item in the second set of content items of the second type;
each score of the plurality of scores is input to the second model to generate the score for each content item of the plurality of content items.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving input that specifies a range of values;
based on the range of values, automatically generating the plurality of parameter values that are within the range of values.

### Claim 11 (depends on 1)

The method of claim 1, wherein the particular metric is an average number of impressions per request over multiple requests.

### Claim 12

One or more storage media storing instructions which, when executed by the one or more processors, cause:
using one or more machine learning techniques to train a plurality of versions of a first model that includes a first version of the first model and a second version of the first model; storing a second model that includes a parameter and that accepts, as input, output from the first model;
testing a plurality of parameter values of the parameter of the second model when processing a plurality of content requests using the first and second versions of the first model;
selecting, for the parameter of the second model, a strict subset of the plurality of parameter values such that processing a first subset of the plurality of content requests using the first version of the first model results in a first value of a particular metric that matches a second value of the particular metric resulting from processing a second subset of the plurality of content requests using the second version of the first model.

### Claim 13 (depends on 12)

The one or more storage media of claim 12, wherein processing the plurality of content request comprises:
for each content request in the plurality of content requests:
identifying a plurality of content items;
selecting a single parameter value from among the plurality of parameter values;
using the second model to generate a score, based on the single parameter value, for each content item in the plurality of content items.

### Claim 14 (depends on 13)

The one or more storage media of claim 13, wherein the instructions, when executed by the one or more processors, further cause:
storing history data that is generated based on processing the plurality of content requests, wherein the history data indicates a plurality of metric values, each of which corresponds to a different parameter value of the plurality of parameter values, wherein the plurality of metric values includes a first metric value and a second metric value that is different than the first metric value;
wherein automatically tuning the parameter comprises:
generating a function based on the history data;
determining a particular value of the parameter based on the function.

### Claim 15 (depends on 14)

The one or more storage media of claim 14, wherein each metric value of the plurality of metric values is based on a difference between (1) a third value, of the particular metric, that is calculated based on using the parameter value corresponding to said each metric value and (2) a fourth value, of the particular metric, that is calculated for a control group.

### Claim 16 (depends on 14)

The one or more storage media of claim 14, wherein the instructions, when executed by the one or more processors, further cause:
based on the history data, generating a plurality of functions using a Gaussian process;
wherein determining the particular value of the parameter is based on the plurality of functions.

### Claim 17 (depends on 16)

The one or more storage media of claim 16, wherein determining the particular value comprises:
generating a plurality of samples from each function of the plurality of functions;
wherein determining the particular value is based on the plurality of samples from each function of the plurality of functions.

### Claim 18 (depends on 13)

The one or more storage media of claim 13, wherein:
the plurality of content items comprises a first set of content items of a first type and a second set of content items of a second type that is different than the first type;
the first model is used to generate a plurality of scores, one for each content item in the first set of content items of the first type, but not for any content item in the second set of content items of the second type;
each score of the plurality of scores is input to the second model to generate the score for each content item of the plurality of content items.

### Claim 19 (depends on 12)

The one or more storage media of claim 12, wherein the instructions, when executed by the one or more processors, further cause:
receiving input that specifies a range of values;
based on the range of values, automatically generating the plurality of parameter values that are within the range of values.

### Claim 20 (depends on 12)

The one or more storage media of claim 12, wherein the particular metric is an average number of impressions per request over multiple requests.
