Skip to main content
QUICK REVIEW

[Paper Review] Triangle Counting Accelerations: From Algorithm to In-Memory Computing Architecture

Xueyan Wang, Jianlei Yang|arXiv (Cornell University)|Dec 1, 2021
Advanced Memory and Neural ComputingEngineering28 references23 citations
TL;DR

This paper proposes TCIM, the first in-memory triangle counting accelerator leveraging algorithm-architecture co-design with bitwise operations (AND and BitCount) to overcome bandwidth bottlenecks in traditional von Neumann systems. By reformulating triangle counting using only bitwise logic, compressing sparse graphs via custom data slicing, and mapping computations directly onto STT-MRAM-based PIM architectures, the approach achieves 34× higher energy efficiency and 12.2× speedup over state-of-the-art GPU accelerators, with 60.5% reduction in memory write operations via intelligent data reuse and replacement policies.

ABSTRACT

Triangles are the basic substructure of networks and triangle counting (TC) has been a fundamental graph computing problem in numerous fields such as social network analysis. Nevertheless, like other graph computing problems, due to the high memory-computation ratio and random memory access pattern, TC involves a large amount of data transfers thus suffers from the bandwidth bottleneck in the traditional Von-Neumann architecture. To overcome this challenge, in this paper, we propose to accelerate TC with the emerging processing-in-memory (PIM) architecture through an algorithm-architecture co-optimization manner. To enable the efficient in-memory implementations, we come up to reformulate TC with bitwise logic operations (such as AND), and develop customized graph compression and mapping techniques for efficient data flow management. With the emerging computational Spin-Transfer Torque Magnetic RAM (STT-MRAM) array, which is one of the most promising PIM enabling techniques, the device-to-architecture co-simulation results demonstrate that the proposed TC in-memory accelerator outperforms the state-of-the-art GPU and FPGA accelerations by 12.2x and 31.8x, respectively, and achieves a 34x energy efficiency improvement over the FPGA accelerator.

Motivation & Objective

  • To address the memory bandwidth bottleneck in triangle counting (TC) caused by high random memory access and low computation-to-memory ratio in von Neumann architectures.
  • To enable efficient in-memory execution of TC by reformulating it using only bitwise operations (AND and BitCount), which are natively supported in in-memory computing.
  • To design a sparsity-aware processing-in-memory (PIM) architecture using STT-MRAM that supports efficient data compression, slicing, and in-situ computation.
  • To minimize memory write operations through a data reuse and priority-based replacement strategy, reducing energy and latency.
  • To validate the proposed system through device-to-architecture co-simulation, demonstrating significant performance and energy efficiency gains over CPU, GPU, and FPGA accelerators.

Proposed method

  • Reformulate triangle counting using only bitwise logic: the number of triangles is computed via AND operations on adjacency bitmaps and subsequent bit counting (BitCount).
  • Propose a custom data slicing technique that divides adjacency bitmaps into fixed-size slices (64 bits) to exploit sparsity and reduce redundant computation.
  • Design a sparsity-aware graph compression method that stores only non-zero slices, achieving up to 99.99% reduction in memory footprint and computation.
  • Implement a data reuse strategy that caches frequently accessed slices in on-chip memory, reducing write operations by 60.5% on average.
  • Introduce a priority-based data replacement policy that reduces data replacement by up to 30.1% compared to LRU, improving efficiency for large graphs.
  • Develop a device-to-architecture co-simulation framework integrating MTJ parameters from SPICE simulations with NVSim and a behavioral-level simulator to estimate energy and latency.

Experimental results

Research questions

  • RQ1Can triangle counting be reformulated using only bitwise operations (AND and BitCount) to enable efficient in-memory computation?
  • RQ2How can sparse graph data be effectively compressed and mapped to in-memory processing units to minimize data movement and computation?
  • RQ3What data management strategies (reuse and replacement) are most effective in reducing memory write operations in in-memory TC accelerators?
  • RQ4To what extent can STT-MRAM-based PIM architectures outperform traditional GPU and FPGA accelerators in terms of performance and energy efficiency for triangle counting?
  • RQ5How does the integration of algorithm-level optimization with PIM architecture impact overall system efficiency and scalability?

Key findings

  • The proposed TCIM accelerator achieves a 12.2× speedup over the state-of-the-art GPU accelerator and a 31.8× speedup over the FPGA accelerator on real-world graphs.
  • With a single-core CPU and 16 MB STT-MRAM array, the system achieves 53.7× speedup over a CPU baseline due to data slicing and reuse, and an additional 25.5× acceleration with PIM, totaling 1370× speedup over CPU.
  • The energy efficiency of TCIM is 34× better than the energy-efficient FPGA implementation, primarily due to STT-MRAM’s non-volatile nature and in-situ computation.
  • The priority-based data replacement policy reduces data replacement by up to 30.1% compared to LRU, significantly improving memory access efficiency.
  • The data slicing and compression strategy reduces the number of valid slices by 99.99% on average, with the five largest graphs (e.g., com-LiveJournal) achieving 99.999% sparsity and 0.01% compression rate.
  • The device-to-architecture co-simulation framework successfully validates the system, showing that algorithm-architecture co-design enables orders-of-magnitude improvements in performance and energy efficiency.

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.