Manuscript Offprint
arXiv:2609.08152Topology-induced Operators Reveal Complementary Graph Representations without Training
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Graph representation learning has largely focused on designing increasingly sophisticated models to transform graph topology into vector representations, or embeddings. However, the extent to which embedding quality depends on model learning, rather than on the underlying topological transformations, remains unclear. Here, we show that informative embeddings can be derived without complicated model design and gradient-based training. Propagating random features through implicit hierarchical structures induced by random walks and anonymous walks yields embeddings that capture node proximity and structural role, respectively. These two training-free embeddings preserve complementary aspects of graph organization and perform competitively with classic and recent methods across various node-, edge-, and graph-level tasks. They often require substantially less computation, resulting in a favorable quality-efficiency trade-off. Combining the two types of embeddings further improves inference quality of some tasks compared with using either embedding type alone. Our results suggest that informative graph embeddings can arise from carefully chosen topological transformations before any learning operation is applied.
Keywords: Graph Embedding, Graph Representation Learning, Identity and Position Embedding, Random Walk and Anonymous Walk
1 Introduction
Graphs (also called networks) provide a universal abstraction for modeling complex systems across nature and engineering, including ecological food webs [1], neural connectomes [2], the Internet [3], power grids [4], and transportation systems [5]. Many scientific and engineering problems in these systems [6, 7] can be formulated as inference tasks on graphs, such as community detection [8, 9], anomaly detection [10, 11], and link prediction [12–14]. Graph representation learning has emerged as a fundamental technique for graph inference, mapping nodes, edges, or entire graphs into low-dimensional vector representations (also called embeddings) that preserve information relevant to downstream tasks. Modern graph inference models, exemplified by graph convolutional networks [15] and graph transformers [16], increasingly rely on sophisticated architectures and trainable transformations to obtain such embeddings. Yet it remains unclear how much of the resulting embeddings is produced by model learning and how much is already determined by the topological transformations applied to the graph. Understanding this distinction is important for clarifying how graph topology is converted into representations and which aspects of this process genuinely require learning.
A key difficulty in addressing this question is that graph topology contains multiple types of properties suitable for different inference tasks. Two fundamental yet distinct examples are node positions and identities. Node position concerns where a node lies relative to others in the graph. For instance, nodes belonging to the same community, with dense local connectivity, tend to have a high overlap of neighbors and hence nearby positions [8]. Position embedding (alternatively called proximity-preserving embedding [17, 18]) is designed to preserve such relative proximity. Node identity, in contrast, concerns what structural role a node plays in the graph, which is relevant to the node's centrality [19], ego-net structure [20], and degree patterns [21]. Identity embedding (also defined as structural role-based embedding [17, 18]) aims to encode this structural role. These two properties provide complementary views of graph organization. Nodes from different communities with distinct positions can share similar structural roles, whereas nodes in the same community can also play substantially different roles. Hence, a graph representation that preserves one aspect well does not necessarily capture the other.
This distinction also makes it challenging to determine how different topological properties emerge in modern graph representations. Most recent graph inference models, especially graph neural networks (GNNs) [22–24], combine node attributes, topology-induced operators, trainable transformations, and task-specific objectives. Their resulting embeddings reflect intertwined effects of topology, attributes, and learning, making it hard to isolate which topological transformations preserve a specific property. This ambiguity is particularly relevant for attributed graphs, where attributes may be partially correlated or even inconsistent with topology [25–29]. Recent efforts have attempted to enhance topology awareness regarding node positions and identities by designing dedicated mechanisms for extracting structural information [30–35]. However, these approaches often emphasize one type of topology property and combine topology-aware transformations with feature processing and gradient-based model optimization. Consequently, it remains unclear how complementary topology properties relate to one another and, more fundamentally, whether sophisticated learning is necessary to encode them. This separation is also relevant to efficiency, because elaborate feature extraction and training procedures introduce substantial computational costs.
Here, we address the above challenges from an operator-level perspective. Our key insight is that different stochastic transformations of graph topology can expose distinct structural channels even without learning model parameters. Many classic position embedding methods, such as node2vec [36], exploit random walks (RWs), where nodes with higher overlaps of neighbors and thus closer positions are more likely to be visited by RW sampling. In contrast, anonymizing an RW according to the order in which nodes first occur removes their location-specific labels (Fig. 1b) while retaining the pattern of structural relationships [37]. The resulting anonymous walks (AWs) have been theoretically shown to contain sufficient information to reconstruct node ego-nets [38]. Motivated by these findings, we develop PI-HIST (Position and Identity embedding from Hidden Hierarchical Structures of graph Topology). It treats RWs and AWs as topology-induced operators rather than viewing them merely as sampling procedures. We use random features as the common inputs these operators and derive embeddings via a only single training-free feedforward propagation (FFP), which can expose complementary information about node positions and identities. This simple design also suggests the potential for a better quality-efficiency trade-off since there is no iterative gradient-based optimization.
We systematically evaluate this framework across 7 node-, edge-, and graph-level inference tasks, comparing PI-HIST with 18 classic and state-of-the-art baselines on 8 real-world and 9 synthetic graphs. Our results show that even with a random feature input and without gradient-based training, informative position and identity embeddings can emerge from PI-HIST's topology-induced propagation. The derived two types of embeddings exhibit different strengths across inference tasks. Their simple combination further improves the inference quality of some tasks compared with either embedding type alone. The training-free design also leads to favorable quality-efficiency trade-offs relative to more elaborate embedding methods. Collectively, these outcomes suggest that a substantial fraction of structural signals for informative graph embeddings can arise from the topology-induced operator before any learned transformation is introduced. More broadly, disentangling complementary graph topology channels provides a new insight into studying graph embedding mechanisms at the operator level and offers a simple perspective on designing efficient and interpretable graph inference models.
2.1 Proof-of-concept study of PI-HIST on position and identity embeddings
To isolate the contribution of graph topology, we consider an unsupervised embedding setting in which topology is the only available input. The proposed PI-HIST method adopts a simple design (Fig. 1c) that uses RW- and AW-induced hierarchical structures as parameter-free backbones, whose layers from bottom to top correspond to the reversed order of RWs and AWs. We feed random features to these backbones and directly get embeddings via a single FFP, combined with simple normalization, skip connections, and nonlinear activation. For simplicity, we denote the two variants based on RW and AW as PI-HIST (R) and PI-HIST (A), respectively. We later demonstrate that PI-HIST (R)'s embedding derivation is equivalent to propagating random features through an untrained GNN with mean aggregation (cf. 'Methods' section). Different from RW, there are currently no closed-form solutions to directly obtain AW statistics. We therefore develop an efficient algorithm to estimate AW statistics and extract associated hierarchical structures for PI-HIST (A) before FFP. Full technical details are elaborated in 'Methods' section and Supplementary Section B. We also provide theoretical support for the effectiveness of PI-HIST in Supplementary Section C.
The ability of PI-HIST to capture specific properties can be inferred from whether the resulting embeddings behave consistently with existing approaches. We apply node2vec [36] and struc2vec [21], which are classic

Fig. 1 Overview of PI-HIST with RWs, AWs, and position/identity embeddings. a, Zachary's karate club network with two communities (blue and orange nodes) and three structural roles (purple, green, and red circles). b, Example RWs starting from node with length and their corresponding AWs. c, Architecture of PI-HIST based on RW- and AW-induced hierarchical structures. Starting from random features, PI-HIST derives node embeddings through a single FFP over a hierarchical structure, combined with simple skip connections, normalization, and nonlinear activation. PI-HIST (R) and PI-HIST (A) denote variants using RW and AW, respectively. d-g, Visualization of node2vec, struc2vec, and PI-HIST embeddings, obtained by reducing the original embedding dimensionality to 2 via t-SNE. As classic position and identity embedding methods, node2vec and struc2vec can distinguish between community members and roles corresponding to node positions and identities, respectively. Surprisingly, PI-HIST (R) and (A) can obtain position and identity embeddings consistent with node2vec and struc2vec, even with a single untrained FFP from random feature inputs.
position and identity embedding methods, to the widely studied Zachary's karate club network [39], with the embedding dimensionality reduced from 16 to 2 using t-SNE [40]. This network records social connections between 34 club members (Fig. 1a), who were divided into 2 competing factions after a conflict between the head coach, Mr. Hi (), and club officers led by the president, John A. ().
In Fig. 1d, node2vec can distinguish most members of the two factions (or communities) highlighted by blue and orange nodes, where nodes from the same community have high overlaps of neighbors, close relative positions, and thus similar position embeddings. Consistent with the original findings of Zachary [39], node2vec may misclassify , which is structurally closer to the Officers' faction (orange nodes) but has to join Mr. Hi's camp (blue nodes) due to a black belt test. Nodes in this network also play different roles. Mr. Hi () and John A. () should be leaders of the two factions. We define nodes with high centrality as strong supporters of a faction and the rest nodes as ordinary members. In Fig. 1e, struc2vec has the potential to distinguish ordinary members (red circles) from leaders and strong supporters (purple and green circles).
Surprisingly, both PI-HIST variants can obtain embeddings consistent with node2vec and struc2vec (Fig. 1d-e) even through a single training-free FFP from random inputs. PI-HIST (R) discriminates most members from the two communities (Fig. 1f), while PI-HIST (A) effectively separates nodes with different roles (Fig. 1g). Particularly, PI-HIST (A) shows stronger identity-capturing ability than struc2vec, enabling the further distinction between leaders (purple circles) and strong supporters (green circles). These observations provide initial evidence that the training-free propagation through RW- and AW-induced hierarchical structures can generate distinct position and identity embeddings. They also motivate a broader question: whether the complementary information exposed by the RW- and AW-induced operators persists across different graph inference tasks. We further conduct systematic evaluations and case studies at node, edge, and graph levels (Table 1), examining both the individual and joint contributions of the two types of embeddings.
2.2 Evaluation of node-level tasks for position and identity embedding
We first quantitatively examine whether both PI-HIST variants can derive informative position and identity embeddings using 4 node-level tasks evaluated on 8 public real-world graph datasets (Fig. 2a). The datasets cover diverse scenarios and can be categorized into two types according to their ground-truth. Europe [21], USA [21], Actor [41], and Film [41] are the first type of datasets providing labels about node identities (e.g., function roles or influences), while PPI [36], BlogCatalog [36], DBLP [42], and Amazon [42] are the second type of datasets with position ground-truth (e.g., community memberships). The scales of these datasets also span a wide range from thousands to millions of edges (cf. Supplementary Table S1 for details of datasets).
Table 1 Summary of experimental evaluations and case studies in this work.
| Levels | Tasks | Position/ Identity-Related | Outcomes |
|---|---|---|---|
| Node-level | Node identity classificationCommunity detection | IdentityPosition | Fig. 2, Supplementary Fig. S1 |
| Node position classificationNode identity clustering | PositionIdentity | ||
| Edge-level | Link predictionGraph reconstruction | UncertainUncertain | Fig. 3, Supplementary Fig. S2 |
| Graph-level | Graph superfamily identification | Uncertain | Fig. 4, Supplementary Fig. S3, S4 |
As summarized in Fig. 2a, we use supervised node identity (or position) classification to measure the ability to capture node identities (or positions) on the first (or second) type of datasets with corresponding ground-truth. The two classification tasks quantitatively evaluate whether the derived embeddings can accurately separate nodes with different labels of positions and identities. Community detection (also called node position clustering), a straightforward unsupervised position-related task, is employed to evaluate position-capturing capacity on the first type of datasets without position ground-truth. By extending spectral clustering [43], we introduce node identity clustering, an unsupervised identity-related task, to evaluate identity-capturing quality on the second type of datasets without identity ground-truth. The two clustering tasks test whether the given embeddings can successfully group together nodes with similar positions and identities, characterized by community structures and high-order degree patterns, respectively. In addition, we also measure efficiency by recording the overall embedding inference time (sec) of each method. Full experiment settings are detailed in Supplementary Section D.3.
We compare the quality and efficiency of PI-HIST (R) and (A) over 18 classic and state-of-the-art baselines with diverse categories (Supplementary Table S2). Representative evaluation results on Europe, Actor, BlogCatalog, and Amazon are visualized in Fig. 2b-e. Additional results with more quality metrics and on the remaining datasets are shown in Supplementary Fig. S1. Given a pair of quality and efficiency metrics, one can map each method to a dot in a 2D space. We use red and green dots to denote position and identity embedding baselines. For the rest baselines with purple dots, it remains uncertain which property they can preserve. Efficient or scalable baselines are highlighted by black dot edges. Because the inference time of all methods spans several orders of magnitude, from approximately to seconds, we use a logarithmic scale for time. We define that a method encounters the out-of-time (OOT) exception, if it fails to derive feasible embeddings within seconds. OOM denotes the out-of-memory exception. The blue arrow in each plot indicates the direction toward a better quality-efficiency trade-off. For PI-HIST (R) and (A), their rankings of quality and efficiency among all approaches are denoted by Q and E.
In most cases, one can observe consistent outcomes among different categories of methods. When evaluating identity-capturing ability (i.e., node identity classification and clustering on the first and second types of datasets), identity-preserving baselines (green dots), such as struc2vec [21], generally outperform position embedding approaches (red dots), such as node2vec [36]. Similarly, in the rest cases measuring position-capturing ability, position embedding methods (red dots) tend to obtain better quality. This consistency supports the validity of our experimental design.
Surprisingly, even with a single training-free FFP from random inputs, at least one PI-HIST variant ensures quality competitive to or even better than the strongest baselines. Particularly, PI-HIST (R) and (A) have results consistent with classic position and identity embedding baselines (red and green dots), respectively. PI-HIST (R) has significantly better embedding quality than PI-HIST (A) under the position-related evaluation settings (i.e., community detection and node position classification on the first and second types of datasets) and vice versa in the rest cases. These outcomes therefore indicate that complementary topological information can emerge from different topology-induced operators even when the input only includes uninformative random features and no parameters are optimized. They also support the view that informative graph embeddings can arise from carefully chosen topology-induced operators before any learned transformation is introduced.
The training-free design also provides a favorable computational profile. Since PI-HIST requires neither time-consuming feature augmentation nor iterative gradient-based optimization, both variants deliver top-tier efficiency in most cases. Identity embedding methods (green dots) are generally less efficient than the rest approaches (red and purple dots). None of the identity embedding baselines can be considered efficient (black dot edges). They all suffer from OOT or OOM on large graphs (DBLP and Amazon). This implies that effectively capturing node identities may sometimes require higher computational overhead than node positions. While less efficient than PI-HIST (R) and some efficient baselines (e.g., LouvainNE [44] and SketchNE [45]) in several cases, PI-HIST (A) still achieves significantly better efficiency than identity embedding baselines and ranks within the top-5 among all methods in terms of efficiency. In summary, PI-HIST has the potential to obtain a favorable trade-off between the inference quality and efficiency for position and identity embedding.

Fig. 2 Representative evaluation results of node-level tasks. a, Overview of evaluation settings on 8 public real-world graph datasets with 2 types of ground-truth using 4 node-level tasks. b-e, Evaluation on representative datasets with identity (Europe and Actor) or position (BlogCatalog and Amazon) ground-truth. Specifically, node identity classification (macro F1) and community detection (modularity) assess the quality of position and identity embeddings (y-axis) on identity-ground-truth datasets (b-c), whereas node position classification (macro-F1) and identity clustering (conductance) evaluate the quality of corresponding embeddings (y-axis) on position-ground-truth datasets (d-e). The logarithm of inference time (sec) is used to measure the efficiency of all cases (x-axis). ↑ and ↓ denote higher-is-better metrics and lower-is-better metrics, respectively. OOT and OOM represent out-of-time and out-of-memory exceptions. Q and E denote rankings of quality and efficiency obtained by the two PI-HIST variants. Blue arrows indicate directions toward better quality-efficiency trade-offs. Red and green dots denote position and identity embedding baselines, respectively. It is uncertain for those with purple dots which property they capture. Black-edged dots highlight efficient or scalable baselines. Surprisingly, PI-HIST (R) and (A), despite their extremely simple architectures, achieve top-tier quality for position and identity embedding while maintaining top-tier efficiency in most cases, demonstrating their effectiveness in capturing distinct topology properties and achieving a favorable quality-efficiency trade-off. Additional results with more metrics and on other datasets are detailed in Supplementary Fig. S1 and Supplementary Section E.
2.3 Evaluation of edge-level tasks for combining node positions and identities
In addition to the position- and identity-related tasks shown in Fig. 2a, it may be uncertain which property is preferred for some other tasks. Based on the verified ability of PI-HIST (R) and (A) to encode node positions and identities, we explore whether these two properties provide complementary topological information and together improve the inference quality. We consider two edge-level tasks, link prediction and graph reconstruction, as representative examples (Fig. 3a). The tasks are evaluated on the same real-world graph datasets used in node-level experiments (Fig. 2a), with area under the receiver operating characteristic curve (AUC) used to quantify inference quality.
PI-HIST originally generates node-wise embeddings. Let be the embedding of node . To enable to support edge-level tasks, we obtain a node-pair embedding by concatenating the corresponding node embeddings for each pair . is then fed into a downstream classifier, such as Logistic regression in Fig. 3a, to determine whether there is an edge or anomaly between . This is a standard setting widely adopted by classic embedding approaches for edge-level tasks [46]. Full experiment settings are elaborated in Supplementary Section D.3.

Fig. 3 Representative evaluation results of edge-level tasks. a, Overview of evaluation settings for the 2 edge-level tasks, link prediction and graph reconstruction, on 8 real-world graph datasets (Fig. 2a). b-d, Representative results of link prediction (AUC) and graph reconstruction (AUC) on USA, Film, and DBLP. Baselines with red and green labels/bars denote position and identity embedding methods, respectively. It is uncertain for methods with purple labels/bars which property they capture. R and A indicate improvements of PI-HIST (R&A) over PI-HIST (R) and (A), respectively. In some cases, PI-HIST (R&A), a simple combination of the two variants, achieves substantial quality improvements (e.g., > 1.0%), suggesting that integrating complementary position and identity information can improve the inference quality of some tasks. Additional evaluation results on the remaining datasets are detailed in Supplementary Fig. S2 and Supplementary Section E.
Let and be node-wise embeddings from PI-HIST (R) and (A). We consider a simple combination of the two variants, denoted as PI-HIST (R&A). For each node , it computes a fused embedding via , which works best with the downstream module for the two edge-level tasks. This operation concatenates embeddings from two sources and introduces a hyper-parameter to adjust their relative fusion contributions. is an optional normalization operation eliminating the magnitude difference between and (cf. 'Method' Section for details). Following the pipeline in Fig. 3a, we apply to the two edge-level tasks, where we tune for PI-HIST (R&A) and compare its best inference quality with the two PI-HIST variants and other baselines.
Representative evaluation results on USA, Film, and DBLP are depicted in Fig. 3b-d, with additional outcomes on the remaining datasets shown in Supplementary Fig. S2. In each plot, red labels and bars highlight position-preserving baselines, while green ones mark identity-preserving counterparts. It is uncertain for those with purple labels and bars which property they can preserve. R and A represent the quality improvements of
PI-HIST (R&A) over PI-HIST (R) and (A), respectively. In addition to the reported metrics of PI-HIST (R&A) highlighted by blue bars, we also visualize detailed outcomes with respect to different settings of using dark-blue curves.
Our results first show that the relative importance of node positions and identities varies across datasets and tasks. For graph reconstruction on USA and PPI, classic identity embedding approaches (green bars) generally outperform position embedding baselines (red bars). Consistent with these baselines, PI-HIST (A) (dark-green bar) achieves better graph reconstruction quality than PI-HIST (R) (dark-red bar) on USA and PPI. In contrast, position-preserving methods (red bars) tend to outperform identity-preserving counterparts on Film and Actor. Similarly, PI-HIST (R) (dark-red bar) also obtains better quality on the same datasets. Although in most cases of link prediction, identity embedding baselines (green bars) generally attain superior performance than position-preserving approaches (red bars), the two types of methods achieve close quality on some datasets, such as Europe and BlogCatalog. These observations indicate that link prediction and graph reconstruction are neither typically position- nor identity-dominant tasks. Moreover, the relative performance of PI-HIST (R) and (A) broadly follows that of established position- and identity-preserving embedding methods, providing further evidence that the two training-free variants capture distinct topology properties.
More importantly, combining the two types of embeddings generally improves inference quality over using either type alone. Across all evaluation settings, PI-HIST (R&A) (blue bars) delivers better inference quality than both PI-HIST (R) and (A) (dark-red and dark-green bars), with the gain varying across datasets and tasks. Surprisingly, such an improvement is substantial in some cases (e.g., more than 1% for link prediction and graph reconstruction on Film), despite involving only a weighted fusion of the two variants. Furthermore, PI-HIST (R&A) yields quality competitive to or even better than the strongest baselines.
The dependence on further supports the complementary nature of the two PI-HIST variants. For detailed outcomes of PI-HIST (R&A) (dark-blue curves), , which corresponds to fusing both position- and identity-related information, can ensure significantly better quality than the two corner cases that rely exclusively on one embedding type. Hence, the improvement does not simply result from selecting the better-performing PI-HIST variant for each dataset. Incorporating both types of embeddings can provide additional information for some inference tasks, including link prediction and graph reconstruction.
Together, these results extend the node-level findings, where the two types of embeddings derived by PI-HIST are not only distinguishable but also complementary. The two topological operators based on RW- and AW-induced hierarchical structures expose different aspects of graph organization. Combining the resulting position and identity embeddings can improve inference when both aspects are relevant. This provides empirical support for disentangling graph topology into complementary channels and subsequently recombining them according to the requirements of a downstream task.
2.4 Case studies of graph-level tasks for combining positions and identities
We next explore whether the position and identity embeddings derived by PI-HIST can also provide meaningful graph-level representations. While PI-HIST's node-wise embeddings are not specifically designed to represent a whole graph , the graph-level embedding obtained by applying a standard permutation-invariant pooling operation to provides a way to investigate whether PI-HIST can retain graph-level structural patterns. As a case study, we consider graph superfamily identification following the settings of Milo et al. [47] and Dong et al. [48]. This task tests whether the derived graph-level features or representations can distinguish graphs from different superfamilies while grouping those with similar structural patterns together. A superfamily typically corresponds to a specific graph generation mechanism or application domain.
Given node-wise embeddings derived from the topology of a graph , we obtain a graph-level embedding that simply averages representations of all nodes. The superfamily identification on a set of graphs can be evaluated by computing the correlation coefficient matrix of corresponding graph-level embeddings . Let and be node-wise embeddings from PI-HIST (R) and (A). For each node , PI-HIST (R&A) derives a fused embedding via , which works best with the downstream computation of correlation matrix. The fused embedding of a graph is then obtained by , with as an optional normalization operation (cf. 'Methods' Section for details).
We first consider the 8 real-world graphs used in node- and edge-level evaluations. Following Milo et al. [47] and Dong et al. [48], we partition them into 4 superfamilies according to their application scenarios (Supplementary Table S1) and rearrange their layout order based on this partition (Fig. 4a) when visualizing a correlation matrix. Under this setting, entries within each main-diagonal block of a visualized matrix, which corresponds to a specific superfamily, are expected to have higher correlations than those across different blocks.
We further construct a controlled synthetic setting based on the Lancichinetti-Fortunato-Radicchi (LFR) benchmark [49]. It uses a set of parameters to generate synthetic graphs and can mimic various topology patterns by adjusting these parameters, allowing us to systematically vary topological aspects related to node positions and identities. Given that the two topology properties are closely related to community structures a

C
| PI-HIST (R) | |||||||
|---|---|---|---|---|---|---|---|
| Europe | 1.00 | 0.62 | 0.22 | 0.20 | 0.20 | 0.18 | 0.21 |
| USA | -0.62 | 1.00 | 0.31 | 0.34 | 0.15 | 0.01 | 0.25 |
| Film | -0.22 | 0.31 | 1.00 | 0.12 | 0.37 | 0.09 | 0.42 |
| Actor | -0.20 | 0.34 | 0.12 | 1.00 | -0.07 | 0.07 | 0.58 |
| DBLP | 0.20 | 0.15 | 0.37 | -0.07 | 1.00 | 0.58 | 0.17 |
| Amazon | 0.18 | 0.01 | 0.09 | 0.07 | 0.58 | 1.00 | 0.10 |
| BlogCatalog | 0.21 | 0.25 | 0.42 | 0.58 | 0.17 | 0.10 | 1.00 |
| PPI | 0.31 | 0.32 | 0.33 | 0.34 | 0.15 | 0.06 | 0.51 |
| PI-HIST (A) | |||||||
|---|---|---|---|---|---|---|---|
| 1.00 | 0.53 | 0.32 | 0.27 | 0.25 | 0.21 | 0.73 | |
| -0.53 | 1.00 | 0.34 | 0.28 | 0.54 | 0.45 | 0.30 | 0.53 |
| -0.32 | 0.34 | 1.00 | 0.93 | 0.70 | 0.68 | 0.33 | 0.72 |
| 0.27 | 0.26 | 0.93 | 1.00 | 0.72 | 0.75 | 0.39 | 0.76 |
| 0.25 | 0.54 | 0.70 | 0.72 | 1.00 | 0.92 | 0.33 | 0.70 |
| -0.21 | 0.45 | 0.68 | 0.76 | 0.92 | 1.00 | 0.40 | 0.80 |
| -0.76 | 0.30 | 0.33 | 0.39 | 0.33 | 0.40 | 1.00 | 0.48 |
| 0.40 | 0.53 | 0.72 | 0.76 | 0.79 | 0.80 | 0.48 | 1.00 |
| PI-HIST (R&A), | |||||||
|---|---|---|---|---|---|---|---|
| 1.00 | 0.69 | 0.23 | 0.27 | 0.26 | 0.21 | 0.65 | |
| -0.69 | 1.00 | 0.25 | 0.32 | 0.34 | 0.26 | 0.40 | 0.54 |
| -0.23 | 0.25 | 1.00 | 0.79 | 0.69 | 0.66 | 0.34 | 0.58 |
| -0.27 | 0.32 | 0.79 | 1.00 | 0.65 | 0.66 | 0.42 | 0.67 |
| -0.26 | 0.34 | 0.69 | 0.65 | 1.00 | 0.92 | 0.29 | 0.66 |
| -0.21 | 0.26 | 0.66 | 0.66 | 0.92 | 1.00 | 0.36 | 0.69 |
| -0.65 | 0.40 | 0.34 | 0.42 | 0.29 | 0.36 | 1.00 | 0.53 |
| -0.42 | 0.54 | 0.58 | 0.67 | 0.66 | 0.69 | 0.53 | 1.00 |
| PI-HIST (R&A), Expected Decreasing Direction | |||||||
|---|---|---|---|---|---|---|---|
| G1 | G2 | G3 | G4 | G5 | G6 | G7 | |
| Varying Node Positions | (1000, 10, 50, 20, 500) | (1000, 10, 50, 40, 500) | (1000, 10, 50, 60, 500) | (1000, 10, 50, 80, 500) | (1000, 10, 50, 100, 500) | (1000, 10, 50, 100, 500) | (1000, 10, 50, 100, 500) |
| Varying Node Identities | (1000, 8, 50, 100, 500) | (1000, 8, 50, 100, 500) | (1000, 7, 50, 100, 500) | (1000, 6, 50, 100, 500) | (1000, 6, 50, 100, 500) | (1000, 6, 50, 100, 500) | (1000, 6, 50, 100, 500) |
d
| PI-HIST (R) | |||||||
|---|---|---|---|---|---|---|---|
| G1 | G2 | G3 | G4 | G5 | G6 | G7 | |
| G1 | 1.00 | 0.36 | 0.38 | 0.39 | 0.32 | 0.28 | 0.29 |
| G2 | -0.36 | 1.00 | 0.42 | 0.43 | 0.40 | 0.34 | 0.39 |
| G3 | -0.38 | 0.42 | 1.00 | 0.41 | 0.36 | 0.35 | 0.36 |
| G4 | -0.39 | 0.43 | 0.41 | 1.00 | 0.39 | 0.37 | 0.36 |
| G5 | -0.32 | 0.40 | 0.36 | 0.39 | 1.00 | 0.33 | 0.37 |
| G6 | -0.28 | 0.34 | 0.35 | 0.37 | 0.33 | 1.00 | 0.34 |
| G7 | -0.29 | 0.39 | 0.36 | 0.36 | 0.37 | 0.34 | 1.00 |
| G8 | -0.29 | 0.35 | 0.39 | 0.40 | 0.30 | 0.33 | 0.31 |
| G9 | -0.28 | 0.33 | 0.25 | 0.30 | 0.26 | 0.22 | 0.25 |
| Expected Decreasing Direction | |||||||
|---|---|---|---|---|---|---|---|
| G1 | G2 | G3 | G4 | G5 | G6 | G7 | |
| G1 | 1.00 | -0.09 | -0.09 | -0.10 | -0.06 | -0.10 | -0.18 |
| G2 | -0.09 | 1.00 | 0.42 | 0.37 | 0.43 | 0.42 | 0.43 |
| G3 | -0.10 | 0.42 | 1.00 | 0.42 | 0.53 | 0.57 | 0.50 |
| G4 | -0.06 | 0.37 | 0.42 | 1.00 | 0.68 | 0.56 | 0.62 |
| G5 | -0.10 | 0.43 | 0.53 | 0.66 | 1.00 | 0.64 | 0.68 |
| G6 | -0.18 | 0.42 | 0.57 | 0.56 | 0.64 | 1.00 | 0.86 |
| G7 | -0.14 | 0.43 | 0.50 | 0.62 | 0.68 | 0.86 | 1.00 |
| G8 | -0.07 | 0.39 | 0.58 | 0.56 | 0.67 | 0.82 | 0.80 |
| G9 | -0.11 | 0.18 | 0.29 | 0.32 | 0.33 | 0.63 | 0.61 |
| PI-HIST (R&A), Expected Decreasing Direction | |||||||
|---|---|---|---|---|---|---|---|
| G1 | G2 | G3 | G4 | G5 | G6 | G7 | |
| G1 | 1.00 | 0.59 | 0.57 | 0.52 | 0.47 | 0.43 | 0.44 |
| G2 | 0.59 | 1.00 | 0.74 | 0.74 | 0.71 | 0.71 | 0.71 |
| G3 | 0.57 | 0.74 | 1.00 | 0.73 | 0.76 | 0.78 | 0.74 |
| G4 | 0.52 | 0.74 | 0.73 | 1.00 | 0.82 | 0.78 | 0.81 |
| G5 | 0.47 | 0.71 | 0.76 | 0.92 | 1.00 | 0.81 | 0.82 |
| G6 | 0.43 | 0.71 | 0.78 | 0.78 | 0.81 | 1.00 | 0.90 |
| G7 | 0.44 | 0.71 | 0.74 | 0.91 | 0.83 | 0.90 | 1.00 |
| G8 | 0.46 | 0.71 | 0.78 | 0.79 | 0.84 | 0.89 | 0.90 |
| G9 | 0.24 | 0.49 | 0.53 | 0.57 | 0.60 | 0.74 | 0.73 |
Fig. 4 Representative case studies for graph-level tasks. a, The superfamily partition of real-world graph datasets (Fig. 2a) according to their scenarios. b, Parameter settings of the LFR synthetic benchmark, where N denotes the number of nodes; and are average and maximum degrees; and are minimum and maximum community sizes. and simulate gradual variations in node positions and identities, respectively. c-d, Correlation matrices of PI-HIST (R), (A), and (R&A) for superfamily identification on real-world and synthetic graphs. Purple arrows highlight directions along which correlation values are expected to decrease (i.e., away from the main diagonal) for results on synthetic graphs. Compared with PI-HIST (R), PI-HIST (A) generally exhibits clearer correlation patterns for several expected groupings, although a few cases captured by PI-HIST (A) are less apparent than PI-HIST (R). PI-HIST (R&A), with an appropriate , retains the strengths of both variants and shows a more consistent graph-level similarity structure. These observations suggest that fusing node positions and identities may provide complementary structural information for graph-level inference. Full results of PI-HIST (R&A) with the rest settings of are detailed in Supplementary Fig. S3. Additional results for other baselines (BoD, BoHD, SSP, and CNS) are shown in Supplementary Fig. S4.
and degrees, we simulate gradual variations in node positions and identities by adjusting the minimum community size and average degree in the LFR benchmark, respectively. We generate 9 synthetic graphs in total (Fig. 4b), with and corresponding to progressively varying position- and identity-related structure, respectively. Based on this layout order of graphs , entries in a visualized correlation matrix are expected to decrease as they move away from the main diagonal (purple arrows in Fig. 4d). A stronger diagonal trend therefore indicates better preservation of the underlying graph-level similarity. Full details of experiment settings are elaborated in Supplementary Section D.3.
Similar to the edge-level evaluation, we tune for PI-HIST (R&A) and compare the best result with those of PI-HIST (R) and (A). Representative correlation matrices for the real-world and synthetic graphs are visualized in Fig. 4c-d. Full results of PI-HIST (R&A) under all settings of are shown in Supplementary Fig. S3. Following Dong et al. [48], we also compare PI-HIST with 4 baselines that can derive graph-level features or statistics for the downstream correlation matrix computation. The selected baselines include bag of degrees (BoD), bag of high-order degrees (BoHD), subgraph significance profile (SSP) [47], and common neighbor signature (CNS) [48], with SSP and CNS as sophisticated methods that characterize graphs using statistics of motifs [50] and structural diversity [51]. Additional results of these baselines are depicted in Supplementary Fig. S4.
For case studies on real-world graphs (Fig. 4c), PI-HIST (A) exhibits relatively higher within-group correlations (dark red) for several expected superfamilies, such as {Film, Actor} and {DBLP, Amazon}, although some expected similarities are not fully recovered. For instance, it may fail to group Europe and USA because the correlation between {Europe, BlogCatalog} is much larger than that between {Europe, USA}. In contrast, PI-HIST (R) shows a clearer correlation pattern for {Europe, USA}, despite its weaker diagonal correlation trend. More importantly, PI-HIST (R&A) produces a more consistent block structure with the predefined grouping that preserves success cases of both PI-HIST variants while making PPI more distinguishable from other graphs, just as we anticipated. Among the 4 baselines (Supplementary Fig. S4a), SSP also shows several within-group correlation patterns but is less consistent with the tentative grouping than PI-HIST (R&A).
The controlled synthetic experiment provides another qualitative illustration of how the two PI-HIST variants encode complementary structural information. According to our simulation settings, PI-HIST (R) and (A) are expected to have advantages in grouping and , respectively. Consistent with this expectation, the correlation matrix of PI-HIST (A) (Fig. 4d) shows that entries near the main-diagonal block induced by generally decrease along the purple arrow's direction, although some failure cases remain near the block corresponding to . Conversely, in PI-HIST (R)'s correlation matrix, more success cases can be found near the main-diagonal block formed by , despite a weaker overall trend. Furthermore, PI-HIST (R&A) leverages the advantages of both PI-HIST (R) and (A). Almost all entries in the correlation matrix decrease gradually as they move away from the main diagonal. The superfamily identification on such synthetic graphs is challenging. Only CNS out of the 4 baselines (Supplementary Fig. S4b) yields a correlation matrix with an overall trend matching that of PI-HIST (R&A). Compared with CNS, the correlation matrix of PI-HIST (R&A) exhibits a clearer diagonal correlation trend with a higher maximum correlation and fewer failure cases.
The most visually consistent correlation patterns of PI-HIST (R&A) in both the real-world and synthetic settings are generally obtained when , rather than at the two boundary cases (Supplementary Fig. S3). This observation, together with outcomes of node- and edge-level evaluations, further suggests that disentangling topology structures into position and identity embeddings encodes complementary information regarding graph topology. An appropriate fusion of the two types of embeddings facilitates improved graph inference. Overall, our graph-level case studies provide additional qualitative support for viewing position and identity embeddings as complementary channels of graph topology and for using their simple combination when downstream inference depends on both.
3 Discussion
Graph embedding serves as a fundamental framework of modern graph inference models, exemplified by GNNs [22–24]. Despite their effectiveness in various inference tasks, it remains difficult to disentangle the contributions of graph topology, feature processing, and parameter learning to the resulting embeddings. This difficulty arises in part because graph topology contains multiple complementary properties, such as node positions and identities, whose relevance can vary across tasks. Here, we address this challenge from an operator-level perspective. PI-HIST probes RW- and AW-induced hierarchical structures with random features through a single training-free FFP. The resulting PI-HIST (R) and (A) embeddings preferentially capture node positions and identities, respectively. Across 7 node-, edge-, and graph-level inference tasks on 8 real-world and 9 synthetic graphs, both PI-HIST variants achieve inference quality competitive to or even better than classic and recent embedding methods while generally requiring substantially less computation. Moreover, combining the two types of embeddings improves the inference quality of several tasks, indicating that the two topology-induced operators expose complementary structural information. These findings suggest that informative graph embeddings can emerge from carefully chosen topology-induced transformations before extensive gradient-based training is introduced.
The correlation between node position and identity has been discussed in prior research from different views. Srinivasan et al. [52] proved, using invariant theory, that identity and position embeddings share the same relationship as probability distributions and their samples. Zhu et al. [18] comprehensively evaluated 35 combinations of node pair proximities, nonlinear filters, and dimension reduction strategies for graph embeddings. They showed that the choice of node proximity metric largely determines whether the derived embeddings capture node positions or identities. Yan et al. [53] developed PaCEr, which first learns position embeddings from the RW-with-restart proximity distribution and then converts them to identity embeddings via a simple sorting-based transformation. From a view of graph signal processing, Qin et al. [54, 55] demonstrated that low- and high-pass filtering, which preserve the low- and high-frequency information of graph topology, can help yield position and identity embeddings, respectively. Our work complements these studies by examining the same distinction through a different mechanism about stochastic-process-induced hierarchical structures, with RW and AW as examples. While some embedding approaches [20, 56, 57] also leverage RW and AW, they use these stochastic processes for feature augmentation or loss construction, which subsequently rely on parameter learning and may easily suffer from low efficiency and scalability. In PI-HIST, RWs and AWs are not treated as sampling procedures or auxiliary inputs, but as topology-induced operators that expose different topology properties, which generally achieves a more favorable quality-efficiency trade-off.
In this article, we manually tune parameters and other optional settings of PI-HIST (cf. 'Methods' section and Supplementary Section D.4 for details), as there is no learning procedure. The training-free formulation of PI-HIST isolates the information exposed by topology-induced operators from that introduced by feature learning and gradient-based optimization. It also provides a good starting point for investigating how limited parameter learning can improve the adaptability of topology-induced embeddings while preserving their computational efficiency. As a natural extension of PI-HIST, we can simply let be learnable parameters. This further allows PI-HIST to assign distinct aggregation weights to different layers. The selection of , , and can also be formulated as a soft combination of all possible settings, with the combination weights learned by the attention mechanism. Since real-world applications may have various requirements for inference quality and efficiency, a promising future direction is to enable PI-HIST to achieve a tunable trade-off between the two aspects. One possible strategy is to adaptively control the extent of training (e.g., adjusting the number of iterations), where more training may lead to better inference quality yet sacrifice a certain degree of efficiency.
To eliminate the uncertain influence from graph attributes [25–29], we consider the unsupervised position and identity embedding, where topology is the only available input source and attributes are unavailable. This isolation is important for identifying the structural information exposed by RWs and AWs, but practical graph inference often involves additional node and edge attributes. Integrating attributes into PI-HIST requires another systematic investigation of the underlying correlation between the given attributes and different topology properties. An advanced extension is to adaptively weight attributes according to their correlation with graph topology. The subset of attributes aligned with the topology property required by a downstream task can receive higher incorporation weights to improve inference quality, whereas inconsistent attributes should be downweighted to avoid potential quality degradation compared with using topology alone. This extension can also be implemented based on the attention mechanism.
Beyond the RW and AW considered in this article, many other graph processes and algorithms also induce latent hierarchical structures, such as tree structures hidden in graph coarsening [58] and the Weisfeiler-Lehman test [59], which may capture useful graph properties. Applying the PI-HIST principle to these topology-induced operators could provide a systematic way to compare the structural information exposed by different graph transformations. Moreover, PI-HIST adopts the naive Euclidean space to encode embeddings passing through RW- and AW-induced hierarchical structures. Compared with these Euclidean embeddings, it has been proved that recent advances in hyperbolic representation learning [60, 61] can better preserve hierarchical structures with lower distortion and in lower-dimensional spaces. Hence, extending PI-HIST to hyperbolic space may further improve inference quality with little additional computational overhead.
4 Methods
4.1 Problem statements and preliminaries
This article considers the unsupervised position and identity embedding on undirected unweighted graphs. In general, one can describe a graph as , with and as the sets of nodes and edges. To fully study pure topology properties of node position and identity while eliminating the uncertain influence from graph attributes [25–29], we assume that graph topology is the only available input and leave the integration of attributes as a significant future direction ('Discussion' section).
Node Position. Let be the set of neighbors with exact distance from node . Positions of nodes can be characterized by the overlap of their -hop neighbors relevant to the community structure, where topology linkages are dense within each community but relatively loose between communities. Nodes with high overlaps of -hop neighbors are expected to belong to the same community and thus have similar positions. For the example graph in Fig. 1a, members from the same community (blue or orange nodes) have close positions.
Node Identity. Node identity describes the structural role that each node plays in the graph topology, which usually corresponds to a specific role or influence level in real-world network systems, such as the club leader in Fig. 1a, and is relevant to node centrality. Such a role can be characterized by the (i) -hop sub-graph rooted at (also called 's ego-net) induced by or (ii) degree statistics , with as the degree count or distribution of . Nodes with similar ego-nets or degree statistics are expected to play similar structural roles and thus have similar identities. For instance, ordinary members in Fig. 1a (nodes with red circles) have relatively low high-order degrees and are expected to have similar identities.
Position and Identity Embedding. We formulate graph embedding as a function that maps each node to a low-dimensional vector (also called embedding) (), with certain graph properties preserved. We define as the position (or identity) embedding, if preserves node positions (or identities). Namely, nodes with similar positions (or identities) should have close embeddings in terms of high similarity or short distance in the embedding space.
The derived node-wise embeddings can be used as inputs to some downstream modules to support node-level inference tasks, including Logistic regression for node classification and KMeans for node clustering. To enable these node-wise embeddings to support edge- and graph-level tasks, such as link prediction and graph superfamily identification, we further derive node-pair embeddings and a graph-wise embedding based on . Given a pair of nodes , we follow a commonly used strategy [46] that lets , with || as the concatenation operation. To get the embedding of a graph , we employ the standard mean pooling operation defined as .
RW and AW. An RW with length is a sequence of nodes , where represents the -th node and . Let the index start from 0. The RW can be mapped to an AW , with denoting the first occurrence index of in . As illustrated in Fig. 1b, is a valid RW of the Zachary's karate club network, with as its AW.
Particularly, nodes within the same community tend to share more neighbors and are more likely to be visited by RWs with a short length , compared with those from different communities. Micali et al. [38] have proved that AW statistics estimated from sufficient RWs originating at each node can be utilized to recover 's ego-net (Supplementary Section C). The anonymization operation allows RWs from nodes with long distances to share common AWs and thus similar AW statistics. In Fig. 1a, is the common AW of RWs and sampled from and , which belong to different communities. In summary, RW and AW have the potential to encode node positions and identities, respectively. Motivated by these findings, PI-HIST treats RWs and AWs as topology-induced operators that expose complementary information about node positions and identities. It derives position and identity embeddings by propagating random features over RW- and AW-induced hierarchical structures (Fig. 1b-c) using a single training-free FFP. Further theoretical support for the effectiveness of PI-HIST is provided in Supplementary Section C.
4.2 PI-HIST (R): position embedding inference
Given a graph , its topology structure can be described by an adjacency matrix , where if and otherwise; is the number of nodes. Let be the degree diagonal matrix, with as the degree of node . is defined as the one-step transition matrix of RW on . Accordingly, describes the -step RW transition probabilities, where encodes the probability of visiting node via an RW originated at and with an exact length . In essence, can be interpreted as an -layer hierarchical structure (Fig. 1c), whose layers from bottom to top correspond to the reverse order of RWs. Adjacent layers are connected by weighted links. gives the weight from the -th unit in layer to the -th unit in layer for .
For simplicity, one can arrange embeddings of all nodes into a matrix form , where the -th row corresponds to the embedding of node . Given a random input , is equivalent to propagating random features through the weighted hierarchical structure induced by RW with an exact length . To further leverage characteristics of RWs with length , we extend to a multi-layer architecture using skip connection and normalization from state-of-the-art graph learning approaches. Let and be the input and output of the -th layer, with denoting the random input. The -th layer is defined as
where is a tunable hyper-parameter ; represents an optional normalization operation. Here, we consider the z-score normalization adapted from the batch normalization commonly used in state-of-the-art learning techniques. Given a matrix , normalizes each column of by letting , where and are functions to compute the mean and standard deviation over all entries in a vector or matrix. It should be noted that the second component in (1) corresponds to the standard GNN mean aggregation [62]. It takes the mean of vector representations from each node 's neighbors to get 's output vector in the current layer. The first component introduces a skip connection to integrate outputs from the previous layer. adjusts their relative contributions, which can also be interpreted as the extent to which each layer preserves the aggregated features . For RW with a length , is the output obtained by propagating random inputs through the RW-induced hierarchical structure.
Some simplified GNNs [63] apply nonlinear activation only to their output layers, with all nonlinearities of intermediate layers eliminated. PI-HIST leverages this simple design, with all learnable parameters removed, to perform nonlinear activation and normalization on . Namely, PI-HIST (R) derives its embeddings arranged in the matrix form via
where denotes an optional nonlinear activation function (e.g., tanh, sigmoid, and ReLU); is another optional normalization operation. Hence, in addition to the interpretation of a weighted hierarchical structure, PI-HIST (R)'s embedding derivation is also equivalent to propagating random features through an untrained GNN with standard mean aggregation, skip connections, and nonlinear activation.
We summarize PI-HIST (R)'s overall embedding inference procedure in Supplementary Algorithm 1. Let be the number of edges in the input graph . As real-world large graphs are usually sparse, one can assume that . The complexity of propagating random features through one layer is no more than using the efficient sparse-dense matrix multiplication. Hence, the overall complexity of PI-HIST (R) is within .
4.3 PI-HIST (A): identity embedding inference
Different from RW, there are currently no closed-form solutions to directly obtain AW statistics. We develop an efficient algorithm to estimate AW statistics via RW sampling and extract AW-induced hierarchical structure from such statistics. This algorithm contains six steps of RW sampling, AW mapping, AW indexing, AW counting, statistic gathering, and hierarchical structure extraction.
We first sample RWs starting from each node with length (RW sampling) and map them to corresponding AWs (AW mapping). Given a walk length , the union of all candidate AWs can be encoded by a tree with height , where each path from the root to a leaf represents a unique AW (cf. Supplementary Fig. S9a for examples). For efficient estimation, we map each observed AW to an index based on 's encoding using dynamic programming (AW indexing). One can estimate the frequency of each AW for node by counting instances of the node-index pair derived from RWs originating at (AW counting). For all nodes in a large-scale graph, this procedure of sampling and counting is usually performed in multiple batches, with each run processing only one batch. An additional step is required to combine results from all runs and obtain the complete AW statistics (statistics gathering). Finally, we extract a hierarchical structure for each node from its estimated AW statistics (hierarchical structural extraction). Most steps of the aforementioned algorithm are implemented with GPU-friendly operations and thus benefit from GPU acceleration, as is the case for most modern graph inference models, exemplified by GNNs. Full technical details about this algorithm are elaborated in Supplementary Section B.2.
For an arbitrary AW with length , such as for , the -th-to-last element in can only take a value in . Hence, the hierarchical structure of node has layers, with the -th layer (from bottom to top) containing units . There are also weighted links between adjacent layers, which are derived from the estimated AW statistics of . For simplicity, we denote the -th unit in the -th layer of as (cf. Supplementary Fig. S9c for examples of ). Similar to PI-HIST (R), PI-HIST (A) derives the embedding of via just one FFP through with random features as the input. We extend this operation to a group of nodes using tensor computations, which enables the simultaneous FFP for all nodes. A tensor is introduced to describe weighted links between the -th and -th layers, where represents the weight between and . means that there is no link between corresponding units. Let and be the (tensor) input and output of the -th layer, with . The FFP of the -th layer is defined as
where applies the tensor multiplication with is a hyper-parameter balancing contributions between the aggregated features and residual features from the previous layer; is an optional normalization operation. We extend in (1) to the z-score normalization on a tensor over all nodes. As there are units in the l-th layer of an AW-induced hierarchical structure (cf. Supplementary Fig. S9c for examples), conducts the normalization by setting for and .
Note that the last layer of only contains one unit. We can simply obtain node-wise representations from . These embeddings are further combined with the same (optional) nonlinear activation and normalization in PI-HIST (R). Therefore, PI-HIST (A) finally derive its embeddings for all nodes arranged in a matrix via
where and share the same definitions as those in (2).
The overall embedding inference procedure of PI-HIST (A) is summarized in Supplementary Algorithm 2. Using the proposed algorithm for AW statistic estimation and hierarchical structure extraction, we can obtain that describe within the complexity of , where is the number observed AWs during estimation. Further details about the complexity analysis are provided in Supplementary Section B.2. Since there are layers in and at most units in each layer, the complexity of one FFP through is . For large sparse graphs, we can assume that . The overall complexity of PI-HIST (A) is .
4.4 Combination of PI-HIST (R) and PI-HIST (A)
In addition to using PI-HIST to disentangle graph topology into position and identity embeddings, we also explore whether combining these two types of embeddings can improve graph inference. Let and denote embeddings of node produced by PI-HIST (R) and (A), respectively. To construct the fused embedding of PI-HIST (R&A) for , two example combination strategies are considered, including the weighted sum and weighted concatenation , with as a tunable hyper-parameter adjusting relative contributions between the two types of embeddings. Our experiments suggest that different downstream tasks favor different combination strategies. For instance, weighted concatenation and sum work better for the two edge-level tasks and graph-level superfamily identification, respectively.
4.5 Model Configurations and Parameter Settings
The two PI-HIST variants and their combination involve several hyper-parameters and optional settings that can be selected by using the same tuning strategy as other unsupervised embedding approaches, including baselines in our experiments (cf. Supplementary Section D.4 for details of this strategy). As outlined in the 'Discussion' section, we believe that these settings can be automatically optimized by simply extending PI-HIST to a limited learning setting, which potentially improves the inference quality while introducing additional computational overhead. We leave this extension as a significant future direction, treating PI-HIST as a good start.
In our experiments, is selected from and for PI-HIST (R) and (A), respectively. is tuned over for both variants. We comprehensively investigate the effects of different activation and normalization choices. Specifically, we set to (i.e., no activation), ReLU, tanh, sigmoid, or exp. Moreover, is set to (i.e., no normalization), column-wise z-score normalization, or row-wise -normalization on embeddings arranged in a matrix . For column-wise z-score normalization, adopts the same definition as in (1). For each row of a matrix , row-wise -normalization updates it as . Ablation studies (Supplementary Fig. S5-S8) show that applying and improves the embedding quality of PI-HIST, where different tasks and datasets favor distinct settings.
For PI-HIST (R&A), we first determine the optimal settings of inherited from PI-HIST (R) and (A), after which and are selected. Specifically, we tune and set to (i.e., no normalization), column-wise z-score normalization, row-wise -normalization, or row-wise z-score normalization. Similar to the column-wise z-score normalization, such as in (1), the row-wise z-score version applies the same operation independently to each row of a matrix via . Detailed settings for all experimental evaluation cases are summarized in Supplementary Tables S3 and S4.
Data Availability. We provide the sources of all the real-world graph datasets in Supplementary Section D.1. The preprocessed datasets of both real-world and synthetic graphs used in this research are also available via GitHub at https://github.com/KuroginQin/PI_HIST.
Code Availability. The code of this research for experimental evaluation and result visualization is available via GitHub at https://github.com/KuroginQin/PI_HIST. We provide the sources of official implementations of baseline methods in Supplementary Section D.2.
Acknowledgements. This research was supported by Major Key Project of PCL (PCL2025A03), National Natural Science Foundation of China (62388101, T2588101), Beijing Natural Science Foundation (Z230001), National Science and Technology Major Project (2024ZD01NL00103), and Interdisciplinary Frontier Research Project of PCL (2025QYB015).
References
[1] Reji Chacko, M., Albouy, C., Altermatt, F., Boussange, V., Brändle, M., Farwig, N., Gossner, M.M., Ho, H.-C., Joss, A., Neff, F., et al.: Species loss in key habitats accelerates regional food web disruption. Communications Biology 8(1), 988 (2025)
[2] Sporns, O., Tononi, G., Kötter, R.: The human connectome: A structural description of the human brain. PLoS Computational Biology 1(4), 42 (2005)
[3] Pastor-Satorras, R., Vespignani, A.: Evolution and Structure of the Internet: A Statistical Physics Approach. Cambridge University Press, Cambridge, UK (2007)
[4] Brummitt, C.D., D'Souza, R.M., Leicht, E.A.: Suppressing cascades of load in interdependent networks. Proceedings of the National Academy of Sciences (PNAS) 109(12), 680–689 (2012)
[5] Guimera, R., Mossa, S., Turtschi, A., Amaral, L.N.: The worldwide air transportation network: Anomalous centrality, community structure, and cities' global roles. Proceedings of the National Academy of Sciences (PNAS) 102(22), 7794–7799 (2005)
[6] Giot, L., Bader, J.S., Brouwer, C., Chaudhuri, A., Kuang, B., Li, Y., Hao, Y., Ooi, C., Godwin, B., Vitols, E., et al.: A protein interaction map of Drosophila Melanogaster. Science 302(5651), 1727–1736 (2003)
[7] Schneider, C.M., Moreira, A.A., Andrade Jr, J.S., Havlin, S., Herrmann, H.J.: Mitigation of malicious attacks on networks. Proceedings of the National Academy of Sciences 108(10), 3838–3841 (2011)
[8] Fortunato, S., Newman, M.E.: 20 years of network community detection. Nature Physics 18(8), 848–850 (2022)
[9] Su, X., Xue, S., Liu, F., Wu, J., Yang, J., Zhou, C., Hu, W., Paris, C., Nepal, S., Jin, D., et al.: A comprehensive survey on community detection with deep learning. IEEE Transactions on Neural Networks and Learning Systems (TNNLS) 35(4), 4682–4702 (2022)
[10] Qiao, H., Tong, H., An, B., King, I., Aggarwal, C., Pang, G.: Deep graph anomaly detection: A survey and new perspectives. IEEE Transactions on Knowledge and Data Engineering (TKDE) (2025)
[11] Ekle, O.A., Eberle, W.: Anomaly detection in dynamic graphs: A comprehensive survey. ACM Transactions on Knowledge Discovery from Data (TKDD) 18(8), 1–44 (2024)
[12] Martínez, V., Berzal, F., Cubero, J.-C.: A survey of link prediction in complex networks. ACM computing surveys (CSUR) 49(4), 1–33 (2016)
[13] Kumar, A., Singh, S.S., Singh, K., Biswas, B.: Link prediction techniques, applications, and performance: A survey. Physica A: Statistical Mechanics and its Applications 553, 124289 (2020)
[14] Qin, M., Yeung, D.-Y.: Temporal link prediction: A unified framework, taxonomy, and review. ACM Computing Surveys (CSUR) 56(4), 1–40 (2023)
[15] Bhattacharya, R., Nagwani, N.K., Asudani, D.S., Chhabra, G.S., Bhattacharya, S., Kadam, S.: In: Bhattacharya, R., Rathore, Y.K., Tran, T.A., Swarnkar, S.K. (eds.) A Comprehensive Overview of Graph Convolutional Network, pp. 1–19. Springer, Cham, Switzerland (2026)
[16] Shehzad, A., Xia, F., Abid, S., Peng, C., Yu, S., Zhang, D., Verspoor, K.: Graph transformers: A survey. IEEE Transactions on Neural Networks and Learning Systems (TNNLS) (2026)
[17] Rossi, R.A., Jin, D., Kim, S., Ahmed, N.K., Koutra, D., Lee, J.B.: On proximity and structural role-based embeddings in networks: Misconceptions, techniques, and applications. ACM Transactions on Knowledge Discovery from Data (TKDD) 14(5), 1–37 (2020)
[18] Zhu, J., Lu, X., Heimann, M., Koutra, D.: Node proximity is all you need: Unified structural and positional node and graph embedding. In: Proceedings of the 2021 SIAM International Conference on Data Mining (SDM), pp. 163–171 (2021). SIAM
[19] Grando, F., Granville, L.Z., Lamb, L.C.: Machine learning in network centrality measures: Tutorial and outlook. ACM Computing Surveys (CSUR) 51(5), 1–32 (2018)
[20] Qin, M., Yeung, D.-Y.: IRWE: Inductive random walk for joint inference of identity and position network embedding. Transactions on Machine Learning Research (TMLR) 2024 (2024)
[21] Ribeiro, L.F., Saverese, P.H., Figueiredo, D.R.: struc2vec: Learning node representations from structural identity. In: Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 385–394 (2017)
[22] Ju, W., Fang, Z., Gu, Y., Liu, Z., Long, Q., Qiao, Z., Qin, Y., Shen, J., Sun, F., Xiao, Z., et al.: A comprehensive survey on deep graph representation learning. Neural Networks 173, 106207 (2024)
[23] Ju, W., Yi, S., Wang, Y., Xiao, Z., Mao, Z., Li, H., Gu, Y., Qin, Y., Yin, N., Wang, S., et al.: A survey of graph neural networks in real world: Imbalance, noise, privacy and ood challenges. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) (2025)
[24] Zheng, X., Wang, Y., Liu, Y., Li, M., Zhang, M., Jin, D., Yu, P.S., Pan, S.: Graph neural networks for graphs with heterophily: A survey. IEEE Transactions on Knowledge and Data Engineering (TKDE) (2026)
[25] Newman, M.E., Clauset, A.: Structure and inference in annotated networks. Nature communications 7(1), 11863 (2016)
[26] Peel, L., Larremore, D.B., Clauset, A.: The ground truth about metadata and community detection in networks. Science Advances 3(5), 1602548 (2017)
[27] Qin, M., Jin, D., Lei, K., Gabrys, B., Musial-Gabrys, K.: Adaptive community detection incorporating topology and content in social networks. Knowledge-Based Systems 161, 342–356 (2018)
[28] Qin, M., Lei, K.: Dual-channel hybrid community detection in attributed networks. Information Sciences 551, 146–167 (2021)
[29] Wang, X., Zhu, M., Bo, D., Cui, P., Shi, C., Pei, J.: AM-GCN: Adaptive multi-channel graph convolutional networks. In: Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1243–1253 (2020)
[30] Zhang, W., Pan, L., Guo, X., Jiao, P.: Disentangled representation learning for structural role discovery. IEEE Transactions on Computational Social Systems (TCSS) 11(6), 7200–7211 (2024)
[31] Tang, H., Du, M., Jiao, P., Wu, H., Zhao, Z.: HyperRole: Hyperbolic graph transformer for role discovery in online social networks. In: IEEE INFOCOM 2025 - Proceedings of the 2025 IEEE Conference on Computer Communications, pp. 1–10 (2025). IEEE
[32] You, J., Gomes-Selman, J.M., Ying, R., Leskovec, J.: Identity-aware graph neural networks. In: Proceedings of the 35th AAAI Conference on Artificial Intelligence, vol. 35, pp. 10737–10745 (2021)
[33] You, J., Ying, R., Leskovec, J.: Position-aware graph neural networks. In: Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 7134–7143 (2019). PMLR
[34] Devvrit, F., Sinha, A., Dhillon, I., Jain, P.: S3GC: Scalable self-supervised graph clustering. In: Proceedings of the 36th International Conference on Neural Information Processing Systems (NeurIPS), pp. 3248–3261 (2022)
[35] Liu, Y., Li, J., Chen, Y., Wu, R., Wang, E., Zhou, J., Tian, S., Shen, S., Fu, X., Meng, C., et al.: Revisiting modularity maximization for graph clustering: A contrastive learning perspective. In: Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 1968–1979 (2024)
[36] Grover, A., Leskovec, J.: node2vec: Scalable feature learning for networks. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 855–864 (2016)
[37] Ivanov, S., Burnaev, E.: Anonymous walk embeddings. In: Proceedings of the 35th International Conference on Machine Learning (ICML), pp. 2186–2195 (2018). PMLR
[38] Micali, S., Zhu, Z.A.: Reconstructing markov processes from independent and anonymous experiments. Discrete Applied Mathematics 200, 108–122 (2016)
[39] Zachary, W.W.: An information flow model for conflict and fission in small groups. Journal of anthropological research 33(4), 452–473 (1977)
[40] Maaten, L., Hinton, G.: Visualizing data using t-SNE. Journal of Machine Learning Research (JMLR) 9(11) (2008)
[41] Jiao, P., Guo, X., Pan, T., Zhang, W., Pei, Y., Pan, L.: A survey on role-oriented network embedding. IEEE Transactions on Big Data 8(4), 933–952 (2021)
[42] Yang, J., Leskovec, J.: Defining and evaluating network communities based on ground-truth. Knowledge and Information Systems 42(1), 181–213 (2015)
[43] Von Luxburg, U.: A tutorial on spectral clustering. Statistics and computing 17(4), 395–416 (2007)
[44] Bhowmick, A.K., Meneni, K., Danish, M., Guillaume, J.-L., Mitra, B.: LouvainNE: Hierarchical Louvain method for high quality and scalable network embedding. In: Proceedings of the 13th International Conference on Web Search and Data Mining (WSDM), pp. 43–51 (2020)
[45] Xie, Y., Dong, Y., Qiu, J., Yu, W., Feng, X., Tang, J.: SketchNE: Embedding billion-scale networks accurately in one hour. IEEE Transactions on Knowledge and Data Engineering (TKDE) 35(10), 10666–10680 (2023)
[46] Yang, R., Shi, J., Xiao, X., Yang, Y., Bhowmick, S.S.: Homogeneous network embedding for massive graphs via reweighted personalized PageRank. Proceedings of the VLDB Endowment 13(5), 670–683 (2020)
[47] Milo, R., Itzkovitz, S., Kashtan, N., Levitt, R., Shen-Orr, S., Ayzenshtat, I., Sheffer, M., Alon, U.: Superfamilies of evolved and designed networks. Science 303(5663), 1538–1542 (2004)
[48] Dong, Y., Johnson, R.A., Xu, J., Chawla, N.V.: Structural diversity and homophily: A study across more than one hundred big networks. In: Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 807–816 (2017)
[49] Lancichinetti, A., Fortunato, S., Radicchi, F.: Benchmark graphs for testing community detection algorithms. Physical Review E—Statistical, Nonlinear, and Soft Matter Physics 78(4), 046110 (2008)
[50] Milo, R., Shen-Orr, S., Itzkovitz, S., Kashtan, N., Chklovskii, D., Alon, U.: Network motifs: Simple building blocks of complex networks. Science 298(5594), 824–827 (2002)
[51] Ugander, J., Backstrom, L., Marlow, C., Kleinberg, J.: Structural diversity in social contagion. Proceedings of the National Academy of Sciences (PNAS) 109(16), 5962–5966 (2012)
[52] Srinivasan, B., Ribeiro, B.: On the equivalence between positional node embeddings and structural graph representations. In: Proceedings of the 8th International Conference on Learning Representations (ICLR) (2020). https://openreview.net/forum?id=SJxzFySKwH
[53] Yan, Y., Hu, Y., Zhou, Q., Liu, L., Zeng, Z., Chen, Y., Pan, M., Chen, H., Das, M., Tong, H.: PaCEr: Network embedding from positional to structural. In: Proceedings of the ACM Web Conference 2024, pp. 2485–2496 (2024)
[54] Qin, M., Liu, J., King, I.: Efficient identity and position graph embedding via spectral-based random feature aggregation. In: Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2, pp. 2350–2361 (2025)
[55] Qin, M., Li, W., Cui, J., Pei, S.: InfraredGP: Efficient graph partitioning via spectral graph neural networks with negative corrections. In: 2025 IEEE High Performance Extreme Computing Conference (HPEC), pp. 1–7 (2025). IEEE
[56] Jin, Y., Song, G., Shi, C.: GraLSP: Graph neural networks with local structural patterns. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, pp. 4361–4368 (2020)
[57] Yan, Y., Hu, Y., Zhou, Q., Wu, S., Wang, D., Tong, H.: Topological anonymous walk embedding: A new structural node embedding approach. In: Proceedings of the 33rd ACM International Conference on Information and Knowledge Management (CIKM), pp. 2796–2806 (2024)
[58] Joly, A., Keriven, N., Roumy, A.: Taxonomy of reduction matrices for graph coarsening. In: Advances in Neural Information Processing Systems (NeurIPS), pp. 96058–96083 (2025)
[59] Huang, N.T., Villar, S.: A short tutorial on the Weisfeiler-Lehman test and its variants. In: Proceedings of the 2021 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 8533–8537 (2021). IEEE
[60] Peng, W., Varanka, T., Mostafa, A., Shi, H., Zhao, G.: Hyperbolic deep neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 44(12), 10023–10044 (2021)
[61] Sadat, S.A., Miliani, M.Y.T., El Hames, K.H., Seba, H., Haddad, M.: Hyperbolic graph embedding: A survey and an evaluation on anomaly detection. Pattern Recognition, 114385 (2026)
[62] Hamilton, W.L., Ying, R., Leskovec, J.: Inductive representation learning on large graphs. In: Proceedings of the 31st International Conference on Neural Information Processing Systems (NeurIPS), pp. 1025–1035 (2017)
[63] Wu, F., Souza, A., Zhang, T., Fifty, C., Yu, T., Weinberger, K.: Simplifying graph convolutional networks. In: Proceedings of the 36th International Conference on Machine Learning (ICML), pp. 6861–6871 (2019). PMLR
[64] Dasgupta, S., Gupta, A.: An elementary proof of a theorem of Johnson and Lindenstrauss. Random
Structures and Algorithms 22(1), 60–65 (2003)
[65] Zhang, Z., Cui, P., Li, H., Wang, X., Zhu, W.: Billion-scale network embedding with iterative random projection. In: Proceedings of the 2018 IEEE International Conference on Data Mining (ICDM), pp. 787–796 (2018). IEEE
[66] Talukder, N., Gyurek, C., Hasan, M.A.: Node2binary: Compact graph node embeddings using binary vectors. In: Proceedings of the ACM on Web Conference 2025, pp. 495–505 (2025)
[67] Veličković, P., Fedus, W., Hamilton, W.L., Liò, P., Bengio, Y., Hjelm, R.D.: Deep graph infomax. In: Proceedings of the 7th International Conference on Learning Representations (ICLR) (2019). https://openreview.net/forum?id=rklz9iAcKQ
[68] Hou, Z., He, Y., Cen, Y., Liu, X., Dong, Y., Kharlamov, E., Tang, J.: GraphMAE2: A decoding-enhanced masked self-supervised graph learner. In: Proceedings of the ACM Web Conference 2023, pp. 737–746 (2023)
[69] Zheng, Y., Pan, S., Lee, V.C., Zheng, Y., Yu, P.S.: Rethinking and scaling up graph contrastive learning: An extremely efficient approach with group discrimination. In: Proceedings of the 36th International Conference on Neural Information Processing Systems (NeurIPS), pp. 10809–10820 (2022)
[70] Huang, Y., Zhao, J., He, D., Jin, D., Huang, Y., Wang, Z.: Does GCL need a large number of negative samples? Enhancing graph contrastive learning with effective and efficient negative sampling. In: Proceedings of the AAAI Conference on Artificial Intelligence, pp. 17511–17518 (2025)
[71] Arriaga, R.I., Vempala, S.: An algorithmic theory of learning: Robust concepts and random projection. Machine Learning 63(2), 161–182 (2006)
[72] Martinsson, P.-G., Rokhlin, V., Tygert, M.: A randomized algorithm for the decomposition of matrices. Applied and Computational Harmonic Analysis 30(1), 47–68 (2011)
[73] Qiu, J., Dong, Y., Ma, H., Li, J., Wang, C., Wang, K., Tang, J.: NetSMF: Large-scale network embedding as sparse matrix factorization. In: The World Wide Web Conference, pp. 1509–1520 (2019)
[74] Perozzi, B., Al-Rfou, R., Skiena, S.: DeepWalk: Online learning of social representations. In: Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 701–710 (2014)
[75] Blondel, V.D., Guillaume, J.-L., Lambiotte, R., Lefebvre, E.: Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Theory and Experiment 2008(10), 10008 (2008)
[76] Traag, V.A., Waltman, L., Van Eck, N.J.: From Louvain to Leiden: Guaranteeing well-connected communities. Scientific Reports 9(1), 5233 (2019)
[77] Newman, M.E.: Modularity and community structure in networks. Proceedings of the National Academy of Sciences (PNAS) 103(23), 8577–8582 (2006)
[78] Bentley, J.L.: Multidimensional binary search trees used for associative searching. Communications of the ACM 18(9), 509–517 (1975)
[79] Mizutani, T.: Improved analysis of spectral algorithm for clustering. Optimization Letters 15(4), 1303–1325 (2021)

Supplementary Fig. S1 Additional evaluation results of node-level tasks. a-d, Additional evaluations on Europe, Actor, BlogCatalog, and Amazon using node identity and position classification (micro F1↑) to assess identity and position embeddings, respectively. e-f, Evaluations on USA and Film with position ground-truth using node identity classification (macro F1↑ and micro F1↑) and community detection (modularity↑) to assess embedding quality. g-h, Evaluations on PPI and DBLP with position ground-truth using node position classification (macro F1↑ and micro F1↑) and node identity clustering (conductance↓) for quality assessment. The logarithm of inference time↓ (sec) measures efficiency of all cases. Q and E denote the quality and efficiency rankings of PI-HIST, respectively. Blue arrows indicate directions toward improved quality-efficiency trade-offs.

Supplementary Fig. S2 Additional evaluation results of edge-level tasks. a-e, Results of link prediction (AUC↑) and graph reconstruction (AUC↑) on Europe, Actor, PPI, BlogCatalog, and Amazon. R and A indicate improvements of PI-HIST (R&A) over PI-HIST (R) and PI-HIST (A), respectively. Red and green labels/bars denote position and identity embedding approaches, respectively. It is uncertain for baselines with purple labels/bars which property they capture.

Supplementary Fig. S3 Full case studies of PI-HIST (R&A) for graph-level tasks. a. Graph superfamily identification on real-world graphs with PI-HIST (R&A) for complementing Fig. 4a (). b. Graph superfamily identification on synthetic graphs with PI-HIST (R&A) for complementing Fig. 4b ().

Supplementary Fig. S4 Additional case studies of baselines for graph-level tasks. a-b, Correlation matrices of BoD, BoHD, SSP, and CNS for superfamily identification on real-world and synthetic graphs. Purple arrows indicate directions along which correlation values are expected to decrease (i.e., away from the main diagonal) for results on synthetic graphs.
Supplementary Fig. S5 Ablation study and parameter analysis of PI-HIST (R) on PPI. Representative results of node position classification (macro F1↑, %) on the validation set, with L ∈ {5, 6, · · · , 20} (y-axis) and ε ∈ {0.0, 0.1, · · · , 0.9} (xaxis). The optional activation function ψact(·) is set to ∅ (no activation), ReLU, sigmoid, tanh, or exp. The optional normalization ψnorm(·) is set to ∅ (no activation), row-wise l2-normalization, and column-wise z-score normalization. 22
Supplementary Fig. S6 Ablation study and parameter analysis of PI-HIST (R) on USA. Representative results of community detection (modularity↑, %), with L ∈ {5, 6, · · · , 20} (y-axis) and ε ∈ {0.0, 0.1, · · · , 0.9} (x-axis). The optional activation ψact(·) is set to ∅ (no activation), ReLU, sigmoid, tanh, or exp. The optional normalization ψnorm(·) is set to ∅ (no activation), row-wise l2-normalization, and column-wise z-score normalization. 23

Supplementary Fig. S7 Ablation study and parameter analysis of PI-HIST (A) on USA. Representative results of node identity classification (macro F1↑, %) on the validation set, with (y-axis) and (x-axis). The optional activation is set to (no activation), ReLU, sigmoid, tanh, or exp. The optional normalization is set to (no activation), row-wise -normalization, and column-wise z-score normalization.

Supplementary Fig. S8 Ablation study and parameter analysis of PI-HIST (A) on PPI. Representative results of node identity clustering (conductance), %, with (y-axis) and (x-axis). The optional activation is set to (no activation), ReLU, sigmoid, tanh, or exp. The optional normalization is set to (no activation), row-wise -normalization, and column-wise z-score normalization.
a

b
C
Supplementary Fig. S9 Examples of key steps in PI-HIST (A)'s embedding inference. a, Tree encoding for AW indexing with walk length and 3. b, Illustration of an entry in DP table for remaining steps to generate a length- AW with as the maximum element visited so far. denotes the -th element in . c, An example of the AW-induced hierarchical structures for a node with length .
Supplementary Section A Additional Experiment Results
In addition to Fig. 2, outcomes of node-level tasks in terms of other metrics (micro F1 on Europe, Actor, BlogCatalog, and Amazon) and on the rest datasets (full three metrics on USA, Film, PPI, and DBLP) are visualized in Supplementary Fig. S1. As a supplement to ig. 3, Supplementary Fig. S2 shows evaluation results of edge-level tasks on Europe, Actor, PPI, BlogCatalog, and Amazon. Following the same settings as Fig. 4a-b, Supplementary Fig. S4 provides results of the 4 baselines (BoD, BoHD, SSP, and CNS) for graph superfamily identification on both real-world and synthetic graphs. In addition to the representative outcomes of PI-HIST (R&A) in Fig. 4c-d, their results with respect to the rest settings of are visualized in Supplementary Fig. S3. Detailed numerical records of these evaluations, including mean and standard deviation over multiple independent runs and original efficiency scores before log transformation, are further summarized in Supplementary Tables S5-S16 and Supplementary Section E. Particularly, Table S13 provides details about the inference time (sec) of different steps in PI-HIST (A).
Following the tuning strategy described in 'Methods' section, we also analyze the effects of different settings of through ablation studies and parameter analyses. Taking node-level tasks as examples, representative results of PI-HIST (R) on PPI (node position classification with macro F1 on the validation set) and USA (community detection with modularity) are shown in Supplementary Fig. S5 and S6. Moreover, Supplementary Fig. S7 and S8 visualize outcomes of PI-HIST (A) on USA (node identity classification with macro F1 on the validation set) and PPI (node identity clustering with conductance). In most cases, applying and can enhance the embedding quality. For instance, PI-HIST (A) achieves the best macro F1 (60.77%) on USA when setting and to tanh and column-wise z-score normalization, while the score decreases to 59.58% without these operations (i.e., and ). The optimal settings of vary across tasks and datasets, as summarized in Supplementary Tables S3 and S4.
Supplementary Section B Further Technical Details of PI-HIST
B.1 Detailed Algorithms of PI-HIST (R)
The overall embedding derivation procedure of PI-HIST (R) is summarized in Algorithm 1.
Algorithm 1 Embedding Derivation of PI-HIST (R)
Input: input graph ; embedding dimensionality ; RW length ; hyper-parameter
Output: derived embeddings (matrix form)
1 generate random input
2
3 for to do
4 get via (1) in the main paper
5 get via (2) in the main paper
B.2 Detailed Algorithms of PI-HIST (A)
The overall embedding derivation procedure of PI-HIST (A) is summarized in Algorithm 2. Similar to PI-HIST (R), PI-HIST (A) also derives node-wise embeddings, arranged in a matrix , via one FFP through AW-induced hierarchical structures (lines 14-18 in Algorithm 2). As there are currently no closed-form solutions to directly obtain AW statistics of a graph , before FFP, we employ an efficient GPU-friendly algorithm (lines 6-13 in Algorithm 2) to estimate AW statistics via RW sampling and extract AW-induced hierarchical structures described by tensors . This algorithm includes steps of (i) RW sampling, (ii) AW mapping, (iii) AW indexing, (iv) AW counting, (v) statistic gathering, and (vi) hierarchical structure extraction.
RW Sampling and AW mapping. Generally, to estimate AW statistics of each node , which form a distribution over all length- AWs, one can in sequence (i) sample RWs started from , (ii) map each RW to its corresponding AW , and (iii) record the occurrence frequency of each observed AW . The proposed algorithm performs this procedure for all nodes simultaneously. For large-scale graphs, we sample only RWs from each node in one run, with . The estimation is then completed in runs (line 6 in Algorithm 2). In each run, we employ the GPU-compatible implementation from PyTorch Cluster to facilitate the RW sampling (line 8 in Algorithm 2) and adopt Numba to implement the parallel mapping of all the sampled RWs to their corresponding AWs (line 9 in Algorithm 2).
AW Indexing. For efficient counting, the derived AWs are first mapped to corresponding indices using a GPU-optimized implementation based on Numba (line 10 in Algorithm 2). For a fixed walk
Algorithm 2 Embedding Derivation of PI-HIST (A)
Input: input graph ; embedding dimensionality ; total number of RWs sampled for each node; batch size (i.e., number of RWs for each node processed in a run); RW/AW length ; hyper-parameter
Output: derived embeddings (matrix form)
6 get number of runs
7 for to do
8 sample RWs for each node (RW Sampling)
9 map all sampled RWs to their AWs (AW Mapping)
10 map all AWs to their indices via Algorithm 3 (AW Indexing)
11 get statistics of current run by counting all the observed node-index pairs (AW counting)
12 get full statistics by summing and let (Statistic Gathering)
13 get hierarchical structures from via (S2) (Hierarchical Structure Extraction)
14 generate random input
15
16 for to do
17 get via (3) in the main paper
18 get via (4) in the main paper
length , the union of all candidate AWs can be encoded by a tree with height , where each root-to-leaf path represents a unique AW (cf. Supplementary Fig. S9a for examples of and ). In essence, corresponds to the search space of the naive depth-first search process to generate all candidate length- AWs. Let be the sequence of AWs induced by all root-to-leaf paths arranged in order from left to right. The index of an AW is defined as 's index in , with started from 0. For instance, we have and for (Supplementary Fig. S9a). However, the direct index mapping involves enumerating or searching all candidate AWs in the worst case, which is computationally intractable when is large. We therefore develop a dynamic programming (DP) solution for AW indexing as summarized in Algorithm 3. It maintains an auxiliary table that considers a process of generating an AW sequence step-by-step starting from , with the -th step inserting an element . As illustrated in Supplementary Fig. S9b, each entry stores the number of AWs that can be generated with remaining steps (when inserting ), where the maximum element visited so far (i.e., ) is . Initially, we let for . The state transition of for and is then defined as
where the first and second terms correspond to cases of inserting and , respectively (Supplementary Fig. S9b). Since is determined solely by , it can be precomputed before running the overall PI-HIST (A) inference algorithm. Given an AW with length , we first initialize its index as 0 (line 21 in Algorithm 3). We then in sequence examine each element () in to update by adding , where is the number of remaining steps; is the maximum element visited so far (lines 22-27 in Algorithm 3).
Algorithm 3 DP Solution to AW Indexing
Input: RW/AW length ; AW ; precomputed DP table
Output: AW index
19 //Initialize the maximum element visited so far
20 //Initialize steps remained for generation
21 //Initialize the index to be computed
22 for to do
23 get the -th element from
24
25 if (i.e., ) then
26 //Update the maximum element visited so far
27 //Decrement steps remained
AW Counting and Statistic Gathering. Based on AW indexing, we estimate AW statistics of the current run by counting the observed node-index pairs for all nodes (line 11 in Algorithm 2), using the GPU-compatible unique value extraction provided by PyTorch. Let be the number of all candidate length- AWs. Each AW index . The counting result of current run can be arranged in a matrix , with as the occurrence count of . Although grows exponentially with the increase of , is usually very sparse, because only a small ratio of candidate AWs are observed during the estimation. The full statistics arranged in a matrix can be obtained by summing of all runs via sparse matrix summation (line 12 in Algorithm 3).
Hierarchical Structure Extraction. For a fixed walk length , -th-to-last element in an AW can only take a value in . Therefore, the AW-induced hierarchical structure of node has layers, with the -th layer (from bottom to top) containing units (cf. Supplementary Fig. S9c for an example of ). We further assign weights to links between adjacent layers using the estimated AW statistics of , which is equivalent to extracting a weighted hierarchical structure about AW (line 13 in Algorithm 2). As mentioned in ‘Methods’ section, we use a tensor to encode weighted links between the -th and -th layers in the hierarchical structures of all nodes. Let denote the -th element in the -th AW . We define
where is the indicator function, with if and otherwise. Namely, the weight equals the total frequency of AWs that contains at the -th step, with and . From this perspective, we compute by scanning all the observed AWs of each node once, which corresponds to only a tiny subset of non-zero entries in , using a GPU-optimized implementation based on Numba.
For a graph with nodes, the complexities of sampling length- RWs for each node (RW sampling) and mapping these RWs to AWs (AW mapping) are both . The complexity of mapping an AW to its index using Algorithm 3 is . Since there are in total AWs, it takes for the AW indexing step. To count , we need to scan all the derived AWs once. Hence, the complexity of AW counting is within . Let be the number of observed AWs during the estimation. We usually have , because only a small ratio of candidate AWs can be observed, consistent with that and are sparse matrices. The complexity of merging estimation results from runs (statistic gathering) is using sparse matrix summation. Finally, the step of hierarchical structure extraction, which derives tensors encoding , can be completed within by traversing non-zero entries of . For large sparse graphs, we can assume that and . The overall complexity of the proposed AW statistic estimation procedure is about .
Supplementary Section C Theoretical Support for PI-HIST
This section provides theoretical support for the effectiveness of PI-HIST. We first show that by simplifying away the nonlinear activations and normalization, the propagation of Gaussian random features through a topology-induced operator in PI-HIST can be interpreted as a Gaussian random projection of high-dimensional structural features. For PI-HIST (R), we further demonstrate that the RW diffusion profiles of nodes within the same metastable community are close. For PI-HIST (A), we show how similarity in AW statistics propagates through the AW-induced hierarchical operator using the established connection between AW statistics and rooted ego-net structures.
C.1 Random features preserve the geometric of topology-induced structural representations
Consider the topology-induced operator that associates each node with a high-dimensional representation . We can arrange the representations of all nodes in a matrix , with . After simplifying away the nonlinear activations and normalization, PI-HIST can be formulated as , where , , and ; represents the resulting low-dimensional embedding of . In this sense, PI-HIST can be viewed as the Gaussian random projection on , where provides a random probe of the structural geometry encoded in , with its effectiveness guaranteed by the following Gaussian form of the Johnson–Lindenstrauss lemma [64].
Lemma 1 (Gaussian random projection) For any and , if , then with probability at least , we have
for each pair of nodes , with .
Proof For each pair of nodes , we have . Since entries in are variables following , each coordinate of is also Gaussian with variance . Therefore, we can obtain
By , we have the following derivation
For , and . The standard chi-square concentration inequality gives, for ,
By applying (S6) to at most pairs of nodes completes the proof.
C.2 RW-induced operators preserve node-position information
Let be the node visited by the -th step of a RW, with the index starting from 0. then encodes the transition probability that . The -th row is the probability distribution of nodes visited by a length- RW starting from .
Consider a metastable community satisfying two standard assumptions. For simplicity, let and , which correspond to the probability within and outside the community after the -step RW starting from , respectively. First, RWs initialized at nodes inside approach a similar within-community distribution before substantially escaping the community. Namely, there exists a reference distribution within such that, for each ,
Second, the probability of escaping within the considered diffusion scale is small. Namely, for each ,
Proposition 1 (Within-community diffusion similarity) Under the assumptions defined in (S7) and (S8), for any two nodes ,
Proof On the one hand, we have and for any nodes . By the triangle inequality, we can obtain
On the other hand, we also have and for any nodes . Also by the triangle inequality, we further have the following derivation
By merging (S10) and (S11), we can finally obtain
This completes the proof.
Since , we also have . Combing Proposition 1 with Lemma 1 gives a direct result in the embedding space.
Corollary 1 (Within-community proximity after random projection) For PI-HIST (R), . Under the two assumptions of Proposition 1, with a high probability,
for all nodes .
In summary, nodes within the same metastable community have similar diffusion profiles and also remain close after Gaussian random projection. This provides a theoretical mechanism through which PI-HIST (R) preserves node-position information. PI-HIST (R) additionally contains a skip connection controlled by , which can be formulated as
Let . PI-HIST (R)'s -layer linear core is . The above reasoning can also be applied to the lazy-walk operator , which corresponds more directly to PI-HIST (R).
C.3 AW-induced operators preserve structural-role information
For PI-HIST (A), the following Theorem 1 proved by Micali et al. [38] indicates that AW statistics can be used to reconstruct nodes' ego-nets and thus have the potential to characterize node identities.
Theorem 1 (AW statistics for ego-net reconstruction) Let be subgraph rooted at a node (alternatively called 's ego-net) induced by nodes with a distance less than or equal to from . Let denote the distribution of AWs with respect to the sampled length- RWs originating at . One can reconstruct in time with access to the collection of AW distributions , where ; and represent the number of nodes and edges in .
Since a length- AW contains its shorter prefixes, we can derive using , with . For instance, AW provides information about a shorter AW . Therefore, can be used to characterized the ego-net and thus 's identity (or structural role). Two nodes and with similar structural role are expected to have similar distributions and .
PI-HIST (A) does not directly use as the embedding. Instead, it first estimates based on a finite number of RWs and covers them into an AW-induced hierarchical operator. For simplicity, let and denote the estimation of . According to (S2), for each layer , there exists a fixed linear mapping , determined only based on AW encoding, such that . Given two nodes and , we then have
for any compatible matrix or vector norm. Let the linear propagation operator at the -th layer be . Ignoring the optional nonlinear activation and normalization in PI-HIST (A), the hierarchical propagation related to can be formulated as . Let select the single output unit in the final layer of PI-HIST (A). The resulting high-dimensional AW-induced structural signature of can then be formulated as
The linearized PI-HIST (A) embedding can therefore be represented as
Assume that for each node and layer . By the telescoping identity for products of matrices, we can obtain
(S17)
Since , we further have
Supplementary Table S1 Summary of 8 public real-world graph datasets, where , , and denote the numbers of nodes, edges, and classes; the ground-truth of each dataset is with either node identities or node positions.
| Datasets | Labels | Scenarios | |||
|---|---|---|---|---|---|
| Europe [21] | 399 | 5,993 | 4 | Node Identities(First Type) | Europe Air-Traffic Network |
| USA [21] | 1,186 | 13,597 | 4 | USA Air-Traffic Network | |
| Actor [41] | 7,592 | 26,553 | 4 | Wikipedia Actor Co-occurrence and Influences | |
| Film [41] | 26,851 | 122,234 | 4 | Wikipedia Film Entity Relations and Roles | |
| PPI [36] | 3,852 | 37,841 | 50 | Node Positions(Second Type) | Homo Sapiens Protein-Protein Interactions |
| BlogCatalog [36] | 10,312 | 333,983 | 39 | BlogCatalog Online Social Friend Relations | |
| DBLP [42] | 317,080 | 1,049,866 | 100 | DBLP Academic Author Collaborations | |
| Amazon [42] | 334,863 | 925,872 | 100 | Amazon Product Co-purchasing Relations |
Combining (S14), (S15), and (S18) gives
with . By further combing Lemma 1 with (S16) and (S19), we can derive that with a high probability,
Let be the estimation error of . By the triangle inequality, we can obtain
Therefore, the difference between embeddings and for any two nodes becomes
Together with Theorem 1, this result provides a theoretical mechanism linking AWs to identity embeddings. AW statistics retain information about nodes' ego-net structures, while PI-HIST (A) transforms these statistics into low-dimensional embeddings in a stable manner. Particularly, a pair of nodes with similar structural roles are expected to have similar AW statistics and thus close embeddings . As the number of samples RWs increases, converge to and thus decrease. This also provides a theoretical interpretation about the trade-off between AW sampling cost and embedding stability.
Supplementary Section D Detailed Experiment Settings
D.1 Datasets
Details about the 8 public real-world graph datasets used in our evaluations (Fig. 2a) are summarized in Supplementary Table S1, where , , and represent the number of nodes, edges, and classes; the first and last 4 datasets contain node identity and position ground-truth, respectively. These datasets cover diverse scenarios and scales from thousands to millions of edges.
For the first type of datasets, Europe and USA are two air-traffic networks in Europe and USA, with airports and routes between these airports abstracted as nodes and edges. Nodes are labeled based on the activity level of airports, which usually correspond to different roles, such as hub and non-hub, in the network. Actor and Film, constructed by Jiao et al. [41] using the dump of Wikipedia, are graphs recording the co-occurrence relations between actors and entities about films. Nodes in Actor and Film are labeled according to actors' influences and film entity types (e.g., film, director, and actor) relevant to node identities, respectively.
For the second type of datasets, PPI is a graph describing protein-protein interactions of Homo Sapiens, in which node labels are derived from hallmark gene sets and correspond to communities with consistent biological states. BlogCatalog is constructed from the social friend relations between bloggers on the BlogCatalog website, with node labels corresponding to several common interests of bloggers. DBLP describes academic collaborations between paper authors, where each publication venue (famous journal or conference of a specific research field) defines an individual ground-truth community. Amazon is collected by crawling the product co-purchasing relations from the Amazon website, where each ground-truth community is defined as a unique product category on Amazon.
¹https://github.com/leoribeiro/struc2vec/blob/master/graph/europe-airports.edgelist ²https://github.com/leoribeiro/struc2vec/blob/master/graph/usa-airports.edgelist ³https://github.com/cspjiao/RONE/blob/main/dataset/clf/actor.edge ⁴https://github.com/cspjiao/RONE/blob/main/dataset/clf/film.edge ⁵https://snap.stanford.edu/node2vec/Homo_sapiens.mat ⁶http://leitang.net/code/social-dimension/data/blogcatalog.mat ⁷https://snap.stanford.edu/data/com-DBLP.html ⁸https://snap.stanford.edu/data/com-Amazon.html
Supplementary Table S2 Summary of unsupervised embedding methods to be evaluated, where P and I denote that a method is claimed to be position- and identity-preserving.
| Methods (Abbreviations) | Publication Venues | Emb. Type | Efficient/ Scalable | GNN SSL |
|---|---|---|---|---|
| node2vec (n2v) | KDD 2016 [36] | P | ||
| PhUSION (PhN) (P) | SDM 2021 [18] | P | ||
| PaCEr (P) | Web Conf 2024 [53] | P | ||
| struc2vec (s2v) | KDD 2017 [21] | I | ||
| PhUSION (PhN) (I) | SDM 2021 [18] | I | ||
| PaCEr (I) | Web Conf 2024 [53] | I | ||
| RandNE | ICDM 2018 [65] | ✓ | ||
| LouvainNE (LvnNE) | WSDM 2020 [44] | P | ✓ | |
| SketchNE (SktNE) | TKDE 2023 [45] | P | ✓ | |
| node2binary (n2b) | Web Conf 2025 [66] | P | ✓ | |
| S3GC | NeurIPS 2022 [34] | P | ✓ | ✓ |
| MAGI | KDD 2024 [35] | P | ✓ | ✓ |
| GraLSP (GLSP) | AAAI 2020 [56] | I | ✓ | |
| DRSR | TCSS 2024 [30] | I | ✓ | |
| DGI | ICLR 2019 [67] | ✓ | ✓ | |
| GraphMAE2 (GMAE2) | KDD 2023 [68] | ✓ | ✓ | |
| GGD | NeurIPS 2022 [69] | ✓ | ✓ | |
| E2Neg | AAAI 2025 [70] | ✓ | ✓ | |
| PI-HIST (R) | Ours | P | ✓ | |
| PI-HIST (A) | Ours | I | ✓ |
D.2 Baselines
As summarized in Supplementary Table S2, we compare PI-HIST with 18 classic and state-of-the-art unsupervised embedding baselines covering various categories, where P and I represent that a method is claimed to be position- and identity-preserving, respectively.
Node2vec and struc2vec are classic position and identity embedding approaches. PhUSION and PaCEr are comprehensive methods investigating correlations between node positions and identities from different perspectives. They contain multiple variants for different types of embeddings. We use postfixes (P) and (I) to denote the corresponding variants for position and identity embeddings.
RandNE , LouvainNE , SketchNE , and node2binary are typical efficient embedding approaches using fast dimension reduction, including random projection [71] and randomized matrix factorization (MF) [72]. LouvainNE, SketchNE, and node2binary should be position-preserving methods, since their embedding inference procedures are based on approximate position embedding objectives [73] (e.g., sparse MF of DeepWalk [74]) or classic community detection algorithms (e.g., Louvain [75] and Leiden [76]).
The 18 baselines also cover GNN-based self-supervised learning (SSL), a representative state-of-the-art graph learning technique, including S3GC , MAGI , GraLSP , DRSR , DGI , GraphMAE2 , GGD , and E2Neg . Particularly, S3GC and MAGI can capture node positions via community-preserving graph contrastive objectives, while GraLSP and DRSR are claimed to be identity-preserving based on additional feature augmentation. Moreover, S3GC, MAGI, DGI, GraphMAE2, GGD, and E2Neg are scalable methods that can handle the embedding inference on large-scale graphs.
Note that most of these GNN-based approaches are originally designed for attributed graphs, while this article assumes that graph attributes are unavailable. To enable these baselines to support the embedding without attributes, we try 3 commonly used standard settings that use (i) random noise, (ii) constant, and (iii) one-hot degree encoding as auxiliary attribute inputs, with the best inference quality reported.
D.3 Inference Tasks and Evaluation Protocols
This article adopts 7 inference tasks spanning node, edge, and graph levels to validate PI-HIST's effectiveness.
https://github.com/aditya-grover/node2vec https://github.com/sebkaz/struc2vec https://github.com/GemsLab/PhUSION https://github.com/ZW-ZHANG/RandNE https://github.com/maxdan94/LouvainNE https://github.com/THU-numbda/SketchNE https://github.com/ntalukde/node2binary https://github.com/devvrit/S3GC https://github.com/EdisonLeeeee/MAGI https://github.com/KL4805/GraLSP https://github.com/cswzhang/DRSR https://github.com/PetarV-/DGI https://github.com/THUDM/GraphMAE2 https://github.com/zyzisastudyreallyhardguy/Graph-Group-Discrimination https://github.com/hedongxiao-tju/E2Neg
D.3.1 Node-Level Tasks
As summarized in Fig. 2a, we first measure the embedding quality of PI-HIST (R) and (A) using 4 node-level (position- and identity-related) tasks to validate whether they can effectively encode node positions and identities. In addition to embedding quality, we also evaluate their efficiency to demonstrate the potential advantage brought by PI-HIST's simple design, investigating the trade-off between quality and efficiency.
Node Position and Identity Classification. For the first (or second) type of datasets with identity (or position) ground-truth, the supervised node classification can be used to evaluate the quality of identity (or position) embeddings. We follow the standard evaluation pipeline of Xie et al. [45] to facilitate this setup, where Logistic regression is the downstream classifier taking the derived embeddings as inputs; macro and micro F1 scores are adopted as quality metrics. On each dataset, 20% and 10% of labeled nodes are randomly sampled to form the training and validation sets, with the remaining 70% nodes as the test set. We repeat this procedure, which includes data split and downstream evaluation, 10 times and report the mean and standard deviation of each quality metric. In this setting, larger average F1 scores indicate better embedding quality.
Community Detection. For the first type of datasets without identity ground-truth, community detection is a straightforward unsupervised position-related task. We employ KMeans as the downstream clustering module and adopt modularity [77], a widely used metric, to measure the quality of position embeddings. The evaluation procedure is also repeated 10 times, with the mean and standard deviation of the quality metric reported. Hence, larger average modularity means better embedding quality.
Node Identity Clustering. To enable the evaluation of identity embedding on the second type of datasets without identity ground-truth, we define node identity clustering, an unsupervised identity-related task, extended from the classic spectral clustering algorithm [43]. Since high-order degree statistics can characterize node identities, this task first constructs an auxiliary similarity graph , which is the first step of spectral clustering, using one-hot degree encodings of nodes' high-order neighbors. has the same node set with the original graph but a different edge set . Let be the set of neighbors with exact distance from and be the one-hot degree encoding of . We first extract for each node , with as the order of neighbors. The K-D Tree algorithm [78] is then applied to to find top-10 nodes with the highest similarity for each node , which constructs . By jointly considering the effectiveness and computational overhead of building , we set for PPI, BlogCatalog, DBLP, and Amazon, respectively. Given embeddings derived from , we employ KMeans as the downstream clustering module to get a clustering result , with as the set of members in the -th cluster and ( ). We use average conductance [79], a classic objective of spectral clustering, to measure the clustering quality based on , which equivalently evaluates the ability of to encode node identities. Given the clustering result and auxiliary similarity graph , the average conductance is defined as
where is the set of edges in across a cluster and its complement; denotes the degree of node in . For each cluster , this metric computes the ratio between the number of edges in across and the number of internal edges within . When a cluster is empty, we simply set this ratio to 1 to avoid the divide-by-zero exception. Conductance is a lower-is-better metric, with a smaller value corresponding to better clustering quality. Similar to community detection, we also repeat the aforementioned evaluation procedure 10 times, with the mean and standard deviation of the quality metric reported.
Efficiency Evaluation. In addition to embedding quality, we also measure the effective computation time (sec) of embedding inference for efficiency evaluation. Concretely, we report the mean and standard deviation of embedding inference time over 10 independent runs, following 5 warm-up runs. Shorter inference time corresponds to better efficiency. On large-scale graphs, we define that a method encounters the OOT exception, if it fails to derive feasible embeddings within seconds.
D.3.2 Edge-Level Tasks
As highlighted in Fig. 3a, we use link prediction and graph reconstruction, which are neither typically position-nor identity-dominant edge-level tasks, to validate whether node positions and identities are complementary topology properties and may together improve the inference quality. For both tasks, we follow the standard evaluation pipeline of Yang et al. [46], with logistic regression as the downstream classifier and AUC as the quality metric. A larger AUC value implies better inference quality.
https://github.com/THU-numbda/SketchNE/blob/master/example/predict.py
https://github.com/AnryYang/NRP-code/blob/master/eval/eval.linkpred.py
Link Prediction. Given the observed graph topology, link prediction aims to determine whether there are potential edges between some non-adjacent node pairs. We first randomly removed 20% of the edges in a given graph , with the remaining 80% edges constituting the set of positive training samples . Specifically, we let preserve a spanning tree of , which can be obtained by a depth-first search on . It ensures that the training topology induced by is connected. Each method is allowed to derive its node-wise embeddings only based on this connected topology. We further generate another negative sample set by sampling non-adjacent node pairs equal in number to . Finally, is used as the training set to train the downstream logistic regression. For each node pair , we get node-pair embedding by concatenating corresponding node embeddings. The downstream classifier is trained using inputs and labels , where if and otherwise.
The removed 20% edges are split evenly to form positive samples of the validation and test sets, denoted by and . Similar to , non-adjacent node pairs matching sizes of and are also sampled to build negative sample sets and . They are further used to construct the validation and test sets, with definitions of and . In this setting, we adopt 80/10/10% for the split of training, validation, and test sets. We repeat the aforementioned procedure, including data split, training, and inference, 5 times, with the mean and standard deviation of the quality metric reported.
Graph Reconstruction. Consistent with the motivation of embedding, graph reconstruction measures whether the derived low-dimensional vector representations can recover the original graph topology . Let be the number of nodes in . Directly computing the reconstruction scores for all node pairs may be intractable for large-scale graphs. Instead, we randomly sample a set containing node pairs, where we set the ratio for Europe, USA, PPI, Actor, BlogCatalog, Film, DBLP, and Amazon with progressively growing scale. Different from link prediction, each method should derive its node-wise embeddings based on the full graph topology . For each node pair , we derive a node pair embedding and a corresponding label , where if and otherwise. We then train the downstream classifier using input-label pairs and measure the ability to recover the original topology based on classifier scores with respect to . This evaluation procedure is repeated 10 times, with the mean and standard deviation of the quality metric reported.
D.3.3 Graph-Level Tasks
We also investigate whether the combination of position and identity embeddings can improve the inference of some graph-level tasks, compared with only using one type of embeddings. Motivated by the case studies of Milo et al. [50] and Dong et al. [51], we consider the graph superfamily identification on both real datasets and synthetic benchmarks.
Graph Superfamily Identification. This task evaluates whether the given graph-level features or embeddings can group structurally similar graphs into a common superfamily and separate those from different superfamilies. For a case study, we visualize the correlation coefficient matrix derived from the graph-level embeddings of a method. One can qualitatively assess inference quality by examining whether entries in main-diagonal blocks corresponding to ground-truth superfamilies have notably high correlation values.
For the 8 real-world graphs used in our evaluation of node- and edge-level tasks, we divide them into 4 rough superfamilies according to their scenarios (cf. Supplementary Table S1) and rearrange the layout order of these graphs based on this partition (Fig. 4a) when visualizing the correlation matrix. Concretely, Europe and USA are grouped into a common superfamily as they are both air traffic networks, while Film and Actor constitute a separate superfamily about movies. We further cluster BlogCatalog, DBLP, and Amazon into another separate superfamily, due to their common application domains regarding human interactions. PPI alone forms an independent superfamily since it is the only dataset related to proteins.
As highlighted in Fig. 4b, we also adopt the classic LFR benchmark [49] to facilitates the superfamily identification on synthetic graphs. This benchmark uses a set of parameters to generate each synthetic graph, where is the number of nodes; is the ratio between the external degree and total degree of each node with respect to the cluster belongs to; and denote the average and maximum node degrees; and represent the minimum and maximum community sizes. Concretely, we fix and set , and , which in sequence generate 9 synthetic graphs . Note that node positions and identities are related to community structures and (high-order) degrees. Under the above parameter settings, and mimic variations in community size and degree, thus correspondingly simulating gradual changes of node positions and identities. Based on the layout order of synthetic graphs (i.e., from to ), entries within a correlation matrix are expected to decrease as they move away from the main diagonal (i.e., along the direction of purple arrows in Fig. 4d and Supplementary Fig. S4b), with a larger magnitude of decrease indicating a better identification result. As the generation of synthetic graphs may not be stable, we repeat the generation procedure of 10 times and report the averaged correlation matrix over these independent runs.
Furthermore, we follow the evaluation pipeline of Dong et al. [48] to compare PI-HIST with four baselines that can support graph superfamily identification, including BoD, BoHD, SSP [47], and CNS [48]. BoD and BoHD are simple yet classic graph-level features. They characterize a graph using a fixed-dimensional histogram vector obtained by counting the frequency of each distinct (high-order) degree. For BoHD, we set the neighbor order as for its degree counting. SSP and CNS are sophisticated graph-level features about the profile of motifs [50] (over the null model) and signature of structural diversity [51]. For SSP, we set the motif size to 4 and thus consider all the 6 (undirected) motifs induced by four nodes (cf. examples in Fig. 3 of [50]). Same as the settings in [51], we consider all the 17 cases for structural diversity (cf. examples in Fig. 2 of [51]) induced by two-, three-, and four-node common neighbors. As official implementations of SSP and CNS are unavailable and directly computing exact statistics for motifs and structural diversity is intractable, we implement alternative approximate algorithms for them using Numba. Our implementations estimate motif and structural diversity statistics by sampling only a small ratio of node combinations, where the computationally expensive sampling-and-estimation procedure can be sped up using GPUs.
D.4 Model Configuration and Hyper-parameter Settings
Almost all the methods evaluated in our experiments contain tunable hyper-parameters. For instance, node2vec introduces to balance the width- and depth-first search in RW sampling [36]. In PI-HIST, are hyper-parameters regarding the single FFP for embedding derivation. One can also select settings of the nonlinearity activation and normalization in PI-HIST using a strategy similar to hyper-parameter tuning. On each dataset, we set the same embedding dimensionality for all methods, except for those with a fixed default setting, such as PhUSION (I) with for all cases. For supervised tasks (e.g., node classification and link prediction), we tune hyper-parameters and other optional setups (e.g., different augmented feature inputs of GNN-based approaches mentioned in Supplementary Section D.2) based on quality metrics on the validation set. For unsupervised tasks (e.g., community detection and node identity clustering), we determine corresponding settings according to unsupervised metrics (e.g., modularity and conductance). For case studies of graph superfamily identification, we manually select the setting with the fewest failure cases in the visualized correlation matrix.
Our node-level evaluations (Fig. 2 and Supplementary Fig. S1) involve both position- and identity-related tasks, such as node identity classification and community detection on the first type of datasets. On each dataset, we tune hyper-parameters and optional settings of position- and identity-preserving approaches (cf. the summary of baselines in Supplementary Table S2) based on the corresponding position- and identity-related tasks, respectively. For the rest baselines, which are uncertain to encode which property, we use supervised tasks (i.e., identity and position classification on the first and second types of datasets) to select their settings.
Following the tuning strategy described in 'Methods' section, detailed model configurations and hyper-parameters settings for all the experimental evaluation cases are summarized in Supplementary Tables S3 and S4, where is the embedding dimensionality; represents the RW/AW length; is the aggregation weight of FFP, while is the fusion weight when combining position and identity embeddings; and are the numbers of RWs sampled per node in total and in each run with ; and are optional nonlinear activation and normalization after FFP; denotes the optional normalization of embedding fusion. When applying PI-HIST (A) to the superfamily identification over real-world graphs, we set to , , , , , , and for Europe, USA, PPI, Actor, BlogCatalog, Film, DBLP, and Amazon, respectively.
D.5 Experimental Environment
We use PyTorch, PyTorch Cluster, and Numba to implement PI-HIST, while the open-source official implementations of other baselines are adopted for our experimental comparison (cf. Supplementary Section D.2 for their sources). All the experiments were conducted on a rented cloud server running Ubuntu 22.04, equipped with an AMD EPYC 9K84 96-Core CPU, 150GB main memory, and a single H20 GPU (96GB GPU memory). Under this experimental environment, PI-HIST and all other learning-based approaches with official implementations in PyTorch or TensorFlow are run on the GPU.
Supplementary Section E Detailed Experiment Results
Corresponding to the visualization results shown in Fig. 2 and S1, numerical details of node-level task evaluation on Europe, USA, Actor, Film, PPI, BlogCatalog, DBLP, and Amazon in terms of are depicted in Supplementary Tables S5, S6, S7, S8, S9, S10, S11, and S12, with and as the mean and standard deviation of a metric over multiple independent runs. Table S13 further provides details about the inference time with respect to different steps of PI-HIST (A), where RW, AW-MAP, AW-IDX, AW-CNT, CAT, HIER, and FFP refer to (i) RW sampling, (ii) AW mapping, (iii) AW indexing, (iv) AW counting, (v) statistic gathering, (vi) hierarchical structure extraction, and (vii) one training-free FFP, respectively.
Supplementary Table S3 Detailed parameter settings and configurations of PI-HIST (R) and (A) for all the experimental evaluation cases, where is the embedding dimensionality; denotes the RW/AW length; is the aggregation weight for one FFP; and represent optional nonlinear activation function and normalization operation; and are the numbers of RWs sampled per node in total and in each run ().
| Tasks | Variants | Datasets | ||||||
|---|---|---|---|---|---|---|---|---|
| Case Study in Fig. 1 | PI-HIST (R) | Karate Club | 16 | 8 | 0.1 | tanh | col z-norm | N/A |
| PI-HIST (A) | Karate Club | 16 | 8 | 0.9 | tanh | col z-norm | 1e3,1e3 | |
| Node-Level Tasks | PI-HIST (R) | Europe | 64 | 5 | 0.3 | 0 | row 12-norm | N/A |
| USA | 64 | 10 | 0.7 | 0 | row 12-norm | N/A | ||
| Actor | 256 | 15 | 0.3 | 0 | row 12-norm | N/A | ||
| Film | 256 | 12 | 0.1 | ReLU | row 12-norm | N/A | ||
| PPI | 256 | 10 | 0.2 | tanh | 0 | N/A | ||
| BlogCatalog | 512 | 6 | 0.1 | 0 | 0 | N/A | ||
| DBLP | 256 | 20 | 0.0 | tanh | col z-norm | N/A | ||
| Amazon | 128 | 20 | 0.1 | tanh | 0 | N/A | ||
| PI-HIST (A) | Europe | 64 | 5 | 0.9 | 0 | 0 | 5e4,5e4 | |
| USA | 64 | 5 | 0.3 | tanh | col z-norm | 5e4,5e4 | ||
| Actor | 256 | 5 | 0.9 | ReLU | 0 | 5e4,5e4 | ||
| Film | 256 | 7 | 0.4 | ReLU | col z-norm | 5e4,1e4 | ||
| PPI | 256 | 8 | 0.6 | sigmoid | row 12-norm | 5e4,5e4 | ||
| BlogCatalog | 512 | 8 | 0.7 | ReLU | 0 | 5e4,2,5e4 | ||
| DBLP | 256 | 8 | 0.9 | ReLU | col z-norm | 1e4,5e2 | ||
| Amazon | 128 | 7 | 0.1 | ReLU | 0 | 1e4,5e2 | ||
| Link Prediction | PI-HIST (R) | Europe | 64 | 5 | 0.0 | ReLU | col z-norm | N/A |
| USA | 64 | 8 | 0.9 | ReLU | col z-norm | N/A | ||
| PPI | 256 | 5 | 0.6 | ReLU | col z-norm | N/A | ||
| Actor | 256 | 5 | 0.7 | ReLU | col z-norm | N/A | ||
| BlogCatalog | 512 | 5 | 0.0 | ReLU | col z-norm | N/A | ||
| Film | 256 | 5 | 0.6 | ReLU | col z-norm | N/A | ||
| DBLP | 256 | 5 | 0.7 | exp | col z-norm | N/A | ||
| Amazon | 128 | 5 | 0.6 | exp | col z-norm | N/A | ||
| PI-HIST (A) | Europe | 64 | 7 | 0.2 | sigmoid | col z-norm | 5e4,5e4 | |
| USA | 64 | 8 | 0.9 | ReLU | col z-norm | 5e4,5e4 | ||
| PPI | 256 | 8 | 0.5 | tanh | col z-norm | 5e4,5e4 | ||
| Actor | 256 | 6 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| BlogCatalog | 512 | 5 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| Film | 256 | 6 | 0.4 | ReLU | col z-norm | 5e4,1e4 | ||
| DBLP | 256 | 5 | 0.8 | ReLU | col z-norm | 1e4,1e3 | ||
| Amazon | 128 | 5 | 0.6 | exp | col z-norm | 1e4,1e3 | ||
| Graph Reconstruction | PI-HIST (R) | Europe | 64 | 5 | 0.0 | ReLU | col z-norm | N/A |
| USA | 64 | 5 | 0.5 | ReLU | col z-norm | N/A | ||
| PPI | 256 | 7 | 0.7 | exp | col z-norm | N/A | ||
| Actor | 256 | 6 | 0.8 | exp | col z-norm | N/A | ||
| BlogCatalog | 512 | 5 | 0.0 | tanh | col z-norm | N/A | ||
| Film | 256 | 5 | 0.8 | exp | col z-norm | N/A | ||
| DBLP | 256 | 5 | 0.5 | ReLU | col z-norm | N/A | ||
| Amazon | 128 | 6 | 0.0 | tanh | col z-norm | N/A | ||
| PI-HIST (A) | Europe | 64 | 8 | 0.2 | ReLU | col z-norm | 5e4,5e4 | |
| USA | 64 | 6 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| PPI | 256 | 8 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| Actor | 256 | 7 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| BlogCatalog | 512 | 5 | 0.3 | ReLU | col z-norm | 5e4,5e4 | ||
| Film | 256 | 5 | 0.9 | ReLU | col z-norm | 5e4,1e4 | ||
| DBLP | 256 | 6 | 0.2 | ReLU | col z-norm | 1e4,1e3 | ||
| Amazon | 128 | 7 | 0.2 | ReLU | col z-norm | 1e4,1e3 | ||
| Graph Superfamily Identification | PI-HIST (R) | Syn. Graphs | 64 | 5 | 0.8 | ReLU | 0 | N/A |
| Real Graphs | 64 | 5 | 0.9 | ReLU | 0 | N/A | ||
| PI-HIST (A) | Syn. Graphs | 64 | 6 | 0.5 | ReLU | 0 | 1e4,1e4 | |
| Real Graphs | 64 | 7 | 0.8 | ReLU | 0 | 5e4/2e4,5e4/2.5e4/1e4/5e2 |
Supplementary Table S4 Detailed parameter settings of PI-HIST (R&A) for cases combining both variants of PI-HIST, where is the fusion weight; is the optional normalization operation.
| Tasks | Datasets | ||
|---|---|---|---|
| Link Prediction | Europe | 0.9 | row 12-norm + col z-norm |
| USA | 0.9 | row 12-norm + col z-norm | |
| PPI | 0.6 | row 12-norm + col z-norm | |
| Actor | 0.8 | row 12-norm + col z-norm | |
| BlogCatalog | 0.7 | row 12-norm + col z-norm | |
| Film | 0.9 | row 12-norm + col z-norm | |
| DBLP | 0.8 | row 12-norm + col z-norm | |
| Amazon | 0.9 | row 12-norm + col z-norm | |
| Graph Reconstruction | Europe | 0.6 | row z-norm |
| USA | 0.5 | row z-norm | |
| PPI | 0.3 | row z-norm | |
| Actor | 0.2 | row z-norm | |
| BlogCatalog | 0.7 | row z-norm | |
| Film | 0.9 | row z-norm | |
| DBLP | 0.3 | row z-norm | |
| Amazon | 0.5 | row z-norm | |
| Graph Superfamily Identification | Synthetic Graphs | 0.6 | row 12-norm |
| Real Graphs | 0.9 | 0 |
Numerical details of the two edge-level tasks (i.e., link prediction and graph reconstruction) in terms of , which correspond to the visualization results in Fig. 3 and S2, are shown in Supplementary Tables S14 and S15, where Val and Test denote outcomes on the validation and test sets, respectively. Supplementary Table S16 gives detailed results of PI-HIST (R&A) (highlighted by purple lines in Fig. 3 and S2) with respect to .
Supplementary Table S5 Detailed results of node-level tasks on Europe with node identity ground-truth. Time Validation Set(%) Test Set(%) Modularity (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↑ node2vec 7.8438±0.3677 30.26±7.50 26.92±7.69 34.66±2.22 33.51±3.04 12.74±4.88 PhUSION (P) 0.2892±0.0078 30.77±9.03 29.17±8.70 32.10±2.64 30.89±2.57 10.55±3.22 PaCEr (P) 3.6484±0.2124 36.15±6.73 34.16±6.13 39.72±1.50 39.43±1.60 9.72±1.66 struc2vec 7.8520±0.1582 50.77±6.36 47.39±6.83 52.74±3.26 52.33±3.74 -5.39±1.68 PhUSION (I) 1.7452±0.0150 47.44±7.28 42.96±7.21 51.21±2.44 49.02±3.87 -5.33±1.13 PaCEr (I) 0.5868±0.0038 54.36±7.84 52.60±8.69 55.05±3.16 54.42±2.75 -4.43±0.62 RandNE 0.0065±0.0003 49.74±5.76 48.00±5.77 49.47±2.15 48.67±2.05 -1.58±0.88 LouvainNE 0.0106±0.0001 24.62±11.76 23.21±10.38 27.01±3.14 26.51±3.39 18.71±0.74 SketchNE 0.7962±0.0662 38.97±8.57 35.85±8.74 37.47±2.68 34.21±3.94 13.71±4.29 node2binary 4.6615±0.1551 28.21±5.38 26.24±5.32 32.63±1.84 31.67±2.00 14.35±3.45 S3GC 34.2107±0.6347 36.67±8.58 32.79±8.90 38.29±2.41 34.68±3.24 11.31±0.14 MAGI 1.2443±0.0297 38.72±9.06 32.28±10.07 38.93±3.60 33.97±5.31 13.65±1.70 GraLSP 28.9134±3.5807 41.03±7.34 38.69±7.66 45.05±2.76 43.45±2.82 0.43±0.55 DRSR 7.1868±0.0299 50.77±4.70 48.05±5.44 53.13±2.98 51.95±2.90 -4.15±0.19 DGI 0.9755±0.2283 46.15±7.69 40.10±8.21 47.69±2.88 45.35±4.42 0.13±3.29 GraphMAE2 1.6811±0.4101 40.77±9.49 38.23±8.35 45.20±1.90 43.87±2.09 0.80±0.35 GGD 1.4241±0.0419 54.10±9.42 51.20±10.41 54.91±2.12 53.45±3.36 -5.56±0.06 E2Neg 6.5305±0.2581 53.08±7.87 50.61±5.61 50.89±2.67 50.85±2.51 -2.38±4.90 PI-HIST (R) 0.0018±0.0000 32.31±7.88 30.28±7.98 33.17±4.21 31.20±4.70 18.68±0.41 PI-HIST (A) 0.0891±0.0021 56.67±9.62 54.32±10.03 56.65±2.49 55.54±2.84 -5.33±5.40 Supplementary Table S6 Detailed results of node-level tasks on USA with node identity ground-truth. Time Validation Set(%) Test Set(%) Modularity (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↑ node2vec 26.8722±0.7963 50.51±4.31 49.14±4.77 49.33±1.42 48.61±1.60 26.94±2.73 PhUSION (P) 1.7797±0.0207 49.49±2.37 48.05±2.82 50.26±1.42 49.25±1.70 24.24±1.88 PaCEr (P) 7.3735±0.0828 51.95±3.68 51.61±3.63 50.88±1.35 50.74±1.24 22.46±0.44 struc2vec 32.6666±0.5896 55.85±5.23 54.62±4.36 55.46±0.97 54.60±1.18 4.21±2.71 PhUSION (I) 12.3627±0.1339 57.88±2.91 56.39±3.27 59.00±1.57 58.06±2.03 12.74±0.05 PaCEr (I) 4.1170±0.0230 56.10±4.28 54.00±5.51 56.53±1.83 55.13±1.84 -0.34±1.08 RandNE 0.0140±0.0007 54.32±3.02 53.19±3.06 54.21±2.17 53.32±2.72 11.37±0.78 LouvainNE 0.0231±0.0009 45.68±3.50 44.00±3.78 45.25±1.68 43.94±2.80 27.80±0.34 SketchNE 0.8249±0.0607 54.07±3.41 52.16±4.30 53.03±1.33 51.81±1.83 27.94±2.32 node2binary 14.1784±1.6952 45.76±4.29 44.49±3.81 46.98±1.52 46.21±2.12 24.26±0.88 S3GC 29.1119±0.7194 53.56±2.78 51.35±3.95 51.84±1.89 49.97±2.26 26.78±0.08 MAGI 1.5214±0.0277 49.66±3.46 46.72±3.53 48.06±2.00 45.38±2.94 24.15±0.02 GraLSP 28.9351±3.7649 56.36±5.64 54.90±5.17 56.33±1.75 55.41±1.98 4.66±0.36 DRSR 7.8639±0.0938 60.17±4.82 58.25±4.83 60.77±1.87 59.66±1.69 11.74±0.69 DGI 1.4196±0.3677 56.86±3.04 55.33±1.87 56.46±1.44 55.01±1.65 11.28±3.01 GraphMAE2 1.6050±0.4592 51.44±6.08 49.19±6.53 51.64±2.41 49.72±2.54 2.58±0.63 GGD 1.3626±0.0025 56.10±3.99 55.67±3.77 56.77±1.67 56.50±1.66 11.34±6.20 E2Neg 6.5868±0.1357 55.93±3.75 55.51±3.79 57.21±1.29 56.96±1.23 8.34±3.12 PI-HIST (R) 0.0058±0.0042 50.51±2.25 48.47±3.27 50.36±2.30 48.93±2.77 27.22±1.17 PI-HIST (A) 0.1313±0.0064 61.86±3.13 59.85±4.34 60.23±1.13 58.66±1.41 23.61±0.53 Supplementary Table S7 Detailed results of node-level tasks on Actor with node identity ground-truth. Time Validation Set(%) Test Set(%) Modularity (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↑ node2vec 359.6592±11.4928 28.96±1.99 25.44±1.61 28.81±0.65 25.24±0.55 46.23±0.66 PhUSION (P) 72.2466±0.9959 31.71±2.58 27.28±2.06 31.54±0.40 27.11±0.33 46.30±0.83 PaCEr (P) 172.2412±0.4037 35.13±1.67 31.04±1.46 34.75±0.50 30.97±0.43 46.44±0.34 struc2vec 292.1057±7.5681 39.93±1.60 33.44±1.46 40.03±0.35 33.78±0.42 0.80±0.70 PhUSION (I) 476.5349±3.7501 40.40±1.53 32.93±1.32 40.82±0.69 33.49±1.15 6.62±0.80 PaCEr (I) 150.3713±0.4370 41.50±1.88 32.52±2.07 41.77±0.63 32.94±1.64 -4.82±0.01 RandNE 3.7662±0.1607 30.30±1.40 24.82±0.81 30.19±1.11 24.66±0.95 7.05±2.71 LouvainNE 0.3428±0.0045 28.23±1.95 21.92±2.28 27.82±0.88 21.58±0.79 46.28±1.28 SketchNE 1.3812±0.0536 31.20±1.76 25.43±1.27 31.51±0.61 25.83±0.49 46.16±0.41 node2binary 128.7087±25.8684 27.25±1.74 23.04±1.38 26.51±0.58 22.33±0.62 28.06±0.92 S3GC 32.2573±0.5685 31.37±1.62 25.62±1.16 31.61±0.44 25.92±0.39 44.25±0.01 MAGI 21.7904±0.5835 37.02±1.59 29.36±1.85 37.72±0.68 30.05±1.29 33.00±0.00 GraLSP 249.4036±43.8074 41.36±2.54 33.07±2.54 41.55±0.38 33.35±0.84 4.58±0.06 DRSR 11.6590±0.1086 43.29±1.55 35.31±1.07 43.72±0.46 35.78±0.45 10.90±1.70 DGI 2.3272±0.3494 42.37±2.18 33.77±1.64 42.14±0.59 33.77±0.76 5.69±1.11 GraphMAE2 4.7755±2.6565 39.22±1.57 31.50±0.97 39.13±0.59 31.47±1.01 0.63±0.47 GGD 1.6110±0.0199 40.58±1.87 34.50±1.52 40.33±0.42 34.07±0.32 5.42±2.13 E2Neg 7.2887±0.1599 41.29±2.09 33.87±1.30 41.00±0.90 33.82±0.61 1.55±1.09 PI-HIST (R) 0.0078±0.0001 29.67±1.36 23.95±1.15 29.38±0.62 23.69±0.61 45.16±0.01 PI-HIST (A) 0.6730±0.0099 42.75±0.99 34.51±0.97 43.39±0.57 35.18±0.76 2.28±0.00 Supplementary Table S8 Detailed results of node-level tasks on Film with node identity ground-truth. Time Validation Set(%) Test Set(%) Modularity (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↑ node2vec 359.6592±11.4928 28.96±1.99 25.44±1.61 28.81±0.65 25.24±0.55 46.23±0.66 PhUSION (P) 72.2466±0.9959 31.71±2.58 27.28±2.06 31.54±0.40 27.11±0.33 46.30±0.83 PaCEr (P) 172.2412±0.4037 35.13±1.67 31.04±1.46 34.75±0.50 30.97±0.43 46.44±0.34 struc2vec 292.1057±7.5681 39.93±1.60 33.44±1.46 40.03±0.35 33.78±0.42 0.80±0.70 PhUSION (I) 476.5349±3.7501 40.40±1.53 32.93±1.32 40.82±0.69 33.49±1.15 6.62±0.80 PaCEr (I) 150.3713±0.4370 41.50±1.88 32.52±2.07 41.77±0.63 32.94±1.64 -4.82±0.01 RandNE 3.7662±0.1607 30.30±1.40 24.82±0.81 30.19±1.11 24.66±0.95 7.05±2.71 LouvainNE 0.3428±0.0045 28.23±1.95 21.92±2.28 27.82±0.88 21.58±0.79 46.28±1.28 SketchNE 1.3812±0.0536 31.20±1.76 25.43±1.27 31.51±0.61 25.83±0.49 46.16±0.41 node2binary 128.7087±25.8684 27.25±1.74 23.04±1.38 26.51±0.58 22.33±0.62 28.06±0.92 S3GC 32.2573±0.5685 31.37±1.62 25.62±1.16 31.61±0.44 25.92±0.39 44.25±0.01 MAGI 21.7904±0.5835 37.02±1.59 29.36±1.85 37.72±0.68 30.05±1.29 33.00±0.00 GraLSP 249.4036±43.8074 41.36±2.54 33.07±2.54 41.55±0.38 33.35±0.84 4.58±0.06 DRSR 11.6590±0.1086 43.29±1.55 35.31±1.07 43.72±0.46 35.78±0.45 10.90±1.70 DGI 2.3272±0.3494 42.37±2.18 33.77±1.64 42.14±0.59 33.77±0.76 5.69±1.11 GraphMAE2 4.7755±2.6565 39.22±1.57 31.50±0.97 39.13±0.59 31.47±1.01 0.63±0.47 GGD 1.6110±0.0199 40.58±1.87 34.50±1.52 40.33±0.42 34.07±0.32 5.42±2.13 E2Neg 7.2887±0.1599 41.29±2.09 33.87±1.30 41.00±0.90 33.82±0.61 1.55±1.09 PI-HIST (R) 0.0078±0.0001 29.67±1.36 23.95±1.15 29.38±0.62 23.69±0.61 45.16±0.01 PI-HIST (A) 0.6730±0.0099 42.75±0.99 34.51±0.97 43.39±0.57 35.18±0.76 2.28±0.00 38
Supplementary Table S9 Detailed results of node-level tasks on PPI with node position ground-truth. Time Validation Set(%) Test Set(%) Conductance (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↓ node2vec 178.8106±6.8075 18.73±1.42 15.48±0.80 18.19±0.38 15.73±0.46 77.58±2.53 PhUSION (P) 22.1798±0.3195 20.55±0.97 16.39±1.02 20.15±0.41 16.79±0.53 77.47±2.81 PaCEr (P) 64.1417±0.1399 15.10±0.83 12.87±1.06 15.49±0.40 13.67±0.42 73.30±1.42 struc2vec 157.3473±6.2590 7.76±0.67 6.01±0.46 8.10±0.41 6.40±0.33 71.94±4.85 PhUSION (I) 143.6224±1.1783 9.46±0.50 4.38±0.39 9.22±0.28 4.21±0.28 56.14±3.56 PaCEr (I) 56.3766±0.1443 9.62±0.90 5.54±0.94 9.77±0.49 5.85±0.51 63.98±1.13 RandNE 2.0744±0.0166 14.64±0.79 9.51±0.58 14.92±0.58 10.28±0.64 73.11±1.94 LouvainNE 0.1800±0.0025 15.63±1.24 13.37±0.67 15.12±0.32 13.23±0.21 79.58±1.51 SketchNE 1.0414±0.0517 21.02±1.50 14.40±1.26 20.94±0.62 14.61±0.88 76.74±1.76 node2binary 53.2905±7.6874 17.08±1.38 13.06±1.08 17.47±0.43 13.99±0.25 83.75±1.12 S3GC 107.0300±0.7505 21.16±1.19 14.19±1.26 20.61±0.66 14.21±0.85 73.82±0.69 MAGI 7.3130±0.3360 14.02±0.92 6.61±0.58 13.72±0.43 6.62±0.46 83.95±0.25 GraLSP 128.5290±20.0905 8.28±1.00 5.80±0.98 8.24±0.47 5.74±0.43 67.28±1.34 DRSR 15.1257±0.1645 12.10±0.65 8.35±0.92 12.46±0.42 8.61±0.41 55.72±0.36 DGI 2.1321±0.4393 11.84±1.07 6.34±0.89 11.62±0.57 6.54±0.53 82.13±0.33 GraphMAE2 5.3486±2.5031 9.63±0.76 3.40±0.22 9.64±0.58 3.57±0.30 76.38±0.39 GGD 1.6078±0.0394 10.77±0.99 4.62±0.64 10.45±0.47 4.54±0.42 76.09±0.27 E2Neg 6.9376±0.1139 10.57±1.15 8.52±0.90 10.32±0.38 8.68±0.30 76.07±0.71 PI-HIST (R) 0.0061±0.0011 21.05±1.23 16.01±0.92 21.24±0.22 16.78±0.56 79.75±0.70 PI-HIST (A) 0.9303±0.0096 9.78±0.97 3.95±0.68 9.77±0.34 3.96±0.32 63.01±1.26 Supplementary Table S10 Detailed results of node-level tasks on BlogCatalog with node position ground-truth. Time Validation Set(%) Test Set(%) Conductance (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↓ node2vec 1613.4396±24.3453 34.42±1.25 20.37±1.22 34.18±0.49 21.32±0.69 77.84±1.87 PhUSION (P) 257.2738±3.8922 39.41±1.19 25.04±1.47 39.05±0.29 25.01±0.38 78.58±1.56 PaCEr (P) 901.4042±3.6675 32.48±1.28 21.60±1.30 31.57±0.36 21.16±0.34 68.32±1.23 struc2vec 1094.7581±16.1948 12.50±0.94 4.99±0.54 12.04±0.28 4.85±0.14 74.71±3.36 PhUSION (I) 1292.3129±5.3792 10.63±0.85 6.14±0.97 10.35±0.28 5.97±0.27 50.32±2.21 PaCEr (I) 849.3407±3.8926 16.72±0.80 3.55±0.78 16.29±0.44 3.47±0.16 60.38±1.07 RandNE 123.8933±11.0708 29.95±0.83 12.79±0.90 29.67±0.33 13.09±0.34 50.85±1.43 LouvainNE 0.9442±0.0128 23.65±1.04 12.82±0.63 23.06±0.17 13.47±0.27 82.20±0.48 SketchNE 1.9865±0.0491 40.77±1.17 21.22±1.18 40.28±0.35 21.91±0.56 78.91±1.11 node2binary 266.1865±47.5454 18.97±0.64 7.46±0.33 18.23±0.40 7.43±0.28 79.01±0.97 S3GC 120.4018±1.7052 35.31±1.01 15.85±0.60 34.45±0.42 15.96±0.57 72.65±0.82 MAGI 46.9488±8.1153 18.96±0.68 4.38±0.28 18.37±0.36 4.32±0.13 70.05±0.90 GraLSP 1008.7149±74.9156 15.68±0.65 4.04±0.45 15.55±0.40 4.23±0.24 70.24±0.43 DRSR 249.6355±1.3925 25.02±1.12 8.93±0.53 24.54±0.32 9.27±0.09 54.37±1.97 DGI 16.5468±3.1438 20.69±0.68 5.35±0.27 20.10±0.25 5.31±0.22 69.85±0.85 GraphMAE2 4.6504±2.1057 18.19±0.59 3.84±0.36 17.97±0.39 4.01±0.15 79.13±0.50 GGD 9.0169±0.0283 18.44±0.62 3.94±0.34 17.98±0.23 3.96±0.16 68.37±1.09 E2Neg 9.3498±0.1002 20.35±0.79 10.70±0.71 19.57±0.36 10.23±0.27 61.22±1.10 PI-HIST (R) 0.0225±0.0034 39.30±0.92 24.52±0.82 39.12±0.28 24.93±0.36 68.51±2.80 PI-HIST (A) 2.7563±0.0848 17.38±0.60 5.24±0.46 16.82±0.30 5.26±0.17 56.32±1.43 Supplementary Table S11 Detailed results of node-level tasks on DBLP with node position ground-truth. Time Validation Set(%) Test Set(%) Conductance (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↓ node2vec OOT PhUSION (P) OOM PaCEr (P) OOM struc2vec OOT PhUSION (I) OOM PaCEr (I) OOM RandNE 188.6241±15.6970 45.37±0.70 29.53±2.26 45.21±0.17 29.96±1.69 44.84±1.25 LouvainNE 13.9016±1.0948 55.82±0.62 65.97±1.55 55.78±0.26 67.12±0.62 51.83±0.56 SketchNE 12.4036±0.4253 63.49±0.50 68.53±1.20 63.74±0.22 70.57±1.05 52.47±3.22 node2binary OOM S3GC 4540.4367±85.9206 57.30±0.51 39.14±2.26 57.29±0.30 40.38±2.63 53.11±0.15 MAGI 1170.9504±43.3845 26.32±0.45 6.17±0.35 26.31±0.21 6.22±0.20 60.07±0.46 GraLSP OOM DRSR OOM DGI 135.8253±0.1137 18.01±0.50 1.87±0.11 17.91±0.13 1.86±0.04 67.76±0.46 GraphMAE2 65.1096±9.2301 18.68±0.54 2.33±0.37 18.68±0.12 2.37±0.24 64.03±0.17 GGD 30.1133±0.0453 25.70±0.39 28.38±1.56 25.73±0.21 28.73±0.67 58.29±1.27 E2Neg 44.5398±5.2809 20.02±0.53 14.20±1.65 20.31±0.17 15.43±0.77 69.96±1.03 PI-HIST (R) 0.1870±0.0064 61.74±0.50 73.08±1.37 61.72±0.22 74.60±0.51 51.94±3.51 PI-HIST (A) 20.5245±0.9441 20.76±0.40 4.26±0.58 20.70±0.16 4.61±0.40 44.95±2.71 Supplementary Table S12 Detailed results of node-level tasks on Amazon with node position ground-truth. Time Validation Set(%) Test Set(%) Conductance (sec)↓ Micro F1↑ Macro F1↑ Micro F1↑ Macro F1↑ (%)↓ node2vec OOT PhUSION (P) OOM PaCEr (P) OOM struc2vec OOT PhUSION (I) OOM PaCEr (I) OOM RandNE 78.4991±3.6214 91.55±1.77 93.10±1.80 91.30±1.70 92.98±1.54 74.13±0.06 LouvainNE 9.1255±1.1484 98.60±0.72 98.45±0.76 98.63±0.36 98.50±0.45 67.31±0.98 SketchNE 9.8709±0.1689 99.08±0.50 99.02±0.55 99.08±0.39 99.02±0.46 68.16±1.51 node2binary OOM S3GC 1442.9805±8.8064 94.99±2.00 93.81±2.30 94.98±1.69 94.30±2.18 68.00±0.51 MAGI 1198.7392±13.9581 68.20±2.91 71.51±3.20 67.96±1.94 71.42±2.26 82.16±0.04 GraLSP OOM DRSR OOM DGI 48.3331±0.6428 27.08±1.96 21.30±2.30 27.07±0.96 21.83±1.25 70.49±0.73 GraphMAE2 38.4175±1.7095 20.03±2.23 10.42±1.97 20.51±1.27 10.95±1.76 76.59±0.63 GGD 16.7129±0.1496 58.68±2.08 60.27±2.68 58.58±1.54 60.43±1.57 67.33±0.97 E2Neg 42.2155±2.3756 54.77±3.47 56.57±4.05 54.38±1.08 57.03±1.10 85.31±0.02 PI-HIST (R) 0.1099±0.0046 98.83±0.61 98.85±0.50 98.84±0.48 98.85±0.48 68.91±5.35 PI-HIST (A) 17.3222±1.5904 42.22±2.25 39.27±2.73 43.49±1.50 41.65±1.98 56.70±1.75 39
Supplementary Table S13 Detailed inference time (sec)↓ of different steps in PI-HIST (A) evaluated by node-level tasks, where RW, AW-MAP, AW-IDX, AW-CNT, CAT, HIER, and FFP denote the time (sec) of (i) RW sampling, (ii) AW mapping, (iii) AW indexing, (iv) AW counting, (v) statistic gathering, (vi) hierarchical structure extraction, and (vii) one FFP. RW AW-MAP AW-IDX AW-CNT GAT HIER FFP Total Europe 0.0030±0.0011 0.0004±0.0000 0.0004±0.0000 0.0138±0.0018 0.0009±0.0001 0.0079±0.0015 0.0627±0.0003 0.0891±0.0021 USA 0.0082±0.0050 0.0004±0.0000 0.0004±0.0000 0.0435±0.0014 0.0069±0.0032 0.0091±0.0021 0.0627±0.0002 0.1313±0.0064 Actor 0.0389±0.0087 0.0005±0.0001 0.0006±0.0004 0.3493±0.0065 0.0042±0.0003 0.0352±0.0099 0.2442±0.0011 0.6730±0.0099 Film 2.2775±0.2241 0.0028±0.0004 0.0604±0.0724 1.3298±0.0637 0.3584±0.0497 0.2700±0.0142 0.5985±0.0012 4.8974±0.1999 PPI 0.0243±0.0055 0.0004±0.0000 0.0026±0.0031 0.2049±0.0043 0.0241±0.0034 0.0772±0.0104 0.5968±0.0012 0.9303±0.0096 BlogC. 0.7299±0.1022 0.0012±0.0002 0.0239±0.0592 0.5393±0.0352 0.0388±0.0040 0.1081±0.0194 1.3153±0.0016 2.7563±0.0848 DBLP 6.5442±0.4550 0.0101±0.0004 0.0844±0.0189 2.6930±0.0308 5.6679±0.8540 5.5233±0.0418 0.0015±0.0001 20.5245±0.9441 Amazon 4.8365±0.5854 0.0110±0.0019 0.0859±0.0175 2.5868±0.0456 5.3334±1.2971 3.5042±0.0295 0.9645±0.0042 17.3222±1.5904 Supplementary Table S14 Detailed results of link prediction on all datasets, where Val and Test denote results on the validation and test sets, respectively. Europe USA PPI Actor Val(%) Test(%) Val(%) Test(%) Val(%) Test(%) Val(%) Test(%) AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ node2vec 88.18±0.84 89.03±0.88 91.41±0.80 91.40±0.34 87.99±0.41 88.31±0.20 81.01±0.40 80.18±0.86 PhUSION (P) 86.89±0.80 87.99±1.25 89.45±0.36 89.38±0.71 87.54±0.55 87.83±0.30 83.60±0.56 82.97±0.55 PaCEr (P) 87.30±1.19 88.39±1.22 89.94±1.24 89.72±0.42 87.03±0.43 87.01±0.20 83.84±0.47 83.08±0.87 struc2vec 89.65±0.69 90.80±0.84 95.35±0.49 95.01±0.36 91.01±0.36 91.02±0.25 90.71±0.59 90.17±0.49 PhUSION (I) 89.87±0.66 90.98±0.80 95.58±0.59 95.35±0.21 91.08±0.37 91.09±0.10 89.60±0.53 89.13±0.50 PaCEr (I) 88.77±0.89 89.97±0.71 93.11±0.41 92.85±0.21 89.85±0.33 89.76±0.25 88.91±0.42 88.30±0.49 RandNE 89.02±0.89 90.15±0.78 94.49±0.59 94.24±0.32 88.35±0.29 88.26±0.15 83.57±0.54 83.69±0.67 LouvainNE 76.16±1.33 77.10±1.25 83.26±0.97 82.99±0.24 74.26±0.90 74.65±0.46 72.88±0.84 72.54±1.00 SketchNE 81.48±1.14 83.02±1.63 88.39±0.49 87.82±0.36 86.06±0.61 86.07±0.63 82.55±0.82 82.35±0.50 node2binary 82.57±1.26 83.92±0.99 90.50±0.77 89.79±0.85 80.73±2.65 80.89±2.28 76.37±0.60 75.63±1.27 S3GC 87.67±0.85 89.08±1.18 89.66±0.41 89.01±0.32 89.79±0.41 89.93±0.14 77.07±0.45 77.12±1.10 MAGI 89.14±0.92 90.12±0.95 94.17±0.74 93.89±0.73 90.68±0.50 90.75±0.18 89.97±0.55 89.38±0.37 GraLSP 89.91±0.79 90.72±0.71 95.26±0.42 94.95±0.13 91.08±0.39 91.14±0.15 90.58±0.62 89.81±0.34 DRSR 88.91±1.08 90.17±0.75 95.91±0.34 95.74±0.30 91.09±0.41 91.05±0.28 90.68±0.42 90.15±0.70 DGI 88.91±0.83 89.90±0.91 95.27±0.45 95.13±0.35 91.28±0.39 91.24±0.14 88.46±0.54 87.81±0.46 GraphMAE2 85.99±2.23 87.46±1.73 88.85±2.22 88.04±2.47 87.70±1.55 87.98±1.06 86.27±1.72 85.75±1.64 GGD 89.48±0.71 90.84±0.80 96.05±0.38 95.89±0.25 91.34±0.41 91.22±0.11 90.29±0.48 89.68±0.44 E2Neg 89.05±0.78 90.14±0.71 95.34±0.50 95.10±0.15 91.05±0.43 90.99±0.25 90.36±0.37 89.72±0.47 PI-HIST (R) 87.83±1.05 88.92±1.01 92.01±0.27 91.75±0.32 87.67±0.51 87.77±0.25 84.51±0.51 84.69±0.63 PI-HIST (A) 89.57±1.06 90.89±0.70 95.64±0.30 95.46±0.30 91.15±0.32 91.14±0.22 90.34±0.62 89.80±0.50 PI-HIST (R&A) 89.91±0.88 91.07±0.80 96.07±0.35 95.85±0.20 91.40±0.46 91.38±0.25 90.51±0.52 89.94±0.47 BlogCatalog Film DBLP Amazon Val(%) Test(%) Val(%) Test(%) Val(%) Test(%) Val(%) Test(%) AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ AUC↑ node2vec 95.31±0.09 95.29±0.08 79.79±0.16 79.65±0.55 OOT OOT PhUSION (P) 95.25±0.08 95.24±0.05 82.88±0.13 82.68±0.54 OOM OOM PaCEr (P) 94.76±0.10 94.73±0.09 80.91±0.55 80.76±0.53 OOM OOM struc2vec 95.53±0.07 95.48±0.11 88.71±0.14 88.41±0.25 OOT OOT PhUSION (I) 95.87±0.08 95.85±0.09 85.62±0.08 85.32±0.39 OOM OOM PaCEr (I) 94.75±0.06 94.73±0.10 87.67±0.15 87.33±0.38 OOM OOM RandNE 95.13±0.07 95.12±0.09 86.22±0.19 86.13±0.34 69.75±0.09 69.91±0.08 53.68±0.20 53.88±0.12 LouvainNE 75.48±0.51 75.17±0.34 67.72±0.50 68.08±0.76 62.57±0.16 62.48±0.24 54.98±0.22 55.11±0.24 SketchNE 94.69±0.16 94.74±0.12 78.10±0.48 78.04±0.66 68.61±0.16 68.55±0.20 58.33±0.09 58.32±0.11 node2binary 80.74±1.70 80.64±1.62 76.01±4.29 75.85±4.30 OOM OOM S3GC 93.02±0.09 93.00±0.08 73.12±0.40 72.83±0.63 80.43±0.22 80.46±0.29 62.44±0.16 62.48±0.24 MAGI 95.23±0.13 95.22±0.16 87.04±2.41 86.81±2.27 84.42±0.46 84.44±0.38 72.77±0.74 72.89±0.67 GraLSP 95.92±0.07 95.89±0.08 88.24±0.11 88.01±0.29 OOM OOM DRSR 95.48±0.13 95.47±0.17 88.27±0.13 87.97±0.20 OOM OOM DGI 96.15±0.06 96.12±0.07 87.02±0.15 86.70±0.29 88.23±0.10 88.23±0.07 78.62±0.11 78.69±0.04 GraphMAE2 93.36±0.66 93.32±0.63 85.01±0.65 84.75±0.78 85.96±0.12 85.89±0.16 77.78±0.22 77.85±0.17 GGD 95.99±0.08 95.98±0.09 88.44±0.14 88.20±0.21 88.57±0.12 88.59±0.08 79.19±0.13 79.25±0.06 E2Neg 95.47±0.12 95.45±0.19 88.21±0.19 87.97±0.34 88.03±0.07 88.07±0.03 78.93±0.09 79.01±0.02 PI-HIST (R) 95.16±0.04 95.14±0.06 83.68±0.23 83.42±0.44 82.28±0.06 82.28±0.10 66.57±0.07 66.62±0.14 PI-HIST (A) 95.88±0.09 95.91±0.07 87.29±0.16 86.96±0.38 87.61±0.11 87.59±0.03 78.81±0.07 78.90±0.06 PI-HIST (R&A) 96.29±0.08 96.30±0.08 88.18±0.24 87.92±0.31 88.24±0.09 88.25±0.05 78.99±0.11 79.07±0.03 Supplementary Table S15 Detailed results of graph reconstruction on all datasets. Europe USA PPI Actor BlogCatalog Film DBLP Amazon AUC(%)↑ AUC(%)↑ AUC(%)↑ AUC(%)↑ AUC(%)↑ AUC(%)↑ AUC(%)↑ AUC(%)↑ node2vec 90.96±0.42 91.02±0.26 87.75±0.31 88.46±1.38 95.41±0.20 92.58±1.15 OOT OOT PhUSION (P) 90.64±0.33 87.84±0.27 87.15±0.34 89.98±0.91 95.30±0.20 93.70±1.08 OOM OOM PaCEr (P) 90.17±0.46 92.81±0.22 86.67±0.24 91.74±0.98 94.64±0.22 94.07±1.18 OOM OOM struc2vec 92.04±0.38 94.25±0.27 89.53±0.19 88.95±1.61 94.90±0.21 88.01±1.73 OOT OOT PhUSION (I) 92.02±0.27 95.39±0.16 89.44±0.25 88.22±1.21 95.26±0.22 85.13±2.45 OOM OOM PaCEr (I) 91.15±0.33 92.51±0.24 87.46±0.17 85.37±1.32 94.85±0.16 81.18±1.45 OOM OOM RandNE 91.44±0.36 92.67±0.30 86.21±0.26 87.80±0.99 94.64±0.19 93.04±0.78 88.46±1.42 84.08±3.55 LouvainNE 79.12±0.91 81.74±0.61 73.66±0.27 78.19±1.84 76.45±0.18 71.44±2.83 85.08±1.97 77.79±3.43 SketchNE 89.58±0.42 92.72±0.23 85.48±0.22 90.58±0.68 90.92±0.32 94.80±0.64 85.83±2.12 78.52±5.10 node2binary 87.80±0.52 91.41±0.33 83.69±0.27 86.92±1.34 83.71±0.58 94.72±0.88 OOM OOM S3GC 89.56±0.41 89.06±0.26 88.82±0.20 85.22±0.84 93.59±0.20 79.17±2.46 85.61±1.77 76.69±4.06 MAGI 91.64±0.42 95.18±0.26 88.95±0.15 87.17±0.72 95.02±0.17 85.56±1.66 89.20±1.64 84.10±4.04 GraLSP 91.51±0.24 94.04±0.24 89.66±0.20 84.31±1.16 95.45±0.19 85.24±1.86 OOM OOM DRSR 91.65±0.30 95.11±0.26 89.09±0.21 84.39±1.16 95.65±0.18 74.95±3.16 OOM OOM DGI 91.80±0.35 94.73±0.21 89.74±0.19 88.41±1.18 96.10±0.17 87.56±2.12 88.88±1.64 82.62±4.35 GraphMAE2 90.93±0.34 92.16±0.33 87.59±0.19 85.68±0.68 94.98±0.20 84.07±2.10 88.61±1.57 83.41±4.67 GGD 92.25±0.31 95.34±0.23 89.12±0.14 89.81±0.82 95.31±0.17 91.82±1.39 89.19±1.60 84.66±3.64 E2Neg 92.04±0.32 94.77±0.24 89.53±0.22 86.00±1.19 95.99±0.17 86.91±1.28 88.24±1.89 81.57±4.73 PI-HIST (R) 90.13±0.38 91.92±0.26 85.11±0.44 90.83±0.65 94.65±0.19 94.31±0.76 88.12±1.59 83.78±4.19 PI-HIST (A) 92.09±0.34 95.06±0.20 89.42±0.17 87.63±0.67 95.40±0.14 84.91±2.42 83.37±2.60 82.56±4.70 PI-HIST (R&A) 92.87±0.36 95.61±0.17 90.36±0.18 95.63±0.54 96.21±0.13 95.39±0.69 90.80±1.27 87.68±3.14 40
Supplementary Table S16 Detailed results of PI-HIST (R&A) with different settings of , where LP and GR denote results of link prediction and graph reconstruction, respectively.
| 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LP AUC (%) | Europe | |||||||||||
| USA | ||||||||||||
| PPI | ||||||||||||
| Actor | ||||||||||||
| BlogC. | ||||||||||||
| Film | ||||||||||||
| DBLP | ||||||||||||
| Amazon | ||||||||||||
| GR AUC (%) | Europe | |||||||||||
| USA | ||||||||||||
| PPI | ||||||||||||
| Actor | ||||||||||||
| BlogC. | ||||||||||||
| Film | ||||||||||||
| DBLP | ||||||||||||
| Amazon |