NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Using Node Identifiers and Community Prior for Graph-Based Classification

Qi Ye, Changlei Zhu, Gang Li, Zhimin Liu, Feng WangData Sci. Eng 2018

Abstract: With widely available large-scale network data, one hot topic is how to adopt traditional classification algorithms to predict the most probable labels of nodes in a partially labeled network. In this article, we propose a new algorithm called identifier-based relational neighbor classifier (IDRN) to solve the within-network multi-label classification problem. We use the node identifiers in the egocentric networks as features and propose a within-network classification model by incorporating community structure information to predict the most probable classes for unlabeled nodes. We demonstrate the effectiveness of our approach on several publicly available datasets. First, taking a semi-supervised approach, IDRN without any community prior is applied in community detection experiments, and it outperforms most existing unsupervised community detection algorithms. After that, in large-scale graph-based multi-label classification tasks, our approaches perform well in both fully labeled and partially labeled networks in most cases. To evaluate the scalability of our algorithm, we also show a scalability test to evaluate the running time of our algorithm in different networks. The experiment results show that our approach is quite efficient and suitable for large-scale real-world classification tasks.

Introduction

In the era of massive network data—spanning social media, co-purchasing graphs, and citation webs—manual labeling remains a bottleneck. Researchers often face "partially labeled" networks where only a small fraction (e.g., 10%) of nodes have known categories. The challenge of within-network classification is to accurately predict the remaining labels.

Existing methods typically rely on label propagation or complex graph embeddings (like node2vec). However, propagation can be noisy, and embeddings often struggle with the computational demands of truly massive datasets. This paper introduces the Identifier-based Relational Neighbor (IDRN) classifier to bridge the gap between accuracy and scalability.

Methodology: The IDRN Framework

The IDRN algorithm utilizes a twofold approach to leverage both local and global network information:

  1. Node Identifiers as Features: Unlike models that treat node IDs as arbitrary, IDRN treats the unique IDs of a node and its immediate neighbors (its egocentric network) as categorical features. Using a Multinomial Naive Bayes framework, the model learns statistical associations between specific "hub" nodes and certain labels.
  2. Community Structure as a Prior: Recognizing that nodes within the same cluster often share labels, the authors incorporate community detection (e.g., the Louvain algorithm) to establish a "prior" probability. This provides a coarse-grained "neighborhood" context that the fine-grained node IDs then refine.
  3. Linear Scalability: By relying on counting and basic probability rather than iterative matrix factorization, IDRN achieves linear time complexity relative to the number of edges.

Experimental Setup and Datasets

The model was validated across 18 diverse datasets to ensure robustness across different network topologies. These ranged from small social networks to massive real-world benchmarks.

Descriptions of various datasets used for evaluation, including large-scale networks like SocialSpam.

Of particular note is the SocialSpam dataset, which served as a "stress test" for scalability, containing 5.2 million nodes and nearly 500 million edges.

Results and Discussion

Community Detection Performance

In semi-supervised community detection tasks using only 10% labeled nodes, IDRN significantly outperformed established unsupervised algorithms such as Girvan-Newman (GN) and Louvain across multiple metrics, including Normalized Mutual Information (NMI) and the Rand index.

Table 1: Comparison of IDRN against unsupervised community detection algorithms across various networks.

Multi-label Classification and Scalability

In broader classification tasks, IDRN (and its community-aware variant, IDRNc) consistently surpassed state-of-the-art embedding methods like DeepWalk and node2vec.

The algorithm's efficiency is its most striking feature. On the SocialSpam dataset, IDRN completed training and testing in approximately 48 minutes on a single thread. In contrast, many competing embedding-based methods either failed to finish within 24 hours or exceeded available system memory.

Conclusion

IDRN demonstrates that a relatively simple probabilistic approach using node identities and community priors can outperform much more complex models. By treating a node's "street address" (neighbor IDs) and "neighborhood" (community) as synergistic features, IDRN provides a highly scalable and accurate solution for real-world network classification. Future work will explore integrating textual features and hybridizing these discrete identifiers with continuous deep learning representations.

Summary updated

BibTeX
@inproceedings{ye2018using,
  author = {Qi Ye and Changlei Zhu and Gang Li and Zhimin Liu and Feng Wang},
  title = {{Using Node Identifiers and Community Prior for Graph-Based Classification}},
  booktitle = {Data Sci. Eng},
  year = {2018},
  url = {https://openreview.net/forum?id=Gu0F9GmcBBC},
}
Figure