Log(Graph): A Near-Optimal High-Performance Graph Representation

Maciej Besta, Dimitri Stanojevic, Tijana Zivic, Jagpreet Singh, Maurice Hoerold, Torsten Hoefler

TL;DR

This paper introduces Log(Graph), a novel graph representation that achieves significant storage reduction (20-35%) while maintaining or even improving graph processing performance. It does this by applying "graph logarithmization" – encoding graph elements using their theoretical storage lower bounds, often logarithmic. This approach offers a compelling trade-off between compression and speed, making large-scale graph analysis more efficient.

What Problem Does This Paper Address?

Modern graph datasets, especially in fields like machine learning and social network analysis, are growing exponentially, often containing billions of edges. Storing and processing these massive graphs efficiently is a major challenge. Traditional graph representations, like adjacency lists, are often too large, consuming significant memory and bandwidth. While compression techniques like WebGraph exist, they can incur substantial decompression overhead, slowing down graph processing. The authors aim to bridge this gap by developing a graph representation that is both highly compressed and allows for fast, low-overhead access to graph data.

Methods

The core innovation of Log(Graph) is "graph logarithmization," which involves encoding different graph components using their theoretical minimum storage requirements. This is applied to:

  • Fine Graph Elements (Vertex IDs, Offsets, Edge Weights): Instead of fixed-size representations, these elements are encoded using a number of bits proportional to the logarithm of the number of possible values they can take. This includes global and local approaches for vertex IDs, and techniques like gap encoding for differences.
  • Offset Structure (O): The offsets that point to adjacency lists are compressed using succinct bit vectors. These structures offer near-optimal storage while supporting fast queries.
  • Adjacency Data (A): This is the most aggressive compression, employing techniques like recursive bisectioning and integer linear programming (ILP) to reorder vertices and encode adjacency information efficiently.

The implementation leverages modern bitwise operations and state-of-the-art succinct data structures for high performance.

Datasets

The paper evaluates Log(Graph) on a variety of datasets:

  • Synthetic Graphs: Erdős-Rényi (random uniform) and Kronecker graphs are used to analyze performance under controlled conditions.
  • Real-World Graphs: Datasets from SNAP, KONECT, DIMACS, and WebGraph are used, including social networks (Orkut, LiveJournal, Friendster, Twitter), web graphs, and road networks (USA road network).

Key Insights and Ideas

  • "Graph Logarithmization" is Key: The fundamental idea of encoding graph elements based on their theoretical lower bounds (often logarithmic) is the driving force behind Log(Graph)'s efficiency.
  • Trade-offs Matter: Different logarithmization schemes excel in different areas. Compressing fine elements offers a good balance of compression and speed, while compressing adjacency data provides maximum compression but might have higher overheads.
  • Succinct Data Structures are Powerful: The paper highlights the effectiveness of succinct bit vectors for compressing offset structures, offering significant size reductions with minimal performance impact.
  • ILP for Smarter Relabeling: Integer Linear Programming can be used to intelligently reorder vertex IDs, leading to better compression ratios for adjacency lists.
  • Parallel Access to Succinct Structures: The paper provides a novel performance analysis of accessing succinct data structures in parallel settings, revealing surprising differences based on parallelism levels.

Key Results

  • Storage Reduction: Log(Graph) achieves 20-35% graph size reduction compared to traditional adjacency arrays.
  • Performance: In many cases, Log(Graph) matches or even exceeds the performance of tuned graph processing codes (like GAPBS), sometimes by over 2x, due to reduced data transfer.
  • Compression Ratio: Log(Graph) approaches the compression ratios of established schemes like WebGraph while offering significantly lower decompression overheads.
  • Scalability: Log(Graph) variants show good scalability on both shared- and distributed-memory systems.
  • Offset Compression: Succinct bit vectors can reduce the size of offset structures by over 90%.

Limitations and Future Work

  • Preprocessing Overhead: Some schemes, particularly those involving recursive bisectioning (RB), can have significant preprocessing costs, although Binary Recursive Bisectioning (BRB) aims to mitigate this.
  • Scheme Selection: Choosing the optimal Log(Graph) variant depends on specific graph properties and workload requirements, requiring careful consideration.
  • Future Work: The authors suggest further exploration of ILP-based schemes, combining different compression techniques, and investigating their application in distributed graph processing environments. The paper also notes that while their implementation is high-performance, further optimizations are always possible.

Summary updated

BibTeX
@inproceedings{besta2018log,
  author = {Maciej Besta and Dimitri Stanojevic and Tijana Zivic and Jagpreet Singh and Maurice Hoerold and Torsten Hoefler},
  title = {{Log(Graph): A Near-Optimal High-Performance Graph Representation}},
  booktitle = {PACT},
  year = {2018},
  doi = {10.1145/3243176.3243198},
}
Figure