Recommended content recall and model training method, system, equipment and medium
The three-tower structure model combines user, material and blogger information to optimize the interest of users and bloggers, solve the problem of cold start and deviation in the recommendation system, and improve the accuracy and personalization of recommendations.
Patent Information
- Application Number
- CN202410800758.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
AI Technical Summary
Existing recommended content recall methods have cold start problems and recommendation bias in social networks, making it difficult to capture users' real needs, resulting in the recommendation system being unable to provide accurate personalized recommendations.
The three-tower structure model is used for iterative training, combining user, material and blogger information, determining the user's interest in the material through the dot product of the user embedding vector and the material embedding vector, and determining the user through the dot product of the user embedding vector and the blogger embedding vector. Regarding the blogger's interest, the main loss function and the auxiliary loss function are used to optimize the model and enhance the model's expression and capture of social relationships.
It improves the accuracy and personalization of the recommendation system, reduces recommendation bias, enhances the model's ability to capture users' real needs and the strength of the relationship chain of recommended content, and solves the problems of cold start and recommendation bias.
Smart Images

Figure CN118626720A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet information technology, and in particular to a method, system, device and medium for recalling recommended content and training a model. Background Art
[0002] The recall method based on social relations is a common strategy in recommendation systems. It uses the social relations of users in social networks to improve the accuracy and personalization of recommendations. The industry mostly uses machine learning algorithms, such as graph neural networks (GNNs), propagation models, social network analysis and other methods to achieve recall based on social relations.
[0003] In addition, the recall method based on the deep model better captures the complex relationship between users and materials by utilizing the powerful representation learning ability of deep learning, providing a more accurate and personalized recall service for the recommendation system. This method is suitable for processing large-scale and high-dimensional user material data, and greatly improves the retrieval efficiency of the model through the efficient ANN (Approximate Nearest Neighbors) retrieval technology. In the process of implementing the present invention, the applicant found that there are at least the following problems in the prior art:
[0004] In social networks, the relationships between users are sparse. When new users join a social network, the modeling of social relationships may be limited, leading to the cold start problem, that is, it is difficult to provide accurate personalized recommendations for new users. In addition, the recall method based on social relationships may lead to recommendation bias, that is, the system is more inclined to recommend content similar to the user or content closely related to the user's social relationship, which may lead to limitations of the recommendation system.
[0005] Recall methods based on deep models that do not consider social relationships may lead to a decrease in personalization. Social relationships usually provide important information about user interests and preferences. Ignoring this information may make it difficult for the model to capture the user's real needs. The introduction of missing relationship features in large-scale complex models may also lead to model overfitting, thereby limiting the expressive power of deep models.
[0006] Existing recommendation content recall methods have problems such as cold start in the recommendation scenario, biased recommendation content, and difficulty in capturing users' real needs, resulting in the recommendation system being unable to provide users with accurate personalized recommendations. Summary of the invention
[0007] The embodiments of the present invention provide a recommendation content recall and model training method, system, device and medium to solve the problems of cold start in the recommendation scenario, deviation of recommended content and difficulty in capturing the real needs of users in the existing recommendation content recall method, so that the recommendation system can provide users with accurate personalized recommendations.
[0008] To achieve the above objectives, on the one hand, an embodiment of the present invention provides a model training method for recalling recommended content, comprising:
[0009] Get user information, material information and blogger information within a set time period;
[0010] Iteratively training the constructed three-tower structure model using the user information, material information and blogger information until a model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower and a blogger tower;
[0011] Extracting a static user graph from the trained recall model, and indexing the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features;
[0012] Wherein, during each training process of the three-tower structure model:
[0013] Inputting the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtaining a user embedding vector output by the user tower;
[0014] Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower;
[0015] Input the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation, and obtain the blogger embedding vector output by the blogger tower;
[0016] Determining the user's interest in the material according to the user embedding vector and the material embedding vector, and using a first loss function based on the user's interest in the material to make the three-tower structure model converge;
[0017] The user's interest in the blogger is determined according to the user embedding vector and the blogger embedding vector, and a second loss function is used based on the user's interest in the blogger to make the three-tower structure model converge; the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
[0018] In addition, the present invention also provides a recommended content recall method, the method comprising:
[0019] Upon receiving a recommendation request from a target user, obtaining target user characteristics in real time, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user;
[0020] Inputting the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and the static user graph is obtained by the model training method described in any one of claims 1 to 5;
[0021] The target user embedding vector is input into a material index library for matching and retrieval, and a set number of target materials that the target user is interested in are obtained as recalled materials; the material index library is obtained by any of the aforementioned model training methods.
[0022] On the other hand, an embodiment of the present invention provides a model training system for recalling recommended content, including:
[0023] The acquisition module is used to obtain user information, material information and blogger information within a set time period;
[0024] A model training module, used to iteratively train the constructed three-tower structure model using the user information, material information and blogger information until the model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower and a blogger tower;
[0025] An extraction and construction module is used to extract a static user graph from the trained recall model, and to construct an index for the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features;
[0026] The model training module is specifically used in each training process of the three-tower structure model:
[0027] Inputting the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtaining a user embedding vector output by the user tower;
[0028] Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower;
[0029] Input the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation, and obtain the blogger embedding vector output by the blogger tower;
[0030] Determining the user's interest in the material according to the user embedding vector and the material embedding vector, and using a first loss function based on the user's interest in the material to make the three-tower structure model converge;
[0031] The user's interest in the blogger is determined according to the user embedding vector and the blogger embedding vector, and a second loss function is used based on the user's interest in the blogger to make the three-tower structure model converge; the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
[0032] In addition, the present invention also provides a recommended content recall system, the system comprising:
[0033] A receiving module, configured to obtain target user characteristics in real time upon receiving a recommendation request from a target user, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user;
[0034] A vector generation module, used to input the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and the static user graph is obtained by any of the aforementioned model training methods;
[0035] The retrieval module is used to input the target user embedding vector into the material index library for matching retrieval, and obtain the set number of target materials that the target user is interested in as recalled materials; the material index library is obtained by any of the above-mentioned model training methods. .
[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the processor implements a model training method for recalling recommended content as described in any one of the foregoing descriptions, and / or implements a method for recalling recommended content as described in the foregoing descriptions.
[0037] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer is executed by a processor, the computer implements any of the aforementioned model training methods for recalling recommended content and / or implements the aforementioned recommended content recall method.
[0038] The above technical scheme has the following beneficial effects: the present invention provides a method, system, device and medium for recalling recommended content and training a model. A three-tower structure model is constructed in the model training method to enhance the explicit expression of social relationships. The principle is as follows: first, the dot product between the user embedding vector and the material embedding vector is used as the user's interest in the material, and the user's interest in the material is optimized using a first loss function. The first loss function is used as the main loss function to converge the three-tower structure model. Then, the click between the user embedding vector and the blogger embedding vector is used as the user's interest in the blogger. The user's interest in the blogger is optimized using a second loss function. The second loss function is used as an auxiliary loss function to converge the three-tower structure model. The present invention designs a social auxiliary l OSS (second loss function) is a deep recall method that integrates user social relationships. By introducing strong relationship features such as social attention and frequently visited bloggers, it enhances the stability and accuracy of the deep recall model, reduces the recommendation bias caused by the lack of social relationship information in the recommendation scenario, improves the model's capture of users' real needs, and improves the relationship chain strength of recalled content in the recommendation scenario. The present invention can provide users with accurate personalized recommendation content. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 It is a flow chart of a model training method for recalling recommended content according to the present invention;
[0041] Figure 2 is a flow chart of a method for recalling recommended content according to the present invention;
[0042] Figure 3 It is a composition diagram of a model training system for recalling recommended content according to the present invention;
[0043] Figure 4 It is a composition diagram of a recommended content recall system of the present invention;
[0044] Figure 5 It is a structural diagram of a specific embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Information flow is a way for users to obtain and browse information, which is usually presented on the user interface through push. In related technologies, information flow recommendation systems use users' historical behaviors and interests to push content that may be of interest through algorithms. Key issues include how to better understand user interests and improve the accuracy of recommendations.
[0047] To this end, the present invention provides a method, system, device and medium for recalling recommended content and training a model, and the technical solution adopted is as follows:
[0048] like Figure 1 As shown, an embodiment of the present invention provides a model training method for recalling recommended content, comprising:
[0049] 101. Obtain user information, material information and blogger information within a set time period;
[0050] 102. Iteratively train the constructed three-tower structure model using the user information, material information, and blogger information until a model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower, and a blogger tower;
[0051] 103. Extracting a static user graph from the trained recall model, and indexing the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features;
[0052] Wherein, during each training process of the three-tower structure model:
[0053] 1021. Input the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtain a user embedding vector output by the user tower;
[0054] 1022. Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower;
[0055] 1023. Input the blogger information into the blogger tower to perform embedding representation by fusing the blogger's numerical features and label features, and obtain a blogger embedding vector output by the blogger tower;
[0056] 1024. Determine the user's interest in the material according to the user embedding vector and the material embedding vector, and use a first loss function based on the user's interest in the material to make the three-tower structure model converge;
[0057] 1025. Determine the user's interest in the blogger according to the user embedding vector and the blogger embedding vector, and adopt a second loss function based on the user's interest in the blogger to make the three-tower structure model converge; wherein the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
[0058] Furthermore, the step 1021 specifically includes:
[0059] Extracting basic features of the user according to the user information, and forming a basic feature embedding vector of the user through a deep neural network; the basic features of the user include at least one of the following: demographic attribute features of the user, consumption-related features of the user, and portrait label features of the user;
[0060] Extracting the user's historical behavior sequence features based on the user information, aggregating the user's historical interest points through attention, and then forming the user's behavior embedding vector through a deep neural network;
[0061] The user's basic feature embedding vector and the user's behavior embedding vector are connected to form the user embedding vector through a deep neural network.
[0062] Furthermore, the step 1022 specifically includes:
[0063] Extracting relevant features of the material and relevant features of the blogger to whom the material belongs according to the material information; wherein the relevant features of the material include numerical features of the material and label features of the material, and the relevant features of the blogger to whom the material belongs include numerical features of the blogger to whom the material belongs;
[0064] The numerical features of the material and the numerical features of the blogger to whom the material belongs are bucketed and mapped according to the feature values to obtain the numerical embedding vector of the material;
[0065] The label features of the material are fused using the sumpooling method to obtain the label embedding vector of the material;
[0066] The material numerical embedding vector and the material label embedding vector are input into a deep neural network to obtain the material embedding vector.
[0067] Furthermore, the step 1023 specifically includes:
[0068] Extracting the blogger's numerical features and label features according to the blogger information;
[0069] The blogger's numerical features are bucketed according to their feature values to obtain the blogger's numerical embedding vector;
[0070] The blogger's tag features are fused using the sumpooling method to obtain the blogger's tag embedding vector;
[0071] The blogger's numerical embedding vector and the blogger's label embedding vector are input into a deep neural network to obtain the blogger embedding vector.
[0072] Furthermore, in step 1024, the user's interest in the material is determined based on the dot product between the user embedding vector output by the user tower and the material embedding vector output by the material tower.
[0073] Furthermore, in step 1025, the user's interest in the blogger is determined based on the dot product between the user embedding vector output by the user tower and the blogger embedding vector output by the blogger tower.
[0074] Furthermore, the first loss function and the second loss function are both cross entropy loss functions.
[0075] like Figure 3 As shown, an embodiment of the present invention further provides a method for recalling recommended content, the method comprising:
[0076] 301. Upon receiving a recommendation request from a target user, obtaining target user characteristics in real time, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user;
[0077] 302. Input the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and the static user graph is obtained by any of the aforementioned model training methods;
[0078] 303. Input the target user embedding vector into a material index library for matching and retrieval to obtain a set number of target materials that the target user is interested in as recalled materials; the material index library is obtained based on any one of the model training methods described above.
[0079] like Figure 2 As shown, an embodiment of the present invention further provides a model training system for recalling recommended content, the model training system comprising:
[0080] The acquisition module 21 is used to acquire user information, material information and blogger information within a set time period;
[0081] A model training module 22 is used to iteratively train the constructed three-tower structure model using the user information, material information and blogger information until the model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower and a blogger tower;
[0082] An extraction and construction module 23 is used to extract a static user graph from the trained recall model, and to construct an index for the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features;
[0083] The model training module is specifically used in each training process of the three-tower structure model:
[0084] Inputting the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtaining a user embedding vector output by the user tower;
[0085] Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower;
[0086] Input the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation, and obtain the blogger embedding vector output by the blogger tower;
[0087] Determining the user's interest in the material according to the user embedding vector and the material embedding vector, and using a first loss function based on the user's interest in the material to make the three-tower structure model converge;
[0088] The user's interest in the blogger is determined according to the user embedding vector and the blogger embedding vector, and a second loss function is used based on the user's interest in the blogger to make the three-tower structure model converge; the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
[0089] Furthermore, the model training module 22 also includes a user embedding vector generating submodule 221, which is used to input the user information into the user tower for embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtain the user embedding vector output by the user tower. The user embedding vector generating submodule 221 is specifically used to:
[0090] Extracting basic features of the user according to the user information, and forming a basic feature embedding vector of the user through a deep neural network; the basic features of the user include at least one of the following: demographic attribute features of the user, consumption-related features of the user, and portrait label features of the user;
[0091] Extracting the user's historical behavior sequence features based on the user information, aggregating the user's historical interest points through attention, and then forming the user's behavior embedding vector through a deep neural network;
[0092] The user's basic feature embedding vector and the user's behavior embedding vector are connected to form the user embedding vector through a deep neural network.
[0093] Furthermore, the model training module 22 also includes a material embedding vector generating submodule 222, which is used to input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower. The material embedding vector generating submodule 222 is specifically used to:
[0094] Extracting relevant features of the material and relevant features of the blogger to whom the material belongs according to the material information; wherein the relevant features of the material include numerical features of the material and label features of the material, and the relevant features of the blogger to whom the material belongs include numerical features of the blogger to whom the material belongs;
[0095] The numerical features of the material and the numerical features of the blogger to whom the material belongs are bucketed and mapped according to the feature values to obtain the numerical embedding vector of the material;
[0096] The label features of the material are fused using the sumpooling method to obtain the label embedding vector of the material;
[0097] The material numerical embedding vector and the material label embedding vector are input into a deep neural network to obtain the material embedding vector.
[0098] Furthermore, the model training module 22 also includes a blogger embedding vector generating submodule 223, which is used to input the blogger information into the blogger tower to integrate the blogger's numerical features and label features into an embedding representation to obtain the blogger embedding vector output by the blogger tower. The blogger embedding vector generating submodule 223 is specifically used to:
[0099] Extracting the blogger's numerical features and label features according to the blogger information;
[0100] The blogger's numerical features are bucketed according to their feature values to obtain the blogger's numerical embedding vector;
[0101] The blogger's tag features are fused using the sumpooling method to obtain the blogger's tag embedding vector;
[0102] The blogger's numerical embedding vector and the blogger's label embedding vector are input into a deep neural network to obtain the blogger embedding vector.
[0103] like Figure 4 As shown, an embodiment of the present invention further provides a recommended content recall system, the system comprising:
[0104] 41. A receiving module, configured to obtain target user characteristics in real time upon receiving a recommendation request from a target user, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user;
[0105] 42. A vector generation module, configured to input the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and wherein the static user graph is obtained based on any one of the model training methods described in the above descriptions;
[0106] 43. Retrieval module: used to input the target user embedding vector into the material index library for matching retrieval, and obtain a set number of target materials that the target user is interested in as recalled materials; the material index library is obtained based on any of the model training methods described in the above descriptions.
[0107] In addition, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the processor implements a model training method for recalling recommended content as described in any one of the foregoing descriptions, and / or implements any one of the recommended content recall methods as described in the foregoing descriptions.
[0108] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer is executed by a processor, the computer implements any of the aforementioned model training methods for recalling recommended content and / or implements any of the aforementioned methods for recalling recommended content.
[0109] The following combination Figure 5 The specific application examples shown are used to explain the above technical solutions of the embodiments of the present invention in detail. For technical details not introduced during the implementation process, please refer to the relevant descriptions above. Figure 5 In the embodiment shown, the specific process is as follows:
[0110] Step 1: Build a user tower (Uid feature refers to user features)
[0111] The user tower includes a user basic feature extraction module, a user historical behavior sequence feature extraction module, and a fusion module of the two. The specific construction process is as follows:
[0112] (1) The user basic feature extraction module discretizes the user's demographic attributes such as gender and age, and generates the corresponding sub-embedding vector representation by looking up the corresponding embedding table after discretization. The user's consumption-related features, such as the user's recent click count, click-through rate, etc., are bucket-mapped through the cumulative distribution of the feature values. After mapping, the corresponding sub-embedding vector representation of the feature is generated by looking up the corresponding embedding table. The user's portrait label features are fused through sum pooling to generate the sub-embedding vector representation of the user's portrait label. Finally, the sub-embedding vector representation results of all features are output through a deep neural network (DNN) containing 3 hidden layers to obtain the user's basic feature embedding vector. (Profile Feature Emb is a collection of each sub-embedding vector of the user's basic features)
[0113] (2) The user's historical behavior sequence feature extraction module uses the user's historical behavior sequence features such as interactions and clicks (Seq Feature Embed is a collection of sub-embedding vectors of the user's historical behavior sequence features) and aggregates them through the attention method (the attention method is an attention mechanism method). This can extract the user's historical interest points in a fine-grained manner, and then generate the user's behavior embedding vector through a deep neural network (DNN) containing 3 hidden layers.
[0114] (3) User fusion representation module: This module concatenates the user basic feature embedding vector and the user behavior embedding vector, and then inputs the concatenated embedding vector into a deep neural network (MLP) containing 3 hidden layers to output the user’s final embedding representation (this step corresponds to the Embedding contact &&MLP in the figure), that is, outputs the user embedding vector, User Emb is the user embedding vector.
[0115] Step 2: Build a material tower (Mid feature refers to material features)
[0116] The material tower uses the relevant features of the material such as the number of clicks, interaction volume, material tags, and the relevant features of the blogger to whom the material belongs (the shared between the material tower and the blogger tower refers to the features of the blogger tower dimension shared by the material tower), such as the blogger's level, number of fans, etc., to bucket-map the numerical features according to the cumulative distribution of the feature values to obtain the numerical embedding vector of the material; the label features are fused in the sum pooling method to obtain the label embedding vector of the material. Figure 5 In the figure, the middle is the material tower. The Feature Emb in the material tower is the sub-embedding vector of the material dimension feature (the sub-embedding vector in the material tower is the numerical embedding vector of the material or the label embedding vector of the material). Finally, the sub-embedding vector representation results of all features are output through a deep neural network (DNN) with 3 hidden layers to output the final embedding representation of the material, that is, the output material embedding vector. Mid Embed is the material embedding vector.
[0117] Step 3: Build a blogger tower to improve the model’s capture of relationship information
[0118] The blogger tower uses the blogger's level, number of fans and other features to bucket-map the numerical features according to the cumulative distribution of the feature values to obtain the blogger's numerical embedding vector. The label features are fused in a sum pooling manner to obtain the blogger's label embedding vector. The Feature Embed in the blogger tower is the sub-embedding vector of the blogger's dimensional features (the sub-embedding vector in the blogger tower is the blogger's numerical embedding vector or the blogger's label embedding vector). The embedding representation results of all features are output through a deep neural network (DNN) with 3 hidden layers to obtain the blogger's final embedding representation, which is the blogger's embedding vector. Aid Emb is the blogger's embedding vector. The blogger's features share parameters with the blogger features of the material tower to improve the stability and accuracy of model learning. Figure 5 In the article, KOL refers to the characteristics of Weibo big V in related fields, and the F level is a division of bloggers. The higher the level, the more professional and excellent the blogger is.
[0119] Step 4: Interest extraction module, including the following steps:
[0120] The interest extraction module adopts a dual-tower model architecture and uses the dot product of the user tower and the material tower to generate the user's interest in the material. The module uses click behavior as a positive sample and negative samples as negative sampling within the batch. Finally, the gradient descent method is used to adopt the cross-entropy loss function to make the three-tower model converge. The cross-entropy loss function here can be called the first loss function, that is, the first loss function is used as the main loss function to make the three-tower structure model converge.
[0121] Step 5: Relationship extraction module, including the following steps:
[0122] The relationship extraction module also adopts a dual-tower model architecture, using the dot product of the user tower and the blogger tower to generate the user's interest in the blogger. This module uses the bloggers who are followed and frequently visited as positive samples. Finally, the gradient descent method is also used to adopt the cross entropy loss to make the model converge. This loss can be called the second loss function. The second loss function is used as an auxiliary loss to constrain the three-tower structure model to extract relationship features. It is built based on the relationship between users and bloggers to capture information at the relationship level to enhance the stability and accuracy of the deep recall model.
[0123] Step 6: Online retrieval module: The recall retrieval process can be divided into two stages: offline data generation and online reasoning.
[0124] (1) The offline data generation part includes two processes: user graph extraction and material index generation. In the user graph extraction process, after the three-tower structure model is trained, the static user graph of the model is extracted using the relevant interface of TF (the relevant interface of TF is tensorflow.python.tools.freeze_graph). The static user graph is used to input user information and infer the target user embedding vector. In the material index generation process, after the three-tower structure model is trained, the HNSW (Hierarchical Navigable Small World) algorithm is used to build an index library (material index library) for the material embedding vector. HNSW is an efficient approximate nearest neighbor search algorithm that can perform effective similarity search in high-dimensional space. By building an index, the efficiency of online retrieval is improved.
[0125] (2) In the online reasoning stage, the model user graph (static user graph) and the material HNSW index are loaded. When a user requests, the user-related features (target user information) are obtained in real time. After parsing the feature map, it is input into the model user graph to infer the target user embedding vector corresponding to the target user information. The target user embedding vector is used to represent the top k (top k refers to the first k materials retrieved) materials of interest to the user in the material index library through efficient and high-precision retrieval methods such as IVFFlat (IVFFlat is a retrieval algorithm).
[0126] The present invention provides a method, system, device and medium for recalling recommended content and training a model. In the model training method, a three-tower structure model is constructed, wherein the three towers are a user tower, a material tower and a blogger tower. The dot product between a user embedding vector and a material embedding vector is first used as the user's interest in the material, and the user's interest in the material is optimized using a first loss function. The first loss function is used as a main loss function to converge the three-tower structure model. Then, the click between the user embedding vector and the blogger embedding vector is used as the user's interest in the blogger, and the user's interest in the blogger is optimized using a second loss function. The second loss function is used as an auxiliary loss function to converge the three-tower structure model. The present invention designs a social auxiliary loss, which integrates a deep recall method of user social relationships by introducing strong relationship features such as social attention and frequently viewed bloggers, and has the following advantages:
[0127] (1) Enhanced the stability and accuracy of the deep recall model;
[0128] (2) Improved the stability of cold-start user recall content in recommendation scenarios;
[0129] (3) The model’s ability to capture users’ real needs and the strength of the relationship chain for recalling content within the recommendation scenario have been improved;
[0130] (4) Greatly reduces the recommendation bias caused by missing social relationship information in the recommendation scenario; at the same time, it reduces the risk of overfitting of the recall model.
[0131] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0132] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0133] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.
[0134] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
[0135] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.
[0136] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0137] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.
[0138] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.
[0139] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A model training method for recalling recommended content, characterized in that: include: Get user information, material information and blogger information within a set time period; Iteratively training the constructed three-tower structure model using the user information, material information and blogger information until a model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower and a blogger tower; Extracting a static user graph from the trained recall model, and indexing the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features; Wherein, during each training process of the three-tower structure model: Inputting the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtaining a user embedding vector output by the user tower; Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower; Input the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation, and obtain the blogger embedding vector output by the blogger tower; Determining the user's interest in the material according to the user embedding vector and the material embedding vector, and using a first loss function based on the user's interest in the material to make the three-tower structure model converge; The user's interest in the blogger is determined according to the user embedding vector and the blogger embedding vector, and a second loss function is used based on the user's interest in the blogger to make the three-tower structure model converge; the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
2. A model training method for recalling recommended content according to claim 1, characterized in that: The step of inputting the user information into the user tower to fuse the basic features of the user and the historical behavior sequence features to obtain the user embedding vector output by the user tower specifically includes: Extracting basic features of the user according to the user information, and forming a basic feature embedding vector of the user through a deep neural network; the basic features of the user include at least one of the following: demographic attribute features of the user, consumption-related features of the user, and portrait label features of the user; Extracting the user's historical behavior sequence features based on the user information, aggregating the user's historical interest points through attention, and then forming the user's behavior embedding vector through a deep neural network; The user's basic feature embedding vector and the user's behavior embedding vector are connected to form the user embedding vector through a deep neural network.
3. A model training method for recalling recommended content according to claim 1, characterized in that: The step of inputting the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation to obtain the blogger embedding vector output by the blogger tower specifically includes: Extracting the blogger's numerical features and label features according to the blogger information; The blogger's numerical features are bucketed according to their feature values to obtain the blogger's numerical embedding vector; The blogger's tag features are fused using the sumpooling method to obtain the blogger's tag embedding vector; The blogger's numerical embedding vector and the blogger's label embedding vector are input into a deep neural network to obtain the blogger embedding vector.
4. A model training method for recalling recommended content according to claim 1, characterized in that: The step of inputting the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtaining the material embedding vector output by the material tower, specifically includes: Extracting relevant features of the material and relevant features of the blogger to whom the material belongs according to the material information; wherein the relevant features of the material include numerical features of the material and label features of the material, and the relevant features of the blogger to whom the material belongs include numerical features of the blogger to whom the material belongs; The numerical features of the material and the numerical features of the blogger to whom the material belongs are bucketed and mapped according to the feature values to obtain the numerical embedding vector of the material; The label features of the material are fused using the sumpooling method to obtain the label embedding vector of the material; The material numerical embedding vector and the material label embedding vector are input into a deep neural network to obtain the material embedding vector.
5. A model training method for recalling recommended content according to claim 1, characterized in that: The user's interest in the material is determined based on the dot product between the user embedding vector output by the user tower and the material embedding vector output by the material tower; The user's interest in the blogger is determined based on the dot product between the user embedding vector output by the user tower and the blogger embedding vector output by the blogger tower; Wherein, the first loss function and the second loss function are both cross entropy loss functions.
6. A method for recalling recommended content, characterized in that: include: Upon receiving a recommendation request from a target user, obtaining target user characteristics in real time, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user; Inputting the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and the static user graph is obtained by the model training method described in any one of claims 1 to 5; The target user embedding vector is input into a material index library for matching and retrieval to obtain a set number of target materials that the target user is interested in as recalled materials; the material index library is obtained by the model training method described in any one of claims 1-5.
7. A model training system for recalling recommended content, characterized in that: include: The acquisition module is used to obtain user information, material information and blogger information within a set time period; A model training module, used to iteratively train the constructed three-tower structure model using the user information, material information and blogger information until the model convergence condition is reached, thereby obtaining a recall model for recommending content of interest to the user, wherein the three-tower structure model includes a user tower, a material tower and a blogger tower; An extraction and construction module is used to extract a static user graph from the trained recall model, and to construct an index for the material embedding vector output by the recall model to obtain a material index library, wherein the static user graph is used to infer a user embedding vector matching the user features; The model training module is specifically used in each training process of the three-tower structure model: Inputting the user information into the user tower to perform embedding representation by fusing the basic features of the user and the historical behavior sequence features, and obtaining a user embedding vector output by the user tower; Input the material information into the material tower to fuse the relevant features of the material and the relevant features of the blogger to whom the material belongs, and obtain the material embedding vector output by the material tower; Input the blogger information into the blogger tower to fuse the blogger's numerical features and label features into an embedding representation, and obtain the blogger embedding vector output by the blogger tower; Determining the user's interest in the material according to the user embedding vector and the material embedding vector, and using a first loss function based on the user's interest in the material to make the three-tower structure model converge; The user's interest in the blogger is determined according to the user embedding vector and the blogger embedding vector, and a second loss function is used based on the user's interest in the blogger to make the three-tower structure model converge; the first loss function is the main loss function of the three-tower structure model, and the second loss function is the auxiliary loss function of the three-tower structure model.
8. A recommended content recall system, characterized in that: include: A receiving module, configured to obtain target user characteristics in real time upon receiving a recommendation request from a target user, wherein the target user characteristics include basic characteristics and / or behavior sequence characteristics of the target user; A vector generation module, used for inputting the target user feature into a static user graph to obtain a target user embedding vector matching the target user feature, wherein the static user graph is used to infer a user embedding vector matching the user feature, and the static user graph is obtained by the model training method according to any one of claims 1 to 5; A retrieval module is used to input the target user embedding vector into a material index library for matching retrieval, and obtain a set number of target materials that the target user is interested in as recalled materials; the material index library is obtained by the model training method described in any one of claims 1-5.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the model training method for recommended content recall as described in any one of claims 1 to 5, and / or implements the recommended content recall method as described in claim 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer is executed by a processor, the computer implements the model training method for recalling recommended content as described in any one of claims 1 to 5, and / or implements the recommended content recall method as described in claim 6.
