Skip to main content
QUICK REVIEW

[Paper Review] Log(Graph): A Near-Optimal High-Performance Graph Representation

Maciej Besta, Dimitri Stanojevic|arXiv (Cornell University)|Oct 29, 2020
Graph Theory and AlgorithmsComputer Science85 references5 citations
TL;DR

Log(Graph) is a near-optimal graph representation that achieves high compression and low decompression overhead by encoding graph elements using their theoretical storage lower bounds—logarithmic in size—via bitwise operations and succinct data structures. It reduces graph storage by 20–35% compared to GAPBS while matching or exceeding its performance, and outperforms WebGraph by up to 2× in processing speed due to minimal decompression cost.

ABSTRACT

Today's graphs used in domains such as machine learning or social network analysis may contain hundreds of billions of edges. Yet, they are not necessarily stored efficiently, and standard graph representations such as adjacency lists waste a significant number of bits while graph compression schemes such as WebGraph often require time-consuming decompression. To address this, we propose Log(Graph): a graph representation that combines high compression ratios with very low-overhead decompression to enable cheaper and faster graph processing. The key idea is to encode a graph so that the parts of the representation approach or match the respective storage lower bounds. We call our approach "graph logarithmization" because these bounds are usually logarithmic. Our high-performance Log(Graph) implementation based on modern bitwise operations and state-of-the-art succinct data structures achieves high compression ratios as well as performance. For example, compared to the tuned Graph Algorithm Processing Benchmark Suite (GAPBS), it reduces graph sizes by 20-35% while matching GAPBS' performance or even delivering speedups due to reducing amounts of transferred data. It approaches the compression ratio of the established WebGraph compression library while enabling speedups of up to more than 2x. Log(Graph) can improve the design of various graph processing engines or libraries on single NUMA nodes as well as distributed-memory systems.

Motivation & Objective

  • To address the inefficiency of standard graph representations and compression schemes that waste bits or require costly decompression during graph processing.
  • To reduce graph storage size without sacrificing performance, especially for large-scale graphs with hundreds of billions of edges.
  • To design a representation that approaches theoretical storage lower bounds for graph elements such as vertex IDs, offsets, and adjacency data.
  • To enable fast, low-overhead access to graph data by minimizing decompression costs while maintaining high compression ratios.
  • To improve the efficiency of graph processing engines on single-node and distributed-memory systems through optimized layout and encoding.

Proposed method

  • Log(Graph) applies 'graph logarithmization'—encoding each graph element using the minimum number of bits required by its cardinality, i.e., ⌈log|S|⌉ for a set S.
  • It uses modern bitwise operations to efficiently extract data from logarithmically encoded elements, minimizing decompression overhead.
  • It employs Integer Linear Programming (ILP) heuristics to reorder vertex IDs, reducing the total size of adjacency arrays.
  • It leverages succinct data structures for offset arrays, achieving storage close to the theoretical lower bound and supporting constant-time access.
  • It integrates both edge-cut (EC) and vertex-cut (VC) based partitioning schemes, favoring ECs due to lower storage overhead from shadow pointers in VCs.
  • It uses a hybrid labeling approach (POD/CMB) to minimize label differences, improving compression and access efficiency.

Experimental results

Research questions

  • RQ1Can a graph representation achieve near-optimal compression while maintaining low decompression cost for graph processing workloads?
  • RQ2How does logarithmic encoding of graph elements—based on their information-theoretic lower bounds—affect storage and performance?
  • RQ3To what extent can ILP-based vertex reordering reduce the size of adjacency arrays in graph representations?
  • RQ4What is the performance trade-off between using edge cuts (ECs) versus vertex cuts (VCs) in graph layout, considering storage and access overhead?
  • RQ5Can succinct data structures for offsets reduce the space complexity of adjacency arrays from O(n log n) to near-optimal bounds while enabling fast access?

Key findings

  • Log(Graph) reduces graph storage by 20–35% compared to the tuned GAPBS implementation while matching or improving its performance.
  • It achieves compression ratios nearly identical to WebGraph but enables up to 2× speedup in graph processing due to minimal decompression overhead.
  • The use of ILP-based vertex reordering reduces label differences in adjacency arrays, improving compression by 5–10% over RB and 30–40% over DM.
  • Succinct data structures for offsets reduce space complexity asymptotically from O(n log n) to near-theoretical lower bounds, enabling constant-time access.
  • Vertex cuts (VCs) produce smaller cuts than edge cuts (ECs), but the storage overhead from shadow pointers in VCs reduces their advantage, making ECs more practical.
  • Relaxing partition balance (up to D=10%) results in only ~1% change in cut sizes and final storage, indicating robustness to imbalance.

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.