FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network Training
Authors:
- Guangxuan XiaoGXGuangxuan Xiao
Open Access
- 1 February 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 17 (6) , 1473-1486
Abstract
A key performance bottleneck when training graph neural network (GNN) models on large, real-world graphs is loading node features onto a GPU. Due to limited GPU memory, expensive data movement is necessary to facilitate the storage of these features on alternative devices with slower access (e.g. CPU memory). Moreover, the irregularity of graph structures contributes to poor data locality which further exacerbates the problem. Consequently, existing frameworks capable of efficiently training large GNN models usually incur a significant accuracy degradation because of the currently-available shortcuts involved. To address these limitations, we instead propose FreshGNN, a general-purpose GNN mini-batch training framework that leverages a historical cache for storing and reusing GNN node embeddings instead of re-computing them through fetching raw features at every iteration. Critical to its success, the corresponding cache policy is designed, using a combination of gradient-based and staleness criteria, to selectively screen those embeddings which are relatively stable and can be cached, from those that need to be re-computed to reduce estimation errors and subsequent downstream accuracy loss. When paired with complementary system enhancements to support this selective historical cache, FreshGNN is able to accelerate the training speed on large graph datasets such as ogbn-papers100M and MAG240M by 3.4× up to 20.5× and reduce the memory access by 59%, with less than 1% influence on test accuracy.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- DGCL2021
- Accelerating graph sampling for graph machine learning using GPUs2021
- DistDGL: Distributed Graph Neural Network Training for Billion-Scale Graphs2020
- Enhancing Graph Neural Network-based Fraud Detectors against Camouflaged Fraudsters2020
- PipeDream2019
- Cluster-GCN2019
- Graph Convolutional Neural Networks for Web-Scale Recommender Systems2018
- Defining and evaluating network communities based on ground-truthKnowledge and Information Systems, 2013
- Patterns of temporal variation in online media2011
- On power-law relationships of the Internet topology1999