Multi-scale information propagation prediction method based on macro-micro dynamics
By constructing a temporal network and a hypergraph network, combining the temporal attention process and the hypergraph convolutional network, learning local and global propagation characteristics and decoupling the two, it solves the problem of insufficient integration of macro and micro dynamics in the existing technology, and achieves Achieve accurate prediction and accurate prediction of information dissemination.
Patent Information
- Application Number
- CN202410823213.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology is difficult to effectively integrate macro and micro dynamics, and ignores the dynamic entanglement between the two in information dissemination, resulting in insufficient accuracy in information dissemination prediction.
Using a multi-scale information propagation prediction method based on macro-micro dynamics, by constructing a temporal network and a hypergraph network, combining the temporal attention process and the hypergraph convolution network, local and global propagation characteristics are learned, and the two are decoupled through the feature decomposition module. or, provide more accurate predictive input.
It achieves accurate prediction of information dissemination dynamics, improves the understanding of social structure, time dynamic evolution and mutual influence of information flow among users, and provides a new and efficient solution for information dissemination prediction.
Smart Images

Figure CN118735052A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of graph neural networks, and specifically is a multi-scale information propagation prediction method based on macro-micro dynamics. Background Art
[0002] Driven by mobile communications and Internet technologies, social platforms have become the central hub for the dissemination of various information. While these platforms improve the convenience and openness of people's lives, they also facilitate the spread of harmful content and rumors. Therefore, analyzing the information dissemination process is of great significance for understanding the information dissemination pattern. In addition, it also has wide applications in formulating effective control strategies, predicting information dissemination trends, and identifying influential users.
[0003] Information diffusion refers to the process by which information or new ideas spread among users through communication links in social networks. This process can be represented by an information cascade. Existing research on information cascade modeling mainly focuses on two aspects: (1) macro-level tasks, including estimating the cumulative or overall size of the cascade; and (2) micro-level tasks, including predicting subsequent users affected in the cascade.
[0004] These two tasks are driven by two dynamic processes: macrodynamics and microdynamics. Macrodynamics includes the overall scale and evolution trend of information propagation. CasCN and CasFlow are notable examples that focus on analyzing the overall scale and structural properties of propagation events at the larger network level. Microdynamics, on the other hand, reflects the local complexity and individual behaviors observed during information propagation. For example, TopoLSTM and SNIDSA specifically capture the subtle dynamics and behaviors exhibited by individual users during the propagation process. However, these studies only address one side of the problem and fail to bridge the gap between macro and micro dynamics.
[0005] Macrodynamics and microdynamics are often intertwined. On the one hand, individual user behavior directly affects the macrostructure of communication. For example, the user's activity and communication probability will affect the scale and trajectory of the entire event. On the other hand, the structure and scale of the network will also have a mutual impact on user behavior. For example, users tend to share information with higher communication rates with friends first.
[0006] Some studies have attempted to integrate the two dynamics, such as FOREST and DMT-LIC. However, these studies either prioritize microscopic dynamics to provide information for macroscopic predictions, or predict macroscopic and microscopic dynamics as parallel tasks, ignoring the effective learning of the dynamical entanglement between them. Therefore, learning and exploiting the dynamical entanglement of the two dynamics for specific tasks is an important issue that needs to be addressed. Summary of the invention
[0007] The present invention aims to solve the challenge of effectively utilizing the dynamic entanglement process of macro-micro dynamics in information propagation to enhance the prediction of multi-scale information propagation, and proposes a multi-scale information propagation prediction method based on macro-micro dynamics. Specifically, in order to simulate the dynamic process of information propagation, the information cascade is constructed into a time series network and the local propagation characteristics are learned using the designed time series attention point process. At the same time, a general dynamic equation is defined to reflect the evolutionary pattern of the scale of the propagation network. In order to solve the complexity of the large-scale network formed by multiple information cascades, the information cascade is constructed into a hypergraph and the global propagation characteristics are learned using a hypergraph convolutional network. Finally, a feature decomposition module is designed, which provides a mechanism that can effectively decouple local propagation features and global propagation features, more flexibly process information at the micro and macro levels, and provide more targeted input for subsequent prediction tasks.
[0008] The present invention is based on the multi-scale information propagation prediction method of macro-micro dynamics, which is implemented by the following steps:
[0009] Step 1: Read the social network of public datasets used for information diffusion prediction (such as Christianity, Twitter, etc.) and build a social graph. The social network structure reveals the connections between users and also reflects the user preferences of a specific community, which has an important impact on the performance of the information diffusion prediction model.
[0010] Step 2: Use a multi-layer graph convolutional network (GCN) to learn the user social structure features in the social graph and use them as the initial features of user nodes in the propagation time graph and propagation hypergraph.
[0011] Step 3: Read the information cascade sequence in the data set and construct a propagation time series graph. In this time series network, each edge connecting two nodes has a timestamp. This structure can reflect its dynamic evolution over time while maintaining the structure of the propagation network.
[0012] Step 4: Read the information cascade sequence in the data set and construct a propagation hypergraph. The hypergraph structure can accurately reflect the contextual relationship within the cascade and the interactive influence between different cascades.
[0013] Step 5: For the propagation time sequence graph, the macro-micro dynamics embedding (MMDE) is used to integrate micro and macro dynamics, simulate the information propagation process, and obtain local propagation features. From the perspective of micro dynamics, the establishment of edges is regarded as a propagation event, and the temporal attention point process is used to capture the structural and temporal properties of user embeddings. From the perspective of macro dynamics, the inherent evolutionary pattern of the network scale is defined as a dynamic equation with user embedding as a parameter. In this step, the initial features of the nodes of the propagation time sequence graph are the user social structure features in step 2. The user social structure features are processed by MMDE to obtain local propagation features.
[0014] Step 6: For the propagation hypergraph, a hypergraph neural network (HGNN) is used to capture the interaction between the cascade and the user to obtain the global propagation feature. In this step, the node feature of the propagation hypergraph is the user social structure feature in step 2. The user social structure feature is passed through HGNN to obtain the global propagation feature.
[0015] Step 7: Use the local propagation features and the global propagation features as the input of the propagation feature decoupling module, which can organically integrate and decouple the two features to extract effective features for micro prediction tasks and macro prediction tasks.
[0016] Step 8: Use the two outputs of the propagation feature decoupling module, that is, the micro features for the micro prediction task and the macro features for the macro prediction task, as the inputs of the two linear layers for prediction, respectively, to predict the user's infection probability at the next moment and the final size of the cascade, and calculate the corresponding task loss.
[0017] Step 9: Minimize the overall loss and repeat steps 5-8 to optimize the model until the predetermined number of iterations is completed.
[0018] The present invention has the beneficial effects:
[0019] The present invention proposes a multi-scale information diffusion prediction model based on macro-micro dynamics, and based on the theoretical principles of complex network dynamics, it realizes the accurate prediction of the dynamics of information diffusion in social networks. Specifically, this technology adopts a method that combines temporal network learning and hypergraph convolutional network learning, effectively capturing the local and global features in the information diffusion process, and decoupling these two features through a feature decomposition module, thereby making more accurate predictions of information diffusion behavior at the micro and macro levels. This prediction method has significantly improved the understanding of the social structure between users, the temporal dynamic evolution of information diffusion, and the mutual influence between different information flows, providing a new and efficient solution for the field of information diffusion prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is the overall framework diagram of the present invention;
[0021] Figure 2 It is a schematic diagram of the macro-micro dynamics embedding (MMDE) method used in the present invention. DETAILED DESCRIPTION
[0022] The following figure further illustrates the present invention in combination with the accompanying drawings and specific embodiments.
[0023] The present invention can be used in the field of public opinion analysis, aiming to use the observed user behavior data and the potential mechanisms and principles of information dissemination to predict the next affected user and the scope of influence of the information.
[0024] like Figure 1 As shown in Figure 1, the multi-scale information diffusion prediction method based on macro-micro dynamics has the following specific steps: Step 1: Read the social network in the dataset and build a social graph. The social network structure reveals the connections between users and also reflects the user preferences of a specific community, which has an important impact on the performance of the information diffusion prediction model. The social graph can be represented as: in is the point set representing the user, ε S is an edge set. S Each edge e in i,j =(u i ,u j ) represents user u i and u j Social graph The structure of can be expressed by the adjacency matrix A S It means that in the adjacency matrix, if e i,j ∈ε S Then the adjacency matrix represents user u i and u j There are elements with social relationships between them. i,j =1, otherwise A i,j =0.
[0025] Step 2: Use a multi-layer graph convolutional network (GCN) to learn the user social structure features in the social graph and use them as the initial features of user nodes in the propagation time graph and propagation hypergraph. User social structure characteristics at layer l Updated via:
[0026]
[0027] Where σ is the ReLU activation function, is the trainable weight matrix, and It is a ring graph G S The adjacency matrix and degree matrix of . The initial homomorphic embedding matrix Randomly initialized by normal distribution. After two layers of GCN, the final social structure feature representation X can be obtained S . Social structure characteristics X S It will be used as the initial features of nodes in the propagation timing graph and propagation hypergraph.
[0028] Step 3: Read the information cascade sequence in the data set and construct a propagation time sequence diagram. In the propagation time sequence diagram, each edge connecting two nodes has a specific timestamp. This structure can reflect its dynamic evolution over time while maintaining the structure of the propagation network. Given an information cascade set C = {c i |1≤i≤M}, follow the steps below to build the corresponding timing diagram
[0029] First, add all user nodes u in the cascade to the node set Make sure each node is included only once to prevent duplication. For cascading c m Each of Active users at all times Add the corresponding edge in the timing diagram. If the user Not a cascade c m The initial activated user, then add a directed edge in is the source node, is the destination node; otherwise, no edge is added. In this way, each edge represents a continuous information propagation process. Then, the timestamps in the cascade are added to the timestamp set in ascending order. middle.
[0030] Step 4: Read the information cascade sequence in the data set and construct a propagation hypergraph. The propagation hypergraph structure can accurately reflect the contextual relationship within the cascade and the interaction between different cascades. Each cascade is represented as a hyperedge connecting users participating in the same cascade. In this way, a propagation hypergraph is obtained. The node set includes all users participating in the communication, and the hyperedge set ε D It reflects the cascade propagation relationship. Propagation hypergraph H can be represented by an incidence matrix, defined as:
[0031]
[0032] Where u represents a node and e represents a hyperedge in the hypergraph. Each node in the hypergraph is associated with a node degree d(u), which is defined as For each hyperedge, its degree is defined as D u and D e The two diagonal matrices represent the degrees of nodes and hyperedges respectively.
[0033] Step 5: For the propagation time series diagram, the macro-micro dynamics embedding (MMDE) method is used to integrate micro and macro dynamics, simulate the information propagation process, and obtain local propagation characteristics, such as Figure 2As shown in the figure. From the perspective of micro-dynamics, the establishment of edges is regarded as a propagation event, and a temporal attention point process is used to capture the structural and temporal properties of user embeddings. From the perspective of macro-dynamics, the inherent evolutionary pattern at the network scale is defined as a dynamic equation with user embeddings as parameters. With the micro- and macro-dynamics constantly evolving and alternatingly affecting the learning of user embeddings, MMDE comprehensively captures the formation process and evolutionary pattern of information propagation in a unified way.
[0034] 1) Microscopic dynamics perspective
[0035] The present invention adopts the temporal attention process to learn the microscopic dynamics in the propagation time sequence graph. Formally, given a time sequence edge o = (u i ,u j ,t) (which can be regarded as a propagation event), the occurrence intensity of the event λ i,j (t) Embedded by user X L =[x i ] T To parameterize, where x i is the user embedding of user i. The initial user embedding in the propagation time series graph is the social structure feature X learned from the social graph S .
[0036] The intensity of an event includes the base intensity from the user itself and the historical influence from the two-way neighbors, which is defined as follows:
[0037]
[0038] in, is a function that measures user similarity. and They are user u i and u j The historical neighbors before time t. κ(tt p )=exp(-δ i (tt p )) is the time decay function, and the learnable decay rate is δ i >0, where t p is a past event (u i ,u p ,t p ) time. α and β are two attention coefficients determined by the hierarchical temporal attention mechanism.
[0039] Since the influence of past events varies over time, this paper adopts a temporal hierarchical attention mechanism to capture the dynamic and non-uniform influence of neighbors. For each neighbor’s influence, if u i Neighbor u p with u j Similar, then g(xp ,x j ) will increase the number of users u i with u j The possibility of forming an edge between them. p For events (u i ,u j ,t) depends on the importance of user u i , and changes with the evolution of the neighborhood structure. The attention coefficient is defined as follows:
[0040]
[0041]
[0042] Among them, a T is the attention vector and W is the weight matrix. This invention adds a time decay factor k (tt p ), so if t p Close to t, then user u p The event (u i ,u j ,t). Similarly, calculate α qj (t) to capture user u j The neighbors of the event (u i ,u j ,t).
[0043] For the collective influence of all neighbors, the historical neighbors are treated as a whole and the embedding value of each neighbor is In order to take into account the global attenuation of the influence, to average the time decay of past events. Then, calculate user u i All neighbors of the current event o=(u i ,u j ,t)’s attention, the calculation formula is as follows:
[0044]
[0045]
[0046] s(·) denotes a single-layer neural network. Since attention evolves with the microscopic dynamics within the propagation network, integrating the two aspects of attention in this way can preserve the structural and temporal properties in a coupled manner.
[0047] For user u i and u j The probability of establishing an edge at time t is defined as follows:
[0048]
[0049] The microscopic dynamics in the propagation graph are captured by minimizing the following objective function:
[0050]
[0051] 2) Macrodynamics
[0052] Macrodynamics describes the evolutionary pattern of the network scale and can be described by a specific dynamic equation. In addition, macrodynamics also influences the formation of network structure at a higher level, determining the total number of edges that will be generated. Encoding these high-level structures can improve the ability of the propagation time series graph to describe the propagation process. Therefore, the present invention defines a dynamic equation with user embedding as a parameter to capture the macrodynamics in the propagation graph.
[0053] The macroscopic dynamic equation is defined as follows:
[0054] Δe′(t)=n(t)r(t)(ξ(n(t)-1) γ )
[0055] Where Δe′(t) is the number of new edges added to the network at time t. n(t) is the number of users in the network at time t; r(t) is the link rate. ξ(n(t)-1) γ represents the average accessible neighbors. ξ and γ are parameters that can be learned through model optimization. This dynamic equation describes the process of network size evolution: as time t passes, n(t) users join the network. At the next moment, each user in the network will try to connect with other ξ(n(t)-1) γ Users establish links, and the link rate is r(t).
[0056] The link rate r(t) plays a crucial role in describing the evolution of network scale. It depends not only on the time information but also on the structural properties of the network. In order to capture these time and structural information, the present invention uses the time term t θ and user embedding parameterize the network link rate:
[0057]
[0058] Among them, θ is the time index and σ is the Sigmoid function.
[0059] As the network evolves, the change in the number of edges can be expressed as Δe(t1), Δe(t2), ..., where Δe(t i )=e(t i+1 )-e(t i ). In order to learn the parameters in the macroscopic dynamics equation, it is necessary to minimize the sum of squared errors:
[0060]
[0061] Among them, Δe′(t) is the predicted value of the number of newly added edges at time t.
[0062] Since micro and macro dynamics mutually drive the evolution of the propagation time series graph and alternately affect the learning process of user embedding, the present invention uses the following optimization method to uniformly capture the formation process of the topology structure and the evolution pattern of the network scale:
[0063]
[0064] where ∈ is a balancing hyperparameter.
[0065] Step 6: For the propagation hypergraph, a hypergraph neural network (HGNN) is used to capture the interaction between the cascade and the user to obtain the global propagation features. The interaction features between the cascade and the user fully reflect the information diffusion process from a global perspective. As a supplement to the local propagation features, it can provide more comprehensive contextual information.
[0066] Given a propagation hypergraph The propagation rule of HGNN can be defined as:
[0067]
[0068] Among them, the initial user embedding Equal to social structural characteristic X S Here, σ represents the ReLU function. The matrix D u and D e Represents the degree matrix of users and hyperedges in the association matrix H. Θ l is a trainable parameter of layer l.
[0069] Step 7: Use the local propagation features and the global propagation features as the input of the propagation feature decoupling module, which can organically integrate and decouple the two features to extract effective features for micro prediction tasks and macro prediction tasks.
[0070] To emphasize the interaction within the cascade, we further represent the target cascade by reading the embeddings of all activated users from the local and global propagation features, instead of directly using the last activated user. In the local feature X L and the global feature X G Find the corresponding user embedding and Arrange them in the original order of the cascade, and we get and
[0071] The propagation feature decoupling module consists of two parts: the accumulation structure for macro features and the stacked multi-head attention mechanism for micro features. and In the case of , the propagation feature decoupling module can be summarized as:
[0072]
[0073] in, Represents the microscopic features of the final output. Represent the microscopic and macroscopic features after the i-th decoupling block. i , i∈{1,2,3} is the i-th extracted macro feature The weight of .
[0074] Given user propagation characteristics Calculate the cascade sequence c m The expression h m The multi-head attention mechanism is:
[0075]
[0076] h m =[h 1,m ;h 2,m ;..;h head,m ]W O
[0077] in, and W O is a learnable transformation matrix. d is the dimension of embedding and head represents the number of attention heads.
[0078] In order to improve the accuracy of specific prediction tasks, this paper introduces the concept of "decoupling", thereby dividing the propagation features into two parts: micro and macro. By introducing a series of decoupling blocks, the features of specific tasks can be gradually extracted from the intermediate hidden variables. For the cascade sequence representation h, the decoupling process is as follows:
[0079] Y Ma =AvgPool(Padding(h))
[0080] Y Mi =hY Ma
[0081] In the decoupling process, AvgPool(·) is used for average pooling, and padding operation is used to maintain the sequence length. The above equation can be summarized as Y Mi ,Y Ma =Disent(h).
[0082] Step 8: Use the two outputs of the propagation feature decoupling module, that is, the micro features for the micro prediction task and the macro features for the macro prediction task, as the inputs of the two linear layers for prediction, respectively, to predict the user's infection probability at the next moment and the final size of the cascade, and calculate the corresponding task loss.
[0083] For macro prediction tasks, the goal is to predict the final cascade size in the future. The present invention calculates the information cascade c by the following formula: m The final size: Where W1 is the transformation matrix and b is the bias.
[0084] The macro prediction task is trained by minimizing the following loss function:
[0085]
[0086] Where M is the number of cascades, is the true value.
[0087] For the micro prediction task, the goal is to predict the next user u i The probability of being affected is p i : Where W2 is the transformation matrix, Mask m Used to block users who have been affected before prediction.
[0088] Micro-training is performed by minimizing the cross entropy loss:
[0089]
[0090] in, is the number of users, is the true probability. If user u i Participate in cascade c at step j m ,but otherwise
[0091] Step 9: Minimize the overall loss and repeat steps 5-8 to optimize the model until the predetermined number of iterations is completed. The overall loss of the model is defined as: where λ is the equilibrium parameter.
[0092] Table 1 shows the performance of the model in micro prediction tasks, and Table 2 shows the performance of the model in macro prediction tasks. The DEAD model proposed in this invention is significantly better than the existing methods in both types of tasks.
[0093] In Table 1, the DEAD model proposed in this paper is compared in performance with the models TopoLSTM, SNIDSA, Inf-VAE, DyHGCN, TAN-DRUD, MS-HGAT, DisenID that focus on micro prediction, and DMT-LIC and FOREST that focus on two types of prediction tasks. It can be seen from the observation results that DEAD always outperforms all the comparison models in micro prediction tasks. Compared with the best performing DisenIDP, the Hits index and MAP index of DEAD are improved by 6% and 13% respectively.
[0094] In Table 2, the DEAD model proposed in this paper is compared in performance with the models DeepCas, DeepHawkes, CasCN, CasFlow, and TCSE-net that focus on macro prediction, and the models DMT-LIC and FOREST that focus on two types of prediction tasks. It can be seen from the observations that DEAD always outperforms all the comparison models in macro prediction tasks. In the four datasets, the MSLE index of DEAD is at least 0.19 lower than that of the best comparison model CasFlow. This improvement may be attributed to the constraints imposed on the learning user embedding by the overall evolutionary trend of the propagation scale observed from the cascade.
[0095] Table 1 Micro-task prediction results
[0096]
[0097] Table 2 Macro task prediction results
[0098]
Claims
1. A multi-scale information propagation prediction method based on macro-micro dynamics, characterized by: The following steps are involved: Step 1: Read the social network of the data set used for information diffusion prediction and build a social graph; Step 2: Use a multi-layer graph convolutional network (GCN) to learn the user social structure features in the social graph and use them as the initial features of the user nodes in the propagation time graph and propagation hypergraph; Step 3: Read the information cascade sequence in the data set and construct the propagation timing graph and propagation hypergraph; Step 4: For the propagation time series diagram, the macro-micro dynamics are embedded in MMDE to integrate the micro and macro dynamics, simulate the information propagation process, and obtain the local propagation characteristics; Step 5: For the propagation hypergraph, the hypergraph neural network HGNN is used to capture the interaction between cascades and users to obtain global propagation features; Step 6: Use the local propagation features and the global propagation features as the input of the propagation feature decoupling module to organically integrate and decouple the two features; Step 7: Use the two outputs of the propagation feature decoupling module, the micro features for the micro prediction task and the macro features for the macro prediction task, as the inputs of the two linear layers for prediction, respectively, to predict the user's infection probability and the size of the cascade at the next moment, calculate the corresponding task loss, and perform reverse optimization training.
2. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 1 is characterized in that: The social graph is represented as: in is the point set representing the user, ε S is an edge set, ε S Each edge e in i,j =(u i ,u j ) represents user u i and u j social graph The structure of the adjacency matrix A S It means that in the adjacency matrix, if e i,j ∈ε S Then the adjacency matrix represents user u i and u j There are social relations between elements A i,j =1, otherwise A i,j =0.
3. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 2 is characterized in that: In the propagation timing diagram, each edge connecting two nodes has a timestamp. Given an information cascade set C = {c i |1≤i≤M}, construct the corresponding timing diagram The process is as follows: First, add all user nodes u in the cascade to the node set In , each node is included only once; Secondly, for the cascade c m Each of Active users at all times Add the corresponding edge in the timing diagram. If the user Not a cascade c m The initial activated user, then add a directed edge in is the source node, is the destination node; otherwise, no edge is added; each edge represents a continuous information dissemination process; Finally, add the timestamps in the cascade to the timestamp collection in ascending order middle.
4. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 3 is characterized in that: The propagation hypergraph structure Each cascade is represented as a hyperedge connecting users participating in the same cascade, where the node set includes all users participating in the communication, and the hyperedge set ε D It reflects the cascade propagation relationship, the propagation hypergraph Represent H using the incidence matrix, defined as: Where u represents a node and e represents a hyperedge in the hypergraph. Each node in the hypergraph is associated with a node degree d(u), which is defined as For each hyperedge, its degree is defined as D u and D e The two diagonal matrices represent the degrees of nodes and hyperedges respectively.
5. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 4 is characterized in that: In step 4, from the perspective of microdynamics, the establishment of edges is regarded as a propagation event, and the temporal attention point process is used to capture the structural and temporal properties of user embeddings; from the perspective of macrodynamics, the inherent evolutionary pattern of the network scale is defined as a dynamic equation with user embeddings as parameters.
6. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 5 is characterized in that: The microscopic dynamics angle is specifically implemented as follows: The temporal attention process is used to learn the micro-dynamics in the propagation time series graph. Given a time series edge o = (u i ,u j ,t), and regard it as a propagation event, the occurrence intensity of the event is λ i,j (t) Embedded by user X L =[x i ] T Parameterization, where x i is the user embedding of user i, and the initial user embedding in the propagation time sequence graph is the social structure feature X learned from the social graph. S ; The intensity of an event includes the base intensity from the user itself and the historical influence from the two-way neighbors, which is defined as follows: in, is a function that measures user similarity. and They are user u i and u j The historical neighbors before time t, κ(tt p )=exp(-δ i (tt p )) is the time decay function, and the learnable decay rate is δ i >0, where t p is a past event (u i ,u p ,t p ) time, α and β are two attention coefficients determined by the hierarchical temporal attention mechanism; A temporal hierarchical attention mechanism is used to capture the dynamic and non-uniform influence of neighbors. For each neighbor’s influence, if u i Neighbor u p with u j Similar, then g(x p ,x j ) will increase the number of users u i with u j The possibility of forming an edge between p For events (u i ,u j ,t) depends on the importance of user u i , and changes with the evolution of the neighborhood structure; the attention coefficient is defined as follows: Among them, a T is the attention vector, W is the weight matrix, is a connection operation; adding a time decay factor κ(tt p ), if t p Close to t, user u p The event (u i ,u j ,t) has an impact; similarly, calculate α qj (t) to capture user u j The neighbors of the event (u i ,u j ,t)’s influence; For the collective influence of all neighbors, the historical neighbors are treated as a whole and the embedding value of each neighbor is use Average the time decay of past events; then, calculate user u i All neighbors of the current event o=(u i ,u j ,t)’s attention, the calculation formula is as follows: s(·) represents a single-layer neural network; For user u i and u j The probability of establishing an edge at time t is defined as follows: The microscopic dynamics in the propagation graph are captured by minimizing the following objective function:
7. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 6 is characterized in that: The specific implementation process of the macro-dynamics perspective is as follows: The macroscopic dynamic equation is defined as follows: Δe′(t)=n(t)r(t)(ξ(n(t)-1) γ ) Where Δe′(t) is the number of new edges in the network at time t; n(t) is the number of users in the network at time t; r(t) is the link rate; ξ(n(t)-1) γ represents the average accessible neighbors; ξ and γ are parameters learned through model optimization. The dynamic equation describes the process of network scale evolution: as time t passes, n(t) users join the network; at the next moment, each user in the network will try to connect with other ξ(n(t)-1) γ Users establish links, and the link rate is r(t); Use the time term t θ and user embedding parameterize the network link rate: Among them, θ is the time index, σ is the Sigmoid function; As the network evolves, the number of edges changes as Δe(t1), Δe(t2), ..., where Δe(t i )=e(t i+1 )-e(t i ); To learn the parameters in the macrodynamic equations, minimize the sum of squared errors: Among them, Δe′(t) is the predicted value of the number of newly added edges at time t; The following optimization method is used to uniformly capture the formation process of the topology structure and the evolution pattern of the network scale: where ∈ is a balancing hyperparameter.
8. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 7 is characterized in that: The specific implementation process of the propagation feature decoupling module is as follows: Given a target cascade In the local feature X L and the global feature X G Find the corresponding user embedding and Arrange them in the original order of the cascade, and we get and The propagation feature decoupling module consists of two parts: an accumulation structure for macro features and a stacked multi-head attention mechanism for micro features. and In the case of , the propagation feature decoupling module is summarized as: in, represents the microscopic features of the final output, Represent the microscopic and macroscopic features after the i-th decoupling block, respectively, and W i , i∈{1,2,3} is the i-th extracted macro feature The weight of Given user propagation characteristics Calculate the cascade sequence c m The expression h m The multi-head attention mechanism is: h m =[h 1,m ;h 2,m ;...;h head,m ]W O in, and W O is a learnable transformation matrix, d is the dimension of embedding, head indicates the number of attention heads; For the concatenated sequence representation h, the decoupling process is as follows: Y Ma =AvgPool(Padding(h)) Y Mi =h-Y Ma In the decoupling process, AvgPool(·) is used for average pooling, and padding operation is used to maintain the sequence length. The above equation is summarized as Y Mi , Y Ma =Disent(h).
9. The multi-scale information propagation prediction method based on macro-micro dynamics according to claim 8 is characterized in that: The specific process of calculating the corresponding task loss in step 7 is as follows: For the macro prediction task, the goal is to predict the final cascade size in the future and calculate the information cascade c m The final size: Where W1 is the transformation matrix and b is the deviation; The macro prediction task is trained by minimizing the following loss function: Where M is the number of cascades, is the true value; For the micro prediction task, the goal is to predict the next user u i The probability of being affected is p i : Where W2 is the transformation matrix, Mask m Used to block users who have been affected before prediction; Micro-training is performed by minimizing the cross entropy loss: in, is the number of users, is the true probability; if user u i Participate in cascade c at step j m ,but otherwise
Citation Information
Cited By
Information propagation prediction method and system and medium
CN119202490A
