TL;DR
Deep Temporal Graph Clustering (TGC) is a novel framework that brings unsupervised clustering to the realm of dynamic, time-stamped graphs. By abandoning memory-heavy static adjacency matrices in favor of interaction-sequence batch processing, TGC achieves state-of-the-art clustering performance while remaining significantly more memory-efficient and scalable than traditional static methods.
What Problem Does This Paper Address?
Traditional deep graph clustering predominantly treats graphs as static snapshots. However, real-world data—such as social networks, financial transactions, or citation webs—is inherently temporal. When these networks are flattened into static structures, we lose the "when" and "how often" of interactions, which are critical for accurately understanding community dynamics.
Furthermore, static methods typically rely on a global adjacency matrix. For a graph with $N$ nodes, this matrix scales at $O(N^2)$. On large-scale datasets, this inevitably leads to "Out of Memory" (OOM) errors, even on high-end GPUs. The authors identify a critical gap in the literature: existing temporal graph models focus almost exclusively on link prediction (predicting if an edge will form) rather than node clustering (grouping similar nodes in an unsupervised manner).
Methods
To bridge this gap, the authors propose TGC, a general framework designed specifically to fit the batch-processing pattern of temporal graphs. It consists of two primary components:
- Temporal Module (The "When"): This module utilizes the Hawkes process (specifically building on the HTNE method) to model interaction intensity. It captures how historical interactions influence future ones, accounting for "time decay"—the intuitive concept that a recent interaction is more relevant to current community structure than an interaction from years ago.
- Clustering Module (The "Who"): Because the framework eschews a full adjacency matrix, the authors introduce two novel loss functions to guide clustering:
- Node-Level Distribution: Using a Student’s t-distribution, the model calculates the probability of a node belonging to a specific cluster. A KL-divergence loss is then applied to "sharpen" these assignments, iteratively pushing nodes closer to their respective cluster centers.
- Batch-Level Reconstruction: This acts as a "pseudo-reconstruction" task. Instead of reconstructing a massive global matrix, the model uses cosine similarity within each training batch to ensure that nodes interacting in that specific time window develop similar embeddings, while "negative samples" (nodes that did not interact) are pushed apart.
Datasets
The authors evaluated TGC on six datasets, spanning four common benchmarks and two newly developed large-scale datasets:
- Common Benchmarks: DBLP (co-authorship), Brain (tissue connectivity), Patent (citations), and School (student interactions).
- New Large-Scale Benchmarks: arXivAI and arXivCS. These are massive citation graphs extracted from the OGB benchmark, specifically processed by the authors to include timestamps and multi-class labels based on paper categories.
Key Insights and Ideas
- Sequence over Matrix: The fundamental paradigm shift in TGC is processing graphs as a sequence of interactions (akin to a chronological log file) rather than a global adjacency matrix. This allows the model to handle massive graphs simply by adjusting the batch size, bypassing the $O(N^2)$ memory bottleneck.
- Chronological Integrity: Unlike static sub-graph sampling, temporal clustering must respect the arrow of time. Earlier nodes cannot "see" future interactions. TGC strictly maintains this chronological order during training to prevent data leakage.
- Flexibility in the Time-Space Trade-off: Because TGC is batch-based, researchers can explicitly trade time for space. If GPU memory is constrained, smaller batches can be used; the model will take longer to train but will successfully execute. Static methods do not offer this flexibility—if the matrix doesn't fit in memory, the process fails entirely.
Key Results
- Superior Performance: TGC consistently outperformed both classic methods (like node2vec) and state-of-the-art deep static clustering methods (like SDCN) across standard clustering metrics, including Accuracy (ACC), Normalized Mutual Information (NMI), Adjusted Rand Index (ARI), and F1-score.
- Memory Efficiency: The memory savings are drastic. On the large-scale
arXivCSdataset, static methods like SDCN required nearly 7GB of VRAM, while TGC required only 212MB. Most other deep clustering baselines simply failed (OOM) on the larger datasets.
- Transferability: The TGC framework is model-agnostic. The authors demonstrated that its clustering modules can be integrated into other temporal representation learners (like TGN or TREND) to significantly boost their unsupervised clustering capabilities.
Limitations and Future Work
The authors acknowledge two main hurdles in the current landscape:
- Global Information Loss: By discarding the full adjacency matrix in favor of localized, chronological batches, some overarching global structural information might be lost. Finding efficient ways to "migrate" global knowledge into the batch process remains an open challenge.
- Dataset Scarcity: There is a notable lack of high-quality, labeled temporal datasets explicitly designed for clustering. Many existing datasets only feature binary labels or lack timestamp granularity entirely.
Future work will likely focus on "K-free" clustering—where the number of clusters does not need to be predefined as a hyperparameter—and further optimizing the framework to scale to billion-node temporal graphs.
Summary updated