TL;DR
SNAP-KG introduces an inductive, multi-view graph clustering framework that integrates streaming entities into Knowledge Graphs (KGs) at lightning speed. By distilling a complex GNN-Transformer pipeline into a lightweight MLP projector, it maps new, edge-less entities directly into a relational embedding space using only their raw features. This achieves millisecond-level inference and up to a 97% reduction in candidate search space for downstream tasks without requiring model retraining or graph access.
What Problem Does This Paper Address?
Knowledge Graphs are dynamic, continuously expanding as new real-world entities emerge. When a new entity arrives from an upstream data source, it arrives as a raw feature vector (e.g., text descriptions or attributes) with zero graph connectivity—no edges, no neighbors, and no structural context.
To perform downstream tasks like Entity Resolution (detecting duplicate nodes) or Link Prediction (predicting missing edges), a naive search across the entire graph scales at $O(N)$, which is computationally prohibitive for large KGs. Graph clustering can partition the graph into $K$ communities to scope down the search space to $O(N/K)$. However, existing multi-view graph clustering methods are transductive: they assume a fixed graph structure during training and require full, expensive model retraining to embed any newly arriving nodes. SNAP-KG tackles this latency bottleneck to make continuous, real-time streaming entity ingestion practical.
Methods
The authors propose a framework that separates graph-heavy relational learning (offline) from streaming inference (online) using a GNN-to-MLP knowledge distillation paradigm:
- Adaptive Graph Preprocessing: Real-world KGs contain noisy edges. SNAP-KG filters neighborhoods by calculating the cosine similarity of node features, discarding weakly related connections before training begins.
- Multi-View GNN & Transformer Fusion: For the base graph, relation-specific GNNs generate embeddings for each distinct relation type (view). A Transformer encoder then fuses these view-specific embeddings into a unified, cluster-separable representation space optimized via contrastive learning.
- Projector Network Distillation: This is the core innovation. A lightweight Multi-Layer Perceptron (MLP) projector network ($f_\phi$) is trained to map raw node features directly to the unified GNN-Transformer embedding space, minimizing the squared L2 reconstruction loss.
- Inductive Streaming Inference: When a new entity arrives, it completely bypasses the GNNs and the existing graph. The MLP projector maps its raw features directly into the pre-computed cluster space in a single feed-forward pass, allowing immediate cluster assignment.
Datasets
The framework was evaluated on five standard multi-view graph benchmarks:
- ACM, DBLP, IMDB (academic and movie citation networks)
- YELP (business utility network)
- MAG (Microsoft Academic Graph subset with 113,919 nodes)
To evaluate production-scale capability, they utilized OGB-WikiKG2, a massive dataset containing 2.5M entities and 535 relation types, preprocessed down to 2.4 million nodes across its 8 highest-frequency relation views. Cross-dataset generalization was also validated using a real-world DBLP-ACM transfer learning setup.
Key Insights and Ideas
- Graph-Free Inference via Distillation: The primary "aha" moment is that graph structure is not strictly required at inference time to place a node into a graph-informed community. An MLP can learn to approximate complex multi-view relational topology from raw features alone if guided by a strong GNN-Transformer teacher.
- Asymmetric Scoping Utility: The authors observed that cluster-based scoping impacts downstream tasks differently. Entity Resolution (ER) benefits cleanly because duplicates share nearly identical features and co-locate within the same cluster. Link Prediction (LP), however, connects distinct but structurally related nodes, making it more susceptible to cluster boundary exclusions.
- Multi-View Fusion is Essential: Ablation studies demonstrated that single-view variants (training on only one relation type) perform significantly worse than the full multi-view model, proving that combining distinct relation types yields far more discriminative community structures.
Key Results
- Orders-of-Magnitude Speedup: On the MAG dataset, retraining-based baselines required over 65 seconds per batch to integrate new nodes. SNAP-KG's projector completed the same assignments in mere milliseconds, eliminating the streaming latency bottleneck entirely.
- Preserved Clustering Quality: Despite operating without graph access at inference, SNAP-KG's inductive projector closely matched or slightly exceeded the clustering accuracy (ACC) and F1 scores of the retrained upper-bound models.
- Drastic Candidate Search Reduction: Restricting downstream tasks to intra-cluster candidates achieved a 62–75% candidate reduction on the five benchmarks and a staggering 97% reduction on the 2.4M-node OGB-WikiKG2 dataset, all while maintaining high entity resolution accuracy.
Limitations and Future Work
- Boundary Edge Loss: For Link Prediction, scoping restricts candidate pairs to the same cluster. This means true edges that cross cluster boundaries (e.g., 19.8% of positive edges in MAG) are inherently excluded from evaluation.
- Static Representations: While cluster centroids can be cheaply refreshed online, the underlying MLP projector weights remain fixed post-training. If the global semantic distribution of the incoming data stream shifts drastically, the model will eventually require full offline retraining.
- Future Work: The authors plan to explore composing SNAP-KG's graph-aware cluster centroids with Approximate Nearest Neighbor (ANN) indices based on Inverted File Index (IVF) structures to enable sub-linear retrieval at an even larger production scale.
Summary updated