Modern graphs—representing everything from the link structure of the web to protein interactions—are growing at an exponential rate. As datasets scale to trillions of edges, traditional storage methods become a massive bottleneck for I/O and memory. This comprehensive survey by Maciej Besta and Torsten Hoefler synthesizes decades of research into a unified framework, categorizing nearly 450 works across three dimensions: research areas, algorithmic techniques, and graph features.
A Three-Dimensional Taxonomy
To organize the fragmented landscape of graph compression, the authors propose a taxonomy that bridges the gap between theoretical computer science and practical database engineering. This framework allows practitioners to identify which techniques are most suitable for their specific domain.
- Areas of Research: Categorizing by the origin of the graph, such as Web, Social, Biological, RDF, or VLSI graphs. Each domain often exhibits unique structural properties that can be exploited for compression.
- Techniques: The algorithmic "how" of the compression. This includes variable-length encoding, gap encoding, reference encoding, $k^2$-trees, and succinct data structures.
- Features: Identifying if the scheme supports dynamic updates (graph dynamicity), is tuned for specific algorithms (problem-awareness), or handles streaming data.
Core Compression Techniques
Several key algorithmic strategies form the foundation of modern lossless graph compression:
- Variable-Length Encoding: Using fewer bits for smaller integers (e.g., Varint, Elias codes). This is often combined with other techniques to minimize the footprint of vertex IDs.
- Gap Encoding: Storing the difference between consecutive neighbor IDs rather than the IDs themselves. This is highly effective when vertex IDs are clustered.
- Reference Encoding: Storing an adjacency list as a "copy" of another similar list plus a few edits, exploiting the similarity often found in web and social graphs.
- $k^2$-trees: A recursive partitioning of the adjacency matrix into sub-quadrants. This method is particularly effective for sparse data and has successfully migrated from general theory into specialized domains like RDF and GIS.
- Succinct Data Structures: These are representations that use space very close to the information-theoretic minimum ($N + o(N)$ bits) while still allowing for fast queries without full decompression.
Key Insights: Locality, Similarity, and Relabeling
One of the most significant insights from the survey is that Locality and Similarity are the primary drivers of compression efficiency, particularly in web graphs. Locality refers to the tendency of pages on the same host to link to each other, while similarity refers to pages on the same host having nearly identical outgoing links.
To exploit these properties, Vertex Relabeling has emerged as a primary tool. By reassigning vertex IDs using methods like Gray codes or Layered Label Propagation, researchers can "force" the adjacency matrix to have more clusters and smaller gaps. This preprocessing step makes subsequent variable-length or gap encoding significantly more efficient.
Domain-Specific Performance
The survey highlights how different graph types require different approaches:
- Web Graphs: The WebGraph framework remains a gold standard, leveraging locality and similarity.
- Social Networks: These differ from web graphs due to high reciprocity (mutual follows). Specific schemes like the "BL" scheme exploit this to store edges more efficiently than general frameworks.
- Biological Networks: These often involve specialized structures like De Bruijn graphs for genome assembly, where succinctness is critical for fitting large genomes into memory.
Limitations and Future Directions
While the field has matured significantly, several challenges remain. The authors explicitly limited this survey to lossless compression, noting that lossy summarization is a significant adjacent field requiring its own dedicated review.
Furthermore, there is a persistent "Dynamic Gap": while many theoretical structures are succinct, they are often static. Creating representations that are both succinct and support high-frequency edge insertions or deletions remains a challenging research frontier. Finally, as hardware evolves, future work must better integrate compression with modern features like Non-Volatile Memory (NVM) and hardware-accelerated decompression to ensure that the CPU overhead of decompression does not negate the I/O benefits of smaller data sizes.
Summary updated