Recommendation model data processing method

By constructing a global graph between terminals in the cloud and using prototype network modules to generate personalized parameters, the problem of existing recommendation systems being unfriendly to low-activity users is solved, and the performance and user experience of the recommendation model are improved.

CN114969508BActive Publication Date: 2024-09-06ALIBABA DAMO (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210452920.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-09-06
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

Existing recommendation systems usually can only use data on the local device during the training process, which is not friendly to low-activity users. Moreover, it is difficult for a unified recommendation model to perform well on every user, ignoring or sacrificing the experience of long-tail users.

Method used

By building a global graph between terminals in the cloud, the graph neural network module is used to achieve cross-terminal knowledge sharing, and the prototype network module is used to generate group-level model personalized parameters, which are distributed to each terminal to deploy exclusive recommendation models and reduce high activity The recommendations brought by users are biased.

Benefits of technology

It improves the user experience of low-activity users, alleviates the problem of sparse behavior in the recommendation system, and makes the recommendation model perform well in specific applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114969508B
    Figure CN114969508B
Patent Text Reader

Abstract

An embodiment of the present specification provides a method for processing recommendation model data, which is applied to a server and the recommendation model includes a graph neural network module and a prototype network module. The method includes constructing a global graph based on terminal operation data sent by at least two terminals, and obtaining training data of each terminal and an aggregation vector corresponding to the training data based on the global graph and the graph neural network module; determining initial module parameters of the prototype network module relative to the aggregation vector based on the aggregation vector corresponding to the training data and a preset number of prototype vectors; training the graph neural network module and the prototype network module based on the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtaining a preset number of target module parameters of the trained prototype network module; and sending the prototype network module and the preset number of target module parameters of the prototype network module to each terminal respectively.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to a method for processing recommendation model data. Background Art

[0002] Existing recommendation systems usually collect data from all end devices and train them in the cloud based on the collected data to train a unified recommendation model to serve all users. However, it is impossible for a recommendation model to perform well on every user. Unified recommendation models usually ignore or even sacrifice the experience of long-tail users (i.e., low-activity users) to improve the overall performance of the model. Although the development of end intelligence has made it possible to deploy different recommendation models on different end devices, most existing end-intelligence-based recommendation systems can only use training data on local devices during the training process, which is not friendly to low-activity users. Summary of the invention

[0003] In view of this, an embodiment of this specification provides a method for processing recommendation model data. One or more embodiments of this specification also relate to a recommendation model data processing device, a target object recommendation method, a target object recommendation device, a terminal-cloud collaborative recommendation system, a computing device, a computer-readable storage medium, and a computer program to solve the technical defects existing in the prior art.

[0004] According to a first aspect of an embodiment of this specification, a recommendation model data processing method is provided, which is applied to a server, and the recommendation model includes a graph neural network module and a prototype network module, wherein the method includes:

[0005] Constructing a global graph according to the terminal operation data sent by at least two terminals, and obtaining training data of each terminal and an aggregation vector corresponding to the training data according to the global graph and the graph neural network module;

[0006] Determine, according to the aggregate vector corresponding to the training data and a preset number of prototype vectors, the initial module parameters of the prototype network module relative to the aggregate vector, wherein the prototype vector is a module parameter vector of the prototype network module;

[0007] According to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, the graph neural network module and the prototype network module are trained, and a preset number of target module parameters of the trained prototype network module are obtained;

[0008] The prototype network module and a preset number of target module parameters of the prototype network module are respectively sent to the at least two terminals for the terminals to deploy the prototype network module, and the updated memory vectors of the terminal update operation data are uploaded to the server through the memory network of the terminals.

[0009] According to a second aspect of an embodiment of this specification, a recommendation model data processing device is provided, which is applied to a server, and the recommendation model includes a graph neural network module and a prototype network module, wherein the device includes:

[0010] An acquisition module is configured to construct a global graph according to the terminal operation data sent by at least two terminals, and obtain training data of each terminal and an aggregation vector corresponding to the training data according to the global graph and the graph neural network module;

[0011] A determination module is configured to determine the initial module parameters of the prototype network module relative to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module;

[0012] A training module, configured to train the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module;

[0013] The sending module is configured to send the prototype network module and a preset number of target module parameters of the prototype network module to the at least two terminals respectively, so that the terminals can deploy the prototype network module, and upload the updated memory vector of the terminal update operation data to the server through the memory network of the terminal.

[0014] According to a third aspect of an embodiment of this specification, a target object recommendation method is provided, which is applied to a terminal and includes:

[0015] When it is determined that the preset object recommendation condition is met, the terminal operation data corresponding to the memory vector uploaded to the server at the previous moment is obtained;

[0016] Determining prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and a preset number of target module parameters of the prototype network module, wherein the target module parameters are obtained by the above-mentioned recommendation model data processing method;

[0017] Obtaining a target vector of the terminal operation data according to the terminal operation data and the aggregation vector;

[0018] The target object to be recommended and the target vector are input, and a recommendation result of the target object to be recommended is obtained according to the prototype network module after the parameters of the prediction module are adjusted.

[0019] According to a fourth aspect of an embodiment of this specification, a target object recommendation device is provided, which is applied to a terminal and includes:

[0020] The data acquisition module is configured to acquire the terminal operation data corresponding to the memory vector uploaded to the server at a moment before the current moment when it is determined that the preset object recommendation condition is met;

[0021] A model determination module is configured to determine the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and a preset number of target module parameters of the prototype network module, wherein the target module parameters are obtained by the above-mentioned recommendation model data processing method;

[0022] a vector splicing module, configured to obtain a target vector of the terminal operation data according to the terminal operation data and the aggregate vector;

[0023] The result prediction module is configured to input the target object to be recommended and the target vector, and obtain the recommendation result of the target object to be recommended according to the prototype network module after the parameters of the prediction module are adjusted.

[0024] According to a fifth aspect of the embodiments of this specification, a terminal-cloud collaborative recommendation system is provided, including a cloud and at least two terminals, and the recommendation model includes a graph neural network module and a prototype network module, including:

[0025] Each of the at least two terminals is used to send terminal operation data to the cloud;

[0026] The cloud end is used to construct a global graph according to the terminal operation data sent by the at least two terminals, and obtain the training data of each terminal and the aggregation vector corresponding to the training data according to the global graph and the graph neural network module, and determine the initial module parameters of the prototype network module relative to the aggregation vector according to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module, and train the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module, and send the prototype network module and the preset number of target module parameters of the prototype network module to the at least two terminals respectively;

[0027] Each of the terminals deploys the prototype network module according to a preset number of target module parameters of the prototype network module, and uploads an updated memory vector of the terminal update operation data to the cloud through a memory network.

[0028] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:

[0029] Memory and processor;

[0030] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned recommendation model data processing method or the steps of the target object recommendation method are implemented.

[0031] According to the seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned recommendation model data processing method or the steps of the target object recommendation method.

[0032] According to an eighth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned recommendation model data processing method or the steps of the target object recommendation method.

[0033] An embodiment of the present specification implements a method and device for processing recommendation model data, wherein the recommendation model data processing method is applied to a server, and the recommendation model includes a graph neural network module and a prototype network module, wherein the method includes: constructing a global graph according to terminal operation data sent by at least two terminals, and obtaining training data of each terminal and an aggregation vector corresponding to the training data according to the global graph and the graph neural network module; determining the initial module parameters of the prototype network module relative to the aggregation vector according to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module; training the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtaining a preset number of target module parameters of the trained prototype network module; sending the prototype network module and the preset number of target module parameters of the prototype network module to the at least two terminals respectively, for the terminals to deploy the prototype network modules, and uploading the updated memory vectors of the terminal update operation data to the server through the memory network of the terminals.

[0034] Specifically, the recommendation model data processing method builds a panoramic picture between terminals by receiving terminal operation data from multiple terminals, uses the global picture and the graph neural network module to realize cross-terminal knowledge sharing, and uses the prototype network module to generate module parameters for group-level model personalization, and sends the prototype network module and the module parameters of group-level model personalization to each terminal; in the subsequent application process, each terminal can determine its personalized exclusive recommendation model according to the module parameters of the group-level model personalization, reduce the recommendation bias problem caused by highly active users, and improve the user experience of a large number of low-activity users. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of a specific processing scenario of recommendation model data processing and recommendation model application provided by an embodiment of this specification;

[0036] Figure 2 is a flow chart of a method for processing recommendation model data provided by an embodiment of this specification;

[0037] Figure 3 It is a structural schematic diagram of a recommendation model data processing device provided by an embodiment of this specification;

[0038] Figure 4 is a flow chart of a target object recommendation method provided by an embodiment of this specification;

[0039] Figure 5 is a process flow chart of a target object recommendation method provided by an embodiment of this specification;

[0040] Figure 6 is a schematic diagram of the structure of a target object recommendation device provided by an embodiment of this specification;

[0041] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0042] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0043] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0044] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0045] First, the terms involved in one or more embodiments of this specification are explained.

[0046] CIGAR: Device-Cloud Collaborative Graph-Enriched Prototypical Network, a device-cloud collaborative graph-enriched prototypical network module.

[0047] CD-GNN: Cross-Device Graph Neural Network, a cross-device graph neural network model.

[0048] GNN: Graph Neural Network, graph neural network.

[0049] GCN: Graph Convolution Network, a graph neural network.

[0050] Embedding: Also known as representation, a data format, that is, a vector or matrix in mathematics; in deep learning, it is the output result of one or more intermediate layers in the neural network.

[0051] GRU: Gated Recurrent Units, a type of recurrent neural network.

[0052] LSTM: Long-Short Term Memory, a recurrent neural network.

[0053] Recommendation systems have become an indispensable infrastructure for web services in the era of cloud computing and big data. For recommendation scenarios, in order to achieve the effect of "different users receive different personalized content recommendations", a technical solution can be to train a single recommendation model based on the historical behavior of all platform users; after the model is launched, the user's interests are inferred based on the user's historical behavior, and personalized recommendation results are generated for the user. However, due to the large amount of user historical behavior data and high computing power requirements, general recommendation systems are usually deployed on servers (such as cloud servers), that is, historical behavior data of users is collected from all end-side devices, and a unified recommendation model is trained to serve all users. However, firstly, due to network delay and refresh mechanism, the performance of such cloud-based recommendation systems is affected by system feedback delay and user perception delay, which will cause delays in recommendation results and fail to match the real-time changes in user preferences for end-side devices; secondly, since a small number of highly active users often contribute most of the behavior data, the recommendation system will be biased towards high-activity (i.e., highly active) users, and the experience of long-tail users (i.e., low-activity users) will usually be ignored or even sacrificed to maximize overall performance.

[0054] The surge in mobile computing and the Internet of Things (IoT) has driven the emergence of device intelligence, which is an effective solution for applications that require real-time feedback, frequent responses, or fine-grained functionality. More importantly, with the continuous improvement of mobile phone hardware performance, it is possible to deploy recommendation systems on users' mobile phones for real-time re-ranking. However, due to limitations in mobile phone computing performance and storage, recommendation models are generally very small and far less capable than large cloud models, which makes the problem of recommendation systems tending to be highly active particularly serious. Therefore, this recommendation model is very unfriendly to different users, especially long-tail users with few or limited historical interactive behaviors.

[0055] Based on this, in this specification, a recommendation model data processing method is provided. One or more embodiments of this specification also involve a recommendation model data processing device, a target object recommendation method, a target object recommendation device, a terminal-cloud collaborative recommendation system, a computing device, a computer-readable storage medium, and a computer program, which are described in detail one by one in the following embodiments.

[0056] See also Figure 1 , Figure 1 A schematic diagram of a specific processing scenario of recommendation model data processing and recommendation model application provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0057] Specifically, the recommendation model data processing provided in the embodiments of this specification is implemented on the server side (such as a common server or a cloud server), and the recommendation model application is implemented on the end side (ie, a terminal, such as a mobile phone).

[0058] Step 102: The cloud side receives terminal operation data uploaded by multiple terminals.

[0059] Among them, the cloud side can be understood as the cloud side server, that is, the cloud server; the end side can be understood as the terminal side, such as a fixed terminal (PC), a mobile terminal (mobile phone or tablet computer, etc.); the terminal operation data includes but is not limited to the user behavior sequence (such as the behavior sequence of the user clicking on the item (project, object or commodity), such as the user clicked on the commodity abc, etc.), and the user behavior sequence has a timeline, which forms the user behavior sequence from far to near according to the time of clicking the item, the user's attribute information (user's name, interests, preferences, etc.), item information (such as the commodity name, commodity type, etc.), and the background information of the user behavior (such as the location and time when the user clicks on the commodity).

[0060] Step 104: The cloud side calculates the similarity between the terminals based on the terminal operation data uploaded by each terminal side using a similarity measurement algorithm of a graph structure, and constructs a global graph between the terminals.

[0061] The similarity between terminals may be calculated based on terminal operation data, or may be calculated based on user portraits, without any limitation here.

[0062] Specifically, the cloud side calculates the similarity between terminals based on the terminal operation data uploaded by each terminal and the similarity measurement algorithm of the graph structure, and constructs a global graph between the terminals. This can be understood as follows: the cloud side calculates the similarity between terminals based on the user behavior data uploaded by each terminal and the terminal operation data, and constructs a global graph between the terminals with the terminals as nodes and the similarity relationships between the terminals as edges.

[0063] Step 106: Train CIGAR (graph enhancement prototype network module) according to the global graph.

[0064] Specifically, training CIGAR according to the global graph can be understood as determining the training samples of each terminal according to the global graph (the terminal operation data combined with the adjacent terminal device ID is a training sample) and the training label of the training sample, where the terminal can be understood as a user, and a user has multiple behaviors corresponding to multiple training samples.

[0065] Take a terminal a including two training samples as an example, as shown below:

[0066] Sample 1: User a (user attribute information) was exposed to product a (item information) on the morning of January 1 (user behavior background information), user a's historical behavior "product a-product b-product c" (user behavior sequence), adjacent device IDs; user a clicked on product a (training label is 1);

[0067] Sample 2: User a (user attribute information) was exposed to product d (item information) on the morning of January 2 (background information of user behavior). User a’s historical behavior is “product a-product b-product c” (user behavior sequence), and the IDs of adjacent devices. User a did not click on product d (the training label is 0).

[0068] Each training sample of each terminal is input into GNN (graph neural network module), and after passing through the Embedding layer, the feature vector corresponding to each training sample of each terminal is obtained. The feature vector corresponding to each training sample of each terminal is aggregated with the terminal operation data of its adjacent terminal devices in GNN to obtain the aggregated vector of each training sample of each terminal.

[0069] Still taking terminal a including sample 1 and sample 2 as an example, the training of the prototype network module is introduced in detail.

[0070] The cosine similarity of the aggregated vector of the training sample 1 of the terminal a is calculated with each of the preset number of prototype vectors, and the prototype vector with higher cosine similarity is selected to replace the module parameters of the prototype network module, wherein the prototype vector can be understood as the module parameters of the prototype network module, and the preset number can be set according to the actual application, for example, the preset number can be 100 or 200, etc.

[0071] At the same time, the terminal operation data in the training sample 1 of terminal a is input into the interactive network to obtain the representation vector of the training sample 1, and the user behavior sequence of the terminal operation data in the training sample 1 of terminal a is input into the memory network to obtain the memory vector of the training sample 1; the representation vector, the memory vector and the aggregation vector are spliced, and the spliced ​​vector is input into the prototype network module after the module parameters are replaced to obtain the prediction result of the training sample 1; the module parameters of the prototype network module and / or the graph neural network module are adjusted according to the prediction result and the training label of the training sample 1 to realize the training of the graph enhanced prototype network module.

[0072] Similarly, the training sample 2 of the terminal a is also used to train the graph enhancement prototype network module in the above manner.

[0073] Finally, the graph enhancement prototype network module is trained through all training samples of all terminals, and a preset number of prototype vectors after the prototype network module is trained are obtained.

[0074] Among them, the trained graph neural network module and the prototype network module, and a preset number of prototype vectors after the prototype network module is trained constitute the recommendation model CIGAR.

[0075] Step 108: The cloud side sends the trained prototype network module and a preset number of prototype vectors to each terminal.

[0076] Specifically, after the graph enhancement prototype network module is trained, it is split into two parts: a GNN module (graph neural network module) and a prototype network module corresponding to each terminal. The GNN module is deployed on the cloud side, and the prototype network module is deployed on the terminal side.

[0077] In subsequent applications, the prototype network module of each terminal will determine its own prototype vector based on the aggregation vector sent by the cloud side and a preset number of prototype vectors for object recommendation.

[0078] Step 110: Each terminal side will record the terminal operation data in real time and upload it to the memory network of the terminal device.

[0079] Among them, the memory network includes but is not limited to GRU (Gated Recurrent Unit), LSTM recurrent neural network, or linear self-attention model.

[0080] Step 112: The memory network on each terminal side extracts the memory vector of the terminal operation data and uploads the memory vector to the cloud side according to a preset upload rule.

[0081] The preset upload rule may be set according to actual application, for example, it may be understood as real-time upload, or upload according to a preset time interval, etc.

[0082] Step 114: After receiving the memory vectors uploaded by each end side, the cloud side infers and sends the aggregation vector corresponding to each memory vector uploaded by the end side to the corresponding end side according to the GNN.

[0083] Step 116: After receiving the new sorting request, the terminal side predicts the sorting objects included in the sorting request according to the deployed prototype network module and the determined prototype vector of the prototype network module, and sorts the sorting objects according to the predicted scores.

[0084] In the recommendation model data processing method provided in the embodiments of this specification, a global graph is generated on the cloud side according to the terminal operation data uploaded by multiple end sides, CIGAR and CD-GNN are trained, and the trained CIGAR is deployed to each end side, and the trained CIGAR is used on each end side to predict user behavior; this cloud-side training and end-cloud collaborative inference framework is adopted to utilize the abundant computing resources on the cloud side to avoid the problem of end-side training consuming more computing resources and affecting user experience, and the generated global graph is combined with CD-GNN to realize real-time information sharing between end-side devices to enhance the features of each end side, thereby solving the problem of overfitting that is prone to occur on low-activity users, so that the recommendation model obtained after training performs well on low-activity end-side users in specific applications, thereby alleviating the problem of sparse user behavior faced by the recommendation system to a certain extent.

[0085] See also Figure 2 , Figure 2 A flowchart of a method for processing recommendation model data provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0086] Among them, the recommendation model data processing method is applied to the server, and the recommendation model includes a graph neural network module and a prototype network module.

[0087] Step 202: construct a global graph based on the terminal operation data sent by at least two terminals, and obtain the training data of each terminal and the aggregation vector corresponding to the training data based on the global graph and the graph neural network module.

[0088] The specific explanation of the terminal and the terminal operation data can be found in the detailed description of the above embodiments, which will not be repeated here.

[0089] Specifically, in order to use the terminal operation data of other terminal devices to enhance the features of low-activity users in the future, the cloud side will receive the terminal operation data sent by multiple terminals, and obtain the aggregation vector of each terminal based on the terminal operation data sent by multiple terminals and the graph neural network module. The specific implementation method is as follows:

[0090] The step of constructing a global graph according to the terminal operation data sent by at least two terminals, and obtaining training data of each terminal and an aggregation vector corresponding to the training data according to the global graph and the graph neural network module includes:

[0091] receiving terminal operation data sent by at least two terminals;

[0092] constructing a global graph according to the terminal operation data of the at least two terminals;

[0093] Determining training data for each of the at least two terminals according to the terminal operation data and the global graph;

[0094] According to the graph neural network module, an aggregation vector corresponding to the training data of each terminal is obtained.

[0095] The nodes in the global graph are terminals, and the edges are the similarities between terminals.

[0096] Specifically, the cloud side receives terminal operation data sent by each of at least two terminals; then, based on the terminal operation data of each terminal, a global graph is constructed with the terminal as a node and the similarity between the terminals as an edge; then, based on the terminal operation data of each terminal and the constructed global graph, at least one training data of each terminal is obtained, wherein each training data includes a training sample and a training label corresponding to the training sample; finally, based on the graph neural network module, an aggregation vector corresponding to each training data of each terminal is obtained.

[0097] In practical applications, a global graph can be constructed based on the similarity between user behavior sequences in the terminal operation data of at least two terminals, or a user profile can be constructed based on the user attribute information in the terminal operation data. The specific implementation method is as follows:

[0098] The constructing a global graph according to the terminal operation data of the at least two terminals includes:

[0099] Calculating the similarity between the at least two terminals according to the terminal operation data of the at least two terminals;

[0100] A global graph is constructed according to the at least two terminals and the similarity between the at least two terminals.

[0101] The terminal operation data includes user behavior sequence and user attribute information.

[0102] Therefore, after receiving the terminal operation data sent by at least two terminals, the cloud side can calculate the similarity between at least two terminal devices based on the user behavior sequence in the terminal operation data; it can also create a user portrait based on the user's attribute information in the terminal operation data, and calculate the similarity between at least two terminal devices based on the user portrait; then each terminal is used as a node of the global graph, and the similarity between each terminal and other terminals is used as the edge of the global graph, so as to construct a global graph (i.e., the global graph in the above embodiment).

[0103] The recommendation model data processing method provided in the embodiments of this specification constructs a global graph according to the similarity between at least two terminals, and then constructs the training data of each terminal according to the global graph and the terminal operation data of each terminal, so that the training samples of the training data of each terminal can include not only its own terminal operation data, but also the IDs of adjacent terminals. After the training samples of each terminal are processed by GNN, the aggregation vector of the training samples of each terminal can be obtained. Through the aggregation vector, the terminal operation data of the adjacent terminals and the terminal operation data of the terminal itself can be combined to more accurately predict the user's interests.

[0104] After constructing a global graph based on at least two terminals and the similarity between at least two terminals, training data for each terminal is constructed based on the terminal operation data of each terminal combined with the terminal operation data of the adjacent terminals of each terminal in the global graph; and then, the aggregation vector corresponding to each training data of each terminal is quickly and accurately obtained based on the graph neural network module. The specific implementation method is as follows:

[0105] The step of obtaining, according to the graph neural network module, an aggregate vector corresponding to the training data of each terminal includes:

[0106] Inputting the training data of each terminal into the memory network to obtain a memory vector corresponding to the training data of each terminal;

[0107] The memory vector corresponding to the training data of each terminal is input into the graph neural network module to obtain the aggregation vector corresponding to the training data of each terminal.

[0108] Specifically, after obtaining each training data of each terminal, each training data is input into the memory network to obtain the memory vector corresponding to each training data of each terminal; each memory vector is then input into the graph neural network module for aggregation to obtain the aggregate vector of the memory vector corresponding to each training data of each terminal. The significance of obtaining the aggregate vector of each training data of each terminal is that the terminal operation data of the adjacent terminal and the terminal operation data of the terminal itself can be combined to more accurately predict the user's interests.

[0109] In the recommendation model data processing method provided in the embodiments of this specification, cross-device knowledge sharing is achieved through a graph neural network module, and terminal operation data between adjacent terminals are used for feature enhancement, so that the recommendation model obtained by subsequent training can solve the overfitting problem that occurs on low-activity users.

[0110] Step 204: Determine the initial module parameters of the prototype network module relative to the aggregate vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module.

[0111] The number of prototype vectors can be set according to the actual application, for example, 1, 2 or 100; if the preset number is 1, it can be understood as multi-person one mode; if the preset number is multiple, it can be understood as multi-person multi-mode. In practical applications, the number of prototype vectors can be equal to the number of terminals, or can be greater than or less than the number of terminals. The prototype vector can be understood as the parameter vector of the module parameter of the prototype network module.

[0112] In practical applications, since there are at least two terminals and each terminal includes one or more training data, the initial module parameters of the prototype network module relative to each aggregation vector can be determined by the aggregation vector corresponding to the training data of all terminals in the at least two terminals and a preset number of prototype vectors. The specific implementation method is as follows:

[0113] The determining, according to the aggregate vector corresponding to the training data and a preset number of prototype vectors, the initial module parameters of the prototype network module relative to the aggregate vector comprises:

[0114] According to a preset similarity algorithm, respectively calculating the similarity between the aggregate vector corresponding to the training data and each prototype vector in a preset number of prototype vectors;

[0115] The preset number of prototype vectors are sorted in descending order according to the similarity, and the first prototype vector after the sorting is determined as the initial module parameter of the prototype network module relative to the aggregation vector.

[0116] The preset similarity algorithms include but are not limited to cosine similarity algorithm, Euclidean distance algorithm, etc.

[0117] Specifically, if there are K prototype vectors, the cosine similarity between the aggregation vector corresponding to each training sample and the 1st to kth preset prototype vectors is calculated to obtain k cosine similarities, and then the k cosine similarities are arranged in descending order, and the first prototype vector after the arrangement is selected as the initial module parameter of the prototype network module relative to the aggregation vector of the training data.

[0118] Similarly, the specific implementation methods of the initial module parameters of the prototype network module relative to the aggregation vector of other training data can all be referred to the above implementation methods, which will not be repeated here.

[0119] Take the example that the training data includes training data 1 and training data 2, the preset number of prototype vectors is 100, and the preset similarity algorithm is the cosine similarity algorithm.

[0120] In the specific implementation, the cosine similarity between the aggregate vector corresponding to the training data 1 and each of the 100 prototype vectors is calculated respectively; then the 100 prototype vectors are sorted in descending order according to the cosine similarity, and the first prototype vector after sorting is determined as the initial module parameter of the prototype network module relative to the aggregate vector of the training data 1. Similarly, the initial module parameter of the prototype network module relative to the aggregate vector of the training data 2 is calculated.

[0121] The recommendation model data processing method provided in the embodiments of the present specification pre-sets multiple prototype vectors, and determines the initial module parameters of the prototype network module by calculating the similarity between the aggregate vector of each training data and each prototype vector, so that the parameters of the prototype network module can be adjusted according to the initial module parameters, and the model and parameter training are performed on it through the prediction results and the actual results of the training data, thereby improving the user experience.

[0122] Step 206: Train the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module.

[0123] Specifically, after obtaining the aggregation vector corresponding to each training data of each terminal and the initial module parameters of the prototype network module corresponding to each aggregation vector, the graph neural network module and the prototype network module can be trained according to each training data, its corresponding aggregation vector and its corresponding initial module parameters of the prototype network module. The specific implementation method is as follows:

[0124] The step of training the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector includes:

[0125] Determine training samples in the training data of each terminal and training labels corresponding to the training samples;

[0126] Obtaining a behavior vector of the training sample of each terminal according to the terminal operation data in the training sample of each terminal;

[0127] The graph neural network module and the prototype network module are trained according to the behavior vector, aggregation vector, training label of the training sample of each terminal and the initial module parameters of the prototype network module relative to the aggregation vector.

[0128] The training data includes training samples and training labels. The training samples include terminal operation data. The terminal operation data includes user behavior sequence, user attribute information, item information, and background information of user behavior.

[0129] First, determine the training samples of each training data of each terminal and their corresponding training labels; then, obtain the behavior vector of each training sample of each terminal based on the terminal operation data in each training sample of each terminal; finally, train the graph neural network module and the prototype network module based on the behavior vector, aggregation vector, training label of each training sample of each terminal and the initial module parameters of the prototype network module relative to the aggregation vector of the training sample.

[0130] The recommendation model data processing method provided in the embodiments of this specification trains the graph neural network module and the prototype network module through all training data of at least two terminals, the aggregation vector of each training data and the initial module parameters of the prototype network module corresponding to each aggregation vector, so as to obtain a more accurate graph neural network module and prototype network module, as well as a preset number of target prototype vectors of the prototype network module.

[0131] The behavior vector of each training sample is obtained by concatenating the interaction vector and memory vector of the terminal operation data, so that in the subsequent model training process, not only the memory vector of the user behavior sequence will be considered, but also the interaction vector between the user behavior sequence, the user's attribute information, the item information, and the background information of the user behavior will be considered to enhance the accuracy of the model training. The specific implementation method is as follows:

[0132] The obtaining, according to the terminal operation data in the training sample of each terminal, the behavior vector of the training sample of each terminal comprises:

[0133] Determining terminal operation data in the training sample of each terminal;

[0134] Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data;

[0135] The interaction vector is concatenated with the memory vector to obtain a behavior vector of the training sample of each terminal.

[0136] Specifically, first, the terminal operation data in each training sample is determined, and then the user behavior sequence in the terminal operation data is input into the memory network to obtain the memory vector of the training sample; at the same time, the user behavior sequence in the terminal operation data, the user's attribute information, item information, and the background information of the user behavior are input into the interaction network to obtain the interaction vector of the training sample; finally, the interaction vector and the memory vector of the training sample are spliced ​​to obtain the behavior vector of the training sample; subsequently, the behavior vector can be spliced ​​with its corresponding aggregation vector and input into the prototype network module after parameter adjustment to realize model training of the graph neural network module and the prototype network module.

[0137] The specific model training process is as follows:

[0138] The step of training the graph neural network module and the prototype network module according to the behavior vector, the aggregation vector, the training label of the training sample of each terminal and the initial module parameter of the prototype network module relative to the aggregation vector comprises:

[0139] adjusting module parameters of the prototype network module according to initial module parameters of the prototype network module relative to the aggregate vector;

[0140] The behavior vector and the aggregation vector of the training sample of each terminal are spliced, and the input is input into the prototype network module after the module parameters are adjusted to perform prediction, so as to obtain the prediction result of the training sample of each terminal;

[0141] The graph neural network module and the prototype network module are trained according to the prediction results and training labels of the training samples of each terminal.

[0142] Continuing with the above example, let’s take the aggregate vector of training data 1 as an example.

[0143] First, according to the initial module parameters of the prototype network module corresponding to the aggregation vector of training data 1, the module parameters of the prototype network module are adjusted; then the behavior vector and the aggregation vector of the training sample of the training data 1 are spliced, and the prototype network module with the adjusted module parameters is input for prediction to obtain the prediction result of the training sample; finally, according to the prediction result of the training sample and the training label, the graph neural network module and the prototype network module are trained.

[0144] Among them, training the graph neural network module and the prototype network module can be understood as adjusting the module parameters of the graph neural network module and the prototype network module according to the prediction results and training labels.

[0145] In actual applications, there are multiple training data in at least two terminals, and each training data will adjust the module parameters of the graph neural network module and the prototype network module to obtain the adjusted graph neural network module and the prototype network module; since there is a preset number of prototype vectors in the prototype network module, there will also be a preset number of initial module parameters. After adjusting the preset number of initial module parameters according to multiple training data, the preset number of target module parameters of the prototype network module will also be obtained.

[0146] That is, if there are k initial prototype vectors for the prototype network module, then when training the prototype network module, these k initial prototype vectors are adjusted according to the training data to obtain the final k target prototype vectors.

[0147] The recommendation model data processing method provided in the embodiments of this specification obtains the trained graph neural network module, the prototype network module, and the target prototype vector of the prototype network module by adjusting the module parameters of the corresponding prototype network module and the graph neural network module according to the training label of each training data of each terminal and the prediction result of the training data output by the prototype network module after the initial module parameters are adjusted; so that the prototype network module and the target prototype vector of the prototype network module can be subsequently sent to the terminal, so that the terminal can select the appropriate prototype vector from the target prototype vector of the prototype network module according to actual needs to adjust the module parameters of its prototype network module, thereby realizing its personalized and exclusive recommendation model application.

[0148] In practical applications, if there are k prototype vectors, K prototype vectors will be randomly initialized during implementation. For each user (terminal), the similarity between its aggregation vector and each prototype vector is calculated and input into the Gumbel Softmax function. The most similar prototype vector is output as the prototype vector of the user. The prototype diversity loss function is minimized to make the K prototypes as diverse as possible and avoid duplication. The prototype vectors are converted into the parameters of the final prediction layer through linear transformation. Since there are K prototype vectors, the target module parameters of K groups of prototype network modules will be obtained in the end.

[0149] Step 208: Send the prototype network module and a preset number of target module parameters of the prototype network module to the at least two terminals respectively, so that the terminals can deploy the prototype network module, and upload the updated memory vector of the terminal update operation data to the server through the memory network of the terminal.

[0150] Specifically, when a prototype network module and a preset number of target prototype vectors of the prototype network module are obtained through training, the prototype network module and the preset number of target prototype vectors of the prototype network module are deployed to the terminal to implement subsequent item recommendations on the terminal.

[0151] In specific implementation, if a terminal has terminal operation data updated, in order to ensure the accuracy of the prototype network module deployed on the terminal, the terminal operation data will be uploaded to the cloud side to infer and issue a new aggregation vector. The specific implementation method is as follows:

[0152] After obtaining the preset number of target module parameters of the trained prototype network module, the method further includes:

[0153] Receiving an updated memory vector of terminal update operation data uploaded by any terminal of the at least two terminals from a memory network on the terminal side;

[0154] The updated memory vector is input into the graph neural network module, an updated aggregation vector of the updated memory vector is obtained, and the updated aggregation vector is sent to the corresponding terminal.

[0155] Among them, there are memory networks and interactive networks on both the cloud side and the terminal side. The memory network and interactive network on the cloud side realize the model training process, while the memory network and interactive network on the terminal side realize the application process of the recommendation model.

[0156] In actual applications, the cloud side will receive in real time the updated terminal operation data uploaded by any one or more of at least two terminals from the memory network of their corresponding terminals; infer the updated aggregation vector of the updated terminal operation data based on the graph neural network module, and send the updated aggregation vector to the corresponding terminal through the identifier of the uploading terminal; so that the corresponding terminal can use the updated aggregation vector to make more accurate and reasonable prediction recommendations when making item recommendations in the future.

[0157] The recommendation model data processing method provided in the embodiments of this specification receives terminal operation data from multiple terminals to build a panoramic picture between terminals, uses the global picture and the graph neural network module to realize cross-terminal knowledge sharing, and uses the prototype network module to generate module parameters for group-level model personalization, and sends the prototype network module and the module parameters of group-level model personalization to each terminal; in the subsequent application process, each terminal can determine its personalized exclusive recommendation model according to the module parameters of the group-level model personalization, reduce the recommendation bias problem caused by highly active users, and improve the user experience of a large number of low-activity users.

[0158] Specifically, the recommendation model data processing method provided in the embodiments of this specification is different from the traditional recommendation system that uses one model to serve all users. In the embodiments of this specification, based on end intelligence technology and prototype network modules, multiple prototype network modules are generated to serve multiple groups of users, thereby realizing group-level model personalization; and by combining graph neural networks and end intelligence into a recommendation system, the real-time behavior information of adjacent devices can be utilized during recommendation to increase recommendation clues, thereby providing recommendation results that are superior to other recommendation systems, especially for users with low activity levels, which to a certain extent alleviates the challenge of behavior sparsity commonly faced by recommendation systems.

[0159] Corresponding to the above method embodiment, this specification also provides a recommended model data processing device embodiment, Figure 3 FIG. 1 is a schematic diagram showing the structure of a recommended model data processing device provided by an embodiment of the present specification. Figure 3 As shown, the device is applied to the server, and the recommendation model includes a graph neural network module and a prototype network module, wherein the device includes:

[0160] An acquisition module 302 is configured to construct a global graph according to the terminal operation data sent by at least two terminals, and obtain training data of each terminal and an aggregation vector corresponding to the training data according to the global graph and the graph neural network module;

[0161] A determination module 304 is configured to determine the initial module parameters of the prototype network module relative to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module;

[0162] The training module 306 is configured to train the graph neural network module and the prototype network model according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module.

[0163] The sending module 308 is configured to send the prototype network module and a preset number of target module parameters of the prototype network module to the at least two terminals respectively, so that the terminals can deploy the prototype network module, and upload the updated memory vector of the terminal update operation data to the server through the memory network of the terminal.

[0164] Optionally, the obtaining module 302 is further configured to:

[0165] receiving terminal operation data sent by at least two terminals;

[0166] constructing a global graph according to the terminal operation data of the at least two terminals;

[0167] Determining training data for each of the at least two terminals according to the terminal operation data and the global graph;

[0168] According to the graph neural network module, an aggregation vector corresponding to the training data of each terminal is obtained.

[0169] Optionally, the obtaining module 302 is further configured to:

[0170] Calculating the similarity between the at least two terminals according to the terminal operation data of the at least two terminals;

[0171] A global graph is constructed according to the at least two terminals and the similarity between the at least two terminals.

[0172] Optionally, the obtaining module 302 is further configured to:

[0173] Inputting the training data of each terminal into the memory network to obtain a memory vector corresponding to the training data of each terminal;

[0174] The memory vector corresponding to the training data of each terminal is input into the graph neural network module to obtain the aggregation vector corresponding to the training data of each terminal.

[0175] Optionally, the determining module 304 is further configured to:

[0176] According to a preset similarity algorithm, respectively calculating the similarity between the aggregate vector corresponding to the training data and each prototype vector in a preset number of prototype vectors;

[0177] The preset number of prototype vectors are sorted in descending order according to the similarity, and the first prototype vector after the sorting is determined as the initial module parameter of the prototype network module relative to the aggregation vector.

[0178] Optionally, the training module 306 is further configured to:

[0179] Determine training samples in the training data of each terminal and training labels corresponding to the training samples;

[0180] Obtaining a behavior vector of the training sample of each terminal according to the terminal operation data in the training sample of each terminal;

[0181] The graph neural network module and the prototype network module are trained according to the behavior vector, aggregation vector, training label of the training sample of each terminal and the initial module parameters of the prototype network module relative to the aggregation vector.

[0182] Optionally, the training module 306 is further configured to:

[0183] Determining terminal operation data in the training sample of each terminal;

[0184] Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data;

[0185] The interaction vector is concatenated with the memory vector to obtain a behavior vector of the training sample of each terminal.

[0186] Optionally, the training module 306 is further configured to:

[0187] adjusting module parameters of the prototype network module according to initial module parameters of the prototype network module relative to the aggregate vector;

[0188] The behavior vector and the aggregation vector of the training sample of each terminal are spliced, and the input is input into the prototype network module after the module parameters are adjusted to perform prediction, so as to obtain the prediction result of the training sample of each terminal;

[0189] The graph neural network module and the prototype network module are trained according to the prediction results and training labels of the training samples of each terminal.

[0190] Optionally, the device further comprises:

[0191] The data update module is configured as follows:

[0192] Receiving an updated memory vector of terminal update operation data uploaded by any terminal of the at least two terminals from a memory network on the terminal side;

[0193] The updated memory vector is input into the graph neural network module, an updated aggregation vector of the updated memory vector is obtained, and the updated aggregation vector is sent to the corresponding terminal.

[0194] The recommendation model data processing device provided in the embodiment of this specification builds a panoramic map between terminals by receiving terminal operation data of multiple terminals, uses the global map and the graph neural network module to realize cross-terminal knowledge sharing, and uses the prototype network module to generate module parameters for group-level model personalization, and sends the prototype network module and the module parameters of group-level model personalization to each terminal; in the subsequent application process, each terminal can determine its personalized exclusive recommendation model according to the module parameters of the group-level model personalization, reduce the recommendation bias problem caused by highly active users, and improve the user experience of a large number of low-activity users.

[0195] The above is a schematic scheme of a recommendation model data processing device of this embodiment. It should be noted that the technical scheme of the recommendation model data processing device and the technical scheme of the recommendation model data processing method described above belong to the same concept, and the details not described in detail in the technical scheme of the recommendation model data processing device can be found in the description of the technical scheme of the recommendation model data processing method described above.

[0196] See also Figure 4 , Figure 4 A flow chart of a target object recommendation method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0197] Specifically, the target object recommendation method provided in the embodiments of this specification is applied to a terminal, wherein the terminal can be understood as any terminal of the at least two terminals in the above embodiments.

[0198] Step 402: When it is determined that the preset object recommendation condition is met, the terminal operation data corresponding to the memory vector uploaded to the server at the previous moment is obtained.

[0199] Among them, the target object recommendation method provided in the embodiments of this specification has different application scenarios and different target objects; for example, when the application scenario of the target object recommendation method is a commodity recommendation scenario, the target object can be understood as a commodity; when the application scenario of the target object recommendation method is an advertisement recommendation scenario, the target object can be understood as an advertisement, etc. For ease of understanding, in the embodiments of this specification, the application scenario of the target object recommendation method is a commodity recommendation scenario, and the target object is a commodity, and a detailed description is given as an example.

[0200] Then, when the target object is a product, the preset object recommendation condition can be understood as the preset product recommendation condition, and the preset object recommendation condition can be set according to the actual application. For example, when a user browses products through a terminal, the preset object recommendation condition can be used to recommend products when the user flips pages while browsing products, or when the user refreshes the product page, or when the user opens a new product page.

[0201] Taking the object as a product, the preset object recommendation condition is the condition for recommending products when the user browses the products and turns the pages of the products. When the user browses the products and turns the pages of the products, the terminal operation data corresponding to the memory vector uploaded by the terminal to the server at the previous moment of the current moment is obtained. The detailed explanation of the terminal operation data can be found in the above embodiment, which will not be repeated here.

[0202] If the current time is 13:00 on January 1st, and at the previous time, at 12:00 on January 1st, the terminal uploaded terminal operation data corresponding to the memory vector to the server through the memory network on the terminal side; then obtaining the terminal operation data corresponding to the memory vector uploaded to the server at the previous time can be understood as obtaining the terminal operation data corresponding to the memory vector uploaded by the terminal to the server at 12:00 on January 1st.

[0203] Step 404: Determine the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and the preset number of target module parameters of the prototype network module.

[0204] The target module parameters are obtained by the recommended model data processing method of the above embodiment.

[0205] The preset number of target module parameters of the prototype network module can be understood as the preset number of target module parameters of the prototype network module sent by the cloud side to each terminal in the recommended model data processing method of the above embodiment.

[0206] Take the case where the number of target module parameters is 3 as an example.

[0207] When the terminal receives the aggregate vector obtained from the memory vector of the terminal operation data sent by the server, it determines the prediction module parameters of the deployed prototype network module according to the aggregate vector and the preset number of target module parameters of the prototype network module sent by the server. The specific implementation method is as follows:

[0208] The step of determining the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and a preset number of target module parameters of the prototype network module includes:

[0209] Determine the aggregation vector corresponding to the memory vector sent by the server, and a preset number of target module parameters of the prototype network module;

[0210] According to a preset similarity algorithm, respectively calculating the similarity between the aggregate vector and each target module parameter in a preset number of target module parameters of the prototype network module;

[0211] The preset number of target module parameters are sorted in descending order according to the similarity, and the first target module parameter after sorting is determined as the prediction module parameter of the prototype network module.

[0212] Among them, the detailed explanation of the preset similarity algorithm can be found in the introduction of the above embodiment, which will not be repeated here.

[0213] Continuing with the above example, the preset similarity algorithm is still taken as the cosine similarity algorithm.

[0214] In the specific implementation, the aggregation vector corresponding to the memory vector and the preset number of target module parameters of the prototype network module sent by the server are received; according to the cosine similarity algorithm, the cosine similarity of the aggregation vector and each target module parameter is calculated, and then the preset number of target module parameters are sorted in descending order according to the cosine similarity, and the first target module parameter after sorting is determined as the prediction module parameter of the prototype network module.

[0215] In the target object recommendation method provided in the embodiments of the present specification, each terminal calculates the target module parameters with high similarity to its aggregation vector according to the predicted corresponding aggregation vector through a preset similarity algorithm, and uses the target module parameters with high similarity to its aggregation vector as the prediction module parameters of its prototype network module, so as to design a personalized exclusive prototype network module for each terminal, so that each terminal can subsequently make product recommendations based on the exclusive prototype network module, thereby improving the user experience.

[0216] Step 406: Obtain a target vector of the terminal operation data according to the terminal operation data and the aggregation vector.

[0217] Specifically, obtaining a target vector of the terminal operation data according to the terminal operation data and the aggregation vector includes:

[0218] Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data;

[0219] The interaction vector, the memory vector and the aggregation vector of the terminal operation data are concatenated to obtain a target vector of the terminal operation data.

[0220] Specifically, the user behavior sequence in the terminal operation data is input into the interactive network to obtain a memory vector; at the same time, the user behavior sequence, user attribute information, item information, and background information of the user behavior in the terminal operation data are input into the interactive network to obtain an interaction vector; the memory vector, interaction vector, and aggregation vector of the terminal operation data are then concatenated to obtain a target vector of the terminal operation data; subsequently, the target object to be recommended can be reasonably and accurately recommended based on the target vector combined with the prototype network module after parameter adjustment.

[0221] Step 408: input the target object to be recommended and the target vector, and obtain the recommendation result of the target object to be recommended according to the prototype network module after the parameters of the prediction module are adjusted.

[0222] The target object to be recommended can be understood as the commodity to be recommended.

[0223] Specifically, the product to be recommended and the target vector of the terminal operation data are simultaneously input into the prototype network module adjusted according to the prediction module parameters, and the recommendation result of the prototype network module for each product to be recommended can be obtained, such as the user's interest level in each product to be recommended.

[0224] Finally, according to the recommendation results of the prototype network module for each product to be recommended, the products to be recommended are sorted and displayed to the user.

[0225] In the target object recommendation method provided in the embodiments of the present specification, each terminal, when meeting the item recommendation conditions, can accurately predict the recommended items based on the terminal operation data before the current moment, combined with the aggregation vector sent by the server and the prototype network module adjusted according to the prediction module parameters, and obtain the user's interest level in each item to be recommended, so that each item to be recommended can be sorted according to the prediction result, so as to arrange the items to be recommended that the user is interested in in a more prominent position, thereby improving the user's shopping or browsing experience.

[0226] See also Figure 5 , Figure 5 A process flow chart of a target object recommendation method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0227] Step 502: The terminal side sends the user behavior sequence s to the memory network of the terminal device to obtain a memory vector m.

[0228] Step 504: The client uploads the memory vector m to the cloud.

[0229] Step 506: The cloud side obtains the aggregate vector h of the memory vector m through CD-GNN (a cross-device graph neural network model).

[0230] Step 508: The cloud side sends the aggregation vector h to the terminal side.

[0231] Step 510: The client side calculates the cosine similarity between the aggregated vector h and each prototype vector in the prototype vectors (p1-pk).

[0232] Step 512: Select a prototype vector pk with a higher cosine similarity through the Gumbel softmax function, and convert the pk into a prototype vector θk that can be used by the MLP (multi-layer perceptron) of the prototype network module through a parameter generator, and adjust the module parameters of the MLP of the prototype network module through the prototype vector θk.

[0233] Step 514: The terminal inputs the user's attribute information u, item information i, user behavior sequence s, and user behavior background information c into the interaction layer to obtain a representation vector.

[0234] Among them, the interaction layer can be understood as the above-mentioned interaction network, and its purpose is to capture the interaction relationship between user characteristics, historical behavior sequences, product characteristics and context (background information of user behavior) so as to better make predictions; the interaction layer provided in the embodiments of this specification can be implemented by networks of various recommendation models such as but not limited to the fully connected layer and attention.

[0235] Step 516: The terminal concatenates the memory vector m, the representation vector and the aggregation vector h to obtain a concatenated vector z.

[0236] Step 518: Input the concatenated vector z into the prototype network module after the module parameters are adjusted to obtain the prediction result of the prototype network module for the item.

[0237] Among them, the prediction results of the prototype network module for the item can be understood as the user's interest in each item.

[0238] In actual applications, the inference between the terminal and the cloud is an asynchronous operation. The cloud will not send the aggregation vector corresponding to the memory vector of the user behavior sequence on the terminal very frequently, that is, the aggregation vector will not be updated in real time. For example, the cloud will send the aggregation vector of the terminal once every 10 minutes or 20 minutes. Before the cloud sends a new aggregation vector, the terminal can use the aggregation vector sent by the cloud before the current moment as the input of the prototype network module when recommending items.

[0239] Therefore, the memory vector on the terminal side in the figure may be different from the memory vector received on the cloud side, but they all belong to the same terminal and only differ in the acquisition time.

[0240] In the target object recommendation method provided in the embodiments of the present specification, each terminal, when meeting the item recommendation conditions, can accurately predict the recommended items based on the terminal operation data before the current moment, combined with the aggregation vector sent by the server and the prototype network module adjusted according to the prediction module parameters, and obtain the user's interest level in each item to be recommended, so that each item to be recommended can be sorted according to the prediction result, so as to arrange the items to be recommended that the user is interested in in a more prominent position, thereby improving the user's shopping or browsing experience.

[0241] Corresponding to the above method embodiment, this specification also provides a target object recommendation device embodiment, Figure 6 FIG. 1 is a schematic diagram showing the structure of a target object recommendation device provided by an embodiment of the present specification. Figure 6 As shown, the device is applied to a terminal, comprising:

[0242] The data acquisition module 602 is configured to acquire the terminal operation data corresponding to the memory vector uploaded to the server at a moment before the current moment when it is determined that the preset object recommendation condition is met;

[0243] The model determination module 604 is configured to determine the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and the preset number of target module parameters of the prototype network module, wherein the target module parameters are obtained by the above-mentioned recommendation model data processing method;

[0244] A vector splicing module 606 is configured to obtain a target vector of the terminal operation data according to the terminal operation data and the aggregate vector;

[0245] The result prediction module 608 is configured to input the target object to be recommended and the target vector, and obtain the recommendation result of the target object to be recommended according to the prototype network module after the parameters of the prediction module are adjusted.

[0246] Optionally, the model determination module 604 is further configured to:

[0247] Determine the aggregation vector corresponding to the memory vector sent by the server, and a preset number of target module parameters of the prototype network module;

[0248] According to a preset similarity algorithm, respectively calculating the similarity between the aggregate vector and each target module parameter in a preset number of target module parameters of the prototype network module;

[0249] The preset number of target module parameters are sorted in descending order according to the similarity, and the first target module parameter after sorting is determined as the prediction module parameter of the prototype network module.

[0250] Optionally, the vector splicing module 606 is further configured to:

[0251] Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data;

[0252] The interaction vector, the memory vector and the aggregation vector of the terminal operation data are concatenated to obtain a target vector of the terminal operation data.

[0253] The above is a schematic scheme of a target object recommendation device of this embodiment. It should be noted that the technical scheme of the target object recommendation device and the technical scheme of the target object recommendation method described above belong to the same concept, and the details not described in detail in the technical scheme of the target object recommendation device can be found in the description of the technical scheme of the target object recommendation method described above.

[0254] The embodiment of this specification also provides a terminal-cloud collaborative recommendation system, including a cloud and at least two terminals, and the recommendation model includes a graph neural network module and a prototype network module, including:

[0255] Each of the at least two terminals is used to send terminal operation data to the cloud;

[0256] The cloud end is used to construct a global graph according to the terminal operation data sent by the at least two terminals, and obtain the training data of each terminal and the aggregation vector corresponding to the training data according to the global graph and the graph neural network module, and determine the initial module parameters of the prototype network module relative to the aggregation vector according to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module, and train the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module, and send the prototype network module and the preset number of target module parameters of the prototype network module to the at least two terminals respectively;

[0257] Each of the terminals deploys the prototype network module according to a preset number of target module parameters of the prototype network module, and uploads an updated memory vector of the terminal update operation data to the cloud through a memory network.

[0258] Among them, the cloud can be understood as a kind of server in the above embodiment, and the terminal is consistent with the terminal in the above embodiment, which will not be repeated here.

[0259] In the end-cloud collaborative recommendation system provided by the embodiments of this specification, multiple terminals will upload terminal operation data to the cloud, and the cloud will train the graph neural network module and the prototype network module in the recommendation system according to the terminal operation data of each terminal, and at the same time, according to a preset number of module parameters of the prototype network module, it will produce target module parameters of multiple prototype network modules to serve multiple groups of users, thereby realizing group-level model personalization; the cloud will deploy the trained graph neural network module on its cloud, and then send the trained prototype network module and the module parameters of the multiple prototype network modules produced to each terminal, so that each terminal can select the appropriate module parameters of the prototype network module in real time for target object recommendation according to the aggregation vector sent by the cloud in actual application.

[0260] That is, by combining graph neural networks and end intelligence into a recommendation system, not only can the real-time behavior information of neighboring devices be used according to the global graph to increase recommendation clues when making recommendations, thereby providing recommendation results that are superior to other recommendation systems, especially for users with low activity levels, which to a certain extent alleviates the challenge of sparse behavior commonly faced by recommendation systems; in subsequent practical applications, the terminal can also select appropriate module parameters of the network module based on real-time behavior data to increase the accuracy of recommendation results.

[0261] Figure 7The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0262] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0263] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0264] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.

[0265] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned recommendation model data processing method or target object recommendation method.

[0266] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned recommendation model data processing method or target object recommendation method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned recommendation model data processing method or target object recommendation method.

[0267] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned recommendation model data processing method or target object recommendation method.

[0268] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the recommendation model data processing method or the target object recommendation method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the recommendation model data processing method or the target object recommendation method mentioned above.

[0269] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned recommendation model data processing method or target object recommendation method.

[0270] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the recommendation model data processing method or the target object recommendation method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the recommendation model data processing method or the target object recommendation method mentioned above.

[0271] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0272] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0273] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0274] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0275] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for processing recommendation model data, applied to a server, wherein the recommendation model includes a graph neural network module and a prototype network module, wherein: The method comprises: Building a global graph according to the terminal operation data sent by at least two terminals, and obtaining the training data of each terminal and the aggregation vector corresponding to the training data according to the global graph and the graph neural network module, wherein the global graph is built according to the similarity between the at least two terminals, and the aggregation vector is obtained by aggregating the training data of each terminal and the terminal operation data of its adjacent terminals; Determine, according to the aggregate vector corresponding to the training data and a preset number of prototype vectors, the initial module parameters of the prototype network module relative to the aggregate vector, wherein the prototype vector is a module parameter vector of the prototype network module; According to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, the graph neural network module and the prototype network module are trained, and a preset number of target module parameters of the trained prototype network module are obtained; The prototype network module and a preset number of target module parameters of the prototype network module are respectively sent to the at least two terminals for the terminals to deploy the prototype network module, and the updated memory vectors of the terminal update operation data are uploaded to the server through the memory network of the terminals.

2. According to the recommendation model data processing method of claim 1, constructing a global graph based on the terminal operation data sent by at least two terminals, and obtaining the training data of each terminal and the aggregation vector corresponding to the training data based on the global graph and the graph neural network module, comprising: receiving terminal operation data sent by at least two terminals; constructing a global graph according to the terminal operation data of the at least two terminals; Determining training data for each of the at least two terminals according to the terminal operation data and the global graph; According to the graph neural network module, an aggregation vector corresponding to the training data of each terminal is obtained.

3. The method for processing recommendation model data according to claim 2, wherein constructing a global graph based on the terminal operation data of the at least two terminals comprises: Calculating the similarity between the at least two terminals according to the terminal operation data of the at least two terminals; A global graph is constructed according to the at least two terminals and the similarity between the at least two terminals.

4. The method for processing recommendation model data according to claim 2, wherein obtaining the aggregation vector corresponding to the training data of each terminal according to the graph neural network module comprises: Inputting the training data of each terminal into the memory network to obtain a memory vector corresponding to the training data of each terminal; The memory vector corresponding to the training data of each terminal is input into the graph neural network module to obtain the aggregation vector corresponding to the training data of each terminal.

5. The method for processing recommendation model data according to claim 1, wherein the initial module parameters of the prototype network module relative to the aggregate vector corresponding to the training data and a preset number of prototype vectors are determined, comprising: According to a preset similarity algorithm, respectively calculating the similarity between the aggregate vector corresponding to the training data and each prototype vector in a preset number of prototype vectors; The preset number of prototype vectors are sorted in descending order according to the similarity, and the first prototype vector after the sorting is determined as the initial module parameter of the prototype network module relative to the aggregation vector.

6. The method for processing recommendation model data according to claim 1, wherein the step of training the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector comprises: Determine training samples in the training data of each terminal and training labels corresponding to the training samples; Obtaining a behavior vector of the training sample of each terminal according to the terminal operation data in the training sample of each terminal; The graph neural network module and the prototype network module are trained according to the behavior vector, aggregation vector, training label of the training sample of each terminal and the initial module parameters of the prototype network module relative to the aggregation vector.

7. The method for processing recommendation model data according to claim 6, wherein obtaining the behavior vector of the training sample of each terminal according to the terminal operation data in the training sample of each terminal comprises: Determining terminal operation data in the training sample of each terminal; Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data; The interaction vector is concatenated with the memory vector to obtain a behavior vector of the training sample of each terminal.

8. The method for processing recommendation model data according to claim 7, wherein the step of training the graph neural network module and the prototype network module according to the behavior vector, the aggregation vector, the training label of the training sample of each terminal and the initial module parameters of the prototype network module relative to the aggregation vector comprises: adjusting module parameters of the prototype network module according to initial module parameters of the prototype network module relative to the aggregate vector; The behavior vector and the aggregation vector of the training sample of each terminal are spliced, and the input is input into the prototype network module after the module parameters are adjusted to perform prediction, so as to obtain the prediction result of the training sample of each terminal; The graph neural network module and the prototype network module are trained according to the prediction results and training labels of the training samples of each terminal.

9. The method for processing recommendation model data according to claim 1, after obtaining a preset number of target module parameters of the trained prototype network module, further comprising: Receiving an updated memory vector of terminal update operation data uploaded by any terminal of the at least two terminals from a memory network on the terminal side; The updated memory vector is input into the graph neural network module, an updated aggregation vector of the updated memory vector is obtained, and the updated aggregation vector is sent to the corresponding terminal.

10. A target object recommendation method, applied to a terminal, comprising: When it is determined that the preset object recommendation condition is met, the terminal operation data corresponding to the memory vector uploaded to the server at the previous moment is obtained; Determine the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and the preset number of target module parameters of the prototype network module, wherein the target module parameters are obtained by the recommendation model data processing method according to any one of claims 1 to 9 above; Obtaining a target vector of the terminal operation data according to the terminal operation data and the aggregation vector; The target object to be recommended and the target vector are input, and a recommendation result of the target object to be recommended is obtained according to the prototype network module after the parameters of the prediction module are adjusted.

11. The target object recommendation method according to claim 10, wherein the step of determining the prediction module parameters of the prototype network module according to the aggregation vector corresponding to the memory vector sent by the received server and a preset number of target module parameters of the prototype network module comprises: Determine the aggregation vector corresponding to the memory vector sent by the server, and a preset number of target module parameters of the prototype network module; According to a preset similarity algorithm, respectively calculating the similarity between the aggregated vector and each target module parameter in a preset number of target module parameters of the prototype network module; The preset number of target module parameters are sorted in descending order according to the similarity, and the first target module parameter after sorting is determined as the prediction module parameter of the prototype network module.

12. The target object recommendation method according to claim 10, wherein obtaining the target vector of the terminal operation data according to the terminal operation data and the aggregation vector comprises: Inputting the terminal operation data into the interaction network and the memory network respectively to obtain the interaction vector and the memory vector of the terminal operation data; The interaction vector, the memory vector and the aggregation vector of the terminal operation data are concatenated to obtain a target vector of the terminal operation data.

13. A terminal-cloud collaborative recommendation system, comprising a cloud and at least two terminals, wherein the recommendation model comprises a graph neural network module and a prototype network module, including: Each of the at least two terminals is used to send terminal operation data to the cloud; The cloud end is used to construct a global graph according to the terminal operation data sent by the at least two terminals, and obtain the training data of each terminal and the aggregation vector corresponding to the training data according to the global graph and the graph neural network module, and determine the initial module parameters of the prototype network module relative to the aggregation vector according to the aggregation vector corresponding to the training data and a preset number of prototype vectors, wherein the prototype vector is a module parameter vector of the prototype network module, and train the graph neural network module and the prototype network module according to the training data of each terminal, the aggregation vector corresponding to the training data, and the initial module parameters of the prototype network module relative to the aggregation vector, and obtain a preset number of target module parameters of the trained prototype network module, and send the prototype network module and the preset number of target module parameters of the prototype network module to the at least two terminals respectively, and the global graph is constructed according to the similarity between the at least two terminals, and the aggregation vector is obtained by aggregating the training data of each terminal and the terminal operation data of its adjacent terminals; Each of the terminals deploys the prototype network module according to a preset number of target module parameters of the prototype network module, and uploads an updated memory vector of the terminal update operation data to the cloud through a memory network.