IP Library › Granted Patent US 12,591,783
Granted Patent B2
US 12,591,783 · App. 18/072,622 · Granted Mar 31, 2026

Method and apparatus for constructing recommendation model and neural network model, electronic device, and storage medium

Inventors: Litao Hong (Shenzhen, CN); Yongyao Chao (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06N3/091
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,591,783
App. No.
18/072,622
Granted
Mar 31, 2026
Kind
B2
Abstract

This application provides a method and apparatus for constructing a recommendation model. In some examples, a plurality of feature tables corresponding to each application scenario in a recommendation project are aggregated to obtain an aggregated feature table. The recommendation project may include a plurality of application scenarios in a one-to-one correspondence with a plurality of recommendation indicators of a to-be-recommended item. Each application scenario can have a recommendation model to predict a corresponding recommendation indicator. Corresponding user feature and item feature may be received from the aggregated feature table based on a user identifier and an item identifier included in a sample data table. The features can be stitched with the sample data table to form a training sample set. The recommendation model of the application scenario may be trained based on the training sample set.

Claims (77)

1 . A method for constructing a recommendation model performed by an electronic device, the method comprising:

aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table, the recommendation project comprising a plurality of application scenarios in a one-to-one correspondence with a plurality of recommendation indicators of an information item and each application scenario having a recommendation model being configured to predict a corresponding recommendation indicator;

receiving a corresponding user feature and item feature from the aggregated feature table based on a user identifier and an item identifier comprised in a sample data table, and stitching the user feature and the item feature with the sample data table, to form a training sample set;

performing primary key encoding on a feature identifier of each training sample of the training sample set, to obtain a primary key encoded value of the feature identifier;

performing secondary key encoding on the feature identifier of each training sample, to obtain a secondary key encoded value of the feature identifier;

stitching the primary key encoded value and the secondary key encoded value, to obtain an index encoded value of the feature identifier;

updating the feature identifier of the training sample to the index encoded value, to obtain an updated training sample set;

training the recommendation model of the application scenario based on the updated training sample set, the trained recommendation model being capable of fitting a user feature and an item feature in the updated training sample set; and

recommending information items to at least one user using the trained recommendation model.

2 . The method according to claim 1 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table comprises:

aggregating and deduplicating at least a part of features of the plurality of feature tables corresponding to the application scenario, to obtain an aggregated feature table of the application scenario; and

combining feature identifiers in the aggregated feature table, to obtain a feature metadata table of the application scenario.

3 . The method according to claim 2 , wherein the aggregating at least a part of features of the plurality of feature tables corresponding to the application scenario comprises:

aggregating all features of the plurality of feature tables corresponding to the application scenario.

4 . The method according to claim 2 , wherein the aggregating at least a part of features of the plurality of feature tables corresponding to the application scenario comprises:

determining, from the plurality of feature tables corresponding to each application scenario in the recommendation project, features publicly used by a plurality of training algorithms for training the recommendation model of the application scenario; and

aggregating the publicly used features, to obtain the aggregated feature table of the application scenario.

5 . The method according to claim 1 , wherein when a newly added feature table exists in the application scenario, the method further comprises:

stitching the newly added feature table with the aggregated feature table of the application scenario, to obtain a new aggregated feature table; and

incrementally updating a cache space based on the new aggregated feature table.

6 . The method according to claim 1 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project comprises:

aggregating newly added feature tables corresponding to new periods when each new period of each application scenario arrives, to obtain an aggregated feature table of the new period; and

stitching aggregated feature tables of the new periods, to obtain the aggregated feature table of the application scenario.

7 . The method according to claim 1 , wherein the receiving a corresponding user feature and item feature from the aggregated feature table based on a user identifier and an item identifier comprised in a sample data table, and stitching the user feature and the item feature with the sample data table comprises:

when each new period of each application scenario arrives:

reading a corresponding user feature and item feature from an aggregated feature table of the new period in a cache space based on a user identifier and an item identifier comprised in a sample data table of the new period; and

stitching the user feature and the item feature with the sample data table of the new period, to obtain cache features of the new period.

8 . The method according to claim 1 , further comprising:

mapping feature identifiers in the obtained aggregated feature table, to obtain integer values of the feature identifiers;

updating the feature identifiers in the aggregated feature table to the integer values, to obtain a compressed aggregated feature table; and

transmitting the compressed aggregated feature table to a cache space.

9 . An electronic device, comprising:

a memory, configured to store executable instructions; and

a processor, configured to perform, when executing the executable instructions stored in the memory, a method for constructing a recommendation model, the method including:

aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table, the recommendation project comprising a plurality of application scenarios in a one-to-one correspondence with a plurality of recommendation indicators of an information item and each application scenario having a recommendation model being configured to predict a corresponding recommendation indicator;

receiving a corresponding user feature and item feature from the aggregated feature table based on a user identifier and an item identifier comprised in a sample data table, and stitching the user feature and the item feature with the sample data table, to form a training sample set;

performing primary key encoding on a feature identifier of each training sample of the training sample set, to obtain a primary key encoded value of the feature identifier;

performing secondary key encoding on the feature identifier of each training sample, to obtain a secondary key encoded value of the feature identifier;

stitching the primary key encoded value and the secondary key encoded value, to obtain an index encoded value of the feature identifier;

updating the feature identifier of the training sample to the index encoded value, to obtain an updated training sample set;

training the recommendation model of the application scenario based on the updated training sample set, the trained recommendation model being capable of fitting a user feature and an item feature in the updated training sample set; and

recommending information items to at least one user using the trained recommendation model.

10 . The electronic device according to claim 9 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table comprises:

aggregating and deduplicating at least a part of features of the plurality of feature tables corresponding to the application scenario, to obtain an aggregated feature table of the application scenario; and

combining feature identifiers in the aggregated feature table, to obtain a feature metadata table of the application scenario.

11 . The electronic device according to claim 9 , wherein when a newly added feature table exists in the application scenario, the method further comprises:

stitching the newly added feature table with the aggregated feature table of the application scenario, to obtain a new aggregated feature table; and

incrementally updating a cache space based on the new aggregated feature table.

12 . The electronic device according to claim 9 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project comprises:

aggregating newly added feature tables corresponding to new periods when each new period of each application scenario arrives, to obtain an aggregated feature table of the new period; and

stitching aggregated feature tables of the new periods, to obtain the aggregated feature table of the application scenario.

13 . The electronic device according to claim 9 , wherein the receiving a corresponding user feature and item feature from the aggregated feature table based on a user identifier and an item identifier comprised in a sample data table, stitching the user feature and the item feature with the sample data table comprises:

when each new period of each application scenario arrives:

reading a corresponding user feature and item feature from an aggregated feature table of the new period in a cache space based on a user identifier and an item identifier comprised in a sample data table of the new period; and

stitching the user feature and the item feature with the sample data table of the new period, to obtain cache features of the new period.

14 . The electronic device according to claim 9 , wherein the method further comprises:

mapping feature identifiers in the obtained aggregated feature table, to obtain integer values of the feature identifiers;

updating the feature identifiers in the aggregated feature table to the integer values, to obtain a compressed aggregated feature table; and

transmitting the compressed aggregated feature table to a cache space.

15 . A non-transitory computer-readable storage medium, storing executable instructions that, when executed by a processor of a computer device, implements a method for constructing a recommendation model, the method including:

aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table, the recommendation project comprising a plurality of application scenarios in a one-to-one correspondence with a plurality of recommendation indicators of an information item and each application scenario having a recommendation model being configured to predict a corresponding recommendation indicator;

receiving a corresponding user feature and item feature from the aggregated feature table based on a user identifier and an item identifier comprised in a sample data table, and stitching the user feature and the item feature with the sample data table, to form a training sample set;

performing primary key encoding on a feature identifier of each training sample of the training sample set, to obtain a primary key encoded value of the feature identifier;

performing secondary key encoding on the feature identifier of each training sample, to obtain a secondary key encoded value of the feature identifier;

stitching the primary key encoded value and the secondary key encoded value, to obtain an index encoded value of the feature identifier;

updating the feature identifier of the training sample to the index encoded value, to obtain an updated training sample set;

training the recommendation model of the application scenario based on the updated training sample set, the trained recommendation model being capable of fitting a user feature and an item feature in the updated training sample set; and

recommending information items to at least one user using the trained recommendation model.

16 . The non-transitory computer-readable storage medium according to claim 15 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project to obtain an aggregated feature table comprises:

aggregating and deduplicating at least a part of features of the plurality of feature tables corresponding to the application scenario, to obtain an aggregated feature table of the application scenario; and

combining feature identifiers in the aggregated feature table, to obtain a feature metadata table of the application scenario.

17 . The non-transitory computer-readable storage medium according to claim 15 , wherein when a newly added feature table exists in the application scenario, the method further comprises:

stitching the newly added feature table with the aggregated feature table of the application scenario, to obtain a new aggregated feature table; and

incrementally updating a cache space based on the new aggregated feature table.

18 . The non-transitory computer-readable storage medium according to claim 15 , wherein the aggregating a plurality of feature tables corresponding to each application scenario in a recommendation project comprises:

aggregating newly added feature tables corresponding to new periods when each new period of each application scenario arrives, to obtain an aggregated feature table of the new period; and

stitching aggregated feature tables of the new periods, to obtain the aggregated feature table of the application scenario.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 10, 2023
From: HONG, LITAO; CHAO, YONGYAO
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 062951/0480 →
Priority Claims (1)
CN 202010919935.5 · Sep 4, 2020 · national
Continuity (2)
Continuation PCTCN2021112762 · Aug 16, 2021
Related Publication 20230094293A1 · Mar 30, 2023
References Cited (16)
US 10554817B1 · Sullivan · 2020 [cited by examiner]
US 12181847B1 · Brett · 2024 [cited by examiner]
US 20160371589A1 · Golbandi et al. · 2016 [cited by applicant]
US 20180247362A1 · Guo et al. · 2018 [cited by applicant]
US 20190108471A1 · Widanapathirana · 2019 [cited by examiner]
US 20200311600A1 · Kulkarni · 2020 [cited by examiner]
US 20210374600A1 · Wisniewski · 2021 [cited by examiner]
CN 109241031A · 2019 [cited by applicant]
CN 109241418A · 2019 [cited by applicant]
CN 109978177A · 2019 [cited by examiner]
CN 111026971A · 2020 [cited by applicant]
CN 111582596A · 2020 [cited by applicant]
WO WO2019037260A1 · 2019 [cited by examiner]
Tencent Technology, WO, PCT/CN2021/112762, Nov. 17, 2021, 4 pgs. [cited by applicant]
Tencent Technology, IPRP, PCT/CN2021/112762, Mar. 7, 2023, 5 pgs. [cited by applicant]
Tencent Technology, ISR, PCT/CN2021/112762, Nov. 17, 2021, 2 pgs. [cited by applicant]