Interactive content recommendation method, device and related equipment based on multiple behaviors
Through the training of multi-behavior recommendation models and the construction of semantic views, the problem of inaccurate recommendations in multi-behavior interaction scenarios in the existing technology is solved, and the accuracy of interactive content recommendation and model expression ability are improved.
Patent Information
- Application Number
- CN202410711906.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-04
AI Technical Summary
In the multi-behavior interaction scenario between users and interactive content, existing collaborative filtering methods introduce noisy information and irrelevant semantics due to the introduction of a large number of auxiliary behaviors, resulting in inaccurate recommended content.
Adopt a multi-behavior-based interactive content recommendation method to train a multi-behavior recommendation model by obtaining multi-behavior interaction data between users and items. The model includes a comparison view module and a recommendation module to generate multi-behavior views, user semantic views and item semantics. View, conduct behavioral self-supervised learning, reduce noise and irrelevant information, and improve recommendation accuracy.
The accuracy of interactive content recommendation is improved. Through behavioral self-supervised learning and the construction of semantic views, data sparsity and noise problems are alleviated, the model expression ability is enhanced, and more accurate user preferences and item recommendations are provided.
Smart Images

Figure CN118297682B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device and related equipment for recommending interactive content based on multiple behaviors. Background Art
[0002] Providing personalized recommendations to users has become a hot topic on e-commerce platforms, online video sites, social networking sites, etc. Currently, the main method for implementing personalized recommendations for users is collaborative filtering, such as matrix decomposition algorithms and autoencoders.
[0003] The current collaborative filtering method is based on analyzing the interaction between users and interactive content under a single interactive behavior type, so as to achieve personalized recommendations for users under this type of interactive content. However, in reality, the types of interactive behaviors between users and interactive content are diverse, that is, in reality, users and interactive content are multi-behavior interactions. The current interactive content recommendation method based on multiple behaviors mainly uses different deep models to learn the introduced auxiliary behaviors (for example, the user's click behavior and add to cart behavior when shopping), and uses the obtained knowledge as additional information to enhance the relatively sparse target behavior, so as to better infer the user's preference for the target behavior recommendation. However, the existing methods have the problem of inaccurate recommended content due to the introduction of a large number of auxiliary behaviors, the increase of noise information and irrelevant semantics. Summary of the invention
[0004] The embodiments of the present invention provide a method, an apparatus, a computer device and a storage medium for recommending interactive content based on multiple behaviors, so as to improve the accuracy of interactive content recommendation.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a method for recommending interactive content based on multiple behaviors, including:
[0006] Acquire user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data;
[0007] Based on the user data, the project data and the multi-behavior interaction data, a multi-behavior recommendation model is trained, the multi-behavior recommendation model at least comprising a comparison view module and a recommendation module, the comparison view module is used to generate a multi-behavior view, a user semantic view and a project semantic view, and the recommendation module is used to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view;
[0008] The target user is input into the trained multi-behavior recommendation model to determine a target recommendation result, wherein the target recommendation result includes at least one recommended interactive content.
[0009] In order to solve the above technical problems, the embodiment of the present application further provides an interactive content recommendation device based on multiple behaviors, including:
[0010] A data acquisition unit, used to acquire user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data;
[0011] a training unit, configured to train a multi-behavior recommendation model based on the user data, the project data and the multi-behavior interaction data, wherein the multi-behavior recommendation model at least includes a comparison view module and a recommendation module, wherein the comparison view module is configured to generate a multi-behavior view, a user semantic view and a project semantic view, and wherein the recommendation module is configured to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view;
[0012] The recommendation unit is used to input the target user into the trained multi-behavior recommendation model to determine the target recommendation result, which includes at least one recommended interactive content.
[0013] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned multi-behavior-based interactive content recommendation method when executing the computer program.
[0014] In order to solve the above technical problems, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for recommending interactive content based on multiple behaviors are implemented.
[0015] The method, apparatus, computer device and storage medium for recommending interactive content based on multiple behaviors provided by the embodiments of the present invention obtain user data, project data, and multiple behavior interaction data between users in the user data and projects in the project data; based on the user data, the project data and the multiple behavior interaction data, a multiple behavior recommendation model is trained, the multiple behavior recommendation model at least includes a comparison view module and a recommendation module, the comparison view module is used to generate multiple behavior views, user semantic views and project semantic views, the recommendation module is used to generate recommendation results based on the multiple behavior views, the user semantic views and the project semantic views; the target user is input into the trained multiple behavior recommendation model to determine the target recommendation result, the target recommendation result includes at least one recommended interactive content, and the accuracy of interactive content recommendation is improved by using the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0017] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0018] Figure 2 is a flowchart of an embodiment of the method for recommending interactive content based on multiple behaviors of the present application;
[0019] Figure 3 It is a schematic diagram of a framework for presetting multiple graph convolutional layers to learn user semantic information representation, item semantic information representation, and multi-behavior interactive information representation in the multi-behavior based interactive content recommendation method of the present application;
[0020] Figure 4 It is a schematic diagram of a process of constructing a comparison view in the interactive content recommendation method based on multiple behaviors of the present application;
[0021] Figure 5 It is a schematic diagram of a process based on denoising in a comparison view in the interactive content recommendation method based on multiple behaviors of the present application;
[0022] Figure 6 is a structural diagram of an embodiment of a device for recommending interactive content based on multiple behaviors according to the present application;
[0023] Figure 7 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] See also Figure 1 ,like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0028] Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages, etc.
[0029] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Eperts Group Audio Layer III), MP4 (Moving Picture Eperts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0030] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0031] It should be noted that the method for recommending interactive content based on multiple behaviors provided in the embodiment of the present application is executed by a server, and accordingly, the device for recommending interactive content based on multiple behaviors is arranged in the server.
[0032] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. The terminal devices 101, 102, 103 in the embodiment of the present application may specifically correspond to application systems in actual production.
[0033] See also Figure 2 , Figure 2 A method for recommending interactive content based on multiple behaviors provided by an embodiment of the present invention is shown. Figure 1 The server in the example is used to illustrate, and the following steps S201 to S203 are described in detail:
[0034] S201. Acquire user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data.
[0035] Among them, user data refers to the users served by the recommendation system. Item data refers to the items that users can interact with in the recommendation system, such as items, posts, videos, etc.
[0036] Multi-behavior interaction data refers to data obtained by users performing various interactive behaviors on items. Multi-behavior interaction data can be log data of users and items obtained from the recommendation system. Multi-behavior means that the types of interactive behaviors are diverse. For example, when the item is an item, its behaviors include viewing behavior, purchasing behavior, evaluation behavior, etc. Its specific content can be adjusted according to actual conditions, and the embodiments of this application are not limited.
[0037] S202. Based on the user data, the project data and the multi-behavior interaction data, a multi-behavior recommendation model is trained, wherein the multi-behavior recommendation model includes at least a comparison view module and a recommendation module, wherein the comparison view module is used to generate a multi-behavior view, a user semantic view and a project semantic view, and the recommendation module is used to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view.
[0038] Among them, a view is a virtual table derived from one or more tables in the database. Its function is to facilitate users to operate on data. A view is a virtual table whose content is defined by a query. Like a real table, a view contains a series of named columns and rows of data. However, the database only stores the definition of the view, but not the data in the view. This data is stored in the original table.
[0039] The multi-behavior view is a virtual table that stores multi-behavior interaction data, the user semantic view is a virtual table that stores user data, and the project semantic view is a virtual table that stores project data.
[0040] Specifically, the multi-behavior data includes auxiliary behaviors and target behaviors, and the training of the multi-behavior recommendation model based on the user data, the project data and the multi-behavior interaction data includes:
[0041] Determining a user semantic information representation in the user data, an item semantic information representation in the item data, and a multi-behavior interaction information representation in the multi-behavior interaction data;
[0042] generating a multi-behavior view based on the multi-behavior information representation;
[0043] Generate a user semantic view based on the user semantic information representation and the multiple behavior information representation, and generate a project semantic view based on the project semantic information representation and the multiple behavior information representation;
[0044] Building a comparison view based on the multiple behavior views, the user semantic view and the item semantic view;
[0045] Based on the comparison view, the auxiliary behavior and the target behavior are subjected to behavioral self-supervision learning until a training end condition is met, and the obtained model is used as a multi-behavior recommendation model.
[0046] Among them, information representation refers to representing data in a certain form or structure so that it can be processed and analyzed in a machine learning model. The representation can be a vector, matrix, tensor or other form of raw data. In deep learning, through neural network models, higher-level representations can be learned that can capture the features and patterns in the data.
[0047] In this embodiment, the process of determining the user semantic information representation in the user data, the item semantic information representation in the item data, and the multi-behavior interaction information representation in the multi-behavior interaction data includes:
[0048] Determine a user relationship graph corresponding to the user data, a project relationship graph corresponding to the project data, and a multi-behavior relationship graph corresponding to the multi-behavior interaction data, wherein the user relationship graph includes user nodes, the project relationship graph includes project nodes, and the multi-behavior relationship graph includes the user nodes, the project nodes, and connection edges, wherein the connection edges are used to connect user nodes and project nodes having a behavior relationship;
[0049] Based on a plurality of preset graph convolutional layers, feature representation extraction is performed on the user relationship graph to obtain user semantic information representation, and feature representation extraction is performed on the project relationship graph to obtain project semantic information representation;
[0050] For each user node in the user relationship graph, perform feature aggregation on the user node and neighboring nodes of the user node to determine a first aggregate feature;
[0051] For each project node in the project relationship graph, perform feature aggregation on the project node and neighboring nodes of the project node to determine a second aggregate feature;
[0052] Based on the preset multiple graph convolutional layers, the first aggregated features, and the second aggregated features, feature representation extraction is performed on the multi-behavior relationship graph to obtain the multi-behavior interaction information representation.
[0053] Specifically, based on the graph encoder, a user relationship graph is generated for user data. A project relationship graph is generated for project data. A multi-behavior relationship graph is generated for multi-behavior interaction data. For example, please refer to Figure 3 User relationship diagram, project relationship diagram, and multi-behavior relationship diagram in.
[0054] Taking the representation of project semantic information as an example, based on the preset multiple graph convolution layers, feature representation extraction is performed on the project relationship graph, and the project semantic information representation can be obtained through the following process:
[0055] According to formula (1), for each item i, the information of neighbors and its own information is aggregated according to the item relationship graph to learn similar behavior patterns between items and generate an encoding vector of a specific layer (specific convolutional layer), which is a behavior-aware encoding vector:
[0056] (1)
[0057] in, It is used to encode the item nodes in the rth layer and the aggregation function of the neighbor node j of the project node, , r is the number of layers, the value range of r is (1, R), r is a positive integer, in the behavior Down, yes middle Neighbors, IN and OUT are used to set an attention vector Weight, , is the embedding vector corresponding to the project node in the rth layer, For behavior The embedding vector under For the project relationship diagram, is the set of trainable parameters, i.e., the project data.
[0058] Behavior In Used to refer specifically to the same action. For example, Indicates viewing, behavior represents a viewing behavior. For example, Indicates purchase, then the behavior represents a purchase behavior. The meanings of can be referred to the above description and will not be repeated elsewhere.
[0059] KNN (K Nearest Neighbors) is used to retain information about the relationship between the project's neighbor entities. The specific process is to quantify the semantic relationship between two projects through similarity. For example, based on cosine similarity. For example, the similarity matrix is calculated according to the following formula (2): :
[0060] (2)
[0061] in, Remember from their Hopping neighbor propagation relationship signal, For project node i in the project relationship graph The semantic information of items in the item relationship graph is represented by For project node j in the project relationship graph The semantic information of items in the item relationship graph is represented.
[0062] Then, based on the obtained similarities, the project similarity graph is constructed, and KNN sparsification is performed on the project similarity graph to reduce the computationally demanding, feasible noise and unimportant edges.
[0063] For example, for each item i, according to the following formula (3), only the items with confidence scores of The edge:
[0064] (3)
[0065] in, is the sparse adjacency matrix.
[0066] Next, the adjacency matrix is symmetrically normalized according to the following formula (4), as shown below:
[0067] (4)
[0068] Where D is The diagonal degree matrix of Finally, we get the project semantic graph A and its normalized sparse adjacency matrix: .
[0069] In order to propagate embeddings, inspired by the simplified graph convolutional network used in LightGCN, a local graph embedding propagation layer is added to the multi-behavior recommendation model. The operation process of the local graph embedding propagation layer is performed according to the following formula (5):
[0070] (5)
[0071] The embedding matrix is defined as Indicates that item i is in behavior Embed below.
[0072] According to the following formulas (6) to (8) Next, for the project relationship diagram Each item in , set an attention vector By weight The incoming (i.e. ) and outgoing (i.e. ) neighbors, realized through attention mechanism and convolution operation As shown below:
[0073] (6)
[0074] (7)
[0075] (8)
[0076] , yes The normalized weight of the edge in , is the attention matrix, d is the embedding size; is the normalized weight of the edge; is the convolution operator of the rth graph convolutional layer, It is a serial operation. is the convolution filter of the rth graph convolutional layer.
[0077] The process of extracting feature representation of the multi-behavior relationship graph based on the preset multiple graph convolution layers, the first aggregated features, and the second aggregated features to obtain the multi-behavior interaction information representation includes:
[0078] Determine a probability graph of the behavior type to which each connecting edge in the multi-behavior relationship graph belongs;
[0079] Based on the first aggregated features and the second aggregated features, an embedding of a behavior corresponding to each of the connection edges in each of the preset multiple graph convolutional layers is obtained;
[0080] If the behavior is an auxiliary behavior, denoising the embedding of the behavior, and replacing the embedding of the behavior with the denoised embedding;
[0081] For the connection edge, the embedding of the behavior obtained in each of the graph convolutional layers is aggregated to determine the behavior interaction information representation corresponding to the connection edge.
[0082] Specifically, according to the following formulas (9) to (10), for each user and Projects , based on the lightweight message passing scheme of LightGCN, the embeddings of users and items are learned by linear propagation on the multi-behavior relationship graph, and the final embedding uses the weighted sum of the embeddings learned by all graph convolution layers, as shown below:
[0083] (9)
[0084] (10)
[0085] Based on multiple behaviors, a bipartite behavior subgraph is constructed according to the interaction behavior type a. , embedding propagation on each subgraph can derive the representation of each node under each behavior. Then the behavior is embedded into the node and the representation of each behavior is merged with the message passing paradigm, which can clearly show the difference semantics of each behavior and capture the user's preferences. The specific process is shown in formula (11):
[0086] (11)
[0087] in, It refers to the embedding of node u under the interaction behavior type a in the (r+1)-th propagation layer; It refers to the neighbor set of u under the interaction behavior type a; is the parameter of the rth graph convolutional layer; Represents the element-wise product of two vectors; Represents the embedding of interaction behavior type a in the r-th layer, which is multiplied by the parameters of another graph convolutional layer Update, the update process is shown in formula (12):
[0088] (12)
[0089] Since different behaviors are related to each other in an implicit way and the correlation between behaviors varies from user to user, a self-attention mechanism is utilized to model cross-behavior dependencies.
[0090] First, according to the following formulas (13) to (14), the nodes The embedded connection under all behaviors is , the embedding connection of node u under behavior i related to behavior a is , and then calculate the coefficient reflecting the dependency between user u's behavior a and other behaviors , the coefficient of the dependency between the user behavior related to behavior a and other behaviors of user u :
[0091] (13)
[0092] (14)
[0093] in, , are two behavior-specific parameters related to the output dimension size. softmax() ensures that the sum of all calculated weights is 1.
[0094] Multiple patterns from different graphs are encoded into the embedding through a gating operator that can adaptively balance and fuse different views generated from layers (r) to (r+1) in behavior. Enhanced user-item embedding in the generated mode and , the specific process is shown in formulas (15) to (17):
[0095] (15)
[0096] (16)
[0097] (17)
[0098] in, is the sigmoid function, , is a weight scalar, weight , are the trainable parameters in the rth convolutional layer.
[0099] When it is necessary to explain, the multi-behavior embedding is generated at the (r+ 1) layer according to the following formula (18):
[0100] (18)
[0101] Among them, s and t are the user's behaviors, representing auxiliary behavior s and target behavior t respectively.
[0102] According to the following formulas (19) to (20), the user / item embeddings of each layer are concatenated to generate the final behavior perception (i.e., , ) and multiple behaviors (i.e. , )express:
[0103] (19)
[0104] (20)
[0105] in, and is a feed-forward layer activated by the ReLU function, , It is a feed-forward layer and The corresponding trainable parameters.
[0106] Among them, after performing feature representation extraction on the multi-behavior relationship graph based on the preset multiple graph convolution layers, the first aggregation features and the second aggregation features to obtain the multi-behavior interaction information representation, it also includes: obtaining prompt embedding information corresponding to each connecting edge; if the behavior of the connecting edge is the target behavior, based on the prompt embedding information and the behavior interaction information representation corresponding to the connecting edge, updating the behavior interaction information representation corresponding to the connecting edge.
[0107] In this embodiment, a user semantic view is generated based on the user semantic information representation and the multi-behavior information representation, including: determining an enhanced user semantic information representation based on the user semantic information representation and the multi-behavior information representation; determining a user semantic view based on the user semantic information representation and the enhanced user semantic information representation.
[0108] In this embodiment, a project semantic view is generated based on the project semantic information representation and the multi-behavior information representation, including: determining an enhanced project semantic information representation based on the project semantic information representation and the multi-behavior information representation; determining a project semantic view based on the project semantic information representation and the enhanced project semantic information representation.
[0109] Specifically, by means of model enhancement, the level of interactive information between views is adjusted, and ultimately the model's expressiveness is improved.
[0110] First, if Figure 4 As shown, based on kNN, based on the user semantic information representation and the multi-behavior information representation, a user semantic view is constructed. Based on the project semantic information representation and the multi-behavior information representation, a project semantic view is constructed. According to the following formula (21), the corresponding embedding representation of users and items can be obtained based on the semantic view:
[0111] (twenty one)
[0112] According to the following formula (22), the semantically based embedding representation of users and items is combined with the multi-behavior representation obtained in the previous step (i.e., , ) to obtain the aggregated user and item representations:
[0113] (twenty two)
[0114] Finally, build a comparison view for users ( , ) and a comparison view of the project ( , ). According to the following formula (23), the corresponding user contrast loss and item contrast loss are obtained according to the contrast view:
[0115] (twenty three)
[0116] Selective comparative learning is performed between auxiliary behaviors and target behaviors to achieve knowledge transfer and alleviate data sparsity.
[0117] from Each auxiliary behavior a obtained in will be compared with the target behavior A to provide different semantics. In the recommendation setting that encapsulates various interactions, the same two topics will have some commonalities (for example, users have similar preferences or items have similar attributes), and the usual practice will discard the true semantic information. If there are many similar preferences between a pair of users, it usually indicates that the range of items that can meet the user requirements is wide. Therefore, each swing is weighed by the total number of swings formed between each user pair, that is, potential false negatives are discovered based on the calculated similarity score and eliminated when comparing node pairs. Two users in the subgraph The similarity score between two users is calculated according to the following formula (24):
[0118] (twenty four)
[0119] in, is the smoothing coefficient, It refers to the neighbor set of u under the interaction behavior type a. The final similarity score That is, score each subgraph The average value of .
[0120] Further, such as Figure 5As shown in Figure 1, the widely used variational graph autoencoder (VGAE) is used as the generative model, which combines the concept of variational autoencoder with graph generation. VGAE combines KL divergence to reduce the risk of overfitting and allows more diverse graphs to be generated by increasing uncertainty. Using multiple layers of graph convolutional layers ( Figure 5 The GCNS in the image is used as an encoder to obtain the embedding. Two perceptrons are used to derive the mean and standard deviation of the graph embedding respectively, and then another perceptron is used as a decoder to decode the input mean and standard deviation to generate a new graph.
[0121] Producing a denoised view can enhance the performance of the model on noisy data. In order to improve the quality of node embeddings obtained after each GCN layer, a graph neural network with a denoising layer is proposed, which uses a parameterized network to actively filter the noisy edges in the input graph. For the r-th GCN layer, a binary matrix in, Representation Node and Is there an edge between them? (0 indicates a noisy edge). Formally, the adjacency matrix of the resulting subgraph is ,in is the element-wise product. The direct idea of reducing the noise edge by the minimum assumption of The number of non-zero entries in , that is, for different layers The number of non-zero entries in is constrained according to the following formula (25):
[0122] (25)
[0123] is an indicator function, , , represent Normality. To optimize this penalty, each binary number are drawn from a Bernoulli distribution, which is given by Parameterization, that is . The quality of the edge (u,v) is described in . The subgraph is optimized efficiently using gradient methods through the reparameterization trick, and the binary term drawn from the Bernoulli distribution Divided into parameters and an independent random variable The deterministic function g of .
[0124] Based on the above operations, a denoising layer is used to learn the parameters that control whether to remove the edge (u, v) For the r-th GNN layer, it is the user node u and its Interactive project node v calculation ,in Is Parameterized MLP. Using the random probability function (concrete distribution) and the activation function (hardsigmoid) Therefore, according to the following formula (26), The constraint on the number of non-zero entries in is restated as:
[0125] (26)
[0126] in, for The cumulative distribution function (CDF) of right The value range of has been expanded. is obtained from the random probability function (concrete distribution), where Parameterized position.
[0127] Furthermore, the difficulty level of information reconstruction is compared in the behavior-aware denoising part to determine the inherent noise.
[0128] In a multi-behavior graph G, normal interactions usually show high consistency with the graph structure from a local-global unified perspective, while noisy interactions do not. We learn pattern-enhanced user-item representations to parameterize G, and it is difficult to reconstruct noisy interactions from these information representations. Therefore, we can compare the difficulty level of information reconstruction to determine the inherent noise.
[0129] The behavior-aware graph decoder is used as a discriminator to reconstruct information. It takes the learned behavior-aware representation as input and generates a probability map according to the following formula (27), as shown below:
[0130] (27)
[0131] in, It is behavior The parameterized diagram below, , is the learned representation of the user-item set, , Embed for behavior.
[0132] Then, the information reconstruction task is formulated as a binary classification task to predict the user-item interactions in G according to the following formulas (28) to (29):
[0133] (28)
[0134] (29)
[0135] After the above stages, noise-free auxiliary behaviors and informative knowledge can be generated. Then a deep continuous hinting method is used to weaken the impact of noise and alleviate the semantic gap between multiple types of behaviors.
[0136] Among them, the prompt technology is driven by natural language processing (NLP), which is applied to reformulate downstream tasks. The prompt function aims to modify the input text into a prompt by attaching a semantic text template, so that the pre-trained language model can better "understand" the task. In the image encoder, the prompt is regarded as a task-specific continuous vector, and a set of continuous embeddings, namely prompts, are introduced in the input space after the embedding layer.
[0137] Using multi-type behavior embedding (i.e. and ) to generate the hint embedding , plus the multi-behavior representation of each layer embedding connection , , in order to better understand the semantics of the prompt. During initialization, the embedding parameters of the auxiliary behavior (i.e., ), the parameters of the target behavior are updated (i.e., ). To generate the embedding of the graph encoder, only the prompt is used under the target behavior, and the parameters of the target behavior are updated according to the following formulas (30) to (31):
[0138] (30)
[0139] (31)
[0140] Here, the additional parameter t is simply added to each graph convolutional layer. Various methods can be used to adopt the prompt, such as addition, concatenation and projection operators. According to the following formula (32), based on VPT, a simple but effective addition operator is used to adopt the prompt of each graph convolutional layer:
[0141] (32)
[0142] S203: Input the target user into the trained multi-behavior recommendation model to determine a target recommendation result, where the target recommendation result includes at least one recommended interactive content.
[0143] In an embodiment of the present application, user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data are obtained; based on the user data, the project data and the multi-behavior interaction data, a multi-behavior recommendation model is trained, the multi-behavior recommendation model at least includes a comparison view module and a recommendation module, the comparison view module is used to generate a multi-behavior view, a user semantic view and a project semantic view, the recommendation module is used to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view; the target user is input into the trained multi-behavior recommendation model to determine the target recommendation result, the target recommendation result includes at least one recommended interactive content, and the present invention is used to improve the accuracy of interactive content recommendation.
[0144] In this embodiment, user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data are obtained; based on the user data, the project data and the multi-behavior interaction data, a multi-behavior recommendation model is trained, the multi-behavior recommendation model at least includes a comparison view module and a recommendation module, the comparison view module is used to generate a multi-behavior view, a user semantic view and a project semantic view, the recommendation module is used to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view; the target user is input into the trained multi-behavior recommendation model to determine the target recommendation result, the target recommendation result includes at least one recommended interactive content, and the present invention is used to improve the accuracy of interactive content recommendation.
[0145] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0146] Figure 6 FIG. 1 is a block diagram showing a principle of a device for recommending interactive content based on multiple behaviors, which corresponds one-to-one to the method for recommending interactive content based on multiple behaviors in the above-mentioned embodiment. Figure 6 As shown, the interactive content recommendation device based on multiple behaviors includes a data acquisition unit 31, a training unit 32 and a recommendation unit 33. The functional modules are described in detail as follows:
[0147] The data acquisition unit 31 is used to acquire user data, project data, and multi-behavior interaction data between the user in the user data and the project in the project data.
[0148] The training unit 32 is used to train the multi-behavior recommendation model based on the user data, the project data and the multi-behavior interaction data. The multi-behavior recommendation model at least includes a comparison view module and a recommendation module. The comparison view module is used to generate multi-behavior views, user semantic views and project semantic views. The recommendation module is used to generate recommendation results based on the multi-behavior views, the user semantic views and the project semantic views.
[0149] The recommendation unit 33 is used to input the target user into the trained multi-behavior recommendation model to determine a target recommendation result, wherein the target recommendation result includes at least one recommended interactive content.
[0150] Optionally, the multi-behavior data includes auxiliary behaviors and target behaviors, and in the training unit 32, the multi-behavior recommendation model is trained based on the user data, the project data and the multi-behavior interaction data, including:
[0151] The information representation determining unit is used to determine the user semantic information representation in the user data, the item semantic information representation in the item data, and the multi-behavior interaction information representation in the multi-behavior interaction data.
[0152] The multi-behavior view determining unit is used to generate a multi-behavior view based on the multi-behavior information representation.
[0153] A view determination unit is used to generate a user semantic view based on the user semantic information representation and the multiple behavior information representation, and to generate a project semantic view based on the project semantic information representation and the multiple behavior information representation.
[0154] A comparison view determining unit is used to construct a comparison view based on the multiple behavior views, the user semantic view and the item semantic view.
[0155] A model acquisition unit is used to perform behavioral self-supervised learning on the auxiliary behavior and the target behavior based on the comparison view until a training end condition is met, and use the obtained model as a multi-behavior recommendation model.
[0156] Optionally, in the view determination unit, generating a user semantic view based on the user semantic information representation and the multiple behavior information representation includes:
[0157] The enhanced user semantic information representation determining unit is used to determine the enhanced user semantic information representation based on the user semantic information representation and the multiple behavior information representation.
[0158] The user semantic view determining unit is used to determine the user semantic view based on the user semantic information representation and the enhanced user semantic information representation.
[0159] Optionally, in the information representation determining unit, determining the user semantic information representation in the user data, the project semantic information representation in the project data, and the multi-behavior interaction information representation in the multi-behavior interaction data includes:
[0160] A relationship graph determination unit is used to determine a user relationship graph corresponding to the user data, a project relationship graph corresponding to the project data, and a multi-behavior relationship graph corresponding to the multi-behavior interaction data, wherein the user relationship graph includes user nodes, the project relationship graph includes project nodes, and the multi-behavior relationship graph includes the user nodes, the project nodes, and connecting edges, wherein the connecting edges are used to connect user nodes and project nodes having behavioral relationships.
[0161] The first feature representation extraction unit is used to perform feature representation extraction on the user relationship graph based on a plurality of preset graph convolutional layers to obtain user semantic information representation, and perform feature representation extraction on the project relationship graph to obtain project semantic information representation.
[0162] The first aggregation unit is used to perform feature aggregation on each user node and neighboring nodes of the user node in the user relationship graph to determine a first aggregation feature.
[0163] The second aggregation unit is used to perform feature aggregation on each project node and neighboring nodes of the project node in the project relationship graph to determine a second aggregation feature.
[0164] The second feature representation extraction unit is used to extract feature representation of the multi-behavior relationship graph based on the preset multiple graph convolutional layers, the first aggregated features and the second aggregated features to obtain the multi-behavior interaction information representation.
[0165] Optionally, in the second feature representation extraction unit, performing feature representation extraction on the multi-behavior relationship graph based on the preset multiple graph convolution layers, the first aggregated features, and the second aggregated features to obtain the multi-behavior interaction information representation includes:
[0166] A probability graph generating unit is used to determine a probability graph of the behavior type to which each connecting edge in the multi-behavior relationship graph belongs.
[0167] An embedding representation determination unit is used to obtain, based on the first aggregate feature and the second aggregate feature, an embedding of a behavior corresponding to each of the connecting edges in each of the preset multiple graph convolution layers.
[0168] A denoising unit is used to denoise the embedding of the behavior if the behavior is an auxiliary behavior, and replace the embedding of the behavior with the denoised embedding.
[0169] The behavior interaction information representation determining unit is used to aggregate the embeddings of the behaviors obtained in each of the graph convolutional layers for the connection edges, and determine the behavior interaction information representation corresponding to the connection edges.
[0170] Optionally, in the second feature representation extraction unit, after performing feature representation extraction on the multi-behavior relationship graph based on the preset multiple graph convolution layers, the first aggregated features, and the second aggregated features to obtain the multi-behavior interaction information representation, the device further includes:
[0171] The hint embedding information acquisition unit is used to acquire hint embedding information corresponding to each connection edge.
[0172] An updating unit is configured to update the behavior interaction information representation corresponding to the connection edge based on the hint embedding information and the behavior interaction information representation corresponding to the connection edge if the behavior of the connection edge is a target behavior.
[0173] For the specific definition of the interactive content recommendation device based on multiple behaviors, please refer to the definition of the interactive content recommendation method based on multiple behaviors above, which will not be repeated here. Each module in the above-mentioned interactive content recommendation device based on multiple behaviors can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0174] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment.
[0175] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components connected to the memory 41, the processor 42, and the network interface 43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0176] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0177] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 4. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code for controlling electronic files, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0178] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code for controlling the electronic file.
[0179] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0180] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned multi-behavior-based interactive content recommendation method.
[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0182] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A method for recommending interactive content based on multiple behaviors, characterized in that: The interactive content recommendation method based on multiple behaviors includes: Acquire user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data; Based on the user data, the project data and the multi-behavior interaction data, a multi-behavior recommendation model is trained, the multi-behavior recommendation model at least comprising a comparison view module and a recommendation module, the comparison view module is used to generate a multi-behavior view, a user semantic view and a project semantic view, and the recommendation module is used to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view; Inputting the target user data into the trained multi-behavior recommendation model to determine a target recommendation result, wherein the target recommendation result includes at least one recommended interactive content; The multi-behavior interaction data includes auxiliary behaviors and target behaviors, and the training of the multi-behavior recommendation model based on the user data, the project data and the multi-behavior interaction data includes: Determining a user semantic information representation in the user data, an item semantic information representation in the item data, and a multi-behavior interaction information representation in the multi-behavior interaction data; generating a multi-behavior view based on the multi-behavior interaction information representation; Generate a user semantic view based on the user semantic information representation and the multi-behavior interaction information representation, and generate a project semantic view based on the project semantic information representation and the multi-behavior interaction information representation; Building a comparison view based on the multiple behavior views, the user semantic view and the item semantic view; Based on the comparison view, the auxiliary behavior and the target behavior are subjected to behavioral self-supervision learning until a training end condition is met, and the obtained model is used as a multi-behavior recommendation model.
2. The method for recommending interactive content based on multiple behaviors according to claim 1, characterized in that: The generating a user semantic view based on the user semantic information representation and the multi-behavior interaction information representation includes: Determining an enhanced user semantic information representation based on the user semantic information representation and the multi-behavior interaction information representation; A user semantic view is determined based on the user semantic information representation and the enhanced user semantic information representation.
3. The method for recommending interactive content based on multiple behaviors according to claim 1, characterized in that: The determining of the user semantic information representation in the user data, the item semantic information representation in the item data, and the multi-behavior interaction information representation in the multi-behavior interaction data includes: Determine a user relationship graph corresponding to the user data, a project relationship graph corresponding to the project data, and a multi-behavior relationship graph corresponding to the multi-behavior interaction data, wherein the user relationship graph includes user nodes, the project relationship graph includes project nodes, and the multi-behavior relationship graph includes the user nodes, the project nodes, and connection edges, wherein the connection edges are used to connect user nodes and project nodes having a behavior relationship; Based on a plurality of preset graph convolutional layers, feature representation extraction is performed on the user relationship graph to obtain user semantic information representation, and feature representation extraction is performed on the project relationship graph to obtain project semantic information representation; For each user node in the user relationship graph, perform feature aggregation on the user node and neighboring nodes of the user node to determine a first aggregate feature; For each project node in the project relationship graph, perform feature aggregation on the project node and neighboring nodes of the project node to determine a second aggregate feature; Based on the preset multiple graph convolutional layers, the first aggregated features, and the second aggregated features, feature representation extraction is performed on the multi-behavior relationship graph to obtain the multi-behavior interaction information representation.
4. The method for recommending interactive content based on multiple behaviors according to claim 3, characterized in that: The extracting feature representation of the multi-behavior relationship graph based on the preset multiple graph convolution layers, the first aggregated features, and the second aggregated features to obtain the multi-behavior interaction information representation includes: Determine a probability graph of the behavior type to which each connecting edge in the multi-behavior relationship graph belongs; Based on the first aggregated features and the second aggregated features, an embedding of a behavior corresponding to each of the connection edges in each of the preset multiple graph convolutional layers is obtained; If the behavior is an auxiliary behavior, denoising the embedding of the behavior, and replacing the embedding of the behavior with the denoised embedding; For the connection edge, the embedding of the behavior obtained in each of the graph convolutional layers is aggregated to determine the behavior interaction information representation corresponding to the connection edge.
5. The method for recommending interactive content based on multiple behaviors according to claim 4, characterized in that: After extracting feature representations from the multi-behavior relationship graph based on the preset multiple graph convolutional layers, the first aggregated features, and the second aggregated features to obtain the multi-behavior interaction information representation, the method further includes: Get the hint embedding information corresponding to each connection edge; If the behavior of the connection edge is a target behavior, the behavior interaction information representation corresponding to the connection edge is updated based on the prompt embedding information and the behavior interaction information representation corresponding to the connection edge.
6. A device for recommending interactive content based on multiple behaviors, characterized in that: The interactive content recommendation device based on multiple behaviors includes: A data acquisition unit, used to acquire user data, project data, and multi-behavior interaction data between users in the user data and projects in the project data; a training unit, configured to train a multi-behavior recommendation model based on the user data, the project data and the multi-behavior interaction data, wherein the multi-behavior recommendation model at least includes a comparison view module and a recommendation module, wherein the comparison view module is configured to generate a multi-behavior view, a user semantic view and a project semantic view, and wherein the recommendation module is configured to generate a recommendation result based on the multi-behavior view, the user semantic view and the project semantic view; A recommendation unit, configured to input target user data into the trained multi-behavior recommendation model to determine a target recommendation result, wherein the target recommendation result includes at least one recommended interactive content; The multi-behavior interaction data includes auxiliary behaviors and target behaviors, and the training unit includes: an information representation determining unit, configured to determine a user semantic information representation in the user data, an item semantic information representation in the item data, and a multi-behavior interaction information representation in the multi-behavior interaction data; a multi-behavior view determining unit, configured to generate a multi-behavior view based on the multi-behavior interaction information representation; A view determination unit, configured to generate a user semantic view based on the user semantic information representation and the multi-behavior interaction information representation, and to generate an item semantic view based on the item semantic information representation and the multi-behavior interaction information representation; A comparison view determining unit, configured to construct a comparison view based on the multiple behavior views, the user semantic view and the item semantic view; A model acquisition unit is used to perform behavioral self-supervised learning on the auxiliary behavior and the target behavior based on the comparison view until a training end condition is met, and use the obtained model as a multi-behavior recommendation model.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for recommending interactive content based on multiple behaviors as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for recommending interactive content based on multiple behaviors as described in any one of claims 1 to 5 is implemented.
