# US 2023/0409929 A1 · Methods and apparatuses for training prediction model

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

- Number: US 2023/0409929 A1
- Document ID: US20230409929A1
- Status: Published application
- Kind: A1
- Application number: 18/337,960
- Filed: 2023-06-20
- Published: 2023-12-21
- Earliest claimed: 2022-06-20
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Wenpeng Zhang; Lihong Gu; Guannan Zhang; Jinjie Gu; Wenliang Zhong
- Web page: https://patentgrep.com/patent/US20230409929A1

## CPC

- G06N 3/096: Transfer learning
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 3/045: Combinations of networks
- G06Q 30/0202: Market predictions or forecasting for commercial activities
- G06Q 30/0271: {Personalized advertisement}
- G06Q 30/0631: {Recommending goods or services}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

A target sample including a sample feature, a first label, and a second label is obtained, where a user corresponds to the target sample, the first label indicates whether a target object is clicked on by the user, and the second label indicates whether the user implements a target behavior related to the target object. Model processing is performed on the sample feature using a prediction model with a first branch and first probability and a second branch and second probability. A first loss is determined based on a first label value and the first probability. When a predetermined condition is satisfied, the second loss is determined based on a second label value of the second label and the second probability, and a predicted loss of the target sample is determined based on the first loss and the second loss. Training the prediction model based on the predicted loss.

## Claims

### Claim 1

A computer-implemented method for prediction model training, comprising:
obtaining a target sample, wherein the target sample comprises:
a sample feature, a first label, and a second label, wherein a user corresponds to the target sample, wherein the first label indicates whether a target object is clicked on by the user, and wherein the second label indicates whether the user implements a target behavior related to the target object;
performing model processing on the sample feature by using a prediction model, wherein the prediction model comprises a first branch and a second branch, wherein the first branch outputs a first probability that the target object is clicked on by the user, and wherein the second branch outputs a second probability that the user implements the target behavior;
determining a first loss based on a first label value of the first label and the first probability; and
when a predetermined condition is satisfied:
determining a second loss based on a second label value of the second label and the second probability; and
determining a predicted loss of the target sample based on the first loss and the second loss, wherein the predetermined condition comprises the first label value, which indicates that the target object is clicked on by the user; and
training the prediction model based on the predicted loss.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, comprising:
when the predetermined condition is not satisfied, determining a third loss based on a first product of the first label value and the second label value and a second product of the first probability and the second probability; and
determining the predicted loss based on the first loss and the third loss.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the predetermined condition comprises:
the second label value indicates that the user does not implement the target behavior.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein:
the prediction model comprises an embedding layer; and
the model processing comprises:
encoding the sample feature into an embedding vector by using the embedding layer; and
inputting the embedding vector separately into the first branch and the second branch.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein:
the sample feature comprises:
a user feature of the user and an object feature of the target object; and
encoding the sample feature into an embedding vector by using the embedding layer, comprises:
encoding the user feature into a first vector;
encoding the object feature into a second vector; and
aggregating the first vector and the second vector to obtain the embedding vector.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein:
the sample feature comprises:
an interaction feature of the user and the target object; and
encoding the sample feature into an embedding vector by using the embedding layer comprises:
encoding the interaction feature into a third vector, wherein the embedding vector is obtained based on the third vector.

### Claim 7 (depends on 2)

The computer-implemented method of claim 2, wherein the prediction model comprises:
a gating unit and a product calculation unit, wherein the gating unit blocks a target path when the predetermined condition is satisfied and conducts the target path when the predetermined condition is not satisfied, and wherein the target path is used to transmit the first probability and the second probability to the product calculation unit to calculate the second product.

### Claim 8

A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform one or more operations, comprising:
obtaining a target sample, wherein the target sample comprises:
a sample feature, a first label, and a second label, wherein a user corresponds to the target sample, wherein the first label indicates whether a target object is clicked on by the user, and wherein the second label indicates whether the user implements a target behavior related to the target object;
performing model processing on the sample feature by using a prediction model, wherein the prediction model comprises a first branch and a second branch, wherein the first branch outputs a first probability that the target object is clicked on by the user, and wherein the second branch outputs a second probability that the user implements the target behavior;
determining a first loss based on a first label value of the first label and the first probability; and
when a predetermined condition is satisfied:
determining a second loss based on a second label value of the second label and the second probability; and
determining a predicted loss of the target sample based on the first loss and the second loss, wherein the predetermined condition comprises the first label value, which indicates that the target object is clicked on by the user; and
training the prediction model based on the predicted loss.

### Claim 9 (depends on 8)

The non-transitory, computer-readable medium of claim 8, comprising:
when the predetermined condition is not satisfied, determining a third loss based on a first product of the first label value and the second label value and a second product of the first probability and the second probability; and
determining the predicted loss based on the first loss and the third loss.

### Claim 10 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein the predetermined condition comprises:
the second label value indicates that the user does not implement the target behavior.

### Claim 11 (depends on 8)

The non-transitory, computer-readable medium of claim 8, wherein:
the prediction model comprises an embedding layer; and
the model processing comprises:
encoding the sample feature into an embedding vector by using the embedding layer; and
inputting the embedding vector separately into the first branch and the second branch.

### Claim 12 (depends on 11)

The non-transitory, computer-readable medium of claim 11, wherein:
the sample feature comprises:
a user feature of the user and an object feature of the target object; and
encoding the sample feature into an embedding vector by using the embedding layer, comprises:
encoding the user feature into a first vector;
encoding the object feature into a second vector; and
aggregating the first vector and the second vector to obtain the embedding vector.

### Claim 13 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein:
the sample feature comprises:
an interaction feature of the user and the target object; and
encoding the sample feature into an embedding vector by using the embedding layer comprises:
encoding the interaction feature into a third vector, wherein the embedding vector is obtained based on the third vector.

### Claim 14 (depends on 9)

The non-transitory, computer-readable medium of claim 9, wherein the prediction model comprises:
a gating unit and a product calculation unit, wherein the gating unit blocks a target path when the predetermined condition is satisfied and conducts the target path when the predetermined condition is not satisfied, and wherein the target path is used to transmit the first probability and the second probability to the product calculation unit to calculate the second product.

### Claim 15

A computer-implemented system, comprising:
one or more computers; and
one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations, comprising:
obtaining a target sample, wherein the target sample comprises:
a sample feature, a first label, and a second label, wherein a user corresponds to the target sample, wherein the first label indicates whether a target object is clicked on by the user, and wherein the second label indicates whether the user implements a target behavior related to the target object;
performing model processing on the sample feature by using a prediction model, wherein the prediction model comprises a first branch and a second branch, wherein the first branch outputs a first probability that the target object is clicked on by the user, and wherein the second branch outputs a second probability that the user implements the target behavior;
determining a first loss based on a first label value of the first label and the first probability; and
when a predetermined condition is satisfied:
determining a second loss based on a second label value of the second label and the second probability; and
determining a predicted loss of the target sample based on the first loss and the second loss, wherein the predetermined condition comprises the first label value, which indicates that the target object is clicked on by the user; and
training the prediction model based on the predicted loss.

### Claim 16 (depends on 15)

The computer-implemented system of claim 15, comprising:
when the predetermined condition is not satisfied, determining a third loss based on a first product of the first label value and the second label value and a second product of the first probability and the second probability; and
determining the predicted loss based on the first loss and the third loss.

### Claim 17 (depends on 15)

The computer-implemented system of claim 15, wherein the predetermined condition comprises:
the second label value indicates that the user does not implement the target behavior.

### Claim 18 (depends on 15)

The computer-implemented system of claim 15, wherein:
the prediction model comprises an embedding layer; and
the model processing comprises:
encoding the sample feature into an embedding vector by using the embedding layer; and
inputting the embedding vector separately into the first branch and the second branch.

### Claim 19 (depends on 18)

The computer-implemented system of claim 18, wherein:
the sample feature comprises:
a user feature of the user and an object feature of the target object; and
encoding the sample feature into an embedding vector by using the embedding layer, comprises:
encoding the user feature into a first vector;
encoding the object feature into a second vector; and
aggregating the first vector and the second vector to obtain the embedding vector.

### Claim 20 (depends on 19)

The computer-implemented system of claim 19, wherein:
the sample feature comprises:
an interaction feature of the user and the target object; and
encoding the sample feature into an embedding vector by using the embedding layer comprises:
encoding the interaction feature into a third vector, wherein the embedding vector is obtained based on the third vector.
