TL;DR
This paper introduces GRAPHR, a novel hardware accelerator that leverages ReRAM (Resistive Random-Access Memory) to speed up graph processing. By performing computations directly within ReRAM crossbars, GRAPHR significantly reduces data movement and energy consumption, achieving substantial performance gains over traditional CPU and GPU architectures.
What Problem Does This Paper Address?
Graph processing is crucial for understanding complex relationships in various domains, from social networks to biological systems. However, traditional architectures struggle with graph processing due to its inherent characteristics: poor data locality and high memory bandwidth requirements. Traversing graph structures often involves random memory accesses, leading to significant energy waste and performance bottlenecks as data is constantly shuttled between the CPU and memory. Existing hardware accelerators primarily focus on optimizing memory access patterns or placing computation closer to memory, but they often still rely on conventional compute units for simple operations. This paper aims to overcome these limitations by exploring a fundamentally different approach: in-memory analog computation using ReRAM.
Methods
GRAPHR's core innovation lies in its use of ReRAM for both data storage and computation. The architecture consists of two main components:
- Memory ReRAM: Stores graph data in a compressed sparse representation.
- Graph Engine (GE): Composed of ReRAM crossbars, these engines perform computations directly within the memory.
The key insight is that many graph algorithms can be expressed as sparse matrix-vector multiplications (SpMV). GRAPHR leverages ReRAM's analog computation capabilities to perform these SpMV operations efficiently. This "near-data processing" approach drastically reduces data movement. GRAPHR employs a "streaming-apply" execution model, where subgraphs are processed sequentially, and computations are performed in parallel within ReRAM crossbars. A preprocessing step is introduced to order the edge list, ensuring efficient sequential loading of data blocks and subgraphs.
Datasets
The paper evaluates GRAPHR using seven real-world graph datasets:
- WikiVote (WV)
- Slashdot (SD)
- Amazon (AZ)
- WebGoogle (WG)
- LiveJournal (LJ)
- Orkut (OK)
- Netflix (NF) (used for collaborative filtering)
The applications tested include PageRank, Breadth-First Search (BFS), Single Source Shortest Path (SSSP), and sparse matrix-vector multiplication (SpMV).
Key Insights and Ideas
- In-situ Analog Computation in ReRAM: The most significant insight is the realization that ReRAM's analog nature is well-suited for graph processing, particularly for operations that can be mapped to SpMV. This allows for massive parallelism and extremely low energy consumption by performing computations directly where data resides.
- Bridging Dense and Sparse: GRAPHR effectively bridges the gap between dense matrix operations (which ReRAM excels at) and sparse graph data. By processing small subgraphs in a dense matrix format within ReRAM crossbars, it gains parallelism without the prohibitive hardware cost of dense matrix representations for entire large graphs.
- Streaming-Apply Model: The proposed streaming-apply execution model, combined with a preprocessing step for edge list ordering, enables efficient sequential data loading and processing, crucial for out-of-core graph processing systems.
- Generalizability: The architecture is designed to be general, accelerating any vertex program that can be expressed in an SpMV form, making it applicable to a wide range of graph algorithms.
Key Results
GRAPHR demonstrates significant improvements over existing architectures:
- Compared to CPU: Achieves a geometric mean speedup of 16.01× and an energy saving of 33.82× across various applications and datasets. The highest speedup observed was 132.67× for SpMV on the WikiVote dataset.
- Compared to GPU: Offers a speedup of 1.69× to 2.19× and consumes 4.77× to 8.91× less energy.
- Compared to PIM: Achieves a speedup of 1.16× to 4.12× and is 3.67× to 10.96× more energy efficient.
The paper also notes that performance and energy savings slightly decrease with increasing graph sparsity, as more edge blocks need to be traversed.
Limitations and Future Work
- Data Representation Conversion: A challenge is converting graph data from its compressed sparse format to the matrix format required by ReRAM crossbars. GRAPHR addresses this through a preprocessing step and controller logic.
- Large Graphs: Real-world graphs may not fit entirely in memory. GRAPHR is designed for out-of-core settings, where blocks of the graph are loaded sequentially.
- Subgraph Processing Order: The order of subgraph processing affects hardware resource requirements (e.g., for buffering reduction results). The paper proposes a column-major streaming-apply model to mitigate this.
- Future Work: The authors mention that multi-node GRAPHR systems could be connected for processing even larger graphs, and they leave the exploration of communication between nodes as future work. They also suggest extending the architecture to support other graph representations beyond COO.
Summary updated