Bi-GCN: Binary Graph Convolutional Network

Junfu Wang, Yunhong Wang, Zhen Yang, Liang Yang, Yuanfang Guo · DOI

Abstract

Graph Neural Networks (GNNs) have achieved tremendous success in graph representation learning. Unfortunately, current GNNs usually rely on loading the entire attributed graph into network for processing. This implicit assumption may not be satisfied with limited memory resources, especially when the attributed graph is large. In this paper, we pioneer to propose a Binary Graph Convolutional Network (Bi-GCN), which binarizes both the network parameters and input node features. Besides, the original matrix multiplications are revised to binary operations for accelerations. According to the theoretical analysis, our Bi-GCN can reduce the memory consumption by an average of ~30x for both the network parameters and input data, and accelerate the inference speed by an average of ~47x, on the citation networks. Meanwhile, we also design a new gradient approximation based back-propagation method to train our Bi-GCN well. Extensive experiments have demonstrated that our Bi-GCN can give a comparable performance compared to the full-precision baselines. Besides, our binarization approach can be easily applied to other GNNs, which has been verified in the experiments.

Introduction

Graph Neural Networks (GNNs) have revolutionized the processing of irregular data structures, such as social networks and molecular graphs. However, standard GNN architectures face a significant "memory bottleneck." They typically assume that the entire attributed graph—comprising all node features and edges—can be loaded into memory simultaneously. For massive real-world graphs, this assumption is often untenable.

While techniques like neighbor sampling address large-scale graph processing, they often encounter "neighbor explosion," where the computational load grows exponentially with network depth. Model compression offers an alternative, but GNNs present unique challenges: their shallow architectures (often just 2 layers) leave little redundancy for pruning, and the input node features often consume far more memory than the model parameters themselves. Bi-GCN addresses these challenges by binarizing both weights and features.

Methods: Binarizing the Graph Convolution

The core of Bi-GCN is the binarization of the feature extraction step within the graph convolution. The framework employs several key techniques to maintain performance while slashing resource requirements:

  • Binarizing Weights and Features: Unlike traditional methods that only quantize model weights, Bi-GCN binarizes both the input node features ($H$) and the learnable parameters ($W$).
  • Binary Operations: By binarizing both sides of the matrix multiplication, the model replaces expensive floating-point operations with efficient XNOR and bit-count operations.
  • Bucketing for Precision: To minimize quantization error, the authors utilize a "bucketing" method. Matrices are split into buckets of consecutive values, with a scaling factor calculated for each, preserving representational power.
  • Custom Backpropagation: Since the "sign" function used for binarization has a zero gradient almost everywhere, the authors developed a gradient approximation method that considers relationships between binary weights to enable effective training.
Figure 4: The binarized matrix multiplication process using XNOR and bit-count operations.

Experimental Evaluation

The researchers evaluated Bi-GCN across four benchmarks: citation networks (Cora, PubMed) for transductive learning, and large-scale graphs (Flickr, Reddit) for inductive learning. The Reddit dataset, featuring over 232,000 nodes and 11 million edges, served as a primary stress test for memory efficiency.

Key Results

  • Massive Compression: Bi-GCN achieved an average ~30x reduction in memory for both parameters and input data. On Reddit, the data size was reduced from 534.99MB to just 17.61MB.
  • High-Speed Inference: The model demonstrated an average ~47x speedup in inference cycles on citation networks.
  • Minimal Accuracy Loss: Despite extreme compression, accuracy remained competitive. On Cora, Bi-GCN achieved 81.2% accuracy, nearly matching the full-precision GCN's 81.4%.
Figure 1: Comparison of Accuracy vs. Cycle Operations on the Cora dataset, highlighting Bi-GCN's efficiency.

Insights and Discussion

A critical finding of this research is that input features, rather than model weights, are the primary memory bottleneck in GNNs. Binarizing these features provides the most significant practical benefit. Furthermore, the binarization process appears to act as a form of regularization, making Bi-GCN more resistant to "over-smoothing"—a common issue where nodes in deep GNNs become indistinguishable.

While the speedups are significant, the authors note that the "aggregation" step (neighbor information collection) remains a non-binarized bottleneck on extremely dense graphs. Future work may focus on binarizing this aggregation step or developing specialized hardware kernels to further exploit 1-bit bitwise operations.

Summary updated

BibTeX
@inproceedings{wang2020bi,
  author = {Junfu Wang and Yunhong Wang and Zhen Yang and Liang Yang and Yuanfang Guo},
  title = {{Bi-GCN: Binary Graph Convolutional Network}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr46437.2021.00161},
}
Figure