TL;DR
SG-JEPA introduces a self-supervised learning framework for large-scale dynamic graphs by combining Yann LeCun’s Joint-Embedding Predictive Architecture (JEPA) with energy-efficient Spiking Neural Networks (SNNs). By predicting future node representations directly in the latent space and avoiding expensive graph augmentations or edge-level reconstructions, it achieves up to a 5.2× training speedup and scales gracefully to graphs with over 13 million edges.
What Problem Does This Paper Address?
Dynamic graphs—which track how networks like social interactions, financial transactions, or recommendation systems evolve over time—are notoriously difficult to model. Because labeled data is scarce in the real world, researchers rely on self-supervised learning (SSL) to learn general-purpose node embeddings.
However, current SSL methods for dynamic graphs suffer from major scalability bottlenecks:
- Contrastive methods rely on complex, handcrafted graph augmentations (like dropping edges) and expensive negative sampling strategies to contrast "positive" and "negative" views.
- Generative methods (like masked autoencoders) try to reconstruct missing edges or features, which incurs massive computational and memory overhead when scaling to large graphs.
As a result, these methods frequently run out of memory (OOM) on large-scale datasets.
Methods
The authors propose SG-JEPA (Spiking Joint-Embedding Predictive Architecture), which reframes dynamic graph learning as a temporal prediction problem in the embedding space rather than the pixel/edge space.
The architecture consists of several key components:
- Temporal Partitioning: The graph sequence is divided into non-overlapping time windows. The historical snapshots act as the "context," while the final snapshot in the window acts as the "target."
- Target Encoding: A standard Graph Neural Network (GraphSAGE) combined with positional and temporal encodings processes the target snapshot to generate full-precision target embeddings.
- Spiking Context Encoding: Instead of using heavy recurrent networks, the context snapshots are fed into a Spiking Neural Network (SNN) utilizing Parametric Leaky Integrate-and-Fire (PLIF) neurons. This encodes the historical sequence into discrete, binary spike trains. Summing these spikes over time yields a coarse-to-fine hierarchy of "spike count embeddings."
- Latent Space Prediction: A predictor network takes these multi-precision context embeddings and attempts to predict the full-precision target embedding. The model is optimized using an InfoNCE loss with a stop-gradient operator on the target encoder to prevent representation collapse.
Datasets
The authors evaluated SG-JEPA on three large-scale real-world temporal graph benchmarks:
- DBLP: A co-authorship network containing 28,085 nodes and 236,894 edges across 27 time steps.
- Tmall: An e-commerce user-item interaction dataset containing 577,314 nodes and 4,807,545 edges across 186 time steps.
- Patent: A massive citation network spanning 2,738,012 nodes and 13,960,811 edges across 25 time steps.
Key Insights and Ideas
- Prediction in Latent Space: By eliminating the need to reconstruct raw edges or features, SG-JEPA bypasses the low-level structural details that make generative models slow, focusing instead on high-level semantic prediction.
- Coarse-to-Fine Adaptive Computation: The SNN context encoder naturally creates a hierarchy of embeddings. Early time steps provide coarse historical context, while later steps add fine-grained details. At inference time, this allows for flexible precision control—users can trade off a small amount of accuracy for massive computational savings by using fewer context snapshots.
- Asymmetric Gradient Flow is Crucial: The authors found that applying a
stop-gradientoperation to the target encoder path is absolutely vital. Without it, the system suffers from representation collapse, where the encoder and predictor learn trivial, static solutions.
Key Results
SG-JEPA was evaluated on downstream node classification tasks and compared against full-precision GNNs, self-supervised baselines, and state-of-the-art spiking GNNs.
- Superior Efficiency: SG-JEPA achieved a 5.2× speedup on the DBLP dataset and a 2.8× speedup on the Tmall dataset in per-epoch training time compared to the average of other baselines.
- High Scalability: On the massive 13-million-edge Patent dataset, competing self-supervised models like MaskDGNN failed due to Out-Of-Memory (OOM) errors. SG-JEPA scaled gracefully, maintaining top-tier performance.
- Competitive Performance: Despite being entirely self-supervised and operating on discrete spike-count representations, SG-JEPA achieved an average relative improvement of 6.6% in Macro-F1 and 5.6% in Micro-F1 over full-precision supervised baselines.
Limitations and Future Work
While the paper demonstrates excellent results for node classification, the authors note some areas for future exploration:
- Downstream Tasks: The evaluation in this paper focuses primarily on node classification. Future work is needed to validate SG-JEPA's performance on other common dynamic graph tasks like link prediction or graph classification.
- Continuous-Time Graphs: The current architecture operates on discrete-time graph snapshots. Adapting the JEPA framework to continuous-time dynamic graphs (where interactions are recorded as continuous timestamps) remains an open challenge.
Summary updated