WO2023200520A1 - Temporal co-contrastive learning-based node representation generation - Google Patents
Temporal co-contrastive learning-based node representation generation Download PDFInfo
- Publication number
- WO2023200520A1 WO2023200520A1 PCT/US2023/012368 US2023012368W WO2023200520A1 WO 2023200520 A1 WO2023200520 A1 WO 2023200520A1 US 2023012368 W US2023012368 W US 2023012368W WO 2023200520 A1 WO2023200520 A1 WO 2023200520A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- view
- representation
- temporal
- time step
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/0895—Weakly supervised learning, e.g. semi-supervised or self-supervised learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/048—Activation functions
Definitions
- a dynamic graph may be usually represented as a sequence of graph snapshots, and these graph snapshots correspond to different time steps.
- a dynamic graph is more suitable for recommendation system modeling. This is because, in a recommendation system, nodes may have dynamic semantics that change over time, and a dynamic graph may characterize such temporal evolution characteristic more effectively.
- Interaction data may be converted into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges.
- a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step may be generated.
- a comprehensive node representation of the node at the time step may be generated based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step.
- the comprehensive node representation may be optimized based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
- FIG.l illustrates an exemplary process of temporal co-contrastive learning-based node representation generation according to an embodiment.
- FIG.2 illustrates an example of converting interaction data into a dynamic graph according to an embodiment.
- FIG.3 illustrates an example of generating a snapshot view node representation according to an embodiment.
- FIG.4 illustrates an example of generating a temporal view node representation according to an embodiment.
- FIG.5 illustrates an example of generating an interaction view node representation according to an embodiment.
- FIG.6 illustrates a flowchart of an exemplary method for temporal co-contrastive learning-based node representation generation according to an embodiment.
- FIG.7 illustrates an exemplary apparatus for temporal co-contrastive learning-based node representation generation according to an embodiment.
- FIG.8 illustrates an exemplary apparatus for temporal co-contrastive learning-based node representation generation according to an embodiment.
- Dynamic graph modeling may broadly refer to the learning of a graph representation of a dynamic graph or node representations of nodes in the dynamic graph, which may also be referred to as, e.g., dynamic graph embedding learning, etc.
- Existing dynamic graph modeling takes network dynamics and snapshot structures into account, which typically first models node representations within each snapshot separately and then aggregates dynamics across snapshots. The existing dynamic graph modeling does not consider temporal message passing among snapshots. Since each snapshot only includes interactions among nodes occurred within a corresponding time window, separate modeling of each snapshot will also cause interactions among nodes even sparser. Moreover, separate modeling of each snapshot will also face the problem of lacking supervision signals, which reduces accuracy of node representations.
- a dynamic graph-based recommendation system may perform prediction for links among nodes, and the links reflect predicted interaction behaviors among the nodes. Due to the above limitations of the existing dynamic graph modeling, the current modeling of a dynamic graph-based recommendation system does not treat short-term interaction behaviors and long-term interaction behaviors differently, but treats short-term interaction behaviors and long-term interaction behaviors in the same approach.
- the embodiments of the present disclosure propose an architecture or mechanism of adopting temporal co-contrastive learning-based node representation generation in dynamic graph modeling, so as to generate more accurate node representations for a dynamic graph.
- the recommendation system may perform temporal-sensitive recommendation tasks with higher effectiveness and robustness, wherein the recommendation tasks may include, e.g., prediction for links among nodes, etc.
- the embodiments of the present disclosure apply contrastive learning to dynamic graph modeling, so as to provide supervision signals from data of a dynamic graph itself, and thereby effectively alleviate the data dispersion problem of dynamic graph. Contrastive learning can also preserve dynamic graph semantics in terms of short-term user interests and long-term user interests.
- the embodiments of the present disclosure propose enhanced contrastive views in different granularities for node-level representation learning, e.g., snapshot view, temporal view, interaction view, etc. These views are task-specific, e.g., specific to recommendation tasks performed by a recommendation system. Benefiting from node representations generated under these views respectively, the embodiments of the present disclosure may effectively capture both local structural semantics and global structural semantics.
- the embodiments of the present disclosure fully consider characteristics of dynamic graphs, e.g., rich temporal information and sequence relationship among snapshots, in the design of contrastive tasks for contrastive learning.
- the embodiments of the present disclosure propose a temporal-consecutive node contrastive task for explicitly learning short-term user interests from short-term interaction behaviors.
- the temporal-consecutive node contrastive task may be established for snapshot view, which may provide additional supervision signals, enhance message passing among consecutive snapshots, learn short-term node representations, etc. for snapshot-level node representation learning.
- the embodiments of the present disclosure propose a global view contrastive task for explicitly learning long-term user interests from long-term interaction behaviors.
- the global view contrastive task may be established for temporal view and interaction view, which enables the temporal view and the interaction view to cooperatively supervise each other and learn long-term node representations by performing contrast between the temporal view and the interaction view.
- a node representation may also be referred to as, e.g., node embedding, etc.
- user interest may refer to a user's interest in an item, which may cause the user to perform an interaction behavior to the item.
- the temporal-consecutive node contrastive task and the global view contrastive task may be used together for implementing temporal-based co-contrastive learning.
- the embodiments of the present disclosure can capture both short-term user interests and long-term user interests, thereby achieving more consistent performance over different time spans.
- the embodiments of the present disclosure may implement high-quality dynamic graph modeling through the temporal co-contrastive learning-based node representation generation architecture, and therefore may be applied to a wider range of scenarios, e.g., recommendation systems, etc.
- a dynamic graph-based recommendation system nodes in a dynamic graph may be abstracted into user nodes corresponding to users and item nodes corresponding to items. Items may widely refer to various objects with which users interact. Items may have different meanings in different specific application scenarios, e.g., items in a news recommendation scenario may refer to news recommended to users, items in a movie recommendation scenario may refer to movies recommended to users, items in a product recommendation scenario may refer to products recommended to users, etc.
- the recommendation system may perform prediction for links among nodes, e.g., prediction for links or edges between user nodes and item nodes.
- a predicted link or edge may reflect an interaction behavior between two nodes, e.g., reflecting an interaction behavior between a user node and an item node.
- interaction behaviors may have different meanings, e.g., users’ behaviors of clicking, browsing, purchasing, commenting, adding to favorites, etc., to items.
- a dynamic graphbased recommendation system adopting the embodiments of the present disclosure can perform more accurate prediction and recommendation with higher effectiveness and robustness.
- FIG.l illustrates an exemplary process 100 of temporal co-contrastive learning-based node representation generation according to an embodiment.
- the process 100 may be performed for implementing parameter learning of temporal co-contrastive learning-based node representation generation architecture, thereby effectively accomplishing dynamic graph modeling.
- Interaction data 102 may be existing data about interactions between a plurality of users and a plurality of items.
- the interaction data 102 may refer to temporal-sensitive information about user-item interactions.
- the interaction data 102 may include an interaction record at each time point in a sequence of time points, and the interaction record may indicate, e.g., there exist interactions between which users and which items at that time point, there exists no interaction between which users and which items at that time point, etc.
- the interaction data 102 may adopt various formats, e.g., table, chart, text, etc.
- the interaction data 102 may be converted into a corresponding dynamic graph.
- the dynamic graph may include a set of snapshots.
- Each snapshot may correspond to a time step, wherein a time step may also be referred to as a time point.
- a timeline may be divided into a plurality of time steps through time windows of predetermined length, and a snapshot at each time step may be used for characterizing interactions occurred within a time window associated with this snapshot, wherein the time window associated with the snapshot may refer to a time window immediately before this time step.
- Each snapshot may be a static graph including a set of nodes and a set of edges.
- the set of nodes may include nodes involved in interactions occurred within a time window associated with the snapshot, e.g., user nodes and item nodes.
- Each edge in the set of edges may indicate that there exists interaction between a user node and an item node linked by the edge within a time window associated with the snapshot. Therefore, the set of snapshots in the dynamic graph may characterize node interaction information observed at different time steps, respectively.
- node representations of different views may be generated for the dynamic graph obtained at 110.
- view may broadly refer to a processing perspective or processing approach for information or data in a dynamic graph.
- a snapshot view may refer to performing semantic extraction to each snapshot individually so as to capture local semantics.
- a snapshot view may use a graph attention (GAT) network for capturing local structure of nodes within a snapshot and generate local semantic representations of the nodes.
- GAT graph attention
- a node representation generated for a node under a snapshot view may be referred to as a snapshot view node representation.
- the operations at 120 may include generating a snapshot view node representation 122 of each node in the dynamic graph at each snapshot or time step. For example, for a target node, at a target time step, a snapshot view node representation of the target node at the target time step may be generated through applying a graph attention network to a snapshot corresponding to the target time step.
- a temporal view which is a global view.
- a temporal view may refer to capturing time-aware global semantics over a temporal sequence of a plurality of snapshots.
- a temporal view may generate a global semantic representation of a node through aggregating a plurality of snapshot view node representations of the same one node at a plurality of snapshots or time steps.
- a node representation generated for a node under a temporal view may be referred to as a temporal view node representation.
- the operations at 120 may include generating a temporal view node representation 124 of each node in the dynamic graph at each time step.
- a temporal view node representation of the target node at the target time step may be generated through aggregating at least one historical snapshot view node representation of the target node.
- the at least one historical snapshot view node representation may include at least one snapshot view node representation of the target node at at least one time step before the target time step and optionally a snapshot view node representation of the target node at the target time step.
- an interaction view which is a global view.
- An interaction view may refer to capturing global semantics from global node interaction information in a task-specific approach.
- an interaction view may, under guidance by global user-item interaction information, generate a global semantic representation of a node from snapshot view node representations of interacted nodes having historical interactions with the node.
- a node representation generated for a node under an interaction view may be referred to as an interaction view node representation.
- the operation at 120 may include generating an interaction view node representation 126 of each node in the dynamic graph at each time step.
- At a target time step at least one interacted node having historical interaction with the target node may be firstly identified.
- the interacted node may refer to a node that has interaction with the target node at at least one time step before the target time step and optionally at the target time step, e.g., the target node and the interactive node have a link or an edge in at least a certain snapshot.
- an interaction view node representation of the target node at the target time step may be generated through aggregating the at least one snapshot view node representation of the at least one interacted node at the target time step.
- a comprehensive node representation may be generated based on node representations of different views.
- a comprehensive node representation is a node representation which is obtained through combining a snapshot view, a temporal view and an interaction view and merges local semantics and global semantics.
- a comprehensive node representation may be generated based on a snapshot view node representation, a temporal view node representation and an interaction view node representation.
- a multi-layer perceptron (MLP) may be adopted for generating a comprehensive node representation based on a snapshot view node representation, a temporal view node representation and an interaction view node representation.
- MLP multi-layer perceptron
- the operation at 130 may include generating a comprehensive node representation of each node in the dynamic graph at each time step. For example, for a target node, at a target time step, a comprehensive node representation of the target node at the target time step may be generated through applying a multi-layer perceptron to a snapshot view node representation, a temporal view node representation and an interaction view node representation of the target node at the target time step.
- contrastive learning tasks such as a temporal-consecutive node contrastive task 140 and a global view contrastive task 150, may be established for providing additional supervision signals from the perspective of local structures and long-term interests respectively.
- the temporal-consecutive node contrastive task 140 and the global view contrastive task 150 may be used together for implementing temporal -based co-contrastive learning.
- the temporal-consecutive node contrastive task 140 may be established for a snapshot view.
- the same node should have similar semantic meanings in two consecutive snapshots, which forms the basis of short-term user interest.
- Two snapshot view node representations of the same node at two consecutive snapshots may form a positive sample pair for contrastive learning.
- the difference between the two snapshot view node representations of the node at the two consecutive snapshots is a good perturbation result for performing contrastive learning to acquire temporal changes among different snapshots.
- the temporal-consecutive node contrastive task 140 may encourage message passing among consecutive snapshots and facilitate to learn short-term node representations.
- a snapshot view node representation of the target node at the target time step and a previous snapshot view node representation of the target node at the previous time step may be taken as a positive sample pair for contrastive learning.
- the global view contrastive task 150 may be established for a temporal view and an interaction view, which is used for learning a long-term node representation within the temporal view and the interaction view, and capturing long-term user interests based on these two different global views such as the temporal view and the interaction view.
- the temporal view and the interaction view may not only enhance information diversity, but also cooperatively supervise each other to form a positive sample pair for contrastive learning. For example, for a target node, at a target time step, a temporal view node representation and an interaction view node representation of the target node at the target time step may be taken as a positive sample pair for contrastive learning.
- the comprehensive node representation may be optimized based at least on the temporal- consecutive node contrastive task 140 and the global view contrastive task 150.
- optimization for comprehensive node representation may widely refer to optimization for various parameters in the node representation generation architecture as reflected by, e.g., the process 100, so as to improve the quality or accuracy of the comprehensive node representation.
- a loss function may be established based at least on the temporal-consecutive node contrastive task 140 and the global view contrastive task 150, and the comprehensive node representation may be optimized based on the loss function.
- the comprehensive node representation may be optimized through minimizing a loss calculated via the loss function.
- the process 100 may also include establishing a graph context prediction task 160.
- the graph context prediction task 160 may be used for preserve temporal structure around a node from consecutive snapshots across a plurality of time steps.
- the graph context prediction task 160 may also be used for optimizing the comprehensive node representation. For example, the above- mentioned loss function established based on the temporal-consecutive node contrastive task 140 and a global view contrastive task 150 may be further based on the graph context prediction task 160.
- parameter learning of the temporal co-contrastive learning-based node representation generation architecture may be implemented, thereby accomplishing dynamic graph modeling. Further, the node representation generation architecture may be applied for recommendation tasks in a dynamic graph-based recommendation system.
- the node representation generation architecture may be applied for recommendation tasks in a dynamic graph-based recommendation system.
- it may be predicted, based on comprehensive node representations of the two nodes at the current time step, whether there exists interaction between the two nodes at the next time step, e.g., whether there exists a link or an edge between the two nodes.
- the two nodes may be a user node and an item node respectively.
- an external logistic regression classifier may be trained for predicting, based on a comprehensive node representation of a first node at the current time step and a comprehensive node representation of a second node at the current time step, whether there exists interaction between the first node and the second at the next time step.
- a dynamic graph may be represented as a set of snapshots, e.g., a sequence of static graph snapshots. Each snapshot corresponds to a time step.
- g 1 may be represented as ], wherein V t represents a set of nodes included in g , and E t represents a set of edges or links included in g 1 .
- interaction data may include information about interactions between users and items, e.g., a user clicks on an item, a user purchases an item, etc.
- FIG.2 illustrates an example 200 of converting interaction data into a dynamic graph according to an embodiment.
- interaction data 210 includes information about interactions between a set of users and a set of items , wherein VI is the number of users and V2 is the number of items.
- the interaction data 210 may include records about there exist interactions between which users and which items at each time point. It should be understood that although the interaction data 210 is shown as a chart in FIG.l, the interaction data 210 may adopt any other formats in practice.
- the interaction data 210 may be converted into a corresponding dynamic graph 220.
- the dynamic graph 220 includes a set of snapshots .
- Each snapshot corresponds to a time step.
- the snapshot g 1 corresponds to a time step
- the snapshot corresponds to a time step 2, and so on.
- each snapshot may have an associated time window.
- a time window associated with the snapshot g 1 is a time window immediately before the time step -
- Each snapshot includes information about interactions among nodes that occurred within an associated time window.
- the snapshot g 1 includes information about interactions among nodes that occurred within the time window l
- Interaction information is presented visually in a snapshot in the form of nodes and edges.
- the snapshot includes user nodes and item nodes .
- the snapshot g 1 also includes edges indicating there exists interaction between two linked nodes, e.g., an edge between and , an edge between and i 2 , an edge between and 5 etc. It should be understood that, preferably, a time window associated with each snapshot may have the same predetermined length.
- a snapshot view node representation of each node at each time step may be generated.
- initial node representations of all nodes in a D-dimensional continuous space at a time step t are represented by , wherein a node n may denote a user node and an item node.
- the initial node representations may be generated through any approaches, e.g., randomly generated, previously designated, etc.
- the initial node representation may be converted into a higher-level snapshot view node representation through, e.g., a graph attention network.
- the graph attention network is a neural network architecture operating on graph- structured data, which leverages self-attention, multi-head attention, etc.
- a snapshot view node representation of a node n at a time step t may be calculated as: Equation (1) wherein N n is a set of node A s one-hop neighbor nodes, ⁇ J is an activation function used in the graph attention network (e.g., LeakyReLU), W k is a learnable parameter matrix for the Ath multihead attention, K is the number of multi-head attentions, a k v is a correlation coefficient between node n and node v and delegates the influence weight of neighbor node v on node n.
- Equation (1) a snapshot view node representation of each node at each time step may be obtained.
- a snapshot view node representation may reflect static user interests.
- FIG.3 illustrates an example 300 of generating a snapshot view node representation according to an embodiment.
- a graph attention network 310 is applied to a set of snapshots ⁇ g g 2 , —> g T ⁇ respectively, a set of snapshot view node representations may be generated for each snapshot respectively according to Equation (1).
- snapshot view node representations and h may be generated for nodes u , and included in the snapshot g 2 , respectively.
- a temporal view node representation of each node at each time step may be generated.
- a temporal view node representation is to capture time-aware changes in a graph structure over a plurality of snapshots.
- a sequence represents a set of historical snapshot view node representations of the node n, which includes t snapshot view node representations of the node n from a time step 1 to a time step /, wherein the node n may denote a user node and an item node.
- a temporal view node representation of the node n at the time step t may be calculated as:
- Equation (4) wherein MLP denotes a linear layer or a multi-layer perceptron, is a correlation coefficient and denotes the influence weight of time step tj on time step t.
- the process of Equation (2) to Equation (4) may implement the aggregation of historical snapshot view node representations of the node n, so as to generate a temporal view node representation of the node n at the time step t.
- Equation (2) to Equation (4) a temporal view node representation of each node at each time step may be obtained.
- FIG.4 illustrates an example 400 of generating a temporal view node representation according to an embodiment.
- a node u as an example, it is assumed that it is desired to generate a temporal view node representation of the node u at a time step t.
- historical snapshot view node representations of the node may be extracted, e.g., snapshot view node representations at time steps ⁇ 1,2, ... , t ⁇ .
- a temporal view node representation of the node at the time step t may be generated through aggregating .
- an interaction view node representation of each node at each time step may be generated.
- an interaction view node representation of a target node may be generated with snapshot view node representations of interacted nodes having historical interactions with the target node.
- an interaction view node representation of a user node may be generated through aggregating snapshot view node representations of item nodes having historical interactions with the user node
- an interaction view node representation of an item node may be generated through aggregating snapshot view node representations of user nodes having historical interactions with the item node.
- Equation (7) wherein MLP denotes a linear layer or a multi-layer perceptron, W e is a learnable parameter, is a correlation coefficient and denotes the influence weight of item node on user node u.
- the process of Equation (5) to Equation (7) may implement the aggregation of snapshot view node representations of item nodes having historical interactions with the user node u at the time step /, so as to generate an interaction view node representation of the user node u at the time step t.
- an interaction view node representation of each node at each time step may be obtained.
- an interaction view node representation hf of an item node i at a time step t may be calculated.
- an interaction view node representation of the item node i at the time step t may be generated through aggregating snapshot view node representations of user nodes having historical interactions with the item node i at the time step t.
- hf may be uniformly represented as hf, wherein the node n may denote a user node and an item node.
- FIG.5 illustrates an example 500 of generating an interaction view node representation according to an embodiment.
- a node u it is assumed that it is desired to generate an interaction view node representation of a node u at a time step t.
- interacted nodes having historical interactions with the node may be identified, e.g., nodes .
- Interacted nodes may be identified from snapshots corresponding to time steps ⁇ 1,2, e.g., taking those nodes having edges or links with the node as interacted nodes.
- an interaction view node representation of the node u at the time step t may be generated through aggregating snapshot view node representations of the interacted nodes at the time step t.
- a temporal-consecutive node contrastive task may be established.
- a dynamic graph involves rich information in different snapshots, and thus it is important to learn temporal-sensitive semantics in a self-supervised approach.
- the same node should have similar semantic meanings in two consecutive snapshots.
- the same node n should have similar semantic meanings in the two consecutive snapshots.
- snapshot view node representations and of the node n in the two snapshots may form a positive sample pair for contrastive learning.
- the temporal-consecutive node contrastive task encourages message passing between consecutive snapshots, for the generation of short-term node-level representations.
- Temporal-consecutive node contrastive taskbased learning may include adopting the following loss function: Equation (8) wherein is a loss calculated for the temporal-consecutive node contrastive task, V represents a set of all nodes, and P t+1 (n) denotes a set of negative samples of the node n at a time step t + 1.
- P t+1 (n) may include nodes randomly sampled, as negative samples, from nodes different from the node n, which may be used for establishing negative sample pairs.
- the temporal-consecutive node contrastive task may provide additional supervision signals with the established positive sample pairs and negative sample pairs.
- the above loss function may at least learn short-term interest bias through temporal-consecutive edge changes.
- a global view contrastive task may be established.
- a temporal view node representation h n [ and an interaction view node representation h may be generated from a temporal view and an interaction view.
- These two node representations of the node n at the time step t may form a positive sample pair for contrastive learning.
- nodes, which are taken as negative samples may be randomly sampled from nodes that do not have direct links with the node n, for establishing negative sample pairs.
- Equation (9) W 91 , W 92 , b 91 and b 92 are learnable parameters.
- Global view contrastive task-based learning may include adopting the following loss function: wherein £ GCL is a loss calculated for the global view contrastive task, V denotes a set of all nodes, and P t+1 (n) denotes a set of negative samples of the node n.
- the global view contrastive task may provide additional supervision signals with the established positive sample pairs and negative sample pairs.
- the above loss function may capture global semantic information and long-term interests through two types of global view representations.
- a comprehensive node representation may be generated based on node representations of different views. Assuming that a snapshot view node representation , a temporal view node representation , and an interaction view node representation of a node n at a time step t have been calculated, a comprehensive node representation of the node n at the time step t may be calculated as: Equation (11) wherein MLP denotes a multi-layer perceptron. According to the embodiments of the present disclosure, optionally, a graph context prediction task may be established.
- the graph context prediction task may motivate each node to perceive neighbor nodes in adjacent time steps, so as to preserve temporal structure around the node from consecutive snapshots across a plurality of time steps.
- the learning of the graph context prediction task may include adopting the following loss function:
- Equation (12) wherein £ GC p is a loss calculated for the graph context prediction task, V denotes a set of all nodes, ⁇ is a sigmoid function, denotes a set of nodes that co-occur with the node n on fixed- length random walks, ⁇ is a negative sampling ratio and is a tunable hyper-parameter for balancing positive samples and negative samples, and P t+1 (n) denotes a set of negative samples of the node n.
- nodes which are taken as positive samples, may be those nodes that have interaction relationship with the node n determined based on, e.g., random walks, and nodes, which are taken as negative samples, may be nodes randomly sampled from nodes that do not have interaction relationship with the node n.
- a comprehensive node representation may be optimized at least with a loss function.
- Equation (13) wherein is a calculated comprehensive loss, and is a balancing coefficient. Since and are co-contrastive learning tasks and have the same scale in calculation, and L may be combined together in Equation (13). Moreover, it should be understood that in Equation (13) is optional, and thus the above loss function may also be established only based on L and
- the loss function in Equation (13) may be used for optimizing a comprehensive node representation.
- parameters in the node representation generation architecture according to the embodiments of the present disclosure may be learned through minimizing the loss calculated via Equation (13).
- the above optimizing process may adopt, e.g., Adam optimizer, etc.
- parameter updating may be performed according to Equation (13).
- FIG.6 illustrates a flowchart of an exemplary method 600 for temporal co-contrastive learning- based node representation generation according to an embodiment.
- interaction data may be converted into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges.
- a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step may be generated.
- a comprehensive node representation of the node at the time step may be generated based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step.
- the comprehensive node representation may be optimized based at least on a temporal- consecutive node contrastive task and a global view contrastive task.
- the interaction data may be data about interaction between a plurality of users and a plurality of items.
- the set of nodes may comprise user nodes and item nodes.
- Each edge in the set of edges may indicate that there exists interaction between a user node and an item node linked by the edge within a time window associated with the snapshot.
- the generating a snapshot view node representation may comprise: generating the snapshot view node representation of the node at the time step through applying a graph attention network to a snapshot corresponding to the time step.
- the generating a temporal view node representation may comprise: generating the temporal view node representation of the node at the time step through aggregating at least one historical snapshot view node representation of the node.
- the generating an interaction view node representation may comprise: identifying at least one interacted node having historical interaction with the node; and generating the interaction view node representation of the node at the time step through aggregating at least one snapshot view node representation of the at least one interacted node at the time step.
- the generating a comprehensive node representation may comprise: generating the comprehensive node representation of the node at the time step through applying a multi-layer perceptron to the snapshot view node representation, the temporal view node representation and the interaction view node representation.
- the temporal-consecutive node contrastive task may at least comprise: taking the snapshot view node representation of the node at the time step and a previous snapshot view node representation of the node at the previous time step as a positive sample pair for contrastive learning.
- the global view contrastive task may at least comprise: taking the temporal view node representation and the interaction view node representation of the node at the time step as a positive sample pair for contrastive learning.
- the optimizing the comprehensive node representation may comprise: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
- the comprehensive node representation may be optimized further based on a graph context prediction task.
- the method 600 may further comprise, for two nodes in the plurality of nodes: predicting, based on comprehensive node representations of the two nodes at the current time step, whether there exists interaction between the two nodes at the next time step.
- the two nodes may be a user node and an item node respectively.
- the method 600 may further comprise any steps/processes for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
- FIG.7 illustrates an exemplary apparatus 700 for temporal co-contrastive learning-based node representation generation according to an embodiment.
- the apparatus 700 may comprise: a converting module 710, for converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; a view node representation generating module 720 for, for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; a comprehensive node representation generating module 730, for generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and an optimizing module 740, for optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task. Moreover, the apparatus 700 may further comprise any other modules that are configured for performing any steps/processe
- FIG.8 illustrates an exemplary apparatus 800 for temporal co-contrastive learning-based node representation generation according to an embodiment.
- the apparatus 800 may comprise at least one processor 810.
- the apparatus 800 may further comprise a memory 820 connected with the at least one processor 810.
- the memory 820 may store computer-executable instructions that, when executed, cause the at least one processor 810 to: convert interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generate a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generate a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimize the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
- the generating a snapshot view node representation may comprise: generating the snapshot view node representation of the node at the time step through applying a graph attention network to a snapshot corresponding to the time step.
- the generating a temporal view node representation may comprise: generating the temporal view node representation of the node at the time step through aggregating at least one historical snapshot view node representation of the node.
- the generating an interaction view node representation may comprise: identifying at least one interacted node having historical interaction with the node; and generating the interaction view node representation of the node at the time step through aggregating at least one snapshot view node representation of the at least one interacted node at the time step.
- the temporal-consecutive node contrastive task may at least comprise: taking the snapshot view node representation of the node at the time step and a previous snapshot view node representation of the node at the previous time step as a positive sample pair for contrastive learning.
- the global view contrastive task may at least comprise: taking the temporal view node representation and the interaction view node representation of the node at the time step as a positive sample pair for contrastive learning.
- the optimizing the comprehensive node representation may comprise: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
- the at least one processor 810 may be further configured for performing any other steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
- the embodiments of the present disclosure propose a computer program product for temporal co- contrastive learning-based node representation generation.
- the computer program product may comprise a computer program that is executed by at least one processor for: converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
- the computer program may be further executed by the at least one processor for performing any other steps/
- the embodiments of the present disclosure may be embodied in a non-transitory computer- readable medium.
- the non-transitory computer-readable medium may comprise instructions that, when executed, cause one or more processors to perform any steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
- modules in the apparatuses described above may be implemented in various approaches. These modules may be implemented as hardware, software, or a combination thereof. Moreover, any of these modules may be further functionally divided into sub-modules or combined together.
- processors have been described in connection with various apparatuses and methods. These processors may be implemented using electronic hardware, computer software, or any combination thereof. Whether such processors are implemented as hardware or software will depend upon the particular application and overall design constraints imposed on the system.
- a processor, any portion of a processor, or any combination of processors presented in the present disclosure may be implemented with a micro-processor, micro-controller, digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic device (PLD), a state machine, gated logic, discrete hardware circuits, and other suitable processing components configured to perform the various functions described throughout the present disclosure.
- DSP digital signal processor
- FPGA field-programmable gate array
- PLD programmable logic device
- the functionality of a processor, any portion of a processor, or any combination of processors presented in the present disclosure may be implemented with software being executed by a microprocessor, micro-controller, DSP, or other suitable platform.
- a computer-readable medium may include, by way of example, memory such as a magnetic storage device (e.g., hard disk, floppy disk, magnetic strip), an optical disk, a smart card, a flash memory device, random access memory (RAM), read only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), a register, or a removable disk.
- a memory is shown as being separate from the processor in various aspects presented in this disclosure, a memory may also be internal to the processor (e.g., a cache or a register).
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This disclosure proposes methods, apparatuses, computer program products and computer-readable mediums for temporal co-contrastive learning-based node representation generation. Interaction data may be converted into a dynamic graph which comprises a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges. For each node in a plurality of nodes in the dynamic graph, a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step may be generated. A comprehensive node representation of the node at the time step may be generated based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step. The comprehensive node representation may be optimized based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
Description
TEMPORAL CO-CONTRASTIVE LEARNING-BASED NODE REPRESENTATION GENERATION
BACKGROUND
A dynamic graph may be usually represented as a sequence of graph snapshots, and these graph snapshots correspond to different time steps. Compared with a static graph, a dynamic graph is more suitable for recommendation system modeling. This is because, in a recommendation system, nodes may have dynamic semantics that change over time, and a dynamic graph may characterize such temporal evolution characteristic more effectively.
SUMMARY
This Summary is provided to introduce a selection of concepts that are further described below in the Detailed Description. It is not intended to identify key features or essential features of the claimed subj ect matter, nor is it intended to be used to limit the scope of the claimed subj ect matter. Embodiments of the present disclosure propose methods, apparatuses, computer program products and computer-readable mediums for temporal co-contrastive learning-based node representation generation. Interaction data may be converted into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges. For each node in a plurality of nodes in the dynamic graph, a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step may be generated. A comprehensive node representation of the node at the time step may be generated based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step. The comprehensive node representation may be optimized based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
It should be noted that the above one or more aspects comprise the features hereinafter fully described and particularly pointed out in the claims. The following description and the drawings set forth in detail certain illustrative features of the one or more aspects. These features are only indicative of the various ways in which the principles of various aspects may be employed, and this disclosure is intended to include all such aspects and their equivalents.
BRIEF DESCRIPTION OF THE DRAWINGS
The disclosed aspects will hereinafter be described in conjunction with the appended drawings that are provided to illustrate and not to limit the disclosed aspects.
FIG.l illustrates an exemplary process of temporal co-contrastive learning-based node representation generation according to an embodiment.
FIG.2 illustrates an example of converting interaction data into a dynamic graph according to an
embodiment.
FIG.3 illustrates an example of generating a snapshot view node representation according to an embodiment.
FIG.4 illustrates an example of generating a temporal view node representation according to an embodiment.
FIG.5 illustrates an example of generating an interaction view node representation according to an embodiment.
FIG.6 illustrates a flowchart of an exemplary method for temporal co-contrastive learning-based node representation generation according to an embodiment.
FIG.7 illustrates an exemplary apparatus for temporal co-contrastive learning-based node representation generation according to an embodiment.
FIG.8 illustrates an exemplary apparatus for temporal co-contrastive learning-based node representation generation according to an embodiment.
DETAILED DESCRIPTION
The present disclosure will now be discussed with reference to several example implementations. It should be understood that these implementations are discussed only for enabling those skilled in the art to better understand and thus implement the embodiments of the present disclosure, rather than suggesting any limitations on the scope of the present disclosure.
Dynamic graph modeling may broadly refer to the learning of a graph representation of a dynamic graph or node representations of nodes in the dynamic graph, which may also be referred to as, e.g., dynamic graph embedding learning, etc. Existing dynamic graph modeling takes network dynamics and snapshot structures into account, which typically first models node representations within each snapshot separately and then aggregates dynamics across snapshots. The existing dynamic graph modeling does not consider temporal message passing among snapshots. Since each snapshot only includes interactions among nodes occurred within a corresponding time window, separate modeling of each snapshot will also cause interactions among nodes even sparser. Moreover, separate modeling of each snapshot will also face the problem of lacking supervision signals, which reduces accuracy of node representations. A dynamic graph-based recommendation system may perform prediction for links among nodes, and the links reflect predicted interaction behaviors among the nodes. Due to the above limitations of the existing dynamic graph modeling, the current modeling of a dynamic graph-based recommendation system does not treat short-term interaction behaviors and long-term interaction behaviors differently, but treats short-term interaction behaviors and long-term interaction behaviors in the same approach. The embodiments of the present disclosure propose an architecture or mechanism of adopting temporal co-contrastive learning-based node representation generation in dynamic graph
modeling, so as to generate more accurate node representations for a dynamic graph. Accordingly, when the node representation generation architecture according to the embodiments of the present disclosure is applied to a dynamic graph-based recommendation system, the recommendation system may perform temporal-sensitive recommendation tasks with higher effectiveness and robustness, wherein the recommendation tasks may include, e.g., prediction for links among nodes, etc.
The embodiments of the present disclosure apply contrastive learning to dynamic graph modeling, so as to provide supervision signals from data of a dynamic graph itself, and thereby effectively alleviate the data dispersion problem of dynamic graph. Contrastive learning can also preserve dynamic graph semantics in terms of short-term user interests and long-term user interests.
The embodiments of the present disclosure propose enhanced contrastive views in different granularities for node-level representation learning, e.g., snapshot view, temporal view, interaction view, etc. These views are task-specific, e.g., specific to recommendation tasks performed by a recommendation system. Benefiting from node representations generated under these views respectively, the embodiments of the present disclosure may effectively capture both local structural semantics and global structural semantics.
The embodiments of the present disclosure fully consider characteristics of dynamic graphs, e.g., rich temporal information and sequence relationship among snapshots, in the design of contrastive tasks for contrastive learning. In an aspect, the embodiments of the present disclosure propose a temporal-consecutive node contrastive task for explicitly learning short-term user interests from short-term interaction behaviors. For example, the temporal-consecutive node contrastive task may be established for snapshot view, which may provide additional supervision signals, enhance message passing among consecutive snapshots, learn short-term node representations, etc. for snapshot-level node representation learning. In another aspect, the embodiments of the present disclosure propose a global view contrastive task for explicitly learning long-term user interests from long-term interaction behaviors. For example, the global view contrastive task may be established for temporal view and interaction view, which enables the temporal view and the interaction view to cooperatively supervise each other and learn long-term node representations by performing contrast between the temporal view and the interaction view. Herein, a node representation may also be referred to as, e.g., node embedding, etc. Moreover, herein, user interest may refer to a user's interest in an item, which may cause the user to perform an interaction behavior to the item. The temporal-consecutive node contrastive task and the global view contrastive task may be used together for implementing temporal-based co-contrastive learning. Through adopting at least the snapshot view, the temporal view and the interaction view as described above and adopting the temporal-consecutive node contrastive task and the global view
contrastive task as described above, the embodiments of the present disclosure can capture both short-term user interests and long-term user interests, thereby achieving more consistent performance over different time spans.
The embodiments of the present disclosure may implement high-quality dynamic graph modeling through the temporal co-contrastive learning-based node representation generation architecture, and therefore may be applied to a wider range of scenarios, e.g., recommendation systems, etc. In a dynamic graph-based recommendation system, nodes in a dynamic graph may be abstracted into user nodes corresponding to users and item nodes corresponding to items. Items may widely refer to various objects with which users interact. Items may have different meanings in different specific application scenarios, e.g., items in a news recommendation scenario may refer to news recommended to users, items in a movie recommendation scenario may refer to movies recommended to users, items in a product recommendation scenario may refer to products recommended to users, etc. The recommendation system may perform prediction for links among nodes, e.g., prediction for links or edges between user nodes and item nodes. A predicted link or edge may reflect an interaction behavior between two nodes, e.g., reflecting an interaction behavior between a user node and an item node. In different specific application scenarios, interaction behaviors may have different meanings, e.g., users’ behaviors of clicking, browsing, purchasing, commenting, adding to favorites, etc., to items. Benefiting from the more accurate node representations provided by the temporal co-contrastive learning-based node representation generation architecture according to the embodiments of the present disclosure, a dynamic graphbased recommendation system adopting the embodiments of the present disclosure can perform more accurate prediction and recommendation with higher effectiveness and robustness.
FIG.l illustrates an exemplary process 100 of temporal co-contrastive learning-based node representation generation according to an embodiment. The process 100 may be performed for implementing parameter learning of temporal co-contrastive learning-based node representation generation architecture, thereby effectively accomplishing dynamic graph modeling.
Interaction data 102 may be existing data about interactions between a plurality of users and a plurality of items. For example, the interaction data 102 may refer to temporal-sensitive information about user-item interactions. The interaction data 102 may include an interaction record at each time point in a sequence of time points, and the interaction record may indicate, e.g., there exist interactions between which users and which items at that time point, there exists no interaction between which users and which items at that time point, etc. The interaction data 102 may adopt various formats, e.g., table, chart, text, etc.
At 110, the interaction data 102 may be converted into a corresponding dynamic graph. The dynamic graph may include a set of snapshots. Each snapshot may correspond to a time step,
wherein a time step may also be referred to as a time point. For example, a timeline may be divided into a plurality of time steps through time windows of predetermined length, and a snapshot at each time step may be used for characterizing interactions occurred within a time window associated with this snapshot, wherein the time window associated with the snapshot may refer to a time window immediately before this time step. Each snapshot may be a static graph including a set of nodes and a set of edges. The set of nodes may include nodes involved in interactions occurred within a time window associated with the snapshot, e.g., user nodes and item nodes. Each edge in the set of edges may indicate that there exists interaction between a user node and an item node linked by the edge within a time window associated with the snapshot. Therefore, the set of snapshots in the dynamic graph may characterize node interaction information observed at different time steps, respectively.
At 120, node representations of different views may be generated for the dynamic graph obtained at 110. Herein, "view" may broadly refer to a processing perspective or processing approach for information or data in a dynamic graph.
In an implementation, the embodiments of the present disclosure propose a snapshot view. A snapshot view may refer to performing semantic extraction to each snapshot individually so as to capture local semantics. Exemplarily, a snapshot view may use a graph attention (GAT) network for capturing local structure of nodes within a snapshot and generate local semantic representations of the nodes. Accordingly, a node representation generated for a node under a snapshot view may be referred to as a snapshot view node representation. The operations at 120 may include generating a snapshot view node representation 122 of each node in the dynamic graph at each snapshot or time step. For example, for a target node, at a target time step, a snapshot view node representation of the target node at the target time step may be generated through applying a graph attention network to a snapshot corresponding to the target time step.
In an implementation, the embodiments of the present disclosure propose a temporal view which is a global view. A temporal view may refer to capturing time-aware global semantics over a temporal sequence of a plurality of snapshots. Exemplarily, a temporal view may generate a global semantic representation of a node through aggregating a plurality of snapshot view node representations of the same one node at a plurality of snapshots or time steps. Accordingly, a node representation generated for a node under a temporal view may be referred to as a temporal view node representation. The operations at 120 may include generating a temporal view node representation 124 of each node in the dynamic graph at each time step. For example, for a target node, at a target time step, a temporal view node representation of the target node at the target time step may be generated through aggregating at least one historical snapshot view node representation of the target node. The at least one historical snapshot view node representation
may include at least one snapshot view node representation of the target node at at least one time step before the target time step and optionally a snapshot view node representation of the target node at the target time step.
In an implementation, the embodiments of the present disclosure propose an interaction view which is a global view. An interaction view may refer to capturing global semantics from global node interaction information in a task-specific approach. Exemplarily, an interaction view may, under guidance by global user-item interaction information, generate a global semantic representation of a node from snapshot view node representations of interacted nodes having historical interactions with the node. Accordingly, a node representation generated for a node under an interaction view may be referred to as an interaction view node representation. The operation at 120 may include generating an interaction view node representation 126 of each node in the dynamic graph at each time step. For example, for a target node, at a target time step, at least one interacted node having historical interaction with the target node may be firstly identified. The interacted node may refer to a node that has interaction with the target node at at least one time step before the target time step and optionally at the target time step, e.g., the target node and the interactive node have a link or an edge in at least a certain snapshot. Then, an interaction view node representation of the target node at the target time step may be generated through aggregating the at least one snapshot view node representation of the at least one interacted node at the target time step.
At 130, a comprehensive node representation may be generated based on node representations of different views. A comprehensive node representation is a node representation which is obtained through combining a snapshot view, a temporal view and an interaction view and merges local semantics and global semantics. For example, a comprehensive node representation may be generated based on a snapshot view node representation, a temporal view node representation and an interaction view node representation. In an implementation, e.g., a multi-layer perceptron (MLP) may be adopted for generating a comprehensive node representation based on a snapshot view node representation, a temporal view node representation and an interaction view node representation. The operation at 130 may include generating a comprehensive node representation of each node in the dynamic graph at each time step. For example, for a target node, at a target time step, a comprehensive node representation of the target node at the target time step may be generated through applying a multi-layer perceptron to a snapshot view node representation, a temporal view node representation and an interaction view node representation of the target node at the target time step.
According to the process 100, contrastive learning tasks, such as a temporal-consecutive node contrastive task 140 and a global view contrastive task 150, may be established for providing
additional supervision signals from the perspective of local structures and long-term interests respectively. The temporal-consecutive node contrastive task 140 and the global view contrastive task 150 may be used together for implementing temporal -based co-contrastive learning.
The temporal-consecutive node contrastive task 140 may be established for a snapshot view. The same node should have similar semantic meanings in two consecutive snapshots, which forms the basis of short-term user interest. Two snapshot view node representations of the same node at two consecutive snapshots may form a positive sample pair for contrastive learning. The difference between the two snapshot view node representations of the node at the two consecutive snapshots is a good perturbation result for performing contrastive learning to acquire temporal changes among different snapshots. The temporal-consecutive node contrastive task 140 may encourage message passing among consecutive snapshots and facilitate to learn short-term node representations. For example, for a target node, at a target time step, a snapshot view node representation of the target node at the target time step and a previous snapshot view node representation of the target node at the previous time step may be taken as a positive sample pair for contrastive learning.
The global view contrastive task 150 may be established for a temporal view and an interaction view, which is used for learning a long-term node representation within the temporal view and the interaction view, and capturing long-term user interests based on these two different global views such as the temporal view and the interaction view. The temporal view and the interaction view may not only enhance information diversity, but also cooperatively supervise each other to form a positive sample pair for contrastive learning. For example, for a target node, at a target time step, a temporal view node representation and an interaction view node representation of the target node at the target time step may be taken as a positive sample pair for contrastive learning.
At 170, the comprehensive node representation may be optimized based at least on the temporal- consecutive node contrastive task 140 and the global view contrastive task 150. Herein, optimization for comprehensive node representation may widely refer to optimization for various parameters in the node representation generation architecture as reflected by, e.g., the process 100, so as to improve the quality or accuracy of the comprehensive node representation. In an implementation, a loss function may be established based at least on the temporal-consecutive node contrastive task 140 and the global view contrastive task 150, and the comprehensive node representation may be optimized based on the loss function. For example, the comprehensive node representation may be optimized through minimizing a loss calculated via the loss function.
Optionally, the process 100 may also include establishing a graph context prediction task 160. The graph context prediction task 160 may be used for preserve temporal structure around a node from consecutive snapshots across a plurality of time steps. The graph context prediction task 160 may
also be used for optimizing the comprehensive node representation. For example, the above- mentioned loss function established based on the temporal-consecutive node contrastive task 140 and a global view contrastive task 150 may be further based on the graph context prediction task 160.
Through the process 100, parameter learning of the temporal co-contrastive learning-based node representation generation architecture may be implemented, thereby accomplishing dynamic graph modeling. Further, the node representation generation architecture may be applied for recommendation tasks in a dynamic graph-based recommendation system. In an implementation, for two nodes in a dynamic graph, it may be predicted, based on comprehensive node representations of the two nodes at the current time step, whether there exists interaction between the two nodes at the next time step, e.g., whether there exists a link or an edge between the two nodes. The two nodes may be a user node and an item node respectively. As an example, an external logistic regression classifier may be trained for predicting, based on a comprehensive node representation of a first node at the current time step and a comprehensive node representation of a second node at the current time step, whether there exists interaction between the first node and the second at the next time step.
More exemplary details of the temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure will be described below.
A dynamic graph may be represented as a set of snapshots, e.g., a sequence of static graph snapshots. Each snapshot corresponds to a time step. As an example, a dynamic graph G may be represented as G = {g1^2, ..., gT), wherein T is the number of time steps, represents
a snapshot at the /-th time step, g1 includes information about interactions among nodes that occurred in a time window [t — 1, t] associated with the time step t. g1 may be represented as ], wherein Vt represents a set of nodes included in g , and Et represents a set of edges
or links included in g1.
In a recommendation scenario such as a recommendation system, interaction data may include information about interactions between users and items, e.g., a user clicks on an item, a user purchases an item, etc. Accordingly, g1 may be further represented as ,
wherein u represents a user node corresponding to a user, z represents an item node corresponding to an item, represents whether there exists an edge between u and z, yui = 0 represents
whether there exists no edge or link and accordingly there exists no interaction between u and z, and yui = 1 represents there exists an edge or link and accordingly there exists interaction between u and z. In the recommendation scenario, given zz, it is required to predict whether there will exist interaction between zz and z or to generate a probability that interaction will occur between zz and z.
FIG.2 illustrates an example 200 of converting interaction data into a dynamic graph according to an embodiment.
It is assumed that interaction data 210 includes information about interactions between a set of users and a set of items , wherein VI is the number of users and V2
is the number of items. For example, the interaction data 210 may include records about there exist interactions between which users and which items at each time point. It should be understood that although the interaction data 210 is shown as a chart in FIG.l, the interaction data 210 may adopt any other formats in practice.
The interaction data 210 may be converted into a corresponding dynamic graph 220. The dynamic graph 220 includes a set of snapshots
. Each snapshot corresponds to a time step. For example, the snapshot g1 corresponds to a time step
, the snapshot corresponds to a
time step
2, and so on. Moreover, each snapshot may have an associated time window. For example, a time window associated with the snapshot g1 is a time window
immediately before the time step
- Each snapshot includes information about interactions among nodes that occurred within an associated time window. For example, the snapshot g1 includes information
about interactions among nodes that occurred within the time window
l Interaction information is presented visually in a snapshot in the form of nodes and edges. As an example, the snapshot includes user nodes
and item nodes
. The snapshot g1 also includes edges indicating there exists interaction between two linked nodes, e.g., an edge between
and , an edge between
and i2, an edge between
and
5 etc. It should be understood that, preferably, a time window associated with each snapshot may have the same predetermined length.
According to the embodiments of the present disclosure, a snapshot view node representation of each node at each time step may be generated.
Taking a snapshot
as an example, initial node representations of all
nodes in a D-dimensional continuous space at a time step t are represented by , wherein a
node n may denote a user node and an item node. The initial node representations may be generated through any approaches, e.g., randomly generated, previously designated, etc. The initial node representation
may be converted into a higher-level snapshot view node representation through, e.g., a graph attention network. The
graph attention network is a neural network architecture operating on graph- structured data, which leverages self-attention, multi-head attention, etc. A snapshot view node representation
of a node n at a time step t may be calculated as:
Equation (1)
wherein Nn is a set of node A s one-hop neighbor nodes, <J is an activation function used in the graph attention network (e.g., LeakyReLU), Wk is a learnable parameter matrix for the Ath multihead attention, K is the number of multi-head attentions, ak v is a correlation coefficient between node n and node v and delegates the influence weight of neighbor node v on node n. Through Equation (1), a snapshot view node representation of each node at each time step may be obtained. In the recommendation scenario, a snapshot view node representation may reflect static user interests. It should be understood that the generation of a snapshot view node representation is performed for each snapshot individually. For example, a snapshot view node representation of the node n at the time step t is generated within the snapshot gl corresponding to the time step t. FIG.3 illustrates an example 300 of generating a snapshot view node representation according to an embodiment. Assuming that a graph attention network 310 is applied to a set of snapshots {g g2, —> gT} respectively, a set of snapshot view node representations may be generated for each snapshot respectively according to Equation (1). Taking a snapshot g2 as an example, through the graph attention network 310, snapshot view node representations and h
may be generated for nodes u ,
and
included in the snapshot g2, respectively.
According to the embodiments of the present disclosure, a temporal view node representation of each node at each time step may be generated.
The purpose of generating a temporal view node representation is to capture time-aware changes in a graph structure over a plurality of snapshots. Taking a node n as an example, for a time step /, a sequence represents a set of historical snapshot view node representations of
the node n, which includes t snapshot view node representations of the node n from a time step 1 to a time step /, wherein the node n may denote a user node and an item node. A temporal view node representation of the node n at the time step t may be calculated as:
Equation (2)
Equation (3)
Equation (4)
wherein MLP denotes a linear layer or a multi-layer perceptron,
is a correlation coefficient and denotes the influence weight of time step tj on time step t. The process of Equation (2) to Equation (4) may implement the aggregation of historical snapshot view node representations of
the node n, so as to generate a temporal view node representation of the node n at the time step t. Through Equation (2) to Equation (4), a temporal view node representation of each node at each time step may be obtained.
FIG.4 illustrates an example 400 of generating a temporal view node representation according to an embodiment. Taking a node u as an example, it is assumed that it is desired to generate a
temporal view node representation of the node u at a time step t. First, historical snapshot view node representations of the node
may be extracted, e.g., snapshot view node representations at time steps {1,2, ... , t}. Then, according to Equation (2) to Equation (4),
a temporal view node representation of the node at the time step t may be generated through
aggregating .
According to the embodiments of the present disclosure, an interaction view node representation of each node at each time step may be generated.
In an interaction view, an interaction view node representation of a target node may be generated with snapshot view node representations of interacted nodes having historical interactions with the target node. For example, an interaction view node representation of a user node may be generated through aggregating snapshot view node representations of item nodes having historical interactions with the user node, and an interaction view node representation of an item node may be generated through aggregating snapshot view node representations of user nodes having historical interactions with the item node. Taking a user node u as an example, for a time step t, a set of item nodes having historical interactions with the user node u may be represented as St = which includes N item nodes having historical interactions with the user node u until
the time step t. An interaction view node representation
of the user node u at the time step t may be calculated as:
Equation (5)
Equation (6)
Equation (7)
wherein MLP denotes a linear layer or a multi-layer perceptron, We is a learnable parameter,
is a correlation coefficient and denotes the influence weight of item node
on user node u. The process of Equation (5) to Equation (7) may implement the aggregation of snapshot view node representations of item nodes having historical interactions with the user node u at the time step /, so as to generate an interaction view node representation of the user node u at the time step t. Through Equation (5) to Equation (7), an interaction view node representation of each node at
each time step may be obtained.
Moreover, through an approach similar to that for calculating
as described above, an interaction view node representation hf of an item node i at a time step t may be calculated. For example, an interaction view node representation of the item node i at the time step t may be generated through aggregating snapshot view node representations of user nodes having historical interactions with the item node i at the time step t. Optionally,
and hf may be uniformly represented as hf, wherein the node n may denote a user node and an item node.
FIG.5 illustrates an example 500 of generating an interaction view node representation according to an embodiment. Taking a node u as an example, it is assumed that it is desired to generate an interaction view node representation of a node u at a time step t. At 510, interacted nodes having historical interactions with the node
may be identified, e.g., nodes . Interacted nodes
may be identified from snapshots corresponding to time steps {1,2,
e.g.,
taking those nodes having edges or links with the node
as interacted nodes. At 520, according to Equation (5) to Equation (7), an interaction view node representation of the node u at the
time step t may be generated through aggregating snapshot view node representations of the interacted nodes at the time step t.
According to the embodiments of the present disclosure, a temporal-consecutive node contrastive task may be established.
A dynamic graph involves rich information in different snapshots, and thus it is important to learn temporal-sensitive semantics in a self-supervised approach. The same node should have similar semantic meanings in two consecutive snapshots. As an example, for two consecutive snapshots and , the same node n should have similar semantic meanings in the two consecutive snapshots. Thus, snapshot view node representations
and of the node n in the two
snapshots may form a positive sample pair for contrastive learning. The temporal-consecutive node contrastive task encourages message passing between consecutive snapshots, for the generation of short-term node-level representations. Temporal-consecutive node contrastive taskbased learning may include adopting the following loss function: Equation (8)
wherein is a loss calculated for the temporal-consecutive node contrastive task, V represents a set of all nodes, and Pt+1(n) denotes a set of negative samples of the node n at a time step t + 1. Exemplarily, Pt+1(n) may include nodes randomly sampled, as negative samples, from nodes different from the node n, which may be used for establishing negative sample pairs. The temporal-consecutive node contrastive task may provide additional supervision signals with the
established positive sample pairs and negative sample pairs. Moreover, the above loss function may at least learn short-term interest bias through temporal-consecutive edge changes.
According to the embodiments of the present disclosure, a global view contrastive task may be established.
As described above, in order to preserve global semantic context on the dynamic graph, for a given node //, at a time step t, a temporal view node representation hn [ and an interaction view node representation h may be generated from a temporal view and an interaction view. These two node representations of the node n at the time step t may form a positive sample pair for contrastive learning. Moreover, nodes, which are taken as negative samples, may be randomly sampled from nodes that do not have direct links with the node n, for establishing negative sample pairs.
In order to convert a temporal view node representation from a temporal view and an interaction view node representation from an interaction view into the same semantic space, the following mapping may be performed: Equation (9)
wherein W91, W92, b91 and b92 are learnable parameters.
Global view contrastive task-based learning may include adopting the following loss function:
wherein £GCL is a loss calculated for the global view contrastive task, V denotes a set of all nodes, and Pt+1(n) denotes a set of negative samples of the node n. The global view contrastive task may provide additional supervision signals with the established positive sample pairs and negative sample pairs. Moreover, the above loss function may capture global semantic information and long-term interests through two types of global view representations.
According to the embodiments of the present disclosure, a comprehensive node representation may be generated based on node representations of different views. Assuming that a snapshot view node representation
, a temporal view node representation , and an interaction view
node representation of a node n at a time step t have been calculated, a comprehensive node
representation
of the node n at the time step t may be calculated as: Equation (11)
wherein MLP denotes a multi-layer perceptron.
According to the embodiments of the present disclosure, optionally, a graph context prediction task may be established.
The graph context prediction task may motivate each node to perceive neighbor nodes in adjacent time steps, so as to preserve temporal structure around the node from consecutive snapshots across a plurality of time steps. The learning of the graph context prediction task may include adopting the following loss function:
Equation (12) wherein £GCp is a loss calculated for the graph context prediction task, V denotes a set of all nodes, σ is a sigmoid function,
denotes a set of nodes that co-occur with the node n on fixed- length random walks, ω is a negative sampling ratio and is a tunable hyper-parameter for balancing positive samples and negative samples, and Pt+1(n) denotes a set of negative samples of the node n. In the graph context prediction task, nodes, which are taken as positive samples, may be those nodes that have interaction relationship with the node n determined based on, e.g., random walks, and nodes, which are taken as negative samples, may be nodes randomly sampled from nodes that do not have interaction relationship with the node n.
According to the embodiments of the present disclosure, a comprehensive node representation may be optimized at least with a loss function.
In order to capture short-term and long-term temporal-sensitive semantic information, the following loss function may be defined for a dynamic graph: Equation (13)
wherein is a calculated comprehensive loss, and is a balancing coefficient. Since and
are co-contrastive learning tasks and have the same scale in calculation, and L may
be combined together in Equation (13). Moreover, it should be understood that in Equation
(13) is optional, and thus the above loss function may also be established only based on L and
The loss function in Equation (13) may be used for optimizing a comprehensive node representation. For example, parameters in the node representation generation architecture according to the embodiments of the present disclosure may be learned through minimizing the loss calculated via Equation (13). Exemplarily, the above optimizing process may adopt, e.g., Adam optimizer, etc. Moreover, for each iteration, parameter updating may be performed according to Equation (13).
FIG.6 illustrates a flowchart of an exemplary method 600 for temporal co-contrastive learning-
based node representation generation according to an embodiment.
At 610, interaction data may be converted into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges.
At 620, for each node in a plurality of nodes in the dynamic graph, a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step may be generated.
At 630, a comprehensive node representation of the node at the time step may be generated based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step.
At 640, the comprehensive node representation may be optimized based at least on a temporal- consecutive node contrastive task and a global view contrastive task.
In an implementation, the interaction data may be data about interaction between a plurality of users and a plurality of items. The set of nodes may comprise user nodes and item nodes. Each edge in the set of edges may indicate that there exists interaction between a user node and an item node linked by the edge within a time window associated with the snapshot.
In an implementation, the generating a snapshot view node representation may comprise: generating the snapshot view node representation of the node at the time step through applying a graph attention network to a snapshot corresponding to the time step.
In an implementation, the generating a temporal view node representation may comprise: generating the temporal view node representation of the node at the time step through aggregating at least one historical snapshot view node representation of the node.
In an implementation, the generating an interaction view node representation may comprise: identifying at least one interacted node having historical interaction with the node; and generating the interaction view node representation of the node at the time step through aggregating at least one snapshot view node representation of the at least one interacted node at the time step.
In an implementation, the generating a comprehensive node representation may comprise: generating the comprehensive node representation of the node at the time step through applying a multi-layer perceptron to the snapshot view node representation, the temporal view node representation and the interaction view node representation.
In an implementation, the temporal-consecutive node contrastive task may at least comprise: taking the snapshot view node representation of the node at the time step and a previous snapshot view node representation of the node at the previous time step as a positive sample pair for contrastive learning.
In an implementation, the global view contrastive task may at least comprise: taking the temporal
view node representation and the interaction view node representation of the node at the time step as a positive sample pair for contrastive learning.
In an implementation, the optimizing the comprehensive node representation may comprise: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
In an implementation, the comprehensive node representation may be optimized further based on a graph context prediction task.
In an implementation, the method 600 may further comprise, for two nodes in the plurality of nodes: predicting, based on comprehensive node representations of the two nodes at the current time step, whether there exists interaction between the two nodes at the next time step. The two nodes may be a user node and an item node respectively.
It should be understood that the method 600 may further comprise any steps/processes for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
FIG.7 illustrates an exemplary apparatus 700 for temporal co-contrastive learning-based node representation generation according to an embodiment.
The apparatus 700 may comprise: a converting module 710, for converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; a view node representation generating module 720 for, for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; a comprehensive node representation generating module 730, for generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and an optimizing module 740, for optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task. Moreover, the apparatus 700 may further comprise any other modules that are configured for performing any steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
FIG.8 illustrates an exemplary apparatus 800 for temporal co-contrastive learning-based node representation generation according to an embodiment.
The apparatus 800 may comprise at least one processor 810. The apparatus 800 may further comprise a memory 820 connected with the at least one processor 810. The memory 820 may
store computer-executable instructions that, when executed, cause the at least one processor 810 to: convert interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generate a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generate a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimize the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
In an implementation, the generating a snapshot view node representation may comprise: generating the snapshot view node representation of the node at the time step through applying a graph attention network to a snapshot corresponding to the time step.
In an implementation, the generating a temporal view node representation may comprise: generating the temporal view node representation of the node at the time step through aggregating at least one historical snapshot view node representation of the node.
In an implementation, the generating an interaction view node representation may comprise: identifying at least one interacted node having historical interaction with the node; and generating the interaction view node representation of the node at the time step through aggregating at least one snapshot view node representation of the at least one interacted node at the time step.
In an implementation, the temporal-consecutive node contrastive task may at least comprise: taking the snapshot view node representation of the node at the time step and a previous snapshot view node representation of the node at the previous time step as a positive sample pair for contrastive learning.
In an implementation, the global view contrastive task may at least comprise: taking the temporal view node representation and the interaction view node representation of the node at the time step as a positive sample pair for contrastive learning.
In an implementation, the optimizing the comprehensive node representation may comprise: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
Moreover, the at least one processor 810 may be further configured for performing any other steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
The embodiments of the present disclosure propose a computer program product for temporal co-
contrastive learning-based node representation generation. The computer program product may comprise a computer program that is executed by at least one processor for: converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task. Moreover, the computer program may be further executed by the at least one processor for performing any other steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
The embodiments of the present disclosure may be embodied in a non-transitory computer- readable medium. The non-transitory computer-readable medium may comprise instructions that, when executed, cause one or more processors to perform any steps/processes of the methods for temporal co-contrastive learning-based node representation generation according to the embodiments of the present disclosure described above.
It should be understood that all the operations in the methods described above are merely exemplary, and the present disclosure is not limited to any operations in the methods or sequence orders of these operations, and should cover all other equivalents under the same or similar concepts.
Additionally, the articles "a" and "an" as used in this description and appended claims, unless otherwise specified or clear from the context that they are for the singular form, should generally be interpreted as meaning "one" or "one or more."
It should also be understood that all the modules in the apparatuses described above may be implemented in various approaches. These modules may be implemented as hardware, software, or a combination thereof. Moreover, any of these modules may be further functionally divided into sub-modules or combined together.
Processors have been described in connection with various apparatuses and methods. These processors may be implemented using electronic hardware, computer software, or any combination thereof. Whether such processors are implemented as hardware or software will depend upon the particular application and overall design constraints imposed on the system. By way of example, a processor, any portion of a processor, or any combination of processors
presented in the present disclosure may be implemented with a micro-processor, micro-controller, digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic device (PLD), a state machine, gated logic, discrete hardware circuits, and other suitable processing components configured to perform the various functions described throughout the present disclosure. The functionality of a processor, any portion of a processor, or any combination of processors presented in the present disclosure may be implemented with software being executed by a microprocessor, micro-controller, DSP, or other suitable platform.
Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, threads of execution, procedures, functions, etc. The software may reside on a computer-readable medium. A computer-readable medium may include, by way of example, memory such as a magnetic storage device (e.g., hard disk, floppy disk, magnetic strip), an optical disk, a smart card, a flash memory device, random access memory (RAM), read only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), a register, or a removable disk. Although a memory is shown as being separate from the processor in various aspects presented in this disclosure, a memory may also be internal to the processor (e.g., a cache or a register).
The previous description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects. Thus, the claims are not intended to be limited to the aspects shown herein. All structural and functional equivalents to the elements of the various aspects described throughout the present disclosure that are known or later come to be known to those of ordinary skilled in the art are intended to be encompassed by the claims.
Claims
1. A method for temporal co-contrastive learning-based node representation generation, comprising: converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
2. The method of claim 1, wherein the interaction data is data about interaction between a plurality of users and a plurality of items, the set of nodes comprises user nodes and item nodes, and each edge in the set of edges indicates that there exists interaction between a user node and an item node linked by the edge within a time window associated with the snapshot.
3. The method of claim 1, wherein the generating a snapshot view node representation comprises: generating the snapshot view node representation of the node at the time step through applying a graph attention network to a snapshot corresponding to the time step.
4. The method of claim 1, wherein the generating a temporal view node representation comprises: generating the temporal view node representation of the node at the time step through aggregating at least one historical snapshot view node representation of the node.
5. The method of claim 1, wherein the generating an interaction view node representation comprises: identifying at least one interacted node having historical interaction with the node; and generating the interaction view node representation of the node at the time step through aggregating at least one snapshot view node representation of the at least one interacted node at the time step.
6. The method of claim 1, wherein the generating a comprehensive node representation
comprises: generating the comprehensive node representation of the node at the time step through applying a multi-layer perceptron to the snapshot view node representation, the temporal view node representation and the interaction view node representation.
7. The method of claim 1, wherein the temporal-consecutive node contrastive task at least comprises: taking the snapshot view node representation of the node at the time step and a previous snapshot view node representation of the node at the previous time step as a positive sample pair for contrastive learning.
8. The method of claim 1, wherein the global view contrastive task at least comprises: taking the temporal view node representation and the interaction view node representation of the node at the time step as a positive sample pair for contrastive learning.
9. The method of claim 1, wherein the optimizing the comprehensive node representation comprises: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
10. The method of claim 1, wherein the comprehensive node representation is optimized further based on a graph context prediction task.
11. The method of claim 1, further comprising, for two nodes in the plurality of nodes: predicting, based on comprehensive node representations of the two nodes at the current time step, whether there exists interaction between the two nodes at the next time step.
12. The method of claim 11, wherein the two nodes are a user node and an item node respectively.
13. An apparatus for temporal co-contrastive learning-based node representation generation, comprising: at least one processor; and a memory storing computer-executable instructions that, when executed, cause the at least one processor to: convert interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges, for each node in a plurality of nodes in the dynamic graph, generate a snapshot view node representation, a temporal view node representation and an interaction view node
representation of the node at each time step, generate a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step, and optimize the comprehensive node representation based at least on a temporal- consecutive node contrastive task and a global view contrastive task.
14. The apparatus of claim 13, wherein the optimizing the comprehensive node representation comprises: establishing a loss function based at least on the temporal-consecutive node contrastive task and the global view contrastive task; and optimizing the comprehensive node representation based on the loss function.
15. A computer program product for temporal co-contrastive learning-based node representation generation, comprising a computer program that is executed by at least one processor for: converting interaction data into a dynamic graph, the dynamic graph comprising a set of snapshots, each snapshot corresponding to a time step and comprising a set of nodes and a set of edges; for each node in a plurality of nodes in the dynamic graph, generating a snapshot view node representation, a temporal view node representation and an interaction view node representation of the node at each time step; generating a comprehensive node representation of the node at the time step based on the snapshot view node representation, the temporal view node representation and the interaction view node representation of the node at the time step; and optimizing the comprehensive node representation based at least on a temporal-consecutive node contrastive task and a global view contrastive task.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210397811.4A CN116955710B (en) | 2022-04-15 | 2022-04-15 | Node representation generation based on temporal joint contrastive learning |
| CN202210397811.4 | 2022-04-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023200520A1 true WO2023200520A1 (en) | 2023-10-19 |
Family
ID=85510858
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2023/012368 Ceased WO2023200520A1 (en) | 2022-04-15 | 2023-02-06 | Temporal co-contrastive learning-based node representation generation |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116955710B (en) |
| WO (1) | WO2023200520A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118446277A (en) * | 2024-05-20 | 2024-08-06 | 浙江工业大学 | Self-supervised message passing graph representation learning method based on contrastive generation |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140098104A1 (en) * | 2012-10-10 | 2014-04-10 | Microsoft Corporation | Techniques to present event information using an event timing visualization |
| US12205044B2 (en) * | 2018-09-26 | 2025-01-21 | Visa International Service Association | Dynamic graph representation learning via attention networks |
| CN111601361B (en) * | 2020-05-22 | 2021-11-16 | 中国人民解放军国防科技大学 | Method and device for detecting key nodes of Ad hoc network in real time |
| CN112686376A (en) * | 2021-01-11 | 2021-04-20 | 东北大学 | Node representation method based on timing diagram neural network and incremental learning method |
| CN114118375B (en) * | 2021-11-29 | 2024-05-10 | 吉林大学 | Sequential diagram transducer-based continuous dynamic network characterization learning method |
-
2022
- 2022-04-15 CN CN202210397811.4A patent/CN116955710B/en active Active
-
2023
- 2023-02-06 WO PCT/US2023/012368 patent/WO2023200520A1/en not_active Ceased
Non-Patent Citations (1)
| Title |
|---|
| LU WANG ET AL: "TCL: Transformer-based Dynamic Graph Modelling via Contrastive Learning", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 17 May 2021 (2021-05-17), XP081964257 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118446277A (en) * | 2024-05-20 | 2024-08-06 | 浙江工业大学 | Self-supervised message passing graph representation learning method based on contrastive generation |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116955710B (en) | 2026-04-28 |
| CN116955710A (en) | 2023-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11631029B2 (en) | Generating combined feature embedding for minority class upsampling in training machine learning models with imbalanced samples | |
| US11416243B2 (en) | Microservice decomposition strategy of monolithic applications | |
| US11601468B2 (en) | Detection of an adversarial backdoor attack on a trained model at inference time | |
| AU2020385264B2 (en) | Fusing multimodal data using recurrent neural networks | |
| US11048718B2 (en) | Methods and systems for feature engineering | |
| Žliobaitė et al. | Active learning with drifting streaming data | |
| US10762111B2 (en) | Automatic feature learning from a relational database for predictive modelling | |
| US11223642B2 (en) | Assessing technical risk in information technology service management using visual pattern recognition | |
| US20210056458A1 (en) | Predicting a persona class based on overlap-agnostic machine learning models for distributing persona-based digital content | |
| US11425000B2 (en) | On-the-fly reorganization of directed acyclic graph nodes of a computing service for high integration flexibility | |
| WO2021084286A1 (en) | Root cause analysis in multivariate unsupervised anomaly detection | |
| US11605028B2 (en) | Methods and systems for sequential model inference | |
| US20220100867A1 (en) | Automated evaluation of machine learning models | |
| US12159238B2 (en) | Automated machine learning model selection | |
| US11947627B2 (en) | Context aware anomaly detection | |
| US20200104753A1 (en) | Interactive visualization evaluation for classification models | |
| US10621137B2 (en) | Architecture for predicting network access probability of data files accessible over a computer network | |
| US20230152787A1 (en) | Performance optimization of complex industrial systems and processes | |
| AU2021251463A1 (en) | Generating performance predictions with uncertainty intervals | |
| Vajda et al. | Machine learning-based real-time anomaly detection using data pre-processing in the telemetry of server farms | |
| US20200074052A1 (en) | Intelligent user identification | |
| Bielecki et al. | Estimation of execution time for computing tasks | |
| US12555029B2 (en) | Pipeline ranking with model-based dynamic data allocation | |
| US12436964B2 (en) | Composite event estimation through temporal logic | |
| WO2023200520A1 (en) | Temporal co-contrastive learning-based node representation generation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23709819 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23709819 Country of ref document: EP Kind code of ref document: A1 |






