Abstract
Machine learning on graph-structured data has attracted high research interest due to the emergence of Graph Neural Networks (GNNs). Most of the proposed GNNs are based on the node homophily, i.e., neighboring nodes share similar characteristics. However, in many complex networks, nodes that lie in distant parts of the graph share structurally equivalent characteristics and exhibit similar roles (e.g., chemical properties of distant atoms in a molecule, type of social network users). A growing literature proposed representations that identify structurally equivalent nodes. However, most of the existing methods require high time and space complexity. In this paper, we propose VNEstruct, a simple approach based on entropy measures of the neighborhood’s topology for generating low-dimensional structural representations that is time-efficient and robust to graph perturbations. Empirically, we observe that VNEstruct exhibits robustness on structural role identification tasks. Moreover, VNEstruct can achieve state-of-the-art performance on graph classification without incorporating the graph structure information in the optimization, in contrast to GNN competitors.
Introduction
Most Graph Neural Networks (GNNs) are built on the principle of homophily: the idea that nodes close to each other in a graph are likely to be similar. However, many real-world problems require identifying structural equivalence. For example, two carbon atoms at opposite ends of a complex molecule might have identical "roles" based on their local bonding patterns, even if they are far apart.
Existing methods for capturing these structural roles, such as struc2vec or GraphWave, often suffer from high computational complexity or sensitivity to small changes in the graph (noise). VNEstruct addresses these limitations by providing a representation that is structurally aware, scales linearly with the number of nodes and edges, and remains robust even when the graph structure is slightly perturbed.
Methods: The VNEstruct Algorithm
The core of VNEstruct is the use of information theory to "fingerprint" a node's surroundings using Von Neumann Entropy (VNE). Originally from quantum mechanics, VNE measures the complexity of a graph by treating its Laplacian matrix as a density matrix; the entropy then represents the "skewness" of the graph's eigenvalue distribution.
The VNEstruct workflow follows three main steps:
- Ego-Network Extraction: For every node $v$, the algorithm extracts its $r$-hop neighborhood (the "ego-network") for increasing radii (e.g., $r=1, 2, 3, 4$).
- Entropy Calculation: It calculates the VNE for each of these subgraphs. To maintain efficiency, the authors employ a quadratic approximation based on node degrees that reduces the complexity to linear time ($O(n+m)$).
- Representation Generation: The final representation for node $v$ is a vector of these entropy values across different radii.
For graph-level tasks, these signatures are concatenated with existing node attributes and fed into a simple Multi-Layer Perceptron (MLP). Crucially, VNEstruct decouples structure from learning: it extracts the structure before training, allowing the model to ignore the graph structure during the optimization phase, which drastically reduces training time.
Experimental Results
The authors evaluated VNEstruct on synthetic graphs to test structural role identification and on real-world benchmarks including bioinformatics (MUTAG, PROTEINS, PTC-MR) and social networks (IMDB-BINARY).
Performance and Robustness
VNEstruct outperformed established GNNs (like GCN, GIN, and GAT) on 3 out of 4 real-world datasets. For instance, on MUTAG, it achieved 91.08% accuracy compared to GIN's 89.40%. In synthetic tests, VNEstruct's performance decayed much more gracefully than competitors like RolX or GraphWave as the number of rewired edges increased, proving its stability in noisy data.
Computational Efficiency
Because it avoids expensive message-passing schemes during training, VNEstruct is significantly faster than standard GNNs.
As shown in the figure above, VNEstruct consistently requires less execution time per epoch than its competitors. On average, it was found to be 3x faster than GIN and 1.6x faster than GCN.
Conclusion
VNEstruct provides a novel and efficient approach to structural graph representation. By leveraging ego-based entropy measures, it captures complex topological signatures that are robust to noise and computationally inexpensive to compute. Future work may explore more sophisticated pooling methods for graph-level aggregation and more nuanced ways of combining semantic features with these structural signatures.
Summary updated