Manuscript Offprint

arXiv:2610.34911

FrontGI: Architecture-Aware Parallel GNN Inference on Chiplet-Based Multicore Systems

Binglin Ji, Chenfeng Zhao, Roger Chamberlain

Abstract

The realm of high-performance computing has expanded to include machine learning tasks of many forms. Graph Neural Networks (GNNs) are becoming increasingly popular, with their applications expanding across diverse domains. As the scale of graph data continues to grow, including larger numbers of nodes, edges, and higher embedding dimensions, standardized libraries such as DGL and PyG have been developed to facilitate GNN computation. These libraries allow the computation to be described a high level of abstraction, providing high productivity on the part of the developer. However, with the rapid increase in the number of processor cores and the evolution of multicore architectures, these libraries often show poor scalability and fail to execute GNN inference efficiently on the latest multicore systems, particularly those with upwards of a hundred cores. To address this limitation, we introduce FrontGI, a fast and scalable set of techniques that advances the frontier of GNN inference on large-scale graphs (over 100,000 vertices) by leveraging graph-property- and architecture-aware design. FrontGI employs different parallelization strategies optimized for diverse graph structures, maximizing the utilization of multi-level cache hierarchies in multicore systems. We evaluate a number of GNN models with FrontGI on a 128-core AMD EPYC system. Compared to state-of-the-art libraries, FrontGI achieves up to 3.35×3.35\times, 3.20×3.20\times, 2.89×2.89\times and 3.10×3.10\times speedups over DGL for GCN, GraphSAGE, GIN, and SGC models, respectively, and even greater improvements over PyG, across a range of large-scale, high-dimensional graph datasets with diverse structural properties.

Keywords: Graph Neural Network, Graph Convolutional Network, GraphSAGE, Graph Isomorphism Network, Simple Graph Convolution

1 Introduction

Recently, large-scale graph data has gained popularity across numerous domains, including social network analysis [1, 2], recommendation systems [3], bioinformatics [4], and electronic circuit design [5], all of which use high performance computing for their solution. Graph Neural Networks (GNNs) are a specialized type of deep learning model that excels at learning graph data representations. The emergence of GNNs has garnered significant interest from both academic and industrial communities. As the application of GNNs becomes increasingly widespread to computational intensive topics, such as computer vision [6] and natural language processing [7, 8], the dimensionality of GNN embeddings has gradually increased to thousands in recent research. Standard libraries like PyTorch-Geometric (PyG) [9] and Deep Graph Library (DGL) [10] are widely used, providing a high-productivity development environment for GNNs. In effect, these libraries allow the application developer to focus on the specifics of the GNN model, removing requirements that the developer port across execution platforms or implement low-level functions. By optimizing sparse operations, in an automated way, these libraries currently enable users to build and compute graph neural networks with high productivity. One of the clear productivity benefits of libraries like DGL and PyG is that a common source code expression of a GNN application can be efficiently deployed on a wide range of execution platforms. These range from traditional processor cores to a range of computational accelerators.

We propose to expand the scope of execution platforms that libraries like DGL and PyG can exploit to include high core-count multicore systems. Although promising performance results for GNN training and inference are achieved by adopting accelerators such as GPUs [11–14], FPGAs [15–17], and NPUs [18], multicores remain advantageous and indispensable for GNN execution. First, multicores are ubiquitous across all computing platforms, from data centers to personal computers. For instance, since a significant number of cores may be idle during off-peak hours in data centers, leveraging them to perform GNN tasks can substantially reduce the cost [19]. Second, memory capacity poses a significant bottleneck for GNN execution. Large graphs, often reaching hundreds of gigabytes or more, exceed the memory limits of accelerators like GPUs and FPGAs which typically offer only tens of gigabytes of onboard memory. This necessitates frequent data movement between disjoint memories, substantially impacting the resulting performance [20]. In contrast, multicore systems capable of supporting terabytes of memory effectively mitigate this constraint for large-scale GNN tasks [19]. Third, multicore platforms can address the poor model scalability observed with discrete GPUs and FPGAs, which suffer from expensive communication bottlenecks [21]. Fourth, while many multicore systems have integrated GPU capabilities, as a general rule, they are substantially less capable than traditional dedicated GPU cards [22]. Finally, libraries such as DGL and PyG offer multicores as target platforms, so improved performance on those platforms can be beneficial to the user community.

Due to these issues, there is sustained interest in GNN execution on multicore systems, particularly as their computing capability increases. Several strategies have been proposed to enhance GNN execution on multicores. GIN [23] introduces a graph learning method that automatically optimizes and generates computing kernels for GNN inference models based on input graph topology. Graphite [19] improves GNN inference through both software and hardware optimizations by fusing operations in each layer, exploiting sparsity from activation functions, and utilizing Direct Memory Access (DMA) engines for data prefetching. DistGNN [24] employs offline graph partitioning methods to reduce communication costs across computing nodes during GNN training. ARGO [25] uses a Bayesian approach to devise an optimal core-binding strategy, enhancing the scalability of GNN training tasks with standard libraries. Despite promising results, these approaches typically depend on offline preprocessing, co-design assumptions, or training-specific optimization, and therefore do not directly address a fundamental challenge in GNN inference on modern multicores, especially when offline preprocessing is undesirable or infeasible. This invites a critical question: how can we effectively accelerate GNN inference by leveraging modern multicore architectures while avoiding offline preprocessing for various graph topologies?

In this work, which extends [26], we present FrontGI, a graph-property-aware and architecture-aware set of techniques for GNN inference acceleration on modern multicore processor platforms. The goal is to develop methods that can be incorporated into the existing libraries, maintaining the ability to express the problem at a high level, while enabling efficient implementations to be invoked in an automated way. Here, we significantly broaden the scope of [26] along three key dimensions. First, motivated by our observation that BLAS parallelization models rely on cache assumptions that do not hold for multicore processors with distributed last-level caches (LLC), FrontGI parallelizes the UPDATE phase in addition to the AGGREGATE phase, which consists of dense matrix operations that dominate the computation in many GNN models. We further investigate how operators can be efficiently fused under distributed LLC architectures. Second, to explore diverse sparse-dense computation patterns, we design and evaluate FrontGI across four representative GNN models: GCN, GraphSAGE, GIN, and SGC. These models exhibit distinct

AGGREGATE patterns—including additional linear functions and degree-normalized operations—as well as different operator connectivity inside of the AGGREGATE operator. Finally, beyond the qualitative analysis, we perform a comprehensive quantitative evaluation using twelve large-scale graph datasets spanning diverse graph sizes, average degrees, and degree distributions, allowing us to systematically characterize how FrontGI selects and adapts parallel execution strategies according to graph structural properties. These strategies are straightforward to incorporate into the standard libraries, maintaining the ability to express the model at a high level of abstraction. Our contributions are as follows:

  • We identify how a distributed last-level cache organization in modern chiplet-based multicores fundamentally influences the performance trade-offs of GNN inference under different graph properties.

• We show that architectural characteristics impose distinct execution requirements for the AGGREGATE phase, and derive two architecture-aware hierarchical execution strategies—hierarchical node-level parallelism and mixed node-tensor parallelism—to mitigate memory access irregularity.

• We design a simple parallelization strategy for the UPDATE phase of GNNs that leverages BLAS GEMM kernels to enable faster GNN inference on large-scale graphs with modern multicore architectures, by alleviating the inconsistency between BLAS's implicit shared-cache access assumptions and the distributed LLC organization of multicore systems.

  • Through extensive evaluation on a wide range of GNN models (GCN, GraphSage, GIN and SGC) and graph datasets with varying properties, we validate our design principles and provide practical guidelines for selecting appropriate parallel execution strategies under different graph structures.

GNN inference using the FrontGI techniques achieves a speedup of 3.35×3.35\times compared to the maximum performance of the state-of-the-art GNN computation library (DGL). Once incorporated into these libraries, these techniques will continue to improve the performance achievable in a high-productivity development environment.

References (59)