UTCS: Effective Unsupervised Temporal Community Search with Pre-training of Temporal Dynamics and Subgraph Knowledge

Yue Zhang, Yankai Chen, Yingli Zhou, Yucan Guo, Xiaolin Han, Chenhao Ma

Abstract

Traditional community search (CS) methods often struggle with the dynamic nature of real-world relationships and the scarcity of labeled data. This paper presents UTCS, the first unsupervised, learning-based framework for temporal community search. UTCS leverages offline pre-training on temporal dynamics and structural subgraph knowledge to generate high-quality node representations. By combining a Hawkes process for temporal modeling with a Leiden-based subgraph alignment, UTCS identifies evolving communities with superior accuracy and efficiency compared to existing supervised and rule-based approaches.

Introduction

In graph analysis, identifying "communities"—dense clusters of entities—around specific query nodes is a vital task. However, most real-world networks are temporal, with relationships evolving over time. Existing CS methods typically rely on rigid predefined structures (like k-cores) or require extensive labeled datasets for supervised learning, both of which limit their applicability in large-scale, dynamic environments. UTCS addresses these gaps by introducing an unsupervised framework that captures both temporal interaction patterns and global structural information.

Methodology

The UTCS framework operates in two primary phases: Offline Pre-training and Online Search.

Overview of the UTCS framework, illustrating the pre-training and online search phases.

Offline Pre-training

To learn robust node embeddings without human-labeled data, UTCS employs three key objectives:

  1. Temporal Dynamics Modeling: Utilizing a Hawkes Process, the model captures the "bursty" nature of interactions, where past events influence the probability of future ones.
  2. Node-Leiden Subgraph Alignment: The model uses the Leiden algorithm to generate "pseudo-communities." It then aligns node embeddings using KL divergence to ensure nodes within the same structural cluster are proximate in the embedding space.
  3. Batch-Level Refinement: Contrastive learning is used to reconstruct adjacency relations, maintaining high similarity between nodes with frequent historical interactions.

During the query phase, UTCS avoids the bottleneck of searching the entire graph. It identifies candidate subgraphs via the Leiden algorithm and calculates a Community Score based on cosine similarity. A novel Expected Community Score Gain (ECSG) mechanism iteratively selects nodes that maximize community cohesion while filtering noise.

Experimental Evaluation

The authors evaluated UTCS across five diverse datasets: School, Brain, Patent, arXivAI, and arXivCS.

Efficiency results comparing UTCS with other CS methods across various datasets. Note the OOM (Out of Memory) failures for competing models on larger datasets.

Key Results

  • Accuracy: UTCS demonstrated a 60.44% average improvement in F1-score over the second-best model, COCLEP.
  • Efficiency: On the School dataset, UTCS was over 100x faster than traditional temporal search methods like QTCS.
  • Scalability: Unlike supervised models like QD-GNN and CS-TGN, which suffered from Out-of-Memory (OOM) errors on large datasets (e.g., arXivAI), UTCS remained efficient due to its localized search strategy.

Conclusion

UTCS represents a significant advancement in temporal community search by removing the dependency on labeled data. By integrating temporal momentum and structural pseudo-labels, it achieves state-of-the-art performance in both speed and accuracy. Future work will focus on refining the efficiency-accuracy trade-off and developing more robust metrics for unlabeled temporal graphs.

Summary updated

BibTeX
@inproceedings{zhang2025utcs,
  author = {Yue Zhang and Yankai Chen and Yingli Zhou and Yucan Guo and Xiaolin Han and Chenhao Ma},
  title = {{UTCS: Effective Unsupervised Temporal Community Search with Pre-training of Temporal Dynamics and Subgraph Knowledge}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2025},
}
Figure