Abstract
Dynamic Link Prediction (DLP) is essential for modeling evolving systems like social networks and financial transactions. While structural encoding methods offer high accuracy by capturing neighborhood motifs, they are often computationally prohibitive. We introduce the Co-Neighbor Encoding Schema (CNES), which utilizes hashtable-based memory to transform graph structural features into parallelizable vector operations. This approach achieves state-of-the-art performance across 13 datasets, offering up to a 185x speedup over traditional methods on large-scale benchmarks.
Introduction: The Efficiency-Accuracy Trade-off in DLP
Dynamic Link Prediction aims to forecast future interactions between nodes based on their historical activity. Current approaches typically fall into two categories: vanilla temporal methods, which prioritize recent interactions but miss structural context, and structure encoding methods, which capture complex neighborhood patterns (like "triangles") but suffer from high computational costs.
The primary bottleneck for structural methods is the need to sample and process subgraphs for every potential link, a process that is difficult to parallelize on GPUs and consumes significant memory. As graphs scale, this recomputation becomes unsustainable for real-time applications.
The Co-Neighbor Encoding Schema (CNES)
To address these challenges, the authors propose the Co-Neighbor Encoding Network (CNE-N). The core innovation is the Co-Neighbor Encoding Schema (CNES), which shifts the structural analysis from graph traversal to fast vector arithmetic.
Key Components
- Hashtable-based Memory: Each node maintains a fixed-size hashtable that serves as a compressed representation of its neighborhood. This replaces bulky adjacency lists with compact, fixed-length vectors.
- Parallel Co-Neighbor Computation: By representing neighborhoods as vectors, the model can identify common neighbors through simple vector intersections. This allows structural roles to be computed in parallel on a GPU, bypassing slow CPU-based sampling.
- Temporal-Diverse Memory: To capture the evolving nature of networks, CNE-N maintains both long-term and short-term hashtables. This distinguishes between historical associations and recent bursts of activity, modeling the "temporal structural pattern" of the graph.
- Feature Fusion: These structural encodings are integrated with raw node/edge features and Fourier-based time encodings, then processed by an MLP-based predictor.
Key Insights
- Structure as a Vector Operation: Treating neighborhood overlap as a parallelizable vector operation bridges the gap between the expressiveness of structural models and the speed of temporal models.
- Efficient Compression: Multiple hash functions compress the adjacency information, maintaining enough signal to distinguish node relationships while minimizing memory overhead.
- The Temporal Triangle: The dual-memory approach explicitly accounts for the fact that recent structural formations often carry more predictive weight than older ones.
Experimental Results
The CNE-N model was evaluated on 13 public datasets, ranging from social interactions (Wikipedia, Reddit) to political and economic networks (UN Trade, US Legis.).
- Superior Accuracy: CNE-N outperformed baselines in Average Precision and AUC-ROC on 10 out of 13 standard datasets.
- Massive Speedup: On the large-scale
tgbl-coindataset, CNE-N completed a training epoch in 0.67 hours, compared to 124 hours for the Jodie baseline—a 185x speedup. - Theoretical Efficiency: The model maintains a time complexity of $O(L + L \times Md)$, significantly lower than the quadratic scaling seen in other structure-based models like CAWN or PINT.
Limitations and Future Directions
While highly effective, CNES has limitations in extremely sparse graphs where "triangles" are rare. Additionally, the current implementation relies on the "common neighbor" heuristic; future research could extend this hashtable approach to higher-order motifs like 4-node cliques. Finally, addressing potential hash conflicts in extremely dense graphs through adaptive hashtable sizing remains an open area for improvement.
Summary updated