一种冗余感知的高能效图计算加速器

Pengcheng Yao, Xiaofei Liao, Hai Jin, Yuhang Zhou, Peng Xu, Wei Zhang, Zhen Zeng, Chengao Pan, Bing ZhuScientia 2024

Abstract

Graph processing is foundational to modern applications ranging from social network analysis to bioinformatics. However, the irregular memory access patterns inherent in graph algorithms make general-purpose processors inefficient. This paper introduces JiFeng, a domain-specific accelerator designed to tackle the "redundant memory access" problem in Breadth-First Search (BFS) on power-law graphs. By implementing an aggressive "early-termination" strategy and a suite of hardware-software co-designs, JiFeng achieves a peak throughput of 461.2 GTEPS and an energy efficiency of 12.5 GTEPS/W, ranking 2nd on the GreenGraph500 (Small Data) list.

The Redundancy Bottleneck in Power-Law Graphs

Real-world graphs typically follow a power-law distribution, where a small number of high-degree vertices (hubs) are connected to a vast majority of the graph. In standard BFS implementations, accelerators traverse every neighboring edge of an active vertex. However, in power-law graphs, many of these edges lead to vertices that have already converged (i.e., their shortest path has already been found).

Illustration of graph traversal where multiple active vertices may attempt to update the same neighboring vertex, leading to redundant memory accesses.

As shown in the figure above, multiple active vertices often point to the same neighboring vertex. If one vertex has already updated the neighbor, subsequent accesses are redundant. The authors discovered that existing accelerators can perform up to 15x more memory requests than theoretically necessary, creating a severe off-chip memory bottleneck that can even make specialized hardware slower than general-purpose CPUs.

The JiFeng Architecture

To address these inefficiencies, JiFeng adopts an "early-termination" philosophy: once a vertex's property converges, the accelerator aggressively skips its remaining edges. This is supported by several key innovations:

1. Unified Push-Pull Pipeline

Graph processing typically uses two models: "Push" (efficient for sparse active sets) and "Pull" (efficient for dense active sets). Rather than wasting FPGA area on two separate pipelines, JiFeng utilizes a unified dataflow abstraction. This allows the hardware to share logic for reading active vertices, edges, and neighbors, switching between models dynamically based on the density of the active vertex set.

2. Redundancy-Aware Data Sorting

Early termination is only effective if the "winning" edge is found quickly. JiFeng employs a software preprocessing step that sorts each vertex's neighbor list in descending order of their degrees. Because high-degree vertices are more likely to have been visited early in the BFS process, this heuristic ensures the accelerator hits a converged neighbor as soon as possible, allowing it to skip the rest of the edge list.

3. Priority-Aware Scheduling and Hybrid Caching

To maintain memory efficiency during bursts, JiFeng implements a priority-aware scheduler that separates edges into high and low-priority queues. Furthermore, to mitigate the load imbalance caused by high-degree hubs, a Hybrid Cache Hierarchy is introduced. A small, dedicated local cache stores the top $C$ highest-frequency vertices, reducing read conflicts when multiple processing elements attempt to access the same hub simultaneously.

Performance Evaluation

JiFeng was implemented in RTL and evaluated on a Xilinx Alveo U55C accelerator card using both synthetic (Graph500) and real-world (SNAP) datasets.

  • Throughput: JiFeng reached a maximum throughput of 461.2 GTEPS. Compared to the Ligra (CPU), Gunrock (GPU), and ScalaGraph (FPGA) frameworks, JiFeng delivered average speedups of 98.6x, 55.9x, and 28.3x, respectively.
  • Energy Efficiency: The system achieved 12.5 GTEPS/W, outperforming the CPU baseline by nearly 400x and the state-of-the-art FPGA accelerator by 23.1x.
  • Redundancy Reduction: The degree-based sorting mechanism successfully reduced the average number of edges traversed per vertex from 4.4 to 2.1, effectively halving the required memory bandwidth.

Conclusion

JiFeng demonstrates that by acknowledging and exploiting the structural properties of power-law graphs, hardware accelerators can overcome traditional memory bottlenecks. While the current design shows its greatest strengths in synthetic graphs with extreme power-law traits, its unified pipeline and redundancy-aware scheduling set a new standard for energy-efficient graph processing. Future work will focus on extending these techniques to other algorithms like PageRank and optimizing caching for natural graphs with less pronounced power-law distributions.

Summary updated

BibTeX
@inproceedings{yao2024,
  author = {Pengcheng Yao and Xiaofei Liao and Hai Jin and Yuhang Zhou and Peng Xu and Wei Zhang and Zhen Zeng and Chengao Pan and Bing Zhu},
  title = {{一种冗余感知的高能效图计算加速器}},
  booktitle = {Scientia},
  year = {2024},
  doi = {10.1360/ssi-2023-0387},
}
Figure