Local, global and scale-dependent node roles

Michael Scholkemper, Michael T. SchaubarXiv 2021

Abstract

Identifying node roles is fundamental to understanding network structure and function. Traditional definitions often oscillate between strictly local neighborhoods and global graph positions. This paper introduces a unified framework for scale-dependent node roles, parameterized by a depth $d$. By formalizing roles through node-identified unravellings and Sorted Neighbourhood Propagation (SNP), we demonstrate that structural information from shallow neighborhoods (depth 3-4) is often sufficient to capture the functional identity of nodes, matching or exceeding the performance of state-of-the-art Graph Neural Networks (GNNs).

Introduction

In network science, a node's "role" defines its structural function—whether it acts as a central hub, a peripheral leaf, or a bridge between communities. Historically, these roles have been defined at two extremes: local structural equivalence (immediate neighbors) and global automorphic equivalence (the entire graph). However, global roles are computationally expensive and sensitive to distant network perturbations, while local roles often miss broader structural context. This work by Scholkemper and Schaub proposes a middle ground: scale-dependent node roles, where the scope of a node's identity is a tunable parameter $d$.

Methodology: Formalizing $d$-depth Roles

The authors propose three distinct formalizations for these roles based on the neighborhood depth $d$:

  1. The $d$-role (Exact): Based on "node-identified unravellings," which represent all walks of length $d$ starting from a node while preserving node identities. It serves as the theoretical gold standard for identity-based roles.
  2. The $d$-wl-role (Structural Relaxation): Utilizing the Weisfeiler-Lehman (WL) algorithm, this approach ignores specific node IDs to focus on the branching structure of the neighborhood. This is the structural foundation for many modern GNNs.
  3. The $d$-snp-role (Identity Relaxation): Sorted Neighbourhood Propagation (SNP) counts occurrences of specific node IDs reached at each distance up to $d$. By sorting these counts, the method creates an isomorphism-invariant feature vector. Notably, SNP handles "regular" graphs (where all nodes have the same degree) more intuitively than WL by tracking unique node reachability.
Overview of the framework, illustrating a graph $G$ alongside its corresponding unravellings and SNP embeddings at depth $d=3$.

The Power of Shallow Structural Information

A key insight of this research is the effectiveness of "shallow" roles. By evaluating the discriminative power of these roles on benchmark datasets like MUTAG (mutagenic compounds), ENZYMES (protein structures), and NCI1 (anti-cancer activity), the authors found that a neighborhood depth of only 3 or 4 is often sufficient to characterize nodes effectively.

Analysis of discriminative power (left) and role overlap (right) as a function of neighborhood depth $d$ across different datasets.

As shown in the figures above, the overlap score—measuring how well roles correlate with ground-truth labels—surpasses 90% at very low depths for MUTAG and ENZYMES. This suggests that for many real-world tasks, the "global" structure is less critical than the immediate multi-hop neighborhood.

Results and Performance

The authors compared a simple Multi-Layer Perceptron (MLP) using SNP-embeddings against state-of-the-art Graph Isomorphism Networks (GINs). On the MUTAG dataset, the SNP-based approach achieved 96.7% accuracy, slightly outperforming GIN (96.1%). This is particularly notable because the SNP model relies on shallow, explicit structural features, whereas GINs are often deeper and more complex.

However, the NCI1 dataset presented a greater challenge, requiring a depth of 7 or more to achieve high accuracy. This indicates that certain chemical properties are indeed governed by larger-scale structural patterns that shallow roles cannot fully capture.

Discussion and Conclusion

This framework suggests that the success of modern GNNs may stem from their ability to approximate these local and meso-scale structural roles. By making the scale $d$ an explicit parameter, researchers can better understand the structural requirements of their specific tasks.

While powerful, the current SNP-embedding is transductive, meaning it is tied to the specific node identities of a given graph. Future work aims to extend this to inductive settings, allowing the model to generalize to unseen graphs by incorporating external node features directly into the propagation process. Ultimately, scale-dependent roles provide a flexible and theoretically grounded lens through which to view the complex identities of nodes in large-scale networks.

Summary updated

BibTeX
@misc{scholkemper2021local,
  author = {Michael Scholkemper and Michael T. Schaub},
  title = {{Local, global and scale-dependent node roles}},
  year = {2021},
  eprint = {2105.12598},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.12598},
}
Figure