# US 10,956,835 B2 · Analytic system for gradient boosting tree compression

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

- Number: US 10,956,835 B2
- Document ID: US10956835B2
- Status: Granted
- Kind: B2
- Application number: 16/297,952
- Filed: 2019-03-11
- Published: 2020-01-23
- Granted: 2021-03-23
- Earliest claimed: 2018-07-20
- Assignees: SAS Institute Inc.
- Applicants: SAS Institute Inc.
- Inventors: Rui Shi; Guixian Lin; Xiangqian Hu; Yan Xu
- Web page: https://patentgrep.com/patent/US10956835B2

## CPC

- G06N 20/20: Ensemble learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 5/04: Inference or reasoning models
- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computing device compresses a gradient boosting tree predictive model. A gradient boosting tree predictive model is trained using a plurality of observation vectors. Each observation vector includes an explanatory variable value of an explanatory variable and a response variable value for a response variable. The gradient boosting tree predictive type model is trained to predict the response variable value of each observation vector based on a respective explanatory variable value of each observation vector. The trained gradient boosting tree predictive model is compressed using a compression model with a predefined penalty constant value and with a predefined array of coefficients to reduce a number of trees of the trained gradient boosting tree predictive model. The compression model minimizes a sparsity norm loss function. The compressed, trained gradient boosting tree predictive model is output for predicting a new response variable value from a new observation vector.

## Claims

### Claim 1

A non-transitory computer-readable medium having stored thereon computer-readable instructions that when executed by a computing device cause the computing device to:
train a gradient boosting tree predictive model using a plurality of observation vectors, wherein each observation vector of the plurality of observation vectors includes an explanatory variable value of an explanatory variable and a response variable value for a response variable, wherein the gradient boosting tree predictive model is trained to predict the response variable value of each observation vector based on a respective explanatory variable value of each observation vector;
compress the trained gradient boosting tree predictive model using a compression model with a predefined penalty constant value and with a predefined array of coefficients to reduce a number of trees of the trained gradient boosting tree predictive model, wherein the compression model minimizes a sparsity norm loss function using a prediction result computed from each tree of the trained gradient boosting tree predictive model for each respective explanatory variable value; and
output the compressed, trained gradient boosting tree predictive model for predicting a new response variable value from a new observation vector.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the compression model is selected from the group consisting of a least absolute shrinkage and selection operator compression model, a ridge compression model, and an elastic net compression model.

### Claim 3 (depends on 2)

The non-transitory computer-readable medium of claim 2, wherein the least absolute shrinkage and selection operator compression model performs an L1-norm regression on the trained gradient boosting tree predictive model.

### Claim 4 (depends on 2)

The non-transitory computer-readable medium of claim 2, wherein the ridge compression model performs an L2-norm regression on the trained gradient boosting tree predictive model.

### Claim 5 (depends on 2)

The non-transitory computer-readable medium of claim 2, wherein the elastic net compression model performs a combination of an L1-norm and an L2-norm regression on the trained gradient boosting tree predictive model.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the computer-readable instructions further cause the computing device to:
read a second explanatory variable value from a second dataset;
compute the new response variable value using the output compressed, trained gradient boosting tree predictive model and the read second explanatory variable value; and
output the computed new response variable value.

### Claim 7 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the computer-readable instructions further cause the computing device to:
output an indicator of occurrence of an event based on the computed new response variable value.

### Claim 8 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein each observation vector of the plurality of observation vectors includes a plurality of explanatory variable values, wherein the explanatory variable value is one of the plurality of explanatory variable values.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the compression model performs minimization of
min
β
⁢
1
N
⁢
∑
i
=
1
N
⁢
⁢
L
⁡
(
y
i
,
β
0
+
∑
k
=
1
T
⁢
⁢
β
k
⁢
f
k
⁡
(
x
i
)
+
∑
p
=
1
d
⁢
⁢
β
T
+
p
⁢
g
p
⁡
(
x
i
)
)
+
λ
⁢

β

,
where β is the predefined array of coefficients, N is a number of observation vectors of the plurality of observation vectors, L is the sparsity norm loss function, yi is the response variable value associated with an ith observation vector of the plurality of observation vectors, T is the number of trees defined by the trained gradient boosting tree model, fk(xi)=hk(xi)−hk−1(xi), xi is the explanatory variable value associated with the ith observation vector of the plurality of observation vectors, gp(xi) is a function on a pth explanatory variable, d is a number of the plurality of explanatory variable values, λ is the predefined penalty constant value, hk(xi) is a prediction result from a kth tree, and hk−1(xi) is a prediction result from a (k−1)th previous tree.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the sparsity norm loss function is at least one of an L1-norm and an L2-norm.

### Claim 11 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein, after outputting the compressed, trained gradient boosting tree predictive model, the computer-readable instructions further cause the computing device to:
receive a second explanatory variable value from a second computing device in an event stream;
compute the new response variable value using the output compressed, trained gradient boosting tree predictive model and the received second explanatory variable value; and
output the computed new response variable value to a third computing device in a second event stream.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the computer-readable instructions further cause the computing device to:
output an indicator of occurrence of an event based on the computed new response variable value to the third computing device in the second event stream.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the computer-readable instructions further cause the computing device to:
output an indicator of occurrence of an event based on the computed new response variable value to a fourth computing device in a third event stream.

### Claim 14 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein, after outputting the compressed, trained gradient boosting tree predictive model, the computer-readable instructions further cause the first computing device to:
instantiate an ESP engine (ESPE) on the computing device with the compressed, trained gradient boosting tree predictive model;
receive an event block object by the instantiated ESPE in a first event stream from a second computing device;
process the received event block object by the instantiated ESPE using the compressed, trained gradient boosting tree predictive model; and
output, by the instantiated ESPE, the processed event block object.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the processed event block object is output to a third computing device in a second event stream.

### Claim 16

A computing device comprising:
a processor; and
a non-transitory computer-readable medium operably coupled to the processor, the computer-readable medium having computer-readable instructions stored thereon that, when executed by the processor, cause the computing device to
train a gradient boosting tree predictive model using a plurality of observation vectors, wherein each observation vector of the plurality of observation vectors includes an explanatory variable value of an explanatory variable and a response variable value for a response variable, wherein the gradient boosting tree predictive model is trained to predict the response variable value of each observation vector based on a respective explanatory variable value of each observation vector;
compress the trained gradient boosting tree predictive model using a compression model with a predefined penalty constant value and with a predefined array of coefficients to reduce a number of trees of the trained gradient boosting tree predictive model, wherein the compression model minimizes a sparsity norm loss function using a prediction result computed from each tree of the trained gradient boosting tree predictive model for each respective explanatory variable value; and
output the compressed, trained gradient boosting tree predictive model for predicting a new response variable value from a new observation vector.

### Claim 17

A method of compressing a gradient boosting tree predictive model, the method comprising:
training, by a computing device, a gradient boosting tree predictive model using a plurality of observation vectors, wherein each observation vector of the plurality of observation vectors includes an explanatory variable value of an explanatory variable and a response variable value for a response variable, wherein the gradient boosting tree predictive model is trained to predict the response variable value of each observation vector based on a respective explanatory variable value of each observation vector;
compressing, by the computing device, the trained gradient boosting tree predictive model using a compression model with a predefined penalty constant value and with a predefined array of coefficients to reduce a number of trees of the trained gradient boosting tree predictive model, wherein the compression model minimizes a sparsity norm loss function using a prediction result computed from each tree of the trained gradient boosting tree predictive model for each respective explanatory variable value; and
outputting, by the computing device, the compressed, trained gradient boosting tree predictive model for predicting a new response variable value from a new observation vector.

### Claim 18 (depends on 17)

The method of claim 17, wherein the compression model is selected from the group consisting of a least absolute shrinkage and selection operator compression model, a ridge compression model, and an elastic net compression model.

### Claim 19 (depends on 18)

The method of claim 18, wherein the least absolute shrinkage and selection operator compression model performs an L1-norm regression on the trained gradient boosting tree predictive model.

### Claim 20 (depends on 18)

The method of claim 18, wherein the ridge compression model performs an L2-norm regression on the trained gradient boosting tree predictive model.

### Claim 21 (depends on 18)

The method of claim 18, wherein the elastic net compression model performs a combination of an L1-norm and an L2-norm regression on the trained gradient boosting tree predictive model.

### Claim 22 (depends on 17)

The method of claim 17, further comprising:
reading, by the computing device, a second explanatory variable value from a second dataset;
computing, by the computing device, the new response variable value using the output compressed, trained gradient boosting tree predictive model and the read second explanatory variable value; and
outputting, by the computing device, the computed new response variable value.

### Claim 23 (depends on 17)

The method of claim 17, wherein each observation vector of the plurality of observation vectors includes a plurality of explanatory variable values, wherein the explanatory variable value is one of the plurality of explanatory variable values.

### Claim 24 (depends on 23)

The method of claim 23, wherein the compression model performs minimization of
min
β
⁢
1
N
⁢
∑
i
=
1
N
⁢
⁢
L
⁡
(
y
i
,
β
0
+
∑
k
=
1
T
⁢
⁢
β
k
⁢
f
k
⁡
(
x
i
)
+
∑
p
=
1
d
⁢
⁢
β
T
+
p
⁢
g
p
⁡
(
x
i
)
)
+
λ
⁢

β

,
where β is the predefined array of coefficients, N is a number of observation vectors of the plurality of observation vectors, L is the sparsity norm loss function, yi is the response variable value associated with an ith observation vector of the plurality of observation vectors, T is the number of trees defined by the trained gradient boosting tree model, fk(xi)=hk(xi)−hk−1(xi), xi is the explanatory variable value associated with the ith observation vector of the plurality of observation vectors, gp(xi) is a function on a pth explanatory variable, d is a number of the plurality of explanatory variable values, λ is the predefined penalty constant value, hk(xi) is a prediction score from a kth tree, and hk−1(xi) is a prediction result from a (k−1)th previous tree.

### Claim 25 (depends on 24)

The method of claim 24, wherein the sparsity norm loss function is at least one of an L1-norm and an L2-norm.

### Claim 26 (depends on 17)

The method of claim 17, further comprising:
receiving, by the computing device, a second explanatory variable value from a second computing device in an event stream;
computing, by the computing device, the new response variable value using the output compressed, trained gradient boosting tree predictive model and the received second explanatory variable value; and
outputting, by the computing device, the computed new response variable value to a third computing device in a second event stream.

### Claim 27 (depends on 26)

The method of claim 26, further comprising:
outputting, by the computing device, an indicator of occurrence of an event based on the computed new response variable value to the third computing device in the second event stream.

### Claim 28 (depends on 26)

The method of claim 26, further comprising:
outputting, by the computing device, an indicator of occurrence of an event based on the computed new response variable value to a fourth computing device in a third event stream.

### Claim 29 (depends on 17)

The method of claim 17, further comprising:
instantiating, by the computing device, an ESP engine (ESPE) on the computing device with the compressed, trained gradient boosting tree predictive model;
receiving, by the instantiated ESPE, an event block object in a first event stream from a second computing device;
processing, by the instantiated ESPE, the received event block object using the compressed, trained gradient boosting tree predictive model; and
outputting, by the instantiated ESPE, the processed event block object.

### Claim 30 (depends on 29)

The method of claim 29, wherein the processed event block object is output to a third computing device in a second event stream.
