Binary Graph Convolutional Network With Capacity Exploration

Junfu Wang, Yuanfang Guo, Liang Yang, Yunhong Wang

TL;DR

This paper introduces Binary Graph Convolutional Networks (Bi-GCNs) that drastically reduce memory usage and speed up inference by binarizing network parameters and node attributes. They also propose an "Entropy Cover Hypothesis" to guide the design of these compressed networks, ensuring they retain sufficient capacity for learning.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have shown great promise in analyzing complex relational data. However, their reliance on loading entire attributed graphs for processing can be a major bottleneck, especially for large graphs, due to limited memory resources. This makes training and inference challenging. Existing solutions like sampling subgraphs can lead to issues like neighbor explosion or incomplete graph coverage. This paper aims to address this by compressing GNNs themselves, making them more memory-efficient and faster without significant performance degradation.

Methods

The core innovation is the Binary Graph Convolutional Network (Bi-GCN). This approach binarizes two key components:

  • Network Parameters: The weights of the GNN layers are binarized. This is achieved by splitting them into "buckets" and using learned scalar values to approximate the original weights.
  • Node Attributes (Input Data): The features of the nodes are also binarized.

These binarizations allow the use of efficient XNOR and bit-count operations instead of computationally expensive floating-point multiplications. To train these binarized networks, a novel gradient approximation-based back-propagation method is introduced, which accounts for the relationships among binary weights. The authors also provide a general binarization approach that can be applied to other GNN variants like GAT, GraphSAGE, and GraphSAINT.

A significant theoretical contribution is the Entropy Cover Hypothesis. This hypothesis aims to address the "capacity problem" in compressed networks. It suggests that the width (number of neurons) of hidden layers in a Bi-GNN should be at least as large as the maximum entropy of the corresponding hidden layers in a full-precision GNN to ensure sufficient information storage capacity.

Datasets

The paper evaluates their methods on a variety of datasets for both transductive and inductive learning tasks:

  • Transductive: Cora, PubMed, CiteSeer, OGBN-Arxiv
  • Inductive: Flickr, Reddit, OGBN-Products

These datasets cover citation networks, image networks, and social networks, demonstrating the broad applicability of their approach.

Key Insights and Ideas

  • Binarization is effective for GNNs: Just as in CNNs, binarizing GNN parameters and node features can lead to substantial memory savings and speedups.
  • XNOR and bit-count operations are key: Replacing floating-point operations with these binary operations is crucial for acceleration.
  • A new back-propagation method is needed: Standard back-propagation methods are not directly suitable for binarized weights, necessitating a specialized approach.
  • The "Capacity Problem" is real: Compressed models, like Bi-GCNs, might not have enough "space" to learn complex representations, potentially leading to performance degradation.
  • Entropy provides a theoretical guide: The Entropy Cover Hypothesis offers a principled way to determine the necessary width of Bi-GNN hidden layers to avoid capacity issues.

Key Results

  • Memory Compression: Bi-GCN reduces memory consumption by an average of ~31x for both network parameters and input data.
  • Inference Acceleration: Bi-GCN achieves an average inference speedup of ~51x on citation networks.
  • Comparable Performance: Despite significant compression, Bi-GCN and other Bi-GNN variants achieve comparable accuracy to their full-precision counterparts on seven node classification datasets.
  • Generalizability: The binarization approach is successfully generalized to GAT, GraphSAGE, and GraphSAINT, demonstrating its broad applicability.
  • Entropy Cover Hypothesis Validation: Experiments show that using the width suggested by the Entropy Cover Hypothesis leads to comparable performance with full-precision models.

Limitations and Future Work

  • Capacity Problem: While the Entropy Cover Hypothesis helps, the paper acknowledges that compressed networks can still face capacity limitations. The hypothesis provides a lower bound, but optimal performance might require widths beyond this bound.
  • Average Degree Impact: The acceleration ratio can be lower on graphs with very high average node degrees, as the aggregation step becomes more significant.
  • Future Work: The authors suggest that their binarization approach can be combined with other efficient techniques like attention and sampling. Further exploration of the Entropy Cover Hypothesis and its application to more complex GNN architectures and tasks is also implied.

Summary updated

BibTeX
@article{wang2022binary,
  author = {Junfu Wang and Yuanfang Guo and Liang Yang and Yunhong Wang},
  title = {{Binary Graph Convolutional Network With Capacity Exploration}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  url = {https://openreview.net/forum?id=Cv9MG3Fg7f},
}
Figure