Slim Graph: Practical Lossy Graph Compression for Approximate Graph Processing, Storage, and Analytics

Maciej Besta, Simon Weber, Lukas Gianinazzi, Robert Gerstenberger, Andrey Ivanov, Yishai Oltchik, Torsten Hoefler

TL;DR

This paper introduces Slim Graph, a novel programming model and framework for lossy graph compression. It enables efficient approximate graph processing and analytics by allowing developers to define custom compression kernels, leading to significant reductions in storage and improvements in performance while maintaining high accuracy.

What Problem Does This Paper Address?

The ever-increasing size of graph datasets presents a significant challenge for storage, processing, and energy consumption. While lossless compression methods exist, they often incur high decompression costs or offer limited storage reduction. This paper tackles the problem of efficiently handling massive graphs by proposing lossy graph compression, drawing an analogy to image compression (like JPEG) where some loss of precision is acceptable for substantial gains in file size and processing speed. The authors aim to enable approximate graph processing and analytics without sacrificing too much accuracy, addressing the need for practical, high-performance solutions for large-scale graph data.

Methods

Slim Graph's core innovation lies in its programming model and framework.

  • Compression Kernels: Developers define small, programmable "kernels" that operate on local graph structures (vertices, edges, triangles, or subgraphs). These kernels specify how to remove parts of the graph. This approach abstracts away the complexities of parallel programming.
  • Execution Engine: A two-stage pipeline first compresses the graph using the defined kernels and then executes graph algorithms on the compressed graph to assess the impact. It supports both shared-memory and distributed-memory systems.
  • Analytics Subsystem: This component provides metrics to rigorously assess the accuracy of lossy compression. It includes measures for scalar, vector, and probability distribution outputs of graph algorithms, notably employing Kullback-Leibler divergence for probability distributions.
  • Novel Compression Schemes: The paper introduces "Triangle Reduction" (TR), a flexible class of lossy compression schemes that operate on triangles within a graph. They also implement and analyze various other schemes like spectral sparsification, random uniform sampling, spanners, and graph summarization using their kernel abstraction.

Datasets

The paper evaluates Slim Graph on a variety of large-scale, real-world graph datasets, including:

  • Web Data Commons 2012: A massive graph with approximately 3.5 billion vertices and 128 billion edges.
  • SNAP datasets: A collection of various graph datasets (e.g., Twitter, Friendster, Orkut, YouTube).
  • KONECT datasets: Another collection of social network graphs.
  • DIMACS datasets: Used for graph algorithms.
  • WebGraph datasets: Known for their large scale.

The paper also mentions using graphs from the Graph500 benchmark for BFS analysis.

Key Insights and Ideas

  • Lossy Compression is Viable for Graphs: Just as JPEG allows for acceptable image quality loss for significant file size reduction, lossy graph compression can enable faster and more memory-efficient graph processing without critical loss of accuracy for many applications.
  • Kernel Abstraction Simplifies Compression Development: The kernel-based programming model significantly simplifies the development of complex graph compression algorithms, reducing code lines and abstracting parallel execution.
  • Triangle Reduction is Versatile: The proposed Triangle Reduction (TR) scheme is shown to be effective across various graph properties, offering a good balance of compression, accuracy, and flexibility.
  • Accuracy Metrics are Crucial: Rigorous metrics are essential for understanding the trade-offs introduced by lossy compression. The paper's focus on statistical divergences and other tailored measures is key to evaluating compression effectiveness.
  • Trade-offs are Inherent: Different compression schemes offer distinct trade-offs between storage reduction, performance gains, and the preservation of specific graph properties. The choice of scheme depends heavily on the target algorithm and desired accuracy.

Key Results

  • Significant Storage Reduction: Slim Graph achieved storage reductions of 30-70% on large graphs like Web Data Commons 2012.
  • Performance Improvements: Lossy compression generally leads to faster execution of graph algorithms due to reduced data movement and processing. For example, spanners showed mild performance improvements that increased significantly with parameter tuning.
  • High Accuracy Preservation: For many graph properties and algorithms, lossy compression schemes implemented in Slim Graph preserved accuracy remarkably well. For instance, spectral sparsification preserved graph spectra, and Triangle Reduction preserved MST weights and connectivity.
  • First Distributed Lossy Graph Compression: The paper presents the first results on distributed lossy graph compression for massive graphs.
  • Theoretical Bounds: The authors derived over 50 theoretical bounds demonstrating how various compression schemes impact 12 graph properties.

Limitations and Future Work

  • Parameter Tuning: While Slim Graph simplifies compression development, selecting optimal parameters for specific schemes and graphs may require manual tuning, as observed with spanners and TR.
  • Algorithm Suitability: Some compression schemes might degrade performance if unsuitable for the targeted algorithm (e.g., high 'p' in sampling leading to slowdowns).
  • Future Work: The authors suggest extending Slim Graph with more compression kernels, exploring spectral sparsifiers that do not assume high graph conductance, and further investigating the impact of compression on graph power-law properties. They also envision Slim Graph becoming a common platform for designing and analyzing future lossy graph compression methods.

Summary updated

BibTeX
@inproceedings{besta2019slim,
  author = {Maciej Besta and Simon Weber and Lukas Gianinazzi and Robert Gerstenberger and Andrey Ivanov and Yishai Oltchik and Torsten Hoefler},
  title = {{Slim Graph: Practical Lossy Graph Compression for Approximate Graph Processing, Storage, and Analytics}},
  booktitle = {SC},
  year = {2019},
  doi = {10.1145/3295500.3356182},
}
Figure