Skip to main content
QUICK REVIEW

[Paper Review] Deep Graph Library Optimizations for Intel(R) x86 Architecture

Sasikanth Avancha, Vasimuddin|arXiv (Cornell University)|Jul 13, 2020
Advanced Graph Neural NetworksComputer Science8 references5 citations
TL;DR

This paper optimizes Deep Graph Library (DGL) aggregation primitives—specifically Binary-Reduce and Copy-Reduce—on Intel® x86 CPUs by leveraging memory bandwidth-aware kernel fusion, vectorized operations, and low-level optimizations. The authors achieve up to 13× speedup in per-epoch training time across seven GNN applications, with Binary-Reduce showing up to 34× improvement on CPU workloads.

ABSTRACT

The Deep Graph Library (DGL) was designed as a tool to enable structure learning from graphs, by supporting a core abstraction for graphs, including the popular Graph Neural Networks (GNN). DGL contains implementations of all core graph operations for both the CPU and GPU. In this paper, we focus specifically on CPU implementations and present performance analysis, optimizations and results across a set of GNN applications using the latest version of DGL(0.4.3). Across 7 applications, we achieve speed-ups ranging from1 1.5x-13x over the baseline CPU implementations.

Motivation & Objective

  • Address the performance bottleneck in DGL's CPU-based GNN inference and training, where aggregation primitives dominate runtime.
  • Identify suboptimal implementations of Binary-Reduce and Copy-Reduce primitives that rely on serialization and redundant memory copies.
  • Optimize low-level primitives in DGL's CPU backend to maximize memory bandwidth utilization and reduce latency.
  • Demonstrate measurable performance improvements across diverse GNN workloads using real-world and synthetic datasets on Intel Xeon processors.
  • Ensure optimized implementations maintain numerical accuracy and compatibility with PyTorch backend and DGL's high-level API.

Proposed method

  • Analyze DGL's aggregation pipeline using PyTorch profiler and application-level profiling to isolate performance bottlenecks in Binary-Reduce and Copy-Reduce operations.
  • Reimplement the Binary-Reduce primitive using fused kernels that combine element-wise operations and reduction into a single memory-access pattern to reduce latency and improve cache efficiency.
  • Optimize Copy-Reduce by eliminating redundant buffer copies and leveraging vectorized instructions (e.g., AVX/AVX512) for feature tensor operations.
  • Apply kernel fusion and loop tiling to reduce memory traffic and improve data locality in sparse-dense matrix multiplication formulations used in aggregation.
  • Integrate optimized primitives into DGL v0.4.3 and validate correctness and performance using standard GNN benchmarks.
  • Profile and tune additional PyTorch primitives (e.g., BatchNorm1d, Embedding) that contribute significantly to runtime in specific applications.

Experimental results

Research questions

  • RQ1Why do DGL’s CPU-based GNN applications exhibit poor performance despite high-level abstraction benefits?
  • RQ2What are the primary performance bottlenecks in DGL’s Binary-Reduce and Copy-Reduce primitives on Intel x86 CPUs?
  • RQ3How can low-level optimizations such as kernel fusion and vectorization improve memory bandwidth utilization in GNN aggregation?
  • RQ4To what extent can optimized primitives reduce per-epoch training time across diverse GNN workloads?
  • RQ5Can performance gains be achieved without sacrificing numerical accuracy or framework compatibility?

Key findings

  • The Binary-Reduce primitive accounts for the majority of runtime in GNN applications and is the primary performance bottleneck on CPU.
  • Optimizing Binary-Reduce via kernel fusion and vectorization yields up to 34× speedup in per-epoch time on the Intel Xeon 8280 CPU.
  • Copy-Reduce optimizations reduce redundant memory copies and improve data locality, contributing to significant performance gains in message-passing operations.
  • For GraphSAGE with batched processing, the optimized DGL achieves 1.5×–1.7× overall speedup, with Binary-Reduce showing 7.2×–10.6× improvement.
  • In the LGNN application, optimized BatchNorm1d and Embedding primitives deliver 13× and 76× speedups respectively, contributing to a 2× overall training speedup.
  • All optimizations maintain numerical equivalence to the baseline DGL implementation, ensuring correctness across all GNN applications tested.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.