A Graph is Worth 1-bit Spikes: When Graph Contrastive Learning Meets Spiking Neural Networks

Jintang Li, Huizhe Zhang, Ruofan Wu, Zulun Zhu, Liang Chen, Zibin Zheng, Baokun Wang, Changhua Meng · DOI

Abstract

Graph Contrastive Learning (GCL) has become a cornerstone of self-supervised representation learning on graphs, yet it typically relies on high-precision, 32-bit floating-point vectors that impose significant computational and storage burdens. We introduce SPIKEGCL, a novel framework that bridges GCL with Spiking Neural Networks (SNNs) to learn compact, 1-bit binarized graph representations. By replacing power-hungry floats with sparse binary "spikes," SPIKEGCL achieves up to 32x storage compression and 7x energy savings while matching or exceeding the performance of state-of-the-art full-precision models.

Introduction

Graph Neural Networks (GNNs) are the standard for learning from structured data, but they carry a high "computational tax." Modern self-supervised methods often require high-dimensional, full-precision representations, creating bottlenecks for massive graphs and resource-constrained edge devices. Spiking Neural Networks (SNNs)—which mimic the brain's energy-efficient, spike-based communication—offer a potential solution but are notoriously difficult to train due to vanishing gradients and their inherent temporal design. SPIKEGCL addresses these challenges by reimagining SNNs for static graph self-supervised learning.

Comparison of standard GCL (32-bit) and SpikeGCL (1-bit) representations.

Methodology

SPIKEGCL adapts the GCL pipeline for neuromorphic computing through several key innovations:

Feature Grouping and Spiking Encoder

SNNs typically require sequential inputs over time steps ($T$). To adapt static graphs, SPIKEGCL partitions node features into $T$ non-overlapping groups fed into the network sequentially. The architecture uses "peer GNNs" with shared parameters followed by spiking neurons (e.g., Integrate-and-Fire) that convert continuous GNN outputs into discrete 1-bit spikes.

The SpikeGCL framework overview and the detailed embedding generation process.

Blockwise Surrogate Gradient Learning

To overcome the vanishing gradient problem common in deep SNNs, the authors propose a blockwise training strategy. Instead of end-to-end backpropagation, each time step (or block) is optimized with a local contrastive objective using "stop-gradients" to isolate blocks. This allows for training deeper SNNs without performance degradation.

Contrastive Objective

The framework employs a Margin Ranking Loss (MRL) to ensure that representations of a graph and its corrupted version are clearly separated in the latent space.

Experimental Evaluation

The framework was evaluated on nine benchmark datasets, ranging from co-purchase graphs (Amazon-Photo) to large-scale OGB datasets (ogbn-arXiv, ogbn-MAG).

  • Performance: SPIKEGCL is highly competitive; on the PubMed dataset, it achieved 88.8% accuracy, outperforming the full-precision GCN (88.2%).
  • Efficiency: It achieves a 32x reduction in representation storage and up to 7x energy savings compared to standard GNNs.
  • Convergence: The blockwise strategy allows the model to learn effective representations in just 1-2 epochs, significantly faster than traditional GCL methods.

Key Insights and Discussion

Theoretical analysis (Theorem 1) demonstrates that 1-bit binary spikes can approximate full-precision GNNs with vanishing error as time steps increase. Furthermore, Centered Kernel Alignment (CKA) analysis shows that the learned binary features are highly disentangled across time steps, meaning each spike captures unique, non-redundant structural information.

While SPIKEGCL shows immense promise for edge deployment, future work will explore non-uniform feature partitioning and physical deployment on neuromorphic hardware to measure real-world latency and power draw.

Summary updated

BibTeX
@inproceedings{li2024graph,
  author = {Jintang Li and Huizhe Zhang and Ruofan Wu and Zulun Zhu and Liang Chen and Zibin Zheng and Baokun Wang and Changhua Meng},
  title = {{A Graph is Worth 1-bit Spikes: When Graph Contrastive Learning Meets Spiking Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=LnLySuf1vp},
}
Figure