# US 2022/0277204 A1 · Model training method and apparatus for information recommendation, electronic device and medium

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

- Number: US 2022/0277204 A1
- Document ID: US20220277204A1
- Status: Published application
- Kind: A1
- Application number: 17/747,748
- Filed: 2022-05-18
- Published: 2022-09-01
- Earliest claimed: 2019-11-26
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Haitao LU; Xiaoyu TIAN; Ming BAI
- Web page: https://patentgrep.com/patent/US20220277204A1

## CPC

- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/00: Machine learning
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06N 5/04: Inference or reasoning models
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A model training method and apparatus for information recommendation, an electronic device and a medium. The method at least includes: obtaining an estimated recommendation result for work information from a first recommendation model by inputting the first training sample set which is pre-determined into the first recommendation model, wherein the first training sample set at least includes proximity information of a multimedia sample work, and the proximity information of the multimedia sample work at least includes location information of a current recommended multimedia sample work on a current recommended page; generating, based on the estimated recommendation result and the first training sample set, a second training sample set for a second recommendation model to train the second recommendation model; and obtaining an online recommendation model by training the second recommendation model.

## Claims

### Claim 1

A method for training an information recommendation model, comprising:
obtaining an estimated recommendation result for work information from a first recommendation model by inputting a first training sample set which is pre-determined into the first recommendation model, wherein the first training sample set at least comprises proximity information of a multimedia sample work, and the proximity information of the multimedia sample work at least comprises location information of a current recommended multimedia sample work on a current recommended page;
generating, based on the estimated recommendation result and the first training sample set, a second training sample set for a second recommendation model to train the second recommendation model; and
obtaining an online recommendation model by training the second recommendation model, wherein the online recommendation model is configured to generate recommended parameters for works in a multimedia work library corresponding to a user in response to a recommendation request received from the user.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said generating, based on the estimated recommendation result and the first training sample set, the second training sample set comprises:
calculating a reference recommendation result based on the estimated recommendation result and a preset recommendation result; and
generating the second training sample set based on the reference recommendation result and the first training sample set.

### Claim 3 (depends on 2)

The method according to claim 2, wherein said calculating the reference recommendation result based on the estimated recommendation result and the preset recommendation result comprises:
calculating the reference recommendation result by adopting the following formula:
L=a×yl+(1−a)×yt, wherein L is the reference recommendation result, yl is the preset recommendation result, yt is the estimated recommendation result, a is a preset adjustment constant, and 0<a<1.

### Claim 4 (depends on 1)

The method according to claim 1, wherein:
the first recommendation model comprises: a first feature extracting layer and a first feature calculating layer;
the second recommendation model comprises: a second feature extracting layer and a second feature calculating layer;
the first training sample set further comprises: operation data of the user on the multimedia sample work; and
said obtaining the estimated recommendation result for the work information from the first recommendation model by inputting the first training sample set into the first recommendation model comprises:
obtaining first feature data by inputting the proximity information into the first feature extracting layer;
obtaining second feature data by inputting operation data for the multimedia sample work and work information of the multimedia sample work into the second feature extracting layer; and
obtaining the estimated recommendation result calculated and output by the first feature calculating layer based on the first feature data and the second feature data by inputting the first feature data and the second feature data into the first feature calculating layer.

### Claim 5 (depends on 4)

The method according to claim 4, wherein said generating, based on the estimated recommendation result and the first training sample set, the second training sample set to train the second recommendation model, and said obtaining the online recommendation model by training the second recommendation model comprises:
adjusting network parameters of the second feature extracting layer and/or the second feature calculating layer based on a reference recommendation result and the second feature data and based on a preset second loss function corresponding to the second recommendation model; and
setting the second recommendation model with adjusted network parameters as the online recommendation model.

### Claim 6 (depends on 4)

The method according to claim 4, further comprising:
adjusting model parameters of the first recommendation model based on the estimated recommendation result and a preset recommendation result and based on a preset first loss function corresponding to the first recommendation model; and
setting the first recommendation model with adjusted model parameters as a first recommendation model after current training.

### Claim 7 (depends on 6)

The method according to claim 6, wherein said adjusting the model parameters of the first recommendation model based on the estimated recommendation result and the preset recommendation result and based on the preset first loss function corresponding to the first recommendation model, and said setting the first recommendation model after with adjusted model parameters as the first recommendation model after current training comprises:
adjusting network parameters of the first feature extracting layer and/or the first feature calculating layer based on the estimated recommendation result and the preset recommendation result and based on the preset first loss function corresponding to the first recommendation model; and
setting the first recommendation model with adjusted network parameters as the first recommendation model after current training.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
obtaining an operation log of the user, wherein the operation log comprises the location information of the current recommended multimedia sample work on the current recommended page, and location information of multimedia sample works, before and after the current recommended multimedia sample work in the operation log, on the current recommended page; and
generating the first training sample set based on the operation log.

### Claim 9

An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication among them through the communication bus;
the memory is configured to store a computer program; and
the processor is configured to call the computer program stored on the memory to cause the electronic device to:
obtain an estimated recommendation result for work information from a first recommendation model by inputting a first training sample set which is pre-determined into the first recommendation model, wherein the first training sample set at least comprises proximity information of a multimedia sample work, and the proximity information of the multimedia sample work at least comprises location information of a current recommended multimedia sample work on a current recommended page;
generate, based on the estimated recommendation result and the first training sample set, a second training sample set for a second recommendation model to train the second recommendation model; and
obtain an online recommendation model by training the second recommendation model, wherein the online recommendation model is configured to generate recommended parameters for works in a multimedia work library corresponding to a user in response to a recommendation request received from the user.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the processor is configured to:
calculate a reference recommendation result based on the estimated recommendation result and a preset recommendation result; and
generate the second training sample set based on the reference recommendation result and the first training sample set.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the processor is configured to:
calculate the reference recommendation result by adopting the following formula:
L=a×yl+(1−a)×yt, wherein L is the reference recommendation result, yl is the preset recommendation result, yt is the estimated recommendation result, a is a preset adjustment constant, and 0<a<1.

### Claim 12 (depends on 9)

The electronic device according to claim 9, wherein:
the first recommendation model comprises: a first feature extracting layer and a first feature calculating layer;
the second recommendation model comprises: a second feature extracting layer and a second feature calculating layer;
the first training sample set further comprises: operation data of the user on the multimedia sample work; and
the processor is configured to:
obtain first feature data by inputting the proximity information into the first feature extracting layer;
obtain second feature data by inputting operation data for the multimedia sample work and work information of the multimedia sample work into the second feature extracting layer; and
obtain the estimated recommendation result calculated and output by the first feature calculating layer based on the first feature data and the second feature data by inputting the first feature data and the second feature data into the first feature calculating layer.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the processor is configured to:
adjust network parameters of the second feature extracting layer and/or the second feature calculating layer based on a reference recommendation result and the second feature data and based on a preset second loss function corresponding to the second recommendation model; and
set the second recommendation model with adjusted network parameters as the online recommendation model.

### Claim 14 (depends on 12)

The electronic device according to claim 12, wherein the processor is further configured to:
adjust model parameters of the first recommendation model based on the estimated recommendation result and a preset recommendation result and based on a preset first loss function corresponding to the first recommendation model; and
set the first recommendation model with adjusted model parameters as a first recommendation model after current training.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the processor is configured to:
adjust network parameters of the first feature extracting layer and/or the first feature calculating layer based on the estimated recommendation result and the preset recommendation result and based on the preset first loss function corresponding to the first recommendation model; and
set the first recommendation model with adjusted network parameters as the first recommendation model after current training.

### Claim 16 (depends on 9)

The electronic device according to claim 9, wherein the processor is further configured to:
obtain an operation log of the user, wherein the operation log comprises the location information of the current recommended multimedia sample work on the current recommended page, and location information of multimedia sample works, before and after the current recommended multimedia sample work in the operation log, on the current recommended page; and
generate the first training sample set based on the operation log.

### Claim 17 (depends on 1)

A non-transitory computer readable storage medium, storing a computer program, wherein the computer program is executed by a processor of a computer to cause the computer to execute the method according to claim 1.
