Accelerating Graph Neural Networks with a Novel Matrix Compression Format
<|reference_start|>Accelerating Graph Neural Networks with a Novel Matrix Compression Format: The inference and training stages of Graph Neural Networks (GNNs) are often dominated by the time required to compute a long sequence of matrix multiplications between the sparse graph adjacency matrix and its embedding. To accelerate these stages, we first propose the Compressed Binary Matrix (CBM) storage format to succinctly represent the binary adjacency matrix of an unweighted graph. Then, we show how to generalize this representation to normalized adjacency matrices of unweighted graphs which arise in the context of GNNs. Finally, we develop efficient matrix multiplication kernels based on this compressed representation. The matrix multiplication kernels proposed in this work never require more scalar operations than classic sparse matrix multiplication algorithms. Experimental evaluation shows that the matrix multiplication strategies proposed outperform the current state-of-the-art implementations provided by Intel MKL, achieving speedups close to 5$\times$. Furthermore, our optimized matrix-multiplication strategies accelerated the inference time of a GNN by up to $3\times$.<|reference_end|>
@article{alves2024accelerating,
    title={Accelerating Graph Neural Networks with a Novel Matrix Compression
  Format},
    author={Jo~ao N. F. Alves, Samir Moustafa, Siegfried Benkner, Alexandre P.
  Francisco, Wilfried N. Gansterer and Lu'is M. S. Russo},
    journal={arXiv preprint arXiv:2409.02208},
    year={2024},
    archivePrefix={arXiv},
    eprint={2409.02208},
    primaryClass={cs.DS}
}