Information propagation multi-task prediction method and device, medium and product
By constructing a multi-task prediction model, combining user dynamic and static feature learning, the evolution graph neural network and hierarchical perceptual attention mechanism are used to solve the prediction problems of user influence attenuation and global influence in information dissemination in social networks, and the information is realized Comprehensive prediction of diffusion and popularity improves prediction accuracy.
Patent Information
- Application Number
- CN202411031210.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-22
AI Technical Summary
The existing multi-task prediction model for information dissemination on social networks cannot effectively combine user influence attenuation factors and the global influence of users in social networks, resulting in the inability to comprehensively predict information diffusion and information popularity.
Build a multi-task prediction model for information dissemination, including user dynamic feature learning module, user static feature learning module, user representation learning module, information popularity prediction module and information diffusion prediction module. The information cascade diagram is divided through sliding time intervals, and the evolution diagram is adopted. Neural networks and hierarchical perceptual attention mechanisms learn user characteristics, combine exponential attenuation attention mechanisms and dynamic gating mechanisms to adaptively predict information popularity and information diffusion.
Effectively learn the long-distance information dissemination relationship of users in social networks, capture the dependencies between users, and realize comprehensive prediction of information diffusion and information popularity, improving prediction accuracy and model applicability.
Smart Images

Figure CN119005403A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet information processing, and in particular to a method, device, medium and product for multi-task prediction of information dissemination. Background Art
[0002] With the development of Internet technology, social network platforms with graph data structures generate a large amount of information every day. This information guides people's daily decisions and provides great convenience for life, work and study. On social media, information is shared by users frequently with others through interesting content. The flow of information produces the information cascade phenomenon, which records the trajectory of information diffusion and has many application fields, such as viral marketing, key user discovery, social network analysis, etc. Predicting the target users and information diffusion trends in the information diffusion path on social networks is a challenging but crucial task in many real-world applications. It has received great attention from academia and industry in various research fields. However, due to the openness and complex evolution mechanism of social networks, information diffusion prediction is a challenging task. In order to achieve the above goals, a multi-task prediction model for social network information diffusion is mainly constructed based on the historical data of information diffusion. The existing methods for constructing multi-task prediction models for social network information diffusion either construct an information popularity prediction model alone or an information diffusion model alone, while there is little research on multi-task learning. Among them, the main methods for constructing information diffusion models include feature engineering methods, generative methods, linear threshold and independent cascade models, and deep learning methods.
[0003] The feature engineering method mainly relies on professional experts to extract strongly relevant features from the information propagation data set, and then combines the features with machine learning methods [Support Vector Machine (SVM), decision forest, CRFs (Conditional Random Fields), etc.] to model the information propagation model; the selected information propagation features are easy to understand, but require very scarce expert guidance, the model has poor applicability and cannot be directly applied to other fields.
[0004] Based on the linear threshold and independent cascade model, information content, user feature information, and network dynamic evolution are very important factors affecting information dissemination. This model can not only capture the dynamics and complexity of information dissemination, but also effectively consider the temporal information and spatial information of the dissemination process; and it is easy to explain how individuals make decisions and mechanisms when facing social influence from a micro level. However, this model cannot effectively handle effective features such as information content, user feature information, and network dynamic evolution; there is a time lag in the dissemination of information in social networks, and it cannot reflect the time lag characteristics. Moreover, in the process of information dissemination, the independent cascade model only has one chance to pass information to neighbor users, which is inconsistent with the actual information dissemination situation in social networks.
[0005] Based on the generative method, the information propagation event is mainly regarded as an event arrival intensity function to describe the information propagation process. This method relies heavily on strong premise assumptions. The constructed model is prone to suboptimal solutions and cannot describe the information propagation process well.
[0006] The deep learning method mainly uses the powerful abstract learning feature learning ability of deep learning to capture the node features, information features, structural information and time information in the information propagation process. Although this method can effectively learn the effective features in the information propagation dataset and the nonlinear relationship in the information cascade, it can comprehensively and comprehensively model information propagation from multiple aspects. However, the existing methods either only study the prediction of information diffusion or only study the prediction of information popularity, and there are few studies on the joint task of the two. At the same time, when learning features, the features learned by the two may promote or inhibit each other. In addition, these methods also ignore the phenomenon of user influence attenuation.
[0007] In summary, the existing methods for constructing multi-task prediction models for information dissemination in social networks ignore the factors of user influence attenuation during information dissemination and the global influence of users in social networks, and are unable to comprehensively predict information diffusion and information popularity. Summary of the invention
[0008] The purpose of this application is to provide a multi-task prediction method, device, medium and product for information dissemination, which can comprehensively predict information diffusion and information popularity by combining the user influence attenuation factor in the information dissemination process and the global influence of users in social networks.
[0009] To achieve the above objectives, this application provides the following solutions:
[0010] In a first aspect, the present application provides an information propagation multi-task prediction method, comprising:
[0011] Obtaining information cascade graphs and user social networks under set information cascade conditions;
[0012] Constructing a multi-task prediction model for information dissemination; the multi-task prediction model for information dissemination includes a user dynamic feature learning module, a user static feature learning module, a user representation learning module, an information popularity prediction module and an information diffusion prediction module; the user dynamic feature learning module is used to obtain the user dynamic features of the information cascade based on the information cascade graph; the user static feature learning module is used to obtain the user static features in the user social network based on the user social network; the user representation learning module is used to obtain user features based on the user dynamic features of the information cascade and the user static features in the user social network; the information popularity prediction module is used to obtain information popularity based on the user features. The information diffusion prediction module is used to obtain information diffusion prediction results based on the user features;
[0013] The information cascade graph and the user social network are input into the information diffusion multi-task prediction model to obtain a multi-task prediction result under a set information cascade condition; the multi-task prediction result includes information popularity and information diffusion prediction results.
[0014] Optionally, the process in which the user dynamic feature learning module obtains the user dynamic feature of the information cascade based on the information cascade graph includes:
[0015] According to the set sliding time interval, the information cascade graph is divided to obtain a plurality of information cascade subgraphs; the information cascade graph includes structural information, time information and user characteristic information;
[0016] Using evolutionary graph neural network technology to learn and obtain user node features in multiple information cascade subgraphs;
[0017] The feature fusion mechanism is used to fuse the user node features of two adjacent moments to obtain the user dynamic features of information cascade.
[0018] Optionally, the process of the user static feature learning module obtaining the user static features in the user social network based on the user social network includes:
[0019] The user social network is learned based on a hierarchical perception attention mechanism to obtain user static features in the user social network.
[0020] Optionally, the process of obtaining user features by the user representation learning module based on user dynamic features of information cascade and user static features in the user social network includes:
[0021] Under the set information cascade condition, an exponential decay attention mechanism is used to obtain a user dynamic feature corresponding to the set information cascade condition and a user static feature corresponding to the set information cascade condition based on the user dynamic feature and the user static feature respectively;
[0022] A dynamic gating mechanism is adopted to fuse the user dynamic features corresponding to the set information cascade conditions and the user static features corresponding to the set information cascade conditions to obtain user features.
[0023] Optionally, the process of obtaining the information popularity based on the user characteristics by the information popularity prediction module includes:
[0024] Adopting a dynamic routing mechanism to adaptively learn the user features to obtain information cascade features;
[0025] The information cascade features are input into a multi-layer perception mechanism to obtain information popularity.
[0026] Optionally, the information diffusion prediction module adopts a multi-layer perception mechanism to obtain an information diffusion prediction result based on the user characteristics.
[0027] Optionally, the loss function of the information propagation multi-task prediction model is expressed as:
[0028]
[0029] In the formula, represents the predicted value of information diffusion, represents the predicted value of information popularity, p ij represents the true value of information diffusion, q j represents the true value of information popularity, C represents the information cascade dataset, and U represents the set of user nodes in the user's social network.
[0030] In a second aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the information propagation multi-task prediction method provided above.
[0031] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the information propagation multi-task prediction method provided above.
[0032] In a fourth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the information propagation multi-task prediction method provided above.
[0033] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0034] The present application provides a method, device, medium and product for multi-task prediction of information propagation. By constructing a multi-task prediction model for information propagation, it is possible to effectively learn the long-distance information propagation relationship of users in social networks and capture the dependencies between users. At the same time, the information cascade graph and the user social network are used as input data of the multi-task prediction model for information propagation, taking into account the user influence attenuation factor in the information propagation process and the global influence of users in social networks, and can achieve comprehensive prediction of information diffusion and information popularity. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 This is an application environment diagram of an information propagation multi-task prediction method in one embodiment of the present application;
[0037] Figure 2 A flowchart of a multi-task prediction method for information propagation provided in one embodiment of the present application;
[0038] Figure 3 An implementation architecture diagram of an information propagation multi-task prediction method provided in one embodiment of the present application;
[0039] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0042] The information propagation multi-task prediction method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can send the information cascade graph and the user social network to the server 104. After the server 104 receives the information cascade graph and the user social network, the server 104 first constructs an information propagation multi-task prediction model for the information cascade graph and the user social network, and then inputs the information cascade graph and the user social network into the information propagation multi-task prediction model to obtain the multi-task prediction result under the set information cascade condition. The server 104 can feedback the obtained multi-task prediction result to the terminal 102. In addition, in some embodiments, the information propagation multi-task prediction method can also be implemented by the server 104 or the terminal 102 alone, such as the terminal 102 can directly perform multi-task prediction on the information cascade graph and the user social network, or the server 104 can obtain the information cascade graph and the user social network from the data storage system, and perform multi-task prediction on the information cascade graph and the user social network.
[0043] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.
[0044] In an exemplary embodiment, Figure 2 As shown, a method for multi-task prediction of information propagation is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following steps 200 to 202. Among them:
[0045] Step 200: Obtain an information cascade graph and a user social network under set information cascade conditions.
[0046] Step 201: Construct an information diffusion multi-task prediction model. The information diffusion multi-task prediction model includes a user dynamic feature learning module, a user static feature learning module, a user representation learning module, an information popularity prediction module, and an information diffusion prediction module. The user dynamic feature learning module is used to obtain user dynamic features of information cascades based on information cascade graphs. The user static feature learning module is used to obtain user static features in user social networks based on user social networks. The user representation learning module is used to obtain user features based on user dynamic features of information cascades and user static features in user social networks. The information popularity prediction module is used to obtain information popularity based on user features. The information diffusion prediction module is used to obtain information diffusion prediction results based on user features.
[0047] Step 202: Input the information cascade graph and the user social network into the information diffusion multi-task prediction model to obtain the multi-task prediction results under the set information cascade conditions. The multi-task prediction results include information popularity and information diffusion prediction results.
[0048] In view of the problem that the existing methods ignore the user influence decay factor in the information propagation process and the global influence of users in the social network, and lack comprehensive prediction of information diffusion and information popularity, the present application can effectively learn the long-distance information propagation relationship of users in the social network and capture the dependency relationship between users by implementing the above steps 201 to 202. At the same time, the information cascade graph and the user social network are used as input data of the information propagation multi-task prediction model, and the user influence decay factor in the information propagation process and the global influence of users in the social network are considered to achieve comprehensive prediction of information diffusion and information popularity.
[0049] In another exemplary embodiment of the present application, based on the specific structure of the information propagation multi-task prediction model given in step 201, the information propagation multi-task prediction method provided by the present application mainly consists of five parts, such as Figure 3 As shown, they are user dynamic feature learning based on sliding window evolving dynamic graph (i.e. user propagation relationship feature representation learning), user static feature learning (i.e. user social relationship representation learning), user representation learning, information popularity prediction and information diffusion prediction.
[0050] In another exemplary embodiment of the present application, user dynamic feature learning based on sliding window evolution dynamic graph is configured to be implemented by using user dynamic feature learning module. For example: the information cascade data set C contains rich structural information, time information and user feature information. In order to effectively learn the user feature knowledge representation and dynamically learn the impact of user node feature changes on information propagation, according to the information cascade observation time (0, T], the time interval size is set to Γ and the sliding time interval is This embodiment divides the information cascade graph into n intervals, and the number of divided information cascade subgraphs is 2n-2, T≤nΓ, where n=1,2,3,... On this basis, the evolutionary graph neural network technology is used to learn the user node features in the 2n-2 sub-cascade graphs respectively, and all the node representations in each cascade subgraph are obtained. The user feature fusion mechanism is used to fuse the user node features of the sub-cascade graphs at the previous and next moments, and so on, to obtain the representation of the user dynamic features in the information cascade. Based on this, the process of the user dynamic feature learning module obtaining the user dynamic features of the information cascade based on the information cascade graph includes:
[0051] Step 1: According to the set sliding time interval, the information cascade graph is divided into multiple information cascade subgraphs. The information cascade graph includes structural information, time information and user feature information.
[0052] The main purpose of this step is to divide the cascade graph and determine the initial features of the user. To achieve this goal, it is necessary to learn the dynamic feature representation of all user nodes in the information propagation process and learn the mutual influence between user nodes in the same adjacent time. For example, a sliding window technology can be used to divide an information cascade graph into multiple sub-cascade graphs, that is, C = (c1, c2, ..., c l-1 ,c l ), c j =G j =(U j ,T j )={(u1,t1),(u2,t2),...,(u i ,t i ),...,(u m ,t m )}. Among them, c j Indicates the jth information cascade. j Represents the cascade graph corresponding to the j-th information cascade. (u i ,t i ) indicates that in the j-th information cascade, the i-th user u participates in the information dissemination (forwarding) of the information cascade at time t.
[0053] Furthermore, the existing embedding technology can be used to randomly initialize the user node features to obtain the initialized user node features Among them, |U| represents the number of user nodes, and d represents the size of user feature dimension.
[0054] Step 2: Use the evolutionary graph neural network technology to learn the user node features in multiple information cascade subgraphs.
[0055] In order to learn the evolution (dynamic features) of user features from the information cascade based on the partitioned cascade graph, this step can use the Temporal Evolutionary Dynamic Neural Network (TEDNN) to learn user dynamic features from the sub-cascade graph. In TEDNN, a single GCN is used to learn each sub-cascade graph. For example, a 1-layer GCN is used to learn the sub-cascade graph G. j The detailed learning process is:
[0056]
[0057]
[0058]
[0059]
[0060] In the formula, A j Represents the information cascade graph G j The corresponding adjacency matrix. X represents all user-initialized features. W j represents a trainable parameter. I represents the identity matrix. diag(·) represents the degree matrix of the adjacency matrix. k represents the kth row. D represents the degree matrix. Represents the adjacency matrix after adding self-loops. represents the normalized adjacency matrix. j represents the user features of the jth sub-cascade graph. GCONV(*) represents the GCN learning of 1 layer.
[0061] Furthermore, in order to learn the evolution process of information propagation, the updated weight matrix parameters are obtained according to the historical information of information propagation and the weight at the previous moment. The calculation process is:
[0062] R j =σ(XW xr +W j-1 W hr +b r ).
[0063] Z j =σ(XW xz +W j-1 W hz +b z ).
[0064]
[0065]
[0066] Among them, W j-1represents the weight parameter of the graph neural network at time j-1. σ(·) represents the sigmoid activation function. R j Represents the reset gate. Z j represents the update gate. tanh(·) represents the activation function. ⊙ represents the Hadamard product (dot multiplication operation). W represents the hidden state at time j. xr ,W hr ,W xz ,W hz ,W xh ,W hh ,b r ,b z ,b h Both represent trainable parameters.
[0067] Step 3: Use the feature fusion mechanism to fuse the user node features of two adjacent moments to obtain the user dynamic features of information cascade.
[0068] For example, in step 3, in order to capture the evolution of user features between sub-cascades, this embodiment designs a user feature enhancement gating mechanism as a feature fusion mechanism. The calculation process of the user feature enhancement gating mechanism can be expressed as:
[0069] sorce=softmax(W1(X j ||X j-1 )).
[0070] X j =sorce×X j +(1-sorce)X j-1 .
[0071] Where W1 represents a trainable parameter. sorce represents the weight score of the sub-cascade graph. || represents the connection operation of user features between sub-cascades. softmax(·) represents the normalized exponential function.
[0072] The features of the user features learned from the last cascade subgraph and the fusion of the user features at the previous moment are taken as the user dynamic features, denoted as X D .
[0073] In another exemplary embodiment of the present application, user static feature learning is configured to be implemented using a user static feature learning module. For example, in order to learn the homogeneity of users in the social network G = (U, V) and capture the influence of distant nodes on the target user node, effectively alleviating the over-smoothing problem of the model, this embodiment mainly adopts the knowledge representation of learning user static features in the user social network based on the hierarchical perception attention mechanism, denoted as X SV represents the set of social relations (edges) between users in the social network. Based on this, the user dynamic feature learning module mainly uses the hierarchical perception attention mechanism to learn the user social network to obtain the user static features in the user social network. The implementation process can be:
[0074] Step 1: K-hop neighborhood representation learning.
[0075] A social network is a huge graph structure, and there may be potential influence between two users. For the target user node u i , define N k (u i )∈{u j ∈U|d(u i ,u j )=k} as user node u i The set of k-hop neighbor nodes. i ,u j ) represents user node u i and user node u j If k = 0, it means that user node u i For k ≥ 1, it represents the user node u i The neighbor node features of all user nodes are aggregated by the following formula.
[0076]
[0077]
[0078] Wherein, k=1,2,3,... represents the kth layer (i.e., the kth hop). s The adjacency matrix representing social relations in a social network. s Indicates A s The degree matrix of the matrix. represents the normalized adjacency matrix.
[0079] Based on K-hop neighbor learning, this embodiment obtains the K-hop neighbor feature representation sequence of all user nodes, which is recorded as The sequence length is k+1.
[0080] Step 2: Feature fusion.
[0081] In order to learn the different effects of each layer of user feature representation on the target node user, this embodiment combines the attention mechanism and feature fusion method to enhance the user feature representation. Based on the K-hop neighbor representation learning, this embodiment obtains the K-hop neighbor feature representation sequence of all user nodes. Based on this, the following operations are performed:
[0082] First, a linear function is used to map the K-hop neighbor feature knowledge representation sequence into the same feature space, such as:
[0083]
[0084] Among them, W 01 ,b 01 represents a trainable parameter. Z={z 0 ,z 1 ,......,z k-1 ,z k} represents the K-hop neighbor feature knowledge representation sequence obtained after training.
[0085] Secondly, this embodiment inputs the K-hop neighbor feature knowledge representation Z into the self-attention mechanism to learn the social semantic relationship between different hop neighbors, such as:
[0086]
[0087] Z_q=Z_ln1W q .
[0088] Z_k=Z_ln1W k .
[0089] Z_v=Z_ln1W v .
[0090]
[0091] Among them, μ1 represents the mean. σ1 2 represents the variance. μ1 and σ1 2 Calculated by the given sample Z, W q ,W k ,W v is a trainable parameter. d represents the dimension of K-hop neighbor feature knowledge representation. Z_q, Z_k, Z_v represent user features after linear transformation. Z_sm represents user features after attention mechanism learning, and Z_ln1 represents social semantic relationship. LayerNormal(·) represents layer normalization.
[0092] Then, in order to prevent the loss of effective features, this embodiment adopts a residual connection method to enhance the K-hop neighbor feature knowledge representation. The calculation formula is:
[0093] Z_res=Z_sm+Z_ln1.
[0094] Among them, Z_res represents the user feature representation after integrating the residual.
[0095] Next, this embodiment uses a feedforward neural network to further extract the impact of neighbor features on the target user, thereby enhancing the expression ability of the model, and the calculation formula is as follows:
[0096] Z_l=σ(Z_resW 01 +b 01 ).
[0097] Z_total=σ(Z_lW 02 +b 02 ).
[0098] Among them, W 01 ,W 02 ,b 01 ,b 02 represents the learnable parameter, σ() represents the Relu activation function, Z_total represents the user feature representation learned by the two-layer feedforward neural network, and Z_l represents the intermediate feature.
[0099] Finally, after the feedforward neural network learning, the learned K-hop neighbor feature knowledge representation Z_total = {z 0 ,z 1 ,......,z k-1 ,z k}, the attention mechanism method is used to measure the impact of different jumps on the target user node features through weight scores, and the final user static feature X is obtained S .
[0100]
[0101]
[0102] Among them, W 03 is a trainable parameter. || represents the concatenation operation. exp(·) represents the exponential function. X s Represents the user's static features. 0k Represents the weight score. 0 、z k 、z i Represents the learned K-hop neighbor features.
[0103] In another exemplary embodiment of the present application, user representation learning is configured to be implemented using a user representation learning module. j =G j =(U j ,T j )={(u1,t1),(u2,t2),...,(u i ,t i ),...,(u m ,tm )}, through the user dynamic feature X D and the static feature X S The memory search mechanism is used to query the dynamic D corresponding to the user in the information cascade. j ={(d j,1 ,t j,1 ),(d j,2 ,t j,2 ),......,(d j,i ,t j,i ),......,(d j,m ,t j,m ),} and static characteristics S j ={(s j,1 ,t j,1 ),(s j,2 ,t j,2 ),......,(s j,i ,t j,i ),......,(s j,m ,t j,m ),}. Based on this, the process of obtaining user features by the user representation learning module based on the user dynamic features of information cascade and the user static features in the user social network includes:
[0104] Step 1: Under the set information cascade conditions, the exponential decay attention mechanism is used to obtain the user dynamic features corresponding to the set information cascade conditions and the user static features corresponding to the set information cascade conditions based on the user dynamic features and the user static features respectively.
[0105] In this step, it is mainly achieved through two parts: dynamic feature dependency learning and static feature dependency learning, which are:
[0106] (1) Dynamic feature dependency learning.
[0107] In order to map the dynamic user features D to the same space, this embodiment uses a linear function for mapping. The calculation formula of the linear mapping is:
[0108] D j _q=D j W dq .
[0109] D j _k=D j W dk .
[0110] D j _v=D j W dv .
[0111] Where Wdq ,W dk ,W dv represents the trainable learning parameter, D j_q ,D j_k ,D j_v Represents the user feature representation after linear transformation.
[0112] Since the influence of users decays over time during information dissemination, this embodiment proposes a masked attention mechanism with exponential decay, which includes:
[0113]
[0114]
[0115] Where W dq ,W dk ,W dv represents a learnable parameter. λ is a hyperparameter. φ(u i ,u j ) represents the measure u i ,u j The shortest path function between . M represents the intermediate parameter.
[0116] (2) Static feature dependency learning.
[0117] Similarly, in order to map the static user features S to the same space, this embodiment also uses a linear function for mapping, and the calculation formula involved is:
[0118] S j _q=S j W sq .
[0119] S j _k=D j W sk .
[0120] S j _v=D j W sv .
[0121] Since the influence of users decays over time during information dissemination, this embodiment proposes a masked attention mechanism with exponential decay, which includes:
[0122]
[0123]
[0124] Among them, W sq ,W sk ,W svrepresents a learnable parameter.
[0125] Step 2: Use a dynamic gating mechanism to fuse the user dynamic features corresponding to the set information cascade conditions and the user static features corresponding to the set information cascade conditions to obtain user features. In order to consider both user static and dynamic features, this step uses a dynamic gating mechanism to achieve feature fusion to obtain the fused information cascade user features. Among them, the information cascade user features are user features, and their determination formula is described as:
[0126] sorce=softmax((D j ||S j )W con ).
[0127] X_res = source × D j +(1-sorce)×S j .
[0128] Among them, W con represents a trainable parameter. softmax(·) represents a normalized exponential function. sorce represents a weight score. X_res represents the user feature after fusing the user's static and dynamic features.
[0129] In another exemplary embodiment of the present application, information popularity prediction is configured to be implemented using an information popularity prediction module. For example, under the set information cascade conditions, each user has a different role in the information dissemination process and plays a different role, resulting in different contributions to the popularity of the information cascade. This embodiment can use a dynamic routing mechanism to adaptively learn the importance of different user features in the information cascade, then generate an information cascade feature representation, and then input the information cascade feature into a multi-layer perceptron for predicting information popularity. Based on this, the process of the information popularity prediction module obtaining information popularity based on user features includes:
[0130] Step 1: Adopt a dynamic routing mechanism to adaptively learn user features and obtain information cascade features.
[0131] Step 2: Input the information cascade features into the multi-layer perception mechanism to obtain the information popularity. The prediction process of information popularity can be described as:
[0132] X c =X_resW D .
[0133] X c,1 =σ(W 01 X c +b 01 ).
[0134]
[0135] Among them, W 01 , W 02 , b 01 , b 02 W represents a trainable parameter. D Indicates the learnable parameters of dynamic routing. represents the predicted value of information popularity. c Represents the information cascade feature obtained after dynamic routing learning. c,1 Represents the cascaded features obtained after the first layer of feedforward network.
[0136] In another exemplary embodiment of the present application, information diffusion prediction is configured to be implemented using an information diffusion prediction module. For example, the user feature X_res is input into a multi-layer perceptron to capture the nonlinear relationship between the user node features in the latent space and obtain the probability of the next propagation node. This embodiment uses a two-layer perceptron, where each layer of the perceptron includes a linear layer and an activation function. Based on this, the process of the information diffusion prediction module using a multi-layer perceptron mechanism to obtain the information diffusion prediction result based on the user features can be described as:
[0137] X1=σ(W 11 X_res+b 11 ).
[0138] X2=σ(W 12 X1+b 12 ).
[0139]
[0140] Among them, W 11 , W 12 , b 11 , b 12 represents a trainable parameter, and |U| represents the number of users. represents the predicted value of information diffusion. X1 and X2 represent the user features of the first and second nonlinear layers.
[0141] In another exemplary embodiment of the present application, the information propagation multi-task prediction model provided by the present application can perform information diffusion prediction and information popularity prediction. Based on this, the loss function of the information propagation multi-task prediction model can be expressed as:
[0142]
[0143] In the formula, represents the predicted value of information diffusion, represents the predicted value of information popularity, p ij represents the true value of information diffusion, q jrepresents the true value of information popularity, C represents the information cascade dataset, and U represents the set of user nodes in the user's social network.
[0144] In another exemplary embodiment of the present application, the prediction task of the present application mainly includes two subtasks: information diffusion and information popularity prediction. Generally, information diffusion is considered to be a multi-classification task, and information popularity prediction is considered to be a regression task. In order to verify the performance of the present application, this embodiment uses two evaluation indicators, Mean Squared Log Error (MSLE) and Mean Absolute Percentage Error (MAPE), to measure the accuracy of information diffusion popularity prediction, and uses Mean Average Precision (MAP) and Hist evaluation indicators to measure the accuracy of information diffusion prediction. These evaluation indicators are used to measure the error between the model prediction value and the true value. Among them, the smaller the MSLE and MAPE values, the better the model performance. Among them, the larger the MAP and Hist values, the better. The experimental results show that the information propagation multi-task prediction method provided by the present application performs significantly better than other existing comparison algorithms on multiple standard evaluation indicators, promotes the understanding of the law and mechanism of information propagation, and demonstrates the learning ability of the deep learning framework.
[0145] In summary, the information propagation multi-task prediction method provided by the present application realizes the prediction of information propagation multi-task based on the hierarchical perception attention mechanism and the sliding window evolution graph neural network. In the prediction process, a deep learning framework is constructed, which is specifically used for the multi-task prediction of information propagation in social networks. In order to effectively learn the long-distance dependencies of users in social networks, the present application uses the hierarchical perception attention mechanism to learn the influence of surrounding neighbors on the target user. Using the memory search mechanism, the information propagation relationship and social relationship characteristics of the user corresponding to the information cascade user are queried, and the influence exponential decay mechanism is integrated to capture the dependency between users, and the user feature enhancement gating mechanism is designed to integrate the user information propagation relationship and social relationship characteristics. Using the dynamic routing mechanism, the user's contribution to the information propagation cascade is learned, and the information cascade popularity prediction is predicted using the multi-layer perceptron technology. The mask mechanism and multi-layer perceptron technology are used to predict information diffusion.
[0146] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video tag processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a multi-task prediction method for information propagation is implemented.
[0147] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components. In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0148] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0149] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0151] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0152] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0153] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0154] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. An information propagation multi-task prediction method, characterized in that: The information propagation multi-task prediction method comprises: Obtaining information cascade graphs and user social networks under set information cascade conditions; Constructing a multi-task prediction model for information dissemination; the multi-task prediction model for information dissemination includes a user dynamic feature learning module, a user static feature learning module, a user representation learning module, an information popularity prediction module and an information diffusion prediction module; the user dynamic feature learning module is used to obtain the user dynamic features of the information cascade based on the information cascade graph; the user static feature learning module is used to obtain the user static features in the user social network based on the user social network; the user representation learning module is used to obtain user features based on the user dynamic features of the information cascade and the user static features in the user social network; the information popularity prediction module is used to obtain information popularity based on the user features. The information diffusion prediction module is used to obtain information diffusion prediction results based on the user features; The information cascade graph and the user social network are input into the information diffusion multi-task prediction model to obtain a multi-task prediction result under a set information cascade condition; the multi-task prediction result includes information popularity and information diffusion prediction results.
2. The information propagation multi-task prediction method according to claim 1, characterized in that: The process of obtaining the user dynamic features of information cascade based on the information cascade graph by the user dynamic feature learning module includes: According to the set sliding time interval, the information cascade graph is divided to obtain a plurality of information cascade subgraphs; the information cascade graph includes structural information, time information and user characteristic information; Using evolutionary graph neural network technology to learn and obtain user node features in multiple information cascade subgraphs; The feature fusion mechanism is used to fuse the user node features of two adjacent moments to obtain the user dynamic features of information cascade.
3. The information propagation multi-task prediction method according to claim 1, characterized in that: The process of obtaining the user static features in the user social network based on the user social network by the user static feature learning module includes: The user social network is learned based on a hierarchical perception attention mechanism to obtain user static features in the user social network.
4. The information propagation multi-task prediction method according to claim 1, characterized in that: The process of obtaining user features by the user representation learning module based on the user dynamic features of information cascade and the user static features in the user social network includes: Under the set information cascade condition, an exponential decay attention mechanism is used to obtain a user dynamic feature corresponding to the set information cascade condition and a user static feature corresponding to the set information cascade condition based on the user dynamic feature and the user static feature respectively; A dynamic gating mechanism is adopted to fuse the user dynamic features corresponding to the set information cascade conditions and the user static features corresponding to the set information cascade conditions to obtain user features.
5. The information propagation multi-task prediction method according to claim 1, characterized in that: The process of obtaining the information popularity based on the user characteristics by the information popularity prediction module includes: Adopting a dynamic routing mechanism to adaptively learn the user features to obtain information cascade features; The information cascade features are input into a multi-layer perception mechanism to obtain information popularity.
6. The information propagation multi-task prediction method according to claim 1, characterized in that: The information diffusion prediction module adopts a multi-layer perception mechanism to obtain information diffusion prediction results based on the user characteristics.
7. The information propagation multi-task prediction method according to claim 1, characterized in that: The loss function of the information propagation multi-task prediction model is expressed as: In the formula, represents the predicted value of information diffusion, represents the predicted value of information popularity, p ij represents the true value of information diffusion, q j represents the true value of information popularity, C represents the information cascade dataset, and U represents the set of user nodes in the user's social network.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the information propagation multi-task prediction method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information propagation multi-task prediction method according to any one of claims 1 to 7 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the information propagation multi-task prediction method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Information propagation prediction model training method, prediction method and system based on training in test
CN119578496A
Risk prediction method and device for loan business, storage medium and electronic equipment
CN119762218A
Multi-modal attention image description generation method and system
CN121118986A
