Abstract
Graph summarization is essential for managing large-scale graph data, but traditional methods face computational bottlenecks due to the requirement of isomorphism invariance. This paper investigates whether Graph Neural Networks (GNNs), which are inherently permutation-invariant, can effectively learn to summarize graphs. By framing summarization as a vertex classification task on the DyLDO web graph dataset, the authors compare various GNN architectures against a probabilistic Bloom filter baseline. Results indicate that while GNNs show promise for simple summaries, the Bloom filter remains superior for complex, high-cardinality summarization tasks.
Introduction
Graph summarization aims to condense massive graphs into smaller, structured representations while preserving key features like vertex and edge labels. A major challenge in creating "lossless" summaries is ensuring isomorphism invariance: the summary should remain consistent regardless of the order in which a node's neighbors are processed. Traditionally, this is achieved by sorting neighbor features before hashing, a process that becomes increasingly expensive as graph size and complexity grow.
Since Graph Neural Networks (GNNs) are inherently designed to be permutation-invariant—meaning they produce the same output regardless of input order—they present a natural alternative for this task. This study explores casting graph summarization as a multi-class vertex classification problem to determine if GNNs can replace traditional hashing methods.
The Challenge of Isomorphism Invariance
The core difficulty in graph summarization lies in mapping structurally identical neighborhoods to the same summary class. As shown in Figure 1, a simple list-based hash of neighbor triples $(x, p, y)$ is sensitive to the order of edges. If the edges are listed in a different sequence, the hash value changes, violating isomorphism invariance.
GNNs address this by using aggregation functions (like sum or mean) that are mathematically indifferent to neighbor ordering. The authors test whether this property allows GNNs to "predict" the correct summary class for a vertex without the explicit sorting and hashing required by traditional algorithms.
Summarization Models and Methods
The authors evaluate several summarization strategies, ranging from simple attribute collections to complex structural schemas. These models define the target classes for the vertex classification task:
- Attribute Collection ($M_{AC}$): Groups vertices based on their outgoing edge properties.
- Class Collection ($M_{CC}$): Groups vertices based on their explicit
rdf:typedeclarations. - Property Type Collection ($M_{PTC}$): Combines attributes and the types of neighboring nodes.
- SchemEX ($M_{SX}$): A more complex model incorporating multi-hop structural information.
The study compares several neural architectures, including Message-Passing GNNs (GCN, GraphSAGE, GraphSAINT) and Graph-MLP, against a standard Multi-Layer Perceptron (MLP) and a Bloom filter. The Bloom filter serves as a strong non-neural baseline; it is a probabilistic data structure that can represent sets of features without sorting, effectively bypassing the traditional hashing bottleneck.
Key Results and Discussion
The results provide a "reality check" for the application of GNNs in structural tasks:
- The Bloom Filter Dominance: In most scenarios, the Bloom filter significantly outperformed all neural models. For the $M_{AC}$ summary, the Bloom filter achieved ~85% accuracy, while the best-performing GNN (Graph-MLP) reached only ~62%.
- Complexity and Performance: GNNs performed best on simpler summaries with fewer classes. On the $M_{CC}$ model (576 classes), GCN-2 achieved 85.59% accuracy, nearly matching the Bloom filter. However, performance dropped sharply as the number of equivalence classes increased into the hundreds of thousands.
- Message Passing vs. MLP: Surprisingly, Graph-MLP often outperformed more complex message-passing architectures. Furthermore, a vanilla MLP baseline remained remarkably competitive, often staying within 3% of the GNNs. This suggests that for local structural summarization, the overhead of neighbor aggregation may not always yield proportional benefits.
Limitations and Conclusion
The study highlights several hurdles for GNNs in large-scale graph processing. Memory constraints were a major factor, with models like R-GCN exceeding GPU limits due to the sheer volume of edge types. Additionally, the "long tail" distribution of the dataset—where over half of the classes appear only once—makes classification extremely difficult for neural networks.
While GNNs are theoretically well-suited for graph summarization due to their permutation invariance, this research demonstrates that traditional probabilistic methods like Bloom filters remain more efficient and accurate for high-cardinality real-world web graphs.
Summary updated