Skip to main content
QUICK REVIEW

[Paper Review] In-Core Computation of Geometric Centralities with HyperBall: A Hundred Billion Nodes and Beyond

Paolo Boldi, Sebastiano Vigna|arXiv (Cornell University)|Aug 9, 2013
Complex Network Analysis TechniquesPhysics and Astronomy20 references12 citations
TL;DR

HyperBall enables in-core, approximate computation of geometric centralities—such as harmonic and closeness centrality—on graphs with up to 100 billion nodes using just 2 TiB of RAM. By leveraging HyperLogLog counters, compressed graph representations, and succinct data structures, it achieves a 150x speedup over Hadoop-based methods and scales linearly across cores, enabling accurate, high-performance analysis on massive real-world graphs like ClueWeb09.

ABSTRACT

Given a social network, which of its nodes are more central? This question has been asked many times in sociology, psychology and computer science, and a whole plethora of centrality measures (a.k.a. centrality indices, or rankings) were proposed to account for the importance of the nodes of a network. In this paper, we approach the problem of computing geometric centralities, such as closeness and harmonic centrality, on very large graphs; traditionally this task requires an all-pairs shortest-path computation in the exact case, or a number of breadth-first traversals for approximated computations, but these techniques yield very weak statistical guarantees on highly disconnected graphs. We rather assume that the graph is accessed in a semi-streaming fashion, that is, that adjacency lists are scanned almost sequentially, and that a very small amount of memory (in the order of a dozen bytes) per node is available in core memory. We leverage the newly discovered algorithms based on HyperLogLog counters, making it possible to approximate a number of geometric centralities at a very high speed and with high accuracy. While the application of similar algorithms for the approximation of closeness was attempted in the MapReduce framework, our exploitation of HyperLogLog counters reduces exponentially the memory footprint, paving the way for in-core processing of networks with a hundred billion nodes using "just" 2TiB of RAM. Moreover, the computations we describe are inherently parallelizable, and scale linearly with the number of available cores.

Motivation & Objective

  • To enable accurate, in-core computation of geometric centralities on graphs with up to 100 billion nodes.
  • To overcome the memory and scalability limitations of traditional all-pairs shortest-path or BFS-based centrality computation on large, possibly disconnected graphs.
  • To provide a high-accuracy, low-memory alternative to MapReduce-based approaches for centrality approximation on massive graphs.
  • To demonstrate linear scalability and high performance on real-world graphs such as ClueWeb09 and Wikipedia using standard workstations.
  • To extend the method to weighted graphs with minimal space overhead.

Proposed method

  • The method uses HyperLogLog counters to estimate the size of balls (nodes within a given distance) around each node, enabling efficient approximation of distance-based centralities.
  • It assumes a semi-streaming graph access model, where adjacency lists are scanned sequentially, and only a few dozen bytes per node are stored in core memory.
  • The framework integrates compressed graph representations and succinct data structures to manage memory-mapped on-disk graph storage efficiently.
  • It leverages the statistical properties of HyperLogLog counters to estimate the number of reachable nodes with high accuracy and low variance.
  • The algorithm is inherently parallelizable, with computation per node independent and scalable across multiple cores.
  • For weighted graphs, the method extends HyperLogLog estimation with minimal precision loss by treating edge weights as part of the distance distribution.

Experimental results

Research questions

  • RQ1Can geometric centralities be computed accurately and efficiently on graphs with up to 100 billion nodes using only in-core memory?
  • RQ2How does the performance and accuracy of HyperBall compare to Hadoop-based MapReduce implementations for centrality approximation?
  • RQ3To what extent does the use of HyperLogLog counters reduce memory footprint while maintaining high accuracy in centrality estimation?
  • RQ4Does the method scale linearly with the number of available CPU cores on large-scale graphs?
  • RQ5Can the framework be extended to handle weighted graphs with negligible space and accuracy cost?

Key findings

  • HyperBall achieved a 150x speedup over a Hadoop-based implementation using 50 machines, with a 32-core workstation outperforming the Hadoop cluster by over 150 times.
  • On a MacBook Pro with 8 cores, HyperBall was 50 times faster than the Hadoop-based method, demonstrating strong performance even on consumer-grade hardware.
  • The average relative error in centrality estimation was consistently close to the theoretical prediction for HyperLogLog counters and often significantly lower in practice.
  • The estimation of coreachable nodes showed reduced variance due to high overlap in the giant strongly connected component, where 89% of nodes shared identical coreachable sets.
  • Timings per arc per core remained nearly constant across 1 to 32 cores, indicating near-perfect linear scalability, with a 30% increase at 32 cores likely due to caching effects.
  • On ClueWeb09 (4.8 billion nodes), HyperBall completed a full 200-iteration computation in 422 minutes using 875 GiB of memory and 256 registers per HyperLogLog counter, with performance scaling better than linearly with precision.

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.