Model training method and device, recommendation information generation method and device, equipment and medium
By generating dynamic and integrated user item modal graphs, combined with predefined graph information, and optimizing the graph structure, the problem of noise data interference in multi-modal recommendation is solved, and the accuracy of recommended information and resource utilization efficiency are improved.
Patent Information
- Application Number
- CN202410758388.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-13
AI Technical Summary
When existing multi-modal recommendation methods generate recommendation information, the noise data in the modal data interferes greatly, resulting in low accuracy of graph information, poor reliability of node feature information and interactive information, which in turn affects the accuracy of item recommendation and causes resource problems. waste.
By obtaining the user-item interaction information in the sample set, we generate dynamic user-item modal diagrams and integrate user-item modal diagrams. We combine predefined and dynamic diagram information to optimize the graph structure, reduce noise data interference, and improve the performance through interactive information prediction model training. Accuracy of interactive information.
It effectively reduces the interference of noise data on graph information, improves the reliability of node feature information and interactive information, improves the accuracy of item recommendation, and reduces resource waste.
Smart Images

Figure CN118733991A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a model training method, a recommendation information generation method, an apparatus, a device, and a medium. Background Art
[0002] The multimodal recommendation method is a method that extracts modal feature information based on multimodal data, thereby enhancing the feature information of users and items in the recommendation system. At present, when using multimodal data to generate recommendation information, the usual approach is: first, the modal feature information of multimodal data is integrated into the user-item interaction graph, and then the graph neural network technology is used to encode and learn the graph information, thereby generating high-level feature information of users and items enhanced with modal knowledge.
[0003] However, when the above method is used to generate recommendation information, the following technical problems often occur:
[0004] First, when the modal feature information of the modal data is directly used to construct graph information, the noise data in the modal data interferes greatly with the graph information, resulting in low accuracy of the constructed graph information. The reliability of the node feature information and interaction information generated using the graph information is low, which in turn leads to poor accuracy of the recommended items when recommending items based on the generated interaction information, resulting in a waste of network resources for recommendation and when users view items.
[0005] Second, the final high-order feature information is generated only based on the constructed layer of graph information, resulting in poor generalization ability of the model and low accuracy of the model prediction results.
[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0007] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0008] Some embodiments of the present disclosure propose an interactive information prediction model training method, a recommendation information generation method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0009] In a first aspect, some embodiments of the present disclosure provide a method for training an interaction information prediction model, the method comprising: obtaining a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group; performing the following training steps based on the sample set: generating each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set, wherein each dynamic user-item modal graph information in each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the corresponding sample in each dynamic user-item modal graph information Dynamic user-item modal graph information, generate integrated user-item modal graph information corresponding to the above sample, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; based on the integrated user-item modal graph information corresponding to each sample in the above at least one sample, including the integrated user modal graph and the integrated item modal graph, generate node feature information, wherein the node feature information includes each user node feature information corresponding to the integrated user modal graph and each item node feature information corresponding to the integrated item modal graph; input each node feature information corresponding to the above at least one sample into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the above at least one sample; compare the interaction information corresponding to each sample in the above at least one sample with the corresponding sample interaction information; determine whether the initial interaction information prediction model reaches the preset optimization target based on the comparison result; in response to determining that the initial interaction information prediction model reaches the above optimization target, use the initial interaction information prediction model as the trained interaction information prediction model.
[0010] In a second aspect, some embodiments of the present disclosure provide a method for generating recommendation information, the method comprising: for each user information in a user information set, executing the following steps: obtaining each user-item interaction information corresponding to the above user information; for each user-item interaction information in the above user-item interaction information, determining a preset number of item information in a preset item information set that meets a preset interaction condition as the interaction item information corresponding to the above user-item interaction information; integrating the above user-item interaction information and the determined interaction item information to obtain an integrated user-item interaction information group; generating interaction information corresponding to each integrated user-item interaction information in the above integrated user-item interaction information group based on a pre-trained interaction information prediction model, wherein the interaction information prediction model is trained by the method described in any implementation method of the above first aspect; sorting the generated interaction information to obtain an interaction information sequence; and generating item recommendation information corresponding to the above user information according to the interaction information sequence.
[0011] In a third aspect, some embodiments of the present disclosure provide an interaction information prediction model training device, the device comprising: an acquisition unit, configured to acquire a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group; a training unit, configured to perform the following training steps based on the sample set: based on each sample user-item interaction information included in at least one sample in the sample set, generating each dynamic user-item modal graph information, wherein each dynamic user-item modal graph information in each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in the pre-generated predefined user-item modal graph information and the each dynamic user-item modal graph information The dynamic user-item modal graph information corresponding to the above sample is used to generate integrated user-item modal graph information corresponding to the above sample, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; based on the integrated user-item modal graph information corresponding to each sample in the above at least one sample, the integrated user modal graph and the integrated item modal graph are included, node feature information is generated, wherein the node feature information includes each user node feature information corresponding to the integrated user modal graph and each item node feature information corresponding to the integrated item modal graph; each node feature information corresponding to the above at least one sample is input into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the above at least one sample; the interaction information corresponding to each sample in the above at least one sample is compared with the corresponding sample interaction information; whether the initial interaction information prediction model reaches the preset optimization target according to the comparison result; in response to determining that the initial interaction information prediction model reaches the above optimization target, the initial interaction information prediction model is used as the trained interaction information prediction model.
[0012] In a fourth aspect, some embodiments of the present disclosure provide a recommendation information generating device, the device comprising: an execution unit, configured to, for each user information in a user information set, perform the following steps: obtaining each user-item interaction information corresponding to the above user information; for each user-item interaction information in the above user-item interaction information, determining a preset number of item information in a preset item information set that meet preset interaction conditions as the interactive item information corresponding to the above user-item interaction information; integrating the above user-item interaction information and the determined interactive item information to obtain an integrated user-item interaction information group; generating interaction information corresponding to each integrated user-item interaction information in the above integrated user-item interaction information group based on a pre-trained interaction information prediction model, wherein the interaction information prediction model is trained by the method described in any implementation method of the above first aspect; sorting the generated interaction information to obtain an interaction information sequence; and generating item recommendation information corresponding to the above user information according to the interaction information sequence.
[0013] In a fifth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first or second aspect above.
[0014] In a sixth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation of the first aspect or the second aspect is implemented.
[0015] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the interactive information prediction model training method of some embodiments of the present disclosure, the interference of noise data in modal data on graph information can be effectively reduced, the accuracy of constructed graph information can be improved, and the reliability of node feature information and interactive information generated using graph information can be improved. In addition, the accuracy of items recommended based on interactive information is improved, and the waste of network resources for recommending network resources and users viewing items is reduced. Specifically, the reason for the low reliability of node feature information and interactive information generated using graph information is that when the modal feature information of modal data is directly used to construct graph information, the noise data in the modal data interferes with the graph information to a large extent, resulting in low accuracy of the constructed graph information, low reliability of node feature information and interactive information generated using graph information, and thus poor accuracy of recommended items when recommending items based on the generated interactive information, resulting in waste of network resources for recommending network resources and users viewing items. Based on this, some embodiments of the present disclosure provide a training method for an interaction information prediction model. First, a sample set is obtained, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information, and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group. Thus, data for model training can be obtained. Then, the following training steps are performed based on the sample set: First, based on each sample user-item interaction information included in at least one sample in the sample set, each dynamic user-item modal graph information is generated, wherein each dynamic user-item modal graph information in the above-mentioned each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph. Thus, a dynamic modal relationship graph can be obtained through data, and the structure of the dynamic modal relationship graph can be optimized through the node feature information that is continuously updated in the dynamic modal relationship graph, thereby reducing the impact of noise data on the generated graph information. Secondly, for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information, the integrated user-item modal graph information corresponding to the sample is generated, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph. Thus, the predefined user-item modal graph information and the dynamic user-item modal graph information can be combined to generate a more comprehensive and stable graph information, more effectively reduce the impact of noise data on the graph information, and improve the accuracy of the generated interactive information.Then, based on the integrated user modal graph and the integrated item modal graph included in the integrated user-item modal graph information corresponding to each sample in the at least one sample, node feature information is generated, wherein the node feature information includes the feature information of each user node corresponding to the integrated user modal graph and the feature information of each item node corresponding to the integrated item modal graph. Thus, the node feature information can be obtained more accurately by integrating the user-item modal graph information, thereby improving the accuracy of the interaction information generated using the node feature information. Then, the feature information of each node corresponding to the at least one sample is input into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the at least one sample. Thus, the model can be trained by the obtained node feature information to obtain more accurate interaction information, thereby improving the accuracy of the recommended items. Then, the interaction information corresponding to each sample in the at least one sample is compared with the corresponding sample interaction information. Thus, the comparison result can be obtained by comparing the interaction information with the corresponding sample interaction information, and the comparison result can be used to verify whether the model reaches the preset optimization target. Then, whether the initial interaction information prediction model reaches the preset optimization target is determined according to the comparison result. Thus, the performance of the model can be verified by the comparison result. Finally, in response to determining that the initial interactive information prediction model achieves the above-mentioned optimization goal, the initial interactive information prediction model is used as the interactive information prediction model that has been trained. Thus, an interactive information prediction model that achieves the preset optimization goal can be obtained, and more accurate interactive information can be obtained by using this model, thereby improving the accuracy of the recommended items. Also, because the predefined user item modal graph information and the dynamic user item modal graph information can be obtained to generate the integrated user item modal graph information, the interference of noise data on the graph information is reduced through the multi-layer constructed graph information, the reliability of the node feature information and the interactive information is improved, and the accuracy of the recommended items generated according to the interactive information is improved, and the waste of network resources when the recommended network resources and the user view the items is reduced. Also, because the performance of the model can be verified by comparing the results, the deviation of the model can be identified, and the model can be adjusted to ensure that the model achieves the optimization goal, more reliable interactive information can be generated, and the accuracy of the recommended items generated according to the interactive information can be improved, and the waste of network resources when the recommended network resources and the user view the items can be reduced. In summary, by processing graph information, we can reduce the interference of noise data on graph information, improve the reliability of node feature information and interaction information generated using graph information, and then improve the accuracy of recommended items generated based on interaction information, thereby reducing the waste of network resources for recommendation and when users view items. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0017] Figure 1 is a flowchart of some embodiments of the mutual information prediction model training method according to the present disclosure;
[0018] Figure 2 is a flow chart of some embodiments of the method for generating recommendation information according to the present disclosure;
[0019] Figure 3 is a schematic diagram of the structure of some embodiments of the interactive information prediction model training device according to the present disclosure;
[0020] Figure 4 is a schematic diagram of the structure of some embodiments of the recommendation information generating device according to the present disclosure;
[0021] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0022] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0023] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0024] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0025] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0026] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0027] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0028] Figure 1 The process 100 of some embodiments of the mutual information prediction model training method according to the present disclosure is shown. The mutual information prediction model training method comprises the following steps:
[0029] Step 101: Obtain a sample set.
[0030] In some embodiments, the execution subject (e.g., computing device) of the interaction information prediction model training method may obtain a sample set. The execution subject may be a terminal or server for training the interaction information prediction model. The samples in the sample set may be training data for training the interaction information prediction model. The samples may include sample user-item interaction information. The sample user-item interaction information may be information corresponding to users and items that have interacted or not interacted. The sample user-item interaction information may include sample user information, sample item information, and sample interaction information. The interaction may be that the user corresponding to the sample user information has clicked on the details page of the item corresponding to the sample item information. The sample user information may be the user's personal information. For example, the sample user information may include the user's corresponding account information, item circulation records (e.g., daily necessities purchased within one year), and evaluation information of the items in the item circulation records. The evaluation information may include, but is not limited to, evaluation text, evaluation score, and evaluation video. The sample user information may include a sample user modal information group. The sample user modal information group may be user multimodal data used to characterize the sample user information. The user multimodal data may be various types of data used to characterize the sample user information. The user multimodal data may include, but are not limited to, text data for recording the account information, text data for recording the item circulation record, and video data for recording item evaluation. The sample item information may be various information corresponding to any item in the item circulation record of the sample user information or various information corresponding to any item not recorded in the item circulation record of the sample user information. For example, the sample item information may be image information corresponding to the item, item circulation volume (e.g., item purchase volume), and unit value information (e.g., item unit price). The sample item information may include a sample item modal information group. The sample item modal information in the sample item modal information group may be item multimodal data for characterizing the sample item information. The item multimodal data may be various types of data for characterizing the sample item information. The item multimodal data may include, but are not limited to, image data for recording the image information, text data for recording the item circulation volume, and text data for recording the unit value information. The sample interaction information may be label information for characterizing whether the sample user information and the item information interact. For example, the sample interaction information may be “interaction” or “no interaction”.
[0031] Step 102: Perform the following training steps based on the sample set:
[0032] Step 1021: Generate each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set.
[0033] In some embodiments, the execution subject may generate each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set. Each dynamic user-item modal graph information in the above each dynamic user-item modal graph information corresponds to one sample. Each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph.
[0034] In some optional implementations of some embodiments, the execution subject may generate each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set through the following steps:
[0035] The first step is to generate each sample user-item interaction feature information based on each sample user-item interaction information included in at least one sample in the sample set. Among them, each sample user-item interaction feature information in the above sample user-item interaction feature information corresponds to a sample, and each sample user-item interaction feature information includes a sample user modal feature information group and a sample item modal feature information group. The sample user modal feature information in the above sample user modal feature information group may be a feature vector corresponding to the sample user modal information in the above sample user modal information group. The sample item modal feature information in the above sample item modal feature information group may be a feature vector corresponding to the sample item modal information in the above sample item modal information group. In practice, first, the above execution subject may select different pre-trained models to extract features from the above sample user interaction information according to the data type of each sample user interaction information to obtain each sample user interaction feature information. Then, the above execution subject may select different pre-trained models to extract features from the above sample item interaction information according to the data type of each sample item interaction information to obtain each sample item interaction feature information. Finally, the execution entity may combine the sample user interaction feature information and the sample item interaction feature information into the sample user item interaction feature information. The pre-trained model may be a variety of neural network models capable of feature extraction. For example, the pre-trained model may include but is not limited to: ViT model (Vision Transformer, ViT) and BERT model (Bidirectional Encoder Representations from Transformers). As an example: when the data type of the sample user item interaction information is text data, the selected pre-trained model may be a BERT model. When the data type of the sample user item interaction information is image data, the selected pre-trained model may be a ViT model.
[0036] The second step is to generate each predefined user-item modal graph information based on each sample user-item interaction feature information. Among them, each predefined user-item modal graph information in the above-mentioned predefined user-item modal graph information corresponds to a sample, and each predefined user-item modal graph information includes a predefined user modal graph and a predefined item modal graph. The above-mentioned predefined user modal graph can be a weighted undirected graph used to characterize the connection relationship between each sample user modal feature information in the above-mentioned sample user modal feature information group. The above-mentioned predefined item modal graph can be a weighted undirected graph used to characterize the connection relationship between each sample item modal feature information in the above-mentioned sample item modal feature information group.
[0037] The third step is to generate each dynamic user-item modal graph information based on each predefined user-item modal graph information. Among them, each dynamic user-item modal graph information in the above dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph. The above dynamic user modal graph can be a weighted undirected graph in which the nodes and weights obtained after the above predefined user modal graph is processed by a pre-trained graph neural network. The above dynamic item modal graph can be a weighted undirected graph in which the nodes and weights obtained after the above predefined item modal graph is processed by the above graph neural network. The above graph neural network can be a neural network that takes a weighted undirected graph as input and generates multiple feature vectors for each node in the weighted undirected graph in different iterations as output.
[0038] In some optional implementations of some embodiments, the execution subject may generate each predefined user-item modal graph information based on each sample user-item interaction feature information through the following steps:
[0039] In the first step, for each sample user-item interaction feature information in each sample user-item interaction feature information, the following steps are performed:
[0040] In the first sub-step, for each two pieces of sample user modality feature information in the sample user modality feature information group included in the sample user-item interaction feature information, the following steps are performed:
[0041] Sub-step 1: Based on the two sample user modal feature information, generate the similarity between the two sample user modal feature information as the user modal similarity. In practice, the execution subject may determine the cosine similarity between the two sample user modal feature information as the user modal similarity.
[0042] Sub-step 2: Generate a user modal probability based on the user modal similarity. The user modal probability may be a cosine similarity that meets a preset constraint. The preset constraint may be that the cosine similarity is greater than 0. In practice, the execution entity may input the user modal similarity into an activation function to obtain the user modal probability. The activation function may be a rectified linear unit (ReLU).
[0043] The second sub-step is to generate a predefined user modal graph based on the generated modal probabilities of each user. In practice, first, the execution subject can use each sample user modal feature information in the sample user modal feature information group as each node, and use each generated user modal probability as a weight. Then, the predefined user modal graph is constructed by using each obtained node and each weight.
[0044] The third sub-step is to perform the following steps for every two sample item modal feature information in the sample item modal feature information group included in the sample user-item interaction feature information:
[0045] Sub-step 1: Based on the two sample item modal feature information, generate the similarity between the two sample item modal feature information as the item modal similarity. In practice, the execution subject may determine the cosine similarity between the two sample item modal feature information as the item modal similarity.
[0046] Sub-step 2: Generate the item modal probability based on the item modal similarity. The item modal probability may be a cosine similarity that meets a preset constraint. The preset constraint may be that the cosine similarity is greater than 0. In practice, the execution subject may input the item modal similarity into an activation function to obtain the item modal probability. The activation function may be a linear rectification function.
[0047] The fourth sub-step is to generate a predefined item modal graph based on the generated modal probabilities of each item. In practice, first, the execution subject can use each sample item modal feature information in the sample item modal feature information group as each node, and use the generated modal probabilities of each item as weights. Then, the predefined item modal graph is constructed based on the obtained nodes and weights.
[0048] The fifth sub-step is to determine the predefined user modal graph and the predefined item modal graph as predefined user item modal graph information. In practice, the execution subject may combine the predefined user modal graph and the predefined item modal graph into predefined user item modal graph information.
[0049] In some optional implementations of some embodiments, the execution subject may generate each dynamic user-item modal graph information based on each predefined user-item modal graph information through the following steps:
[0050] In the first step, for each predefined user-item modal diagram information in the above-mentioned predefined user-item modal diagram information, the following steps are performed:
[0051] The first sub-step is to generate each user-item dynamic node feature information set based on the above-mentioned predefined user-item modal graph information. Among them, each user-item node feature information set in the above-mentioned user-item dynamic node feature information set includes a user dynamic node feature information set and an item dynamic node feature information set. The user dynamic node feature information in the above-mentioned user dynamic node feature information set can be the feature vector corresponding to the above-mentioned sample user modal information obtained after the above-mentioned sample user modal feature information is input into the above-mentioned graph neural network and processed by the message passing mechanism in the above-mentioned graph neural network. The item dynamic node feature information in the above-mentioned item dynamic node feature information set can be the feature vector corresponding to the above-mentioned sample item modal information obtained after the above-mentioned sample item modal feature information is input into the above-mentioned graph neural network and processed by the message passing mechanism in the above-mentioned graph neural network. In practice, first, the above-mentioned execution subject can traverse each node of the predefined user modal graph included in the above-mentioned predefined user-item modal graph information through the above-mentioned graph neural network, and set an iteration number. Then, each node in the predefined user modal graph is randomly initialized to obtain the initial feature vector corresponding to each node. Then, for each of the obtained initial feature vectors, the product of the user normalization matrix, the above-mentioned initial feature vector and the initial conversion matrix is input into the nonlinear activation function to obtain a first-order feature vector, and the number of iterations is reduced by one. Then, for each of the obtained first-order feature vectors, the product of the above-mentioned user normalization matrix, the above-mentioned first-order feature vector and the first-order conversion matrix is input into the above-mentioned nonlinear activation function to obtain a second-order feature vector, and the number of iterations is reduced by one. And so on, until the above-mentioned number of iterations meets the preset parameter conditions. The obtained initial feature vectors are used as a user dynamic node feature information set, and the obtained first-order feature vectors are used as another user dynamic node feature information set, and so on, until the user dynamic node feature information sets are obtained. Among them, the above-mentioned user normalization matrix can be a matrix obtained by the normalized degree matrix and the neighbor matrix corresponding to the above-mentioned predefined user modal graph. In practice, first, the execution subject can generate a diagonal matrix through the predefined user modal graph, in which each row can correspond to a node of the predefined user modal graph, each column can correspond to a node of the predefined user modal graph, the elements on the main diagonal can correspond to the degree of each node in the predefined user modal graph, and all elements except the main diagonal elements are 0, as the degree matrix corresponding to the predefined user modal graph. Then, for each main diagonal element of the degree matrix, the main diagonal element can be replaced by the inverse of the square root of the main diagonal element to obtain the normalized degree matrix.Then, the execution subject can generate a matrix with each row corresponding to one of the sample user modal feature information and each column corresponding to one of the sample user modal feature information through the predefined user modal graph, and use the modal probability between the two sample user modal feature information as the corresponding matrix element, as the predefined user adjacency matrix corresponding to the predefined user modal graph. Then, the execution subject can determine the product of the normalized degree matrix, the adjacency matrix, and the normalized degree matrix as the user normalized matrix. The manner of obtaining the dynamic node feature information set of each item is similar to this, and will not be repeated here. Finally, the execution subject can combine each user dynamic node feature information set in each user dynamic node feature information set obtained and the item dynamic node feature information set corresponding to the user dynamic node feature information set into a user item node feature information set to obtain each user item node feature information set. Among them, the initial feature vector can be a feature vector obtained by randomly initializing each node in the predefined user modal graph by the graph neural network. The first-order feature vector can be a feature vector obtained by processing the initial feature vector of the node by the graph neural network. The above-mentioned second-order eigenvector may be a eigenvector obtained by processing the first-order eigenvector of the node through the above-mentioned graph neural network. The above-mentioned nonlinear activation function may be a linear rectification function. The above-mentioned number of iterations may be a preset value. Here, there is no limitation on the specific setting of the above-mentioned number of iterations. The above-mentioned initial conversion matrix may be a matrix in which each row may correspond to one of the above-mentioned first-order eigenvectors, each column may correspond to one of the above-mentioned initial eigenvectors, and the corresponding elements are parameter values automatically generated by the above-mentioned graph neural network for converting the above-mentioned initial eigenvectors into corresponding first-order eigenvectors. The above-mentioned parameter values may be values generated by the above-mentioned graph neural network. Here, there is no limitation on the specific setting of the above-mentioned parameter values.
[0052] The second sub-step is to generate each user-item dynamic graph information based on the above-mentioned user-item dynamic node feature information set. Among them, each user-item dynamic graph information in the above-mentioned user-item dynamic graph information includes user dynamic graph information and item dynamic graph information. In practice, first, the above-mentioned execution subject can generate the cosine similarity between every two user dynamic node feature information through the user dynamic node feature information set included in the user-item dynamic node feature information set. Then, the obtained cosine similarities are input into the activation function to obtain the modal probability between every two user dynamic node feature information in the above-mentioned user dynamic node feature information set. Then, the above-mentioned execution subject can use each user dynamic node feature information in the above-mentioned user dynamic node feature information set as a node, and use the modal probability between every two user dynamic node feature information as the corresponding weight to obtain the user dynamic graph information. The way to obtain the item dynamic graph information is similar to this, and will not be repeated here. Finally, the above-mentioned execution subject can combine the above-mentioned user dynamic graph information and the above-mentioned item dynamic graph information into the above-mentioned user item dynamic graph information. The user dynamic graph information may be a weighted undirected graph generated by taking the feature information of each user dynamic node in the user dynamic node feature information set as a node and the modal probability between each two user dynamic node feature information as a weight. The item dynamic graph information may be a weighted undirected graph generated by taking the feature information of each item dynamic node in the item dynamic node feature information set as a node and the modal probability between each two item dynamic node feature information as a weight. The activation function may be a linear rectification function.
[0053] The third sub-step is to generate the adjacency matrix information of each user-item to be fused based on the above-mentioned dynamic graph information of each user-item. Among them, each user-item adjacency matrix information to be fused in the above-mentioned adjacency matrix information of each user-item to be fused includes a user adjacency matrix to be fused and an item adjacency matrix to be fused. The above-mentioned user adjacency matrix to be fused may be the adjacency matrix corresponding to the above-mentioned user dynamic graph information. The above-mentioned item adjacency matrix to be fused may be the adjacency matrix corresponding to the above-mentioned item dynamic graph information. In practice, firstly, the above-mentioned execution subject may generate a matrix in which each row may correspond to one of the above-mentioned user dynamic node feature information and each column may correspond to one of the above-mentioned user dynamic node feature information through the user dynamic graph information included in the above-mentioned user-item dynamic graph information, and use the modal probability between two user dynamic node feature information as a matrix corresponding to the elements of the matrix, as the user adjacency matrix to be fused corresponding to the above-mentioned user dynamic graph information. Then, the execution subject can generate a matrix with each row corresponding to one item dynamic node feature information and each column corresponding to one item dynamic node feature information through the item dynamic graph information included in the user item dynamic graph information, and use the modal probability between two item dynamic node feature information as the matrix corresponding element, as the item adjacency matrix to be fused corresponding to the item dynamic graph information. Finally, the execution subject can combine the user adjacency matrix to be fused and the item adjacency matrix to be fused into the user item adjacency matrix to be fused information.
[0054] The fourth sub-step is to fuse the above-mentioned adjacency matrix information of each user item to be fused to obtain the user item dynamic adjacency matrix information. Among them, the above-mentioned user item dynamic adjacency matrix information includes the user dynamic adjacency matrix and the item dynamic adjacency matrix. In practice, first, the above-mentioned execution subject can sum up the user adjacency matrices to be fused in the above-mentioned adjacency matrix information of each user item to be fused. Then, the adjacency matrix obtained after the addition can be divided by the above-mentioned number of iterations to obtain the user dynamic adjacency matrix. Then, the above-mentioned execution subject can sum up the adjacency matrices to be fused in the above-mentioned adjacency matrix information of each user item to be fused. Then, the adjacency matrix obtained after the addition can be divided by the above-mentioned number of iterations to obtain the item dynamic adjacency matrix. Finally, the above-mentioned execution subject can combine the above-mentioned user dynamic adjacency matrix and the above-mentioned item dynamic adjacency matrix into the above-mentioned user item dynamic adjacency matrix information.
[0055] The fifth sub-step is to generate dynamic user-item modal graph information based on the user-item dynamic adjacency matrix information. The dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph. The dynamic user modal graph may be a weighted undirected graph corresponding to the user dynamic adjacency matrix. The dynamic item modal graph may be a weighted undirected graph corresponding to the item dynamic adjacency matrix. In practice, first, the execution subject may use the user dynamic adjacency matrix included in the user-item dynamic adjacency matrix information, and use the rows or columns in the user dynamic adjacency matrix as each node, and use the elements in the matrix as the weights corresponding to each two nodes, thereby obtaining the dynamic user modal graph corresponding to the user dynamic adjacency matrix. Then, the execution subject may use the item dynamic adjacency matrix included in the user-item dynamic adjacency matrix information, and use the rows or columns in the item dynamic adjacency matrix as each node, and use the elements in the matrix as the weights corresponding to each two nodes, thereby obtaining the dynamic item modal graph corresponding to the item dynamic adjacency matrix. Finally, the execution entity may combine the dynamic user modal graph and the dynamic item modal graph into the dynamic user item modal graph information.
[0056] The above technical solution and its related contents, as an inventive point of an embodiment of the present disclosure, solve the second technical problem mentioned in the background technology, "generating the final high-order feature information only based on the constructed layer of graph information, resulting in poor model generalization ability and low accuracy of model prediction results". The factors that lead to poor model generalization ability and low accuracy of model prediction results are often as follows: generating the final high-order feature information only based on the constructed layer of graph information, resulting in poor model generalization ability and low accuracy of model prediction results. If the above factors are solved, the generalization ability of the model can be improved and the accuracy of model prediction can be improved. In order to achieve this effect, the present disclosure performs the following steps for each sample user-item interaction feature information in each sample user-item interaction feature information: First, for each two sample user modal feature information in the sample user modal feature information group included in the above sample user-item interaction feature information, perform the following steps: First, based on the above two sample user modal feature information, generate the similarity between the above two sample user modal feature information as user modal similarity. Thus, by obtaining the similarity between the modal feature information of two sample users, a user group with similar modal feature information can be obtained, which is conducive to filtering out noise data with low similarity. Based on the above user modal similarity, a user modal probability is generated. Thus, the connection relationship between the modal feature information of two sample users can be obtained through the user modal probability, which provides a data basis for the subsequent construction of graph information, and at the same time can reduce the interference of noise data on the construction of graph information. Based on the generated modal probabilities of each user, a predefined user modal graph is generated. Thus, a modal relationship graph between all sample user modal feature information can be constructed through the modal probability, which can further reduce the interference of noise data. For each two sample item modal feature information in the sample item modal feature information group included in the above sample user item interaction feature information, the following steps are performed: based on the above two sample item modal feature information, the similarity between the above two sample item modal feature information is generated as the item modal similarity. Thus, by obtaining the similarity between the two sample item modal feature information, item information with similar modal feature information can be obtained, which is conducive to reducing the interference of noise data on the subsequent construction of graph information. Based on the above item modal similarity, an item modal probability is generated. Thus, the modal probability between the modal feature information of two sample items can be obtained, providing a data basis for the subsequent construction of graph information. Based on the generated modal probabilities of each item, a predefined item modal graph is generated. Thus, a modal relationship graph between the modal feature information of all sample items can be constructed through the modal probability, which can further reduce the interference of noise data. The above-mentioned predefined user modal graph and the above-mentioned predefined item modal graph are determined as predefined user item modal graph information. Thus, the above-mentioned predefined user modal graph and the above-mentioned predefined item modal graph can be combined into predefined user item modal graph information.For each of the above-mentioned predefined user-item modal graph information, the following steps are performed: First, based on the above-mentioned predefined user-item modal graph information, each user-item dynamic node feature information set is generated, wherein each user-item node feature information set in the above-mentioned user-item dynamic node feature information set includes a user dynamic node feature information set and an item dynamic node feature information set. Thus, each user-item dynamic node feature information set can be generated on the basis of the constructed predefined user-item modal graph information, which can more accurately reflect the current state of the user and the item, further improve the generalization ability of the model, and improve the accuracy of the model prediction. Then, based on the above-mentioned user-item dynamic node feature information set, each user-item dynamic graph information is generated, wherein each user-item dynamic graph information in the above-mentioned user-item dynamic graph information includes user dynamic graph information and item dynamic graph information. Thus, the changing relationship between the user and the item can be better reflected through the constructed user dynamic graph information and item dynamic graph information, the generalization ability of the model can be improved, and a data basis can be provided for subsequent processing. Then, based on the above-mentioned dynamic graph information of each user item, the adjacency matrix information to be fused of each user item is generated, wherein each user item adjacency matrix information to be fused in the above-mentioned adjacency matrix information to be fused includes the user adjacency matrix to be fused and the item adjacency matrix to be fused. Thus, the quantification of the graph information can be completed through the obtained adjacency matrix information of each user item to be fused, providing a basis for the subsequent fusion of each user dynamic graph information and each item dynamic graph information. Then, the above-mentioned adjacency matrix information to be fused of each user item is fused to obtain the user item dynamic adjacency matrix information, wherein the above-mentioned user item dynamic adjacency matrix information includes the user dynamic adjacency matrix and the item dynamic adjacency matrix. Thus, the fusion of the adjacency matrix can be realized, and the generalization ability of the model can be improved, and the accuracy of the model prediction can be further improved. Finally, based on the above-mentioned user item dynamic adjacency matrix information, the dynamic user item modal graph information is generated, wherein the above-mentioned dynamic user item modal graph information includes the dynamic user modal graph and the dynamic item modal graph. Therefore, the multi-dimensional feature vectors and dynamic changes between all users and all items can be obtained through the obtained dynamic user modal graph and dynamic item modal graph, thereby improving the generalization ability of the model and the accuracy of model prediction. Because the dynamic user-item modal graph information is generated based on the predefined user-item modal graph information, the interference of noise data can be reduced through the obtained two-layer graph information, which can improve the accuracy of model prediction.Also, because the dynamic user-item modal graph information is generated through the multi-layer fusion adjacency matrix, the generated dynamic user-item modal graph information can optimize the graph information by utilizing the continuously updated node features, which can further reduce the interference of noise data and improve the generalization ability of the model and the accuracy of model prediction.
[0057] Step 1022, for each sample of at least one sample, based on the predefined user-item modal graph information corresponding to the above sample in the pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in the dynamic user-item modal graph information, generate integrated user-item modal graph information corresponding to the sample.
[0058] In some embodiments, the execution subject may generate, for each sample of the at least one sample, integrated user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information. The integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph. The integrated user modal graph may be a weighted undirected graph obtained by processing the predefined user modal graph included in the predefined user-item modal graph information and the dynamic user modal graph included in the dynamic user-item modal graph information. The integrated item modal graph may be a weighted undirected graph obtained by processing the predefined item modal graph included in the predefined user-item modal graph information and the dynamic item modal graph included in the dynamic user-item modal graph information.
[0059] In some optional implementations of some embodiments, the execution subject may generate integrated user-item modal graph information corresponding to the sample based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information through the following steps:
[0060] The first step is to generate the predefined user-item adjacency matrix information corresponding to the predefined user-item modal graph information based on the predefined user-item modal graph information corresponding to the above-mentioned sample. The predefined user-item adjacency matrix information includes a predefined user adjacency matrix and a predefined item adjacency matrix. In practice, first, the execution subject can generate a matrix in which each row can correspond to one of the above-mentioned sample user modal feature information, each column can correspond to one of the above-mentioned sample user modal feature information, and the modal probability between two sample user modal feature information is used as the corresponding matrix element, as the predefined user adjacency matrix corresponding to the above-mentioned predefined user modal graph, through the predefined user modal graph in the predefined user-item modal graph information. Then, the execution subject can generate a matrix in which each row can correspond to one of the above-mentioned sample item modal feature information, each column can correspond to one of the above-mentioned sample item modal feature information, and the modal probability between two sample item modal feature information is used as the corresponding matrix element, as the predefined item adjacency matrix corresponding to the above-mentioned predefined item modal graph, through the predefined item modal graph in the predefined user-item modal graph information. Finally, the execution subject may combine the predefined user adjacency matrix and the predefined item adjacency matrix into predefined user item adjacency matrix information. The predefined user adjacency matrix may be an adjacency matrix corresponding to the predefined user modal graph. The predefined item adjacency matrix may be an adjacency matrix corresponding to the predefined item modal graph.
[0061] In the second step, the product of the predefined user adjacency matrix and the first preset coefficient is determined as the predefined user coefficient matrix. The first preset coefficient can be any value within a preset range. Here, there is no limitation on the specific setting of the first preset coefficient. The preset range can be [0, 1].
[0062] In the third step, the product of the predefined item adjacency matrix and the first preset coefficient is determined as the predefined item coefficient matrix.
[0063] The fourth step is to generate the dynamic user-item adjacency matrix information corresponding to the dynamic user-item modal graph information based on the dynamic user-item modal graph information corresponding to the dynamic user-item modal graph information. The dynamic user-item adjacency matrix information includes a dynamic user adjacency matrix and a dynamic item adjacency matrix. In practice, first, the execution subject can generate a matrix in which each row can correspond to a node in the dynamic user modal graph, each column can correspond to a node in the dynamic user modal graph, and the weight between the two nodes is used as the corresponding matrix element, as the dynamic user adjacency matrix corresponding to the dynamic user modal graph, through the dynamic user modal graph included in the dynamic user-item modal graph information. Then, the execution subject can generate a matrix in which each row can correspond to a node in the dynamic item modal graph, each column can correspond to a node in the dynamic item modal graph, and the weight between the two nodes is used as the corresponding matrix element, as the dynamic item adjacency matrix corresponding to the dynamic item modal graph, through the dynamic item modal graph included in the dynamic user-item modal graph information. Finally, the execution entity may combine the dynamic user adjacency matrix and the dynamic item adjacency matrix into the dynamic user item adjacency matrix information. The dynamic user adjacency matrix may be the adjacency matrix corresponding to the dynamic user modal graph. The dynamic item adjacency matrix may be the adjacency matrix corresponding to the dynamic item modal graph.
[0064] In the fifth step, the product of the dynamic user adjacency matrix and the second preset coefficient is determined as the dynamic user coefficient matrix. The second preset coefficient may be the absolute value of the difference between the first preset coefficient and 1. Here, the specific setting of the first preset coefficient is not limited.
[0065] Step 6: Determine the product of the dynamic item adjacency matrix and the second preset coefficient as the dynamic item coefficient matrix.
[0066] In the seventh step, the sum of the predefined user coefficient matrix and the dynamic user coefficient matrix is determined as the integrated user adjacency matrix.
[0067] In the eighth step, the sum of the predefined item coefficient matrix and the dynamic item coefficient matrix is determined as the integrated item adjacency matrix.
[0068] In the ninth step, the integrated user adjacency matrix and the integrated item adjacency matrix are determined as integrated user-item adjacency matrix information. In practice, the execution subject may combine the integrated user adjacency matrix and the integrated item adjacency matrix into the integrated user-item adjacency matrix information.
[0069] The tenth step is to generate the integrated user-item modal graph information corresponding to the above-mentioned sample based on the above-mentioned integrated user-item adjacency matrix information. Among them, the above-mentioned integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph. The above-mentioned integrated user modal graph can be a weighted undirected graph corresponding to the above-mentioned integrated user adjacency matrix. The above-mentioned integrated item modal graph can be a weighted undirected graph corresponding to the above-mentioned integrated item adjacency matrix. In practice, first, the above-mentioned execution subject can determine the rows or columns of the above-mentioned integrated user adjacency matrix as each node through the integrated user adjacency matrix included in the above-mentioned integrated user-item adjacency matrix information. Then, each element in the above-mentioned integrated user adjacency matrix is determined as the weight corresponding to each two nodes, and then the integrated user modal graph corresponding to the above-mentioned integrated user adjacency matrix is obtained. Then, the above-mentioned execution subject can determine the rows or columns in the above-mentioned integrated item adjacency matrix as each node through the integrated item adjacency matrix included in the above-mentioned integrated user-item adjacency matrix information. Then, the elements in the above-mentioned integrated item adjacency matrix are determined as the weight corresponding to each two nodes, and then the integrated item modal graph corresponding to the above-mentioned integrated item adjacency matrix is obtained. Finally, the execution entity may combine the integrated user modal graph and the integrated item modal graph into the integrated user-item modal graph information.
[0070] The above technical solution and its related contents, as an inventive point of an embodiment of the present disclosure, solve the second technical problem mentioned in the background technology, "generating the final high-order feature information only based on the constructed one-layer graph information, resulting in poor model generalization ability and low accuracy of model prediction results". The factors that lead to poor model generalization ability and low accuracy of model prediction results are often as follows: generating the final high-order feature information only based on the constructed one-layer graph information, resulting in poor model generalization ability and low accuracy of model prediction results. If the above factors are solved, the generalization ability of the model can be improved and the accuracy of model prediction can be improved. In order to achieve this effect, the present disclosure generates predefined user-item adjacency matrix information corresponding to the predefined user-item modal graph information based on the predefined user-item modal graph information corresponding to the above sample, wherein the predefined user-item adjacency matrix information includes a predefined user adjacency matrix and a predefined item adjacency matrix. Therefore, the predefined user-item modal graph information can be quantified by generating the predefined user-item adjacency matrix information, which can provide a data basis for subsequent processing. The product of the predefined user adjacency matrix and the first preset coefficient is determined as the predefined user coefficient matrix. Thus, the elements in the predefined user adjacency matrix can be adjusted, important element information can be highlighted, unimportant element information can be reduced, and the interference of noise data on the subsequently generated integrated user modal graph can be reduced. The product of the above-mentioned predefined item adjacency matrix and the above-mentioned first preset coefficient is determined as the predefined item coefficient matrix. Thus, the elements in the predefined item adjacency matrix can be adjusted, important element information can be highlighted, unimportant element information can be reduced, and the interference of noise data on the subsequently generated integrated item modal graph can be reduced. Based on the dynamic user item modal graph information corresponding to the above-mentioned sample, the dynamic user item adjacency matrix information corresponding to the above-mentioned dynamic user item modal graph information is generated, wherein the above-mentioned dynamic user item adjacency matrix information includes a dynamic user adjacency matrix and a dynamic item adjacency matrix. Thus, the quantification of the dynamic user item modal graph information can be achieved by generating the dynamic user item adjacency matrix information, which can provide a data basis for subsequent processing. The product of the above-mentioned dynamic user adjacency matrix and the second preset coefficient is determined as the dynamic user coefficient matrix. Thus, the elements in the dynamic user adjacency matrix can be adjusted, and the important element information can be highlighted, and the unimportant element information can be reduced, thereby reducing the interference of noise data on the subsequently generated integrated user modal graph. The product of the above-mentioned dynamic item adjacency matrix and the above-mentioned second preset coefficient is determined as the dynamic item coefficient matrix. Thus, the elements in the dynamic item adjacency matrix can be adjusted, and the important element information can be highlighted, and the unimportant element information can be reduced, thereby reducing the interference of noise data on the subsequently generated integrated item modal graph. The sum of the above-mentioned predefined user coefficient matrix and the above-mentioned dynamic user coefficient matrix is determined as the integrated user adjacency matrix.Thus, the obtained integrated user adjacency matrix can be used to obtain sample user modal information of multiple dimensions, which can further improve the generalization ability of the model and the accuracy of model prediction. The sum of the above-mentioned predefined item coefficient matrix and the above-mentioned dynamic item coefficient matrix is determined as the integrated item adjacency matrix. Thus, the obtained integrated user adjacency matrix can be used to obtain sample item modal information of multiple dimensions, which can further improve the generalization ability of the model and the accuracy of model prediction. The above-mentioned integrated user adjacency matrix and the above-mentioned integrated item adjacency matrix are determined as integrated user-item adjacency matrix information. Thus, the integrated user adjacency matrix and the integrated item adjacency matrix can be combined into integrated user-item adjacency matrix information. Based on the above-mentioned integrated user-item adjacency matrix information, the integrated user-item modal graph information corresponding to the above-mentioned sample is generated, wherein the above-mentioned integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph. Therefore, the modal graph information of users and items can be updated by processing the adjacency matrix information. The integrated user modal graph and integrated item modal graph obtained after processing can comprehensively reflect the connection relationship between all users and all items, which helps to improve the generalization ability of the model and thus improve the accuracy of model prediction. Also, because the integrated user-item modal graph information is obtained on the basis of predefined user-item modal graph information and dynamic user-item modal graph information, the interference of noise data can be effectively reduced through the constructed multi-layer graph information, the generalization ability of the model can be improved, and the accuracy of model prediction can be improved.
[0071] Step 1023: Generate node feature information based on the integrated user-item modal graph information corresponding to each sample in at least one sample, including the integrated user modal graph and the integrated item modal graph.
[0072] In some embodiments, the above-mentioned execution subject may generate node feature information based on the integrated user modal graph and the integrated item modal graph included in the integrated user-item modal graph information corresponding to each sample in the above-mentioned at least one sample. Among them, the node feature information includes the feature information of each user node corresponding to the integrated user modal graph and the feature information of each item node corresponding to the integrated item modal graph. In practice, first, the above-mentioned execution subject may input the above-mentioned integrated user modal graph into the above-mentioned graph neural network. Then, the feature vector sets corresponding to the above-mentioned integrated user modal graph may be generated through the message passing mechanism in the above-mentioned graph neural network. Then, for each feature vector set in each feature vector set, each feature vector in each feature vector set is summed up. Then, the feature vector obtained by the sum is divided by the above-mentioned number of iterations to obtain a user node feature information, and each user node feature information corresponding to each feature vector set is obtained, and then each user node feature information is obtained. Then, the above-mentioned execution subject may input the above-mentioned integrated item modal graph into the above-mentioned graph neural network. Then, the feature vector sets corresponding to the above-mentioned integrated item modal graph may be generated through the message passing mechanism in the above-mentioned graph neural network. Then, for each feature vector set in each feature vector set, each feature vector in each feature vector set is summed up. Then, the feature vector obtained by the sum is divided by the above-mentioned number of iterations to obtain an item node feature information, and each item node feature information corresponding to each feature vector set is obtained, and then each item node feature information is obtained. Finally, the above-mentioned execution subject can combine each user node feature information corresponding to the integrated user modal graph and each item node feature information corresponding to the integrated item modal graph into the above-mentioned node feature information.
[0073] Step 1024: input each node feature information corresponding to at least one sample into the initial mutual information prediction model to obtain the mutual information corresponding to each sample in the at least one sample.
[0074] In some embodiments, the execution subject may input each node feature information corresponding to the at least one sample into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the at least one sample. The initial interaction information prediction model may be a neural network model that takes each user node feature information and each item node feature information included in the node feature information as input, and takes the interaction information between each sample user information corresponding to each user node feature information and each sample item information corresponding to each item node feature information as output. For example, the initial interaction information prediction model may be a convolutional neural network. The interaction information may be information about the interaction between the user corresponding to the sample user information and the item corresponding to the sample item information. The interaction may be that the user corresponding to the sample user information clicks on the details page of the item corresponding to the sample item information. The interaction information may be, but is not limited to, label information used to characterize whether the user corresponding to the sample user information and the item corresponding to the sample item information interact. For example, the interaction information may be "interaction" or "no interaction".
[0075] In some optional implementations of some embodiments, the execution subject may input each node feature information corresponding to the at least one sample into the initial interaction information prediction model through the following steps to obtain interaction information corresponding to each sample in the at least one sample:
[0076] The first step is to generate user-item interaction data feature information based on pre-stored user-item interaction data. The user-item interaction data may be data corresponding to the user and item that have interacted. The user-item interaction data may include user data and item data. The interaction may be that the user corresponding to the user data clicks on the detail page of the item corresponding to the item data. The user-item interaction data feature information includes user interaction data feature information and item interaction data feature information. The user interaction data feature information may be a feature vector corresponding to the user data in the user-item interaction data. The item interaction data feature information may be a feature vector corresponding to the item data in the user-item interaction data. The user data may be data corresponding to the user. For example, the user data may be user account data, item circulation records (for example, all daily necessities purchased within one year), and evaluations of items in item circulation records. The item data may be data corresponding to items. For example, the item data may be image data, item circulation volume (for example, item purchase volume), and unit value information (for example, item unit price) of an item. The items in the item data may be items that have interacted with the user corresponding to the user data. In practice, first, the execution subject may determine the user data and item data included in the user-item interaction data as user nodes and item nodes based on the user-item interaction data. Then, the user nodes and item nodes corresponding to the users and items that have interacted may be connected. Then, the number of times the item data appears in the item flow record of the user data may be determined as the weight between the corresponding user nodes and item nodes to obtain a user-item interaction bipartite graph. Then, the user-item interaction bipartite graph may be subjected to feature extraction through a pre-trained feature extraction network to obtain user interaction data feature information and item interaction data feature information. Finally, the execution subject may combine the user interaction data feature information and the item interaction data feature information into the user-item interaction data feature information. Among them, the feature extraction network may be various neural networks that take a bipartite graph as input and take a feature vector of each node in the bipartite graph as output. For example, the feature extraction network may be a graph convolutional neural network.
[0077] In the second step, for the node feature information corresponding to each sample in at least one sample, perform the following steps:
[0078] In the first sub-step, the sum of each user node characteristic information included in the node characteristic information is determined as the accumulated user node characteristic information.
[0079] In a second sub-step, the sum of the accumulated user node feature information and the user interaction data feature information included in the user-item interaction data feature information is determined as the user node feature information to be fused.
[0080] In a third sub-step, a ratio of the above-mentioned user node characteristic information to be fused to a preset number is determined as the fused user node characteristic information.
[0081] The fourth sub-step is to determine the sum of the item node feature information included in the above node feature information as the accumulated item node feature information.
[0082] In a fifth sub-step, the sum of the accumulated item node feature information and the item interaction data feature information included in the user-item interaction data feature information is determined as the item node feature information to be fused.
[0083] The sixth sub-step is to determine the ratio of the node characteristic information of the item to be fused to the preset number as the node characteristic information of the fused item.
[0084] The seventh sub-step is to generate the interaction information between the fused user node feature information and the fused item node feature information based on the fused user node feature information and the fused item node feature information. In practice, first, the execution subject may perform inner product processing on the fused user node feature information and the fused item node feature information to obtain an inner product value. Then, the interaction information is output according to the inner product value. Among them, the inner product value may be a value obtained by performing inner product processing on the fused user node feature information and the fused item node feature information. Specifically, in response to determining that the inner product value satisfies the preset output condition, the output interaction information is "interaction". In response to determining that the inner product value does not meet the preset output condition, the output interaction information is "no interaction". Among them, the preset output condition may be that the inner product value is greater than the preset interaction value. The preset interaction value may be a preset value. Here, there is no limitation on the specific setting of the preset interaction value.
[0085] Step 1025: Compare the interaction information corresponding to each sample in the at least one sample with the corresponding sample interaction information.
[0086] In some embodiments, the execution entity may compare the interaction information corresponding to each sample in the at least one sample with the corresponding sample interaction information.
[0087] Step 1026, determining whether the initial interaction information prediction model reaches a preset optimization target based on the comparison result.
[0088] In some embodiments, the execution subject may determine whether the initial interaction information prediction model reaches a preset optimization target based on the comparison result. The comparison result may be information used to characterize whether the interaction information is the same or different from the corresponding sample interaction information. For example, the comparison result may be "same". The preset optimization target may be that the proportion of "same" information in the comparison result satisfies a preset optimization threshold. The preset optimization threshold may be a pre-set value. Here, the specific setting of the preset optimization threshold is not limited.
[0089] Step 1027: In response to determining that the initial mutual information prediction model has achieved the optimization goal, the initial mutual information prediction model is used as a trained mutual information prediction model.
[0090] In some embodiments, the execution subject may, in response to determining that the initial interaction information prediction model achieves the optimization goal, use the initial interaction information prediction model as a trained interaction information prediction model.
[0091] Optionally, after step 1027, in response to determining that the initial mutual information prediction model does not achieve the above optimization goal, the above execution subject may also adjust the network parameters of the initial mutual information prediction model, and use unused samples to form a sample set, use the adjusted initial mutual information prediction model as the initial mutual information prediction model, and perform the above training step again. In practice, first, the above execution subject may perform experiments through the Tensorflow framework. Then, the parameters are adjusted using a gradient descent method. Specifically, the above execution subject may adjust the model parameters through the Adam optimizer (Adaptive Moment Estimation). For example, the above execution subject may set the initial learning rate to 0.001. The batch may be set to 256. The vector dimension of the initial modal feature vector of the user and item in the graph neural network may be set to 32. The vector dimension of the interactive feature vector may be set to 32. The ratio of nodes eliminated by the regularization technique may be set to 0.2. The number of iterations of the message passing mechanism in the graph neural network may be set to 3. Among them, the above regularization technique may be a dropout technique.
[0092] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the interactive information prediction model training method of some embodiments of the present disclosure, the interference of noise data in modal data on graph information can be effectively reduced, the accuracy of constructed graph information can be improved, and the reliability of node feature information and interactive information generated using graph information can be improved. In addition, the accuracy of items recommended based on interactive information is improved, and the waste of network resources for recommending network resources and users viewing items is reduced. Specifically, the reason for the low reliability of node feature information and interactive information generated using graph information is that when the modal feature information of modal data is directly used to construct graph information, the noise data in the modal data interferes with the graph information to a large extent, resulting in low accuracy of the constructed graph information, low reliability of node feature information and interactive information generated using graph information, and thus poor accuracy of recommended items when recommending items based on the generated interactive information, resulting in waste of network resources for recommending network resources and users viewing items. Based on this, some embodiments of the present disclosure provide a training method for an interaction information prediction model. First, a sample set is obtained, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information, and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group. Thus, data for model training can be obtained. Then, the following training steps are performed based on the sample set: First, based on each sample user-item interaction information included in at least one sample in the sample set, each dynamic user-item modal graph information is generated, wherein each dynamic user-item modal graph information in the above-mentioned each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph. Thus, a dynamic modal relationship graph can be obtained through data, and the structure of the dynamic modal relationship graph can be optimized through the node feature information that is continuously updated in the dynamic modal relationship graph, thereby reducing the impact of noise data on the generated graph information. Secondly, for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information, the integrated user-item modal graph information corresponding to the sample is generated, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph. Thus, the predefined user-item modal graph information and the dynamic user-item modal graph information can be combined to generate a more comprehensive and stable graph information, more effectively reduce the impact of noise data on the graph information, and improve the accuracy of the generated interactive information.Then, based on the integrated user modal graph and the integrated item modal graph included in the integrated user-item modal graph information corresponding to each sample in the at least one sample, node feature information is generated, wherein the node feature information includes the feature information of each user node corresponding to the integrated user modal graph and the feature information of each item node corresponding to the integrated item modal graph. Thus, the node feature information can be obtained more accurately by integrating the user-item modal graph information, thereby improving the accuracy of the interaction information generated using the node feature information. Then, the feature information of each node corresponding to the at least one sample is input into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the at least one sample. Thus, the model can be trained by the obtained node feature information to obtain more accurate interaction information, thereby improving the accuracy of the recommended items. Then, the interaction information corresponding to each sample in the at least one sample is compared with the corresponding sample interaction information. Thus, the comparison result can be obtained by comparing the interaction information with the corresponding sample interaction information, and the comparison result can be used to verify whether the model reaches the preset optimization target. Then, whether the initial interaction information prediction model reaches the preset optimization target is determined according to the comparison result. Thus, the performance of the model can be verified by the comparison result. Finally, in response to determining that the initial interactive information prediction model achieves the above-mentioned optimization goal, the initial interactive information prediction model is used as the interactive information prediction model that has been trained. Thus, an interactive information prediction model that achieves the preset optimization goal can be obtained, and more accurate interactive information can be obtained by using this model, thereby improving the accuracy of the recommended items. Also, because the predefined user item modal graph information and the dynamic user item modal graph information can be obtained to generate the integrated user item modal graph information, the interference of noise data on the graph information is reduced through the multi-layer constructed graph information, the reliability of the node feature information and the interactive information is improved, and the accuracy of the recommended items generated according to the interactive information is improved, and the waste of network resources when the recommended network resources and the user view the items is reduced. Also, because the performance of the model can be verified by comparing the results, the deviation of the model can be identified, and the model can be adjusted to ensure that the model achieves the optimization goal, more reliable interactive information can be generated, and the accuracy of the recommended items generated according to the interactive information can be improved, and the waste of network resources when the recommended network resources and the user view the items can be reduced. In summary, by processing graph information, we can reduce the interference of noise data on graph information, improve the reliability of node feature information and interaction information generated using graph information, and then improve the accuracy of recommended items generated based on interaction information, thereby reducing the waste of network resources for recommendation and when users view items.
[0093] Continue to refer Figure 2 , shows a process 200 of some embodiments of the method for generating recommendation information according to the present disclosure. The method for generating recommendation information includes the following steps:
[0094] Step 201: for each user information in the user information set, perform the following steps:
[0095] Step 2011, obtaining each user-item interaction information corresponding to the user information.
[0096] In some embodiments, the execution subject (such as a computing device) of the recommendation information generation method may obtain the user-item interaction information corresponding to the above-mentioned user information. Among them, the execution subject may be a terminal or a server that generates the recommendation information. The above-mentioned user information may be information corresponding to the user. For example, the above-mentioned user information may include but is not limited to: account information corresponding to the user, item circulation records (for example: daily necessities purchased within one year) and evaluation information of items in the item circulation records. The above-mentioned evaluation information may include but is not limited to: evaluation text, evaluation score, evaluation video. The above-mentioned user-item interaction information may be various information corresponding to each item in the item circulation record corresponding to the above-mentioned user information. For example, the above-mentioned user-item interaction information may include but is not limited to: image information corresponding to each item, item circulation volume (for example: item purchase volume) and unit value information (for example: item unit price).
[0097] Step 2012: for each user-item interaction information in each user-item interaction information, a preset number of item information in a preset item information set that meets a preset interaction condition is determined as the interaction item information corresponding to the user-item interaction information.
[0098] In some embodiments, the execution subject may determine, for each user-item interaction information in each of the user-item interaction information, a preset number of item information in a preset item information set that meets a preset interaction condition as the interactive item information corresponding to the user-item interaction information. The item information in the item information set may be various information corresponding to the item. The item information may include, but is not limited to: image information corresponding to the item, item circulation volume (e.g., item purchase volume), and unit value information (e.g., item unit price). The item information in the item information set may be information corresponding to any item in the item circulation record of the user information or information corresponding to any item not recorded in the item circulation record of the user information. The preset interaction condition may be that the user corresponding to the user information has not interacted with the item corresponding to the item information. The interaction may be that the user corresponding to the user information has clicked on the details page of the item corresponding to the item information. The preset number may be a preset value. Here, there is no restriction on the specific setting of the preset number.
[0099] Step 2013: integrate the user-item interaction information and the determined interaction item information to obtain an integrated user-item interaction information group.
[0100] In some embodiments, the execution subject may integrate the user-item interaction information and the determined interactive item information to obtain an integrated user-item interaction information group. In practice, the execution subject may combine the user-item interaction information and the determined interactive item information into the integrated user-item interaction information group.
[0101] Step 2014: Generate interaction information corresponding to each integrated user-item interaction information in the integrated user-item interaction information group based on the pre-trained interaction information prediction model.
[0102] In some embodiments, the execution subject may generate the interaction information corresponding to each integrated user-item interaction information in the integrated user-item interaction information group based on a pre-trained interaction information prediction model. Figure 1 The interaction information corresponding to each integrated user-item interaction information in the above-mentioned integrated user-item interaction information group may be information on the interaction between the above-mentioned user information and the above-mentioned item information. The above-mentioned interaction information may be, but is not limited to, the probability of the above-mentioned user information and the above-mentioned item information interacting. In practice, the above-mentioned execution subject may input each integrated user-item interaction information in the above-mentioned integrated user-item interaction information group into the interaction information prediction model to obtain the interaction information corresponding to the above-mentioned user information and each integrated user-item interaction information.
[0103] Step 2015: sort the generated interaction information to obtain an interaction information sequence.
[0104] In some embodiments, the execution subject may sort the generated interaction information to obtain an interaction information sequence. In practice, the execution subject may sort the generated interaction information in descending order to obtain an interaction information sequence.
[0105] Step 2016: Generate item recommendation information corresponding to the user information based on the interaction information sequence.
[0106] In some embodiments, the execution entity may generate the item recommendation information corresponding to the user information based on the interaction information sequence. In practice, the execution entity may determine the item information corresponding to a preset number of interaction information satisfying the preset sequence condition in the interaction information sequence as the item recommendation information corresponding to the user information. For example, the execution entity may select the first five interaction information from the interaction information sequence, and determine the item information corresponding to the first five interaction information as the item recommendation information. The item recommendation information may be used to characterize a preset number of item information satisfying the preset sequence condition in a preset item information set. The preset sequence condition may be that the interaction information is the first preset number in the interaction information sequence. The preset number may be a preset value. Here, there is no limitation on the specific setting of the preset number.
[0107] Optionally, after step 2016, the execution entity may also send the item recommendation information to the user terminal corresponding to the user information. Thus, the execution entity may send the generated item recommendation information with high accuracy to the user, thereby reducing the waste of network resources for recommendation and when the user views items.
[0108] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the recommendation information generation method of some embodiments of the present disclosure, the accuracy of the recommended items can be improved when recommending items based on the interactive information, and the waste of network resources for recommendation and users viewing items can be reduced. Specifically, the reason for the low accuracy of model prediction and the insufficient diversity of generated recommendation information is that when the modal feature information of the modal data is directly used to construct the graph information, the noise data in the modal data interferes with the graph information, resulting in low accuracy of the constructed graph information, low reliability of the node feature information and interactive information generated using the graph information, and then the accuracy of the recommended items is poor when the items are recommended based on the generated interactive information, resulting in waste of network resources for recommendation and users viewing items. Based on this, the recommendation information generation method of some embodiments of the present disclosure, first, for each user information in the user information set, the following steps are performed: First, the interaction information of each user item corresponding to the above user information is obtained. In this way, the item information that actually interacts with the user can be obtained, providing a data basis for the generation of recommendation information. For each user-item interaction information in the above-mentioned user-item interaction information, a preset number of item information in a preset item information set that meets the preset interaction conditions are determined as the interactive item information corresponding to the above-mentioned user-item interaction information. Therefore, the diversity of samples can be improved by introducing item information that has not actually interacted with the user, thereby improving the accuracy of the generated interactive information, and reducing the waste of network resources for recommending network resources and users viewing items. The above-mentioned user-item interaction information and the determined interactive item information are integrated and processed to obtain an integrated user-item interaction information group. Therefore, by combining item information that actually interacts with the user and item information that does not actually interact with the user, a basis can be provided for generating more accurate interactive information, thereby reducing the waste of network resources for recommending network resources and users viewing items. Based on a pre-trained interactive information prediction model, the interactive information corresponding to each integrated user-item interaction information in the above-mentioned integrated user-item interaction information group is generated, wherein the above-mentioned interactive information prediction model is obtained through Figure 1The steps in the corresponding embodiments are trained. Thus, the probability of the user interacting with the item can be obtained. The generated interaction information is sorted to obtain an interaction information sequence. Thus, the item information with the highest probability of interacting with the user can be obtained by sorting. According to the interaction information sequence, the item recommendation information corresponding to the user information is generated. Thus, according to the interaction information sequence, the item information with the highest probability of interacting with the user can be preferentially recommended and displayed on the user terminal, thereby reducing the waste of network resources for recommendation and when users view items. Also, because when the model is predicted, not only the item information that actually interacts with the user is input, but also the item information that does not actually interact with the user is input, the accuracy of the generated interaction information can be improved, and the waste of network resources for recommendation and when users view items can be reduced. Also, because after obtaining the interaction information, the interaction information is sorted, and the item recommendation information corresponding to the user information is generated according to the interaction information sequence, the accuracy of the generated item recommendation information can be improved, and the waste of network resources for recommendation and when users view items can be reduced.
[0109] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a training device for an interactive information prediction model. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0110] like Figure 3As shown, some embodiments of the interaction information prediction model training device 300 include: an acquisition unit 301 and a training unit 302. The acquisition unit 301 is configured to acquire a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group; the training unit 302 is configured to perform the following training steps based on the sample set: based on each sample user-item interaction information included in at least one sample in the sample set, generate each dynamic user-item modal graph information, wherein each dynamic user-item modal graph information in each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information, The method comprises the steps of: generating an integrated user-item modal graph information corresponding to the above-mentioned sample, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; generating node feature information based on the integrated user-item modal graph information corresponding to each sample in the above-mentioned at least one sample, including the integrated user modal graph and the integrated item modal graph, wherein the node feature information includes the feature information of each user node corresponding to the integrated user modal graph and the feature information of each item node corresponding to the integrated item modal graph; inputting the feature information of each node corresponding to the above-mentioned at least one sample into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the above-mentioned at least one sample; comparing the interaction information corresponding to each sample in the above-mentioned at least one sample with the corresponding sample interaction information; determining whether the initial interaction information prediction model reaches the preset optimization target according to the comparison result; in response to determining that the initial interaction information prediction model reaches the above-mentioned optimization target, using the initial interaction information prediction model as the interaction information prediction model that has been trained.
[0111] It is understood that the units described in the device 300 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 300 and the units contained therein, and will not be described in detail here.
[0112] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a device for generating recommendation information. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0113] like Figure 4 As shown, the recommendation information generating device 400 of some embodiments includes: an execution unit 401. The execution unit 401 is configured to perform the following steps for each user information in the user information set: obtaining each user-item interaction information corresponding to the above user information; for each user-item interaction information in the above user-item interaction information, determining a preset number of item information in a preset item information set that meets a preset interaction condition as the interactive item information corresponding to the above user-item interaction information; integrating the above user-item interaction information and the determined interactive item information to obtain an integrated user-item interaction information group; based on a pre-trained interaction information prediction model, generating the interaction information corresponding to each integrated user-item interaction information in the above integrated user-item interaction information group, wherein the above interaction information prediction model is obtained by Figure 1 The steps in the corresponding embodiments are trained; the generated interaction information is sorted to obtain an interaction information sequence; and according to the interaction information sequence, item recommendation information corresponding to the user information is generated.
[0114] It is understood that the units described in the device 400 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the units included therein, and will not be described in detail here.
[0115] Reference below Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing some embodiments of the present disclosure. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0116] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0117] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0118] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0119] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0120] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0121] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group; performs the following training steps based on the sample set: generates each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set, wherein each dynamic user-item modal graph information in each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; for each sample in the at least one sample, based on the pre-generated predefined user-item modal graph information corresponding to the sample and the pre-generated predefined user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information, In response to the dynamic user-item modal graph information of the above-mentioned sample, the integrated user-item modal graph information corresponding to the above-mentioned sample is generated, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; based on the integrated user-item modal graph information corresponding to each sample in the above-mentioned at least one sample, the node feature information is generated, wherein the node feature information includes each user node feature information corresponding to the integrated user modal graph and each item node feature information corresponding to the integrated item modal graph; each node feature information corresponding to the above-mentioned at least one sample is input into the initial interaction information prediction model to obtain the interaction information corresponding to each sample in the above-mentioned at least one sample; the interaction information corresponding to each sample in the above-mentioned at least one sample is compared with the corresponding sample interaction information; whether the initial interaction information prediction model reaches the preset optimization target according to the comparison result; in response to determining that the initial interaction information prediction model reaches the above-mentioned optimization target, the initial interaction information prediction model is used as the trained interaction information prediction model.
[0122] Or the electronic device: for each user information in the user information set, performs the following steps: obtains each user-item interaction information corresponding to the above user information; for each user-item interaction information in the above user-item interaction information, determines a preset number of item information in the preset item information set that meets the preset interaction condition as the interaction item information corresponding to the above user-item interaction information; integrates the above user-item interaction information and the determined interaction item information to obtain an integrated user-item interaction information group; generates interaction information corresponding to each integrated user-item interaction information in the above integrated user-item interaction information group based on a pre-trained interaction information prediction model, wherein the interaction information prediction model is obtained by Figure 1 The steps in the corresponding embodiments are trained; the generated interaction information is sorted to obtain an interaction information sequence; and according to the interaction information sequence, item recommendation information corresponding to the user information is generated.
[0123] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0125] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be provided in a processor, for example, may be described as: a processor includes an acquisition unit and a training unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the acquisition unit may also be described as a "unit for acquiring a sample set".
[0126] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0127] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for training an interactive information prediction model, comprising: Acquire a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modal information group, and the sample item information includes a sample item modal information group; Perform the following training steps based on the sample set: Generate each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set, wherein each dynamic user-item modal graph information in each dynamic user-item modal graph information corresponds to one sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; For each sample of the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in each pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in each dynamic user-item modal graph information, generating integrated user-item modal graph information corresponding to the sample, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; Generate node feature information based on the integrated user modal graph and the integrated item modal graph included in the integrated user-item modal graph information corresponding to each sample in the at least one sample, wherein the node feature information includes feature information of each user node corresponding to the integrated user modal graph and feature information of each item node corresponding to the integrated item modal graph; Inputting each node feature information corresponding to the at least one sample into an initial mutual information prediction model to obtain mutual information corresponding to each sample in the at least one sample; comparing the interaction information corresponding to each sample in the at least one sample with the corresponding sample interaction information; Determine whether the initial interactive information prediction model reaches a preset optimization goal according to the comparison result; In response to determining that the initial mutual information prediction model achieves the optimization goal, the initial mutual information prediction model is used as a trained mutual information prediction model.
2. The method according to claim 1, wherein: After, in response to determining that the initial mutual information prediction model achieves the optimization goal and taking the initial mutual information prediction model as the trained mutual information prediction model, the training step further includes: In response to determining that the initial mutual information prediction model does not achieve the optimization goal, the network parameters of the initial mutual information prediction model are adjusted, and a sample set is composed of unused samples, and the adjusted initial mutual information prediction model is used as the initial mutual information prediction model, and the training step is performed again.
3. The method according to claim 1, wherein: The generating of each dynamic user-item modal graph information based on each sample user-item interaction information included in at least one sample in the sample set includes: Generate each sample user-item interaction feature information based on each sample user-item interaction information included in at least one sample in the sample set, wherein each sample user-item interaction feature information in the each sample user-item interaction feature information corresponds to one sample, and each sample user-item interaction feature information includes a sample user modal feature information group and a sample item modal feature information group; Generate each predefined user-item modal graph information based on each sample user-item interaction feature information, wherein each predefined user-item modal graph information in the each predefined user-item modal graph information corresponds to a sample, and each predefined user-item modal graph information includes a predefined user modal graph and a predefined item modal graph; Based on each predefined user-item modal graph information, each dynamic user-item modal graph information is generated, wherein each dynamic user-item modal graph information in the each dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph.
4. The method according to claim 1, wherein: The step of inputting each node feature information corresponding to the at least one sample into the initial mutual information prediction model to obtain the mutual information corresponding to each sample in the at least one sample includes: Generate user-item interaction data feature information based on pre-stored user-item interaction data, wherein the user-item interaction data feature information includes user interaction data feature information and item interaction data feature information; For the node feature information corresponding to each sample in at least one sample, perform the following steps: Determining the sum of each user node characteristic information included in the node characteristic information as the accumulated user node characteristic information; Determine the sum of the accumulated user node feature information and the user interaction data feature information included in the user-item interaction data feature information as the user node feature information to be fused; Determine the ratio of the to-be-fused user node characteristic information to the preset number as the fused user node characteristic information; Determine the sum of each item node feature information included in the node feature information as the accumulated item node feature information; Determine the sum of the accumulated item node feature information and the item interaction data feature information included in the user-item interaction data feature information as the item node feature information to be fused; Determine the ratio of the node characteristic information of the item to be fused to the preset number as the node characteristic information of the fused item; Based on the fused user node feature information and the fused item node feature information, interaction information between the fused user node feature information and the fused item node feature information is generated.
5. A method for generating recommendation information, comprising: For each user information in the user information set, perform the following steps: Obtaining each user-item interaction information corresponding to the user information; For each user-item interaction information in the individual user-item interaction information, determining a preset number of item information in a preset item information set that meets a preset interaction condition as the interaction item information corresponding to the user-item interaction information; Integrate the user-item interaction information and the determined interaction item information to obtain an integrated user-item interaction information group; Generate interaction information corresponding to each integrated user-item interaction information in the integrated user-item interaction information group based on a pre-trained interaction information prediction model, wherein the interaction information prediction model is trained by the method of any one of claims 1 to 4; Sorting each of the generated interaction information to obtain an interaction information sequence; Generate item recommendation information corresponding to the user information according to the interaction information sequence.
6. The method according to claim 5, wherein: After generating the item recommendation information corresponding to the user information according to the interaction information sequence, the method further includes: The item recommendation information is sent to a user terminal corresponding to the user information.
7. An interactive information prediction model training device, comprising: an acquisition unit configured to acquire a sample set, wherein the samples in the sample set include sample user-item interaction information, the sample user-item interaction information includes sample user information, sample item information and sample interaction information, the sample user information includes a sample user modality information group, and the sample item information includes a sample item modality information group; The training unit is configured to perform the following training steps based on the sample set: based on the user-item interaction information of each sample included in at least one sample in the sample set, generating each dynamic user-item modal graph information, wherein each dynamic user-item modal graph information in the dynamic user-item modal graph information corresponds to a sample, and each dynamic user-item modal graph information includes a dynamic user modal graph and a dynamic item modal graph; for each sample in the at least one sample, based on the predefined user-item modal graph information corresponding to the sample in the pre-generated predefined user-item modal graph information and the dynamic user-item modal graph information corresponding to the sample in the dynamic user-item modal graph information, generating integrated user-item modal graph information corresponding to the sample, wherein the integrated user-item modal graph information includes an integrated user modal graph and an integrated item modal graph; Based on the integrated user-item modal graph information corresponding to each sample in the at least one sample, including the integrated user modal graph and the integrated item modal graph, node feature information is generated, wherein the node feature information includes feature information of each user node corresponding to the integrated user modal graph and feature information of each item node corresponding to the integrated item modal graph; each node feature information corresponding to the at least one sample is input into the initial interaction information prediction model to obtain interaction information corresponding to each sample in the at least one sample; the interaction information corresponding to each sample in the at least one sample is compared with the corresponding sample interaction information; whether the initial interaction information prediction model reaches a preset optimization target based on the comparison result; in response to determining that the initial interaction information prediction model reaches the optimization target, the initial interaction information prediction model is used as a trained interaction information prediction model.
8. A device for generating recommendation information, comprising: The execution unit is configured to execute the following steps for each user information in the user information set: obtaining each user-item interaction information corresponding to the user information; For each user-item interaction information in the individual user-item interaction information, a preset number of item information in a preset item information set that meets a preset interaction condition is determined as the interactive item information corresponding to the user-item interaction information; the individual user-item interaction information and the determined individual interactive item information are integrated to obtain an integrated user-item interaction information group; based on a pre-trained interaction information prediction model, interaction information corresponding to each integrated user-item interaction information in the integrated user-item interaction information group is generated, wherein the interaction information prediction model is trained by the method of any one of claims 1 to 4; The generated individual interactive information are sorted to obtain an interactive information sequence; and according to the interactive information sequence, item recommendation information corresponding to the user information is generated.
9. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4 or 5 to 6.
10. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 4 or 5 to 6 is implemented.
Citation Information
Patent Citations
Binding recommendation method based on multi-channel hypergraph neural network
CN113177159A
Interaction method, model training method and device for dialogue recommendation of items
CN116150476A
Recommendation model training method, recommendation method, apparatus, and computer-readable medium
US20210248651A1
Method and apparatus for pushing information
US20240104623A1
Model generation method, model generation device, inference program, and inference device
WO2023140044A1
Cited By
Task-oriented multi-modal article recommendation method and device, electronic equipment and medium
CN119515495A
