Skip to main content
QUICK REVIEW

[Paper Review] GraphIt: A High-Performance DSL for Graph Analytics

Yunming Zhang, Mengjiao Yang|arXiv (Cornell University)|May 2, 2018
Graph Theory and AlgorithmsComputer Science48 references10 citations
TL;DR

GraphIt is a high-performance domain-specific language (DSL) for graph analytics that separates algorithm specification from performance optimization scheduling, enabling programmers to explore complex tradeoffs among locality, parallelism, and work-efficiency. It outperforms six state-of-the-art shared-memory frameworks on 24 out of 32 experiments by up to 4.8× and reduces code size by up to an order of magnitude.

ABSTRACT

The performance bottlenecks of graph applications depend not only on the algorithm and the underlying hardware, but also on the size and structure of the input graph. Programmers must try different combinations of a large set of techniques to develop the best implementation for a specific algorithm and type of graph. Existing graph frameworks lack flexibility, supporting only a limited set of optimizations. This paper introduces GraphIt, a new DSL for graph computations that generates fast implementations for algorithms with different performance characteristics running on graphs with different sizes and structures. GraphIt separates what is computed (algorithm) from how it is computed (schedule). Programmers specify the algorithm using an algorithm language, and performance optimizations are specified using a scheduling language. The algorithm language simplifies expressing the algorithms. We formulate graph optimizations, including edge traversal direction, data layout, parallelization, cache, NUMA, and kernel fusion optimizations, as tradeoffs among locality, parallelism, and work-efficiency. The scheduling language enables programmers to easily search through this complicated tradeoff space by composing together optimizations. We also built an autotuner to automatically find high-performance schedules. The compiler uses a new scheduling representation, the graph iteration space, to model, compose, and ensure the validity of the large number of optimizations. GraphIt outperforms the next fastest of six state-of-the-art shared-memory frameworks (Ligra, Green-Marl, GraphMat, Galois, Gemini, and Grazelle) on 24 out of 32 experiments by up to 4.8$ imes$, and is never more than 43% slower than the fastest framework on the other experiments. GraphIt also reduces the lines of code by up to an order of magnitude compared to the next fastest framework.

Motivation & Objective

  • Address the challenge of achieving high performance in graph analytics due to varying algorithmic bottlenecks, hardware characteristics, and graph structures.
  • Overcome the limitations of existing graph frameworks and DSLs that support only a narrow set of optimizations and lack flexibility in performance tuning.
  • Enable programmers to systematically explore a large space of performance optimizations—such as edge traversal direction, data layout, and parallelization—through a composable scheduling language.
  • Reduce the complexity of writing high-performance graph code by decoupling algorithm logic from low-level optimization choices.
  • Provide an autotuner to automatically discover high-performance schedules, minimizing manual tuning effort.

Proposed method

  • Separate algorithm specification from scheduling using two distinct languages: an algorithm language for expressing graph logic and a scheduling language for performance optimizations.
  • Model optimizations—including edge traversal direction, vertex data layout, cache and NUMA awareness, and kernel fusion—as tradeoffs among locality, parallelism, and work-efficiency.
  • Introduce a novel compiler representation called the graph iteration space to model, compose, and validate complex optimization sequences.
  • Enable optimization composition by allowing programmers to chain multiple scheduling directives to explore diverse performance tradeoffs.
  • Integrate an autotuner that automatically searches the schedule space to find high-performance configurations for a given algorithm and input graph.
  • Generate highly optimized C++ code from high-level GraphIt programs using advanced code generation and compilation techniques.

Experimental results

Research questions

  • RQ1How can a DSL effectively decouple algorithm logic from performance optimizations to enable flexible exploration of the optimization space?
  • RQ2What set of optimizations—such as traversal direction, data layout, and parallelization—can be systematically composed to achieve high performance across diverse graph types?
  • RQ3Can a compiler-based approach with an autotuner outperform hand-tuned implementations in shared-memory graph frameworks across varied workloads?
  • RQ4To what extent can a unified DSL reduce code complexity while maintaining or exceeding the performance of specialized frameworks?
  • RQ5How does the graph iteration space representation enable correct and composable optimization sequencing in complex graph algorithms?

Key findings

  • GraphIt outperforms the next-fastest of six state-of-the-art shared-memory frameworks (Ligra, Green-Marl, GraphMat, Galois, Gemini, and Grazelle) on 24 out of 32 benchmark experiments, with speedups of up to 4.8×.
  • In the remaining 8 experiments, GraphIt is never more than 43% slower than the fastest framework, demonstrating consistent competitiveness across diverse workloads.
  • GraphIt reduces the lines of code required to implement graph algorithms by up to an order of magnitude compared to the next-fastest framework, significantly improving developer productivity.
  • The autotuner component of GraphIt successfully identifies high-performance schedules without requiring expert tuning, demonstrating the effectiveness of automated exploration in the optimization space.
  • The separation of algorithm and schedule enables scalable and composable optimization, with the graph iteration space representation ensuring correctness during complex optimization composition.
  • GraphIt’s scheduling language allows programmers to express and compose a wide range of low-level optimizations, such as edge traversal direction and kernel fusion, that are otherwise difficult to manage in general-purpose or existing DSLs.

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.