Spiking Variational Graph Auto-Encoders for Efficient Graph Representation Learning

Hanxuan Yang, Ruike Zhang, Qingchao Kong, Wenji MaoarXiv 2022

Abstract

Graph representation learning is a fundamental research issue and benefits a wide range of applications on graph-structured data. Conventional artificial neural network-based methods such as graph neural networks (GNNs) and variational graph auto-encoders (VGAEs) have achieved promising results in learning on graphs, but they suffer from extremely high energy consumption during training and inference stages. Inspired by the bio-fidelity and energy-efficiency of spiking neural networks (SNNs), recent methods attempt to adapt GNNs to the SNN framework by substituting spiking neurons for the activation functions. However, existing SNN-based GNN methods cannot be applied to the more general multi-node representation learning problem represented by link prediction. Moreover, these methods did not fully exploit the bio-fidelity of SNNs, as they still require costly multiply-accumulate (MAC) operations, which severely harm the energy efficiency. To address the above issues and improve energy efficiency, in this paper, we propose an SNN-based deep generative method, namely the Spiking Variational Graph Auto-Encoders (S-VGAE) for efficient graph representation learning. To deal with the multi-node problem, we propose a probabilistic decoder that generates binary latent variables as spiking node representations and reconstructs graphs via the weighted inner product. To avoid the MAC operations for energy efficiency, we further decouple the propagation and transformation layers of conventional GNN aggregators. We conduct link prediction experiments on multiple benchmark graph datasets, and the results demonstrate that our model consumes significantly lower energy with the performances superior or comparable to other ANN- and SNN-based methods for graph representation learning.

Introduction

Graph Neural Networks (GNNs) are the gold standard for learning on data like social networks or molecular structures, but they are computationally expensive. Standard GNNs rely heavily on Multiply-Accumulate (MAC) operations—floating-point multiplications that consume significant power, especially during the "neighbor aggregation" phase where a node gathers information from its surroundings.

While Spiking Neural Networks (SNNs)—which mimic the way biological neurons communicate via discrete "spikes"—offer a path toward ultra-low-power neuromorphic hardware, they face two major hurdles in the graph domain. First, most existing spiking GNNs only handle single-node tasks like classification, struggling with multi-node problems like link prediction. Second, many current spiking GNNs still use floating-point weights during neighbor aggregation, failing to actually eliminate the costly MAC operations they were meant to avoid.

Methods

The researchers introduce the S-VGAE, a generative framework designed to be "spiking" from end to end. Its architecture consists of two main components:

The Spiking GNN Encoder

To maximize efficiency, the authors decouple the standard GNN layer into two distinct steps:

  • Propagation: Aggregating binary spikes from neighbors using only simple additions (Accumulate or AC operations).
  • Transformation: Applying learnable weights to those signals.

By using spiking neurons in both steps, the model converts expensive MACs into energy-efficient AC operations. They also incorporate skip-connections to prevent quantization error—the loss of information that happens when continuous signals are forced into discrete spikes.

Comparison of the standard VGAE architecture versus the proposed S-VGAE, highlighting the decoupled GNN blocks and spiking neurons.

The Probabilistic Spiking Decoder

Instead of continuous latent variables, the S-VGAE generates Bernoulli latent variables (binary spikes). To reconstruct the graph, they propose a Weighted Inner Product (W-IP) layer, which measures the similarity between these binary node representations using only additions and a single learnable weight vector. The model is trained using Spatio-Temporal Backpropagation (STBP) with surrogate gradients to overcome the non-differentiable nature of discrete spikes.

Datasets

The model was evaluated on four benchmark graph datasets:

  • Cora, CiteSeer, and PubMed: Standard citation network datasets where nodes are papers and edges are citations.
  • ogbl-collab: A large-scale collaboration network from the Open Graph Benchmark, representing authors and their co-authorship history.

Key Results

The S-VGAE demonstrated that sparse, binary "spike trains" are sufficient for complex graph tasks if processed through a probabilistic decoder.

  • Energy Efficiency: The S-VGAE demonstrated massive energy savings. Compared to the standard ANN-based VGAE, the S-VGAE reduced the energy cost of floating-point operations by roughly 20x to 80x across different datasets. This is largely due to the elimination of multiplication operations in favor of additions.
  • Competitive Performance: Despite the "noisy" nature of spikes, S-VGAE achieved AUC (Area Under Curve) and AP (Average Precision) scores that were superior or comparable to non-spiking baselines. For example, on the Cora dataset, it achieved an AUC of 92.6%, outperforming the standard VGAE (91.4%).
  • Robustness: Sensitivity analysis showed the model is robust to different firing thresholds, thanks to the probabilistic LIF (Leaky Integrate-and-Fire) neurons which "soften" the hard spiking threshold.
Floating-point energy consumption comparison on the CiteSeer dataset, demonstrating the significant efficiency gains of S-VGAE.

Conclusion and Future Work

S-VGAE represents a significant step toward energy-efficient graph representation learning. While inference is incredibly efficient, training still requires simulating the SNN on traditional GPUs using surrogate gradients, which can be slower than training standard GNNs. Additionally, like most SNNs, the model requires multiple time steps ($T=10$) to process information, introducing a trade-off between energy efficiency and processing speed. Future directions include exploring more complex spiking neuron models and extending this framework to dynamic graphs where the temporal nature of SNNs could provide even greater advantages.

Summary updated

BibTeX
@misc{yang2022spiking,
  author = {Hanxuan Yang and Ruike Zhang and Qingchao Kong and Wenji Mao},
  title = {{Spiking Variational Graph Auto-Encoders for Efficient Graph Representation Learning}},
  year = {2022},
  eprint = {2211.01952},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.01952},
}
Figure