Abstract
Influence Maximization (IM) is a critical task in social network analysis, aimed at identifying a small set of influential users to maximize information spread. However, state-of-the-art algorithms like IMM (Influence Maximization via Martingales) suffer from extreme "memory inflation," where the required Random Reverse Reachable (RRR) sets can exceed the original graph size by over 160 times. This paper introduces HBMax, a framework designed to mitigate this bottleneck through a "compress-to-compute" workflow. By dynamically switching between Huffman-based and Bitmap-based compression, HBMax reduces memory footprints by up to 82% and enables the processing of billion-edge networks on standard multicore hardware without sacrificing accuracy.
Introduction
In the era of massive social media platforms, the Influence Maximization (IM) problem has become central to viral marketing and public health communication. The goal is to select $k$ seed nodes that maximize the expected number of influenced nodes under a specific diffusion model. While theoretically robust, the practical application of IM algorithms on large-scale graphs is hindered by memory constraints.
The current gold standard, the IMM algorithm, relies on generating millions of RRR sets—subgraph snapshots that represent influence paths. On massive networks like Twitter, these sets can consume hundreds of gigabytes of RAM, often leading to Out-of-Memory (OOM) errors on typical server configurations. Researchers are frequently forced to choose between using smaller, less accurate samples or investing in prohibitively expensive high-memory hardware. HBMax addresses this trade-off by enabling computation directly on compressed data structures.
The HBMax Framework
HBMax is built upon the Ripples framework and introduces a three-phase workflow designed to optimize memory usage and computational throughput.
1. Characterization and Warm-up
Not all social networks exhibit the same structural properties. HBMax begins by sampling a small batch of RRR sets to analyze their statistical distribution. Specifically, it measures skewness (the concentration of influence in a few nodes) and density. This characterization phase ensures that the subsequent compression strategy is tailored to the specific graph's topology.
2. Hybrid Block-wise Encoding
Based on the initial characterization, HBMax employs one of two specialized encoding schemes:
- Huffmax: Optimized for skewed distributions where a small subset of nodes appears frequently in RRR sets. It utilizes Huffman coding but introduces a novel optimization: the most frequent vertex is moved to the front of the encoded string. This allows the algorithm to perform "early-stopping" during queries, identifying node presence without decompressing the entire set.
- Bitmax: Designed for "flat-head" distributions where influence is more evenly distributed. This method represents RRR sets as dense bitmaps, which are highly efficient for uniform data.
3. Optimized Selection and Parallel Reduction
To maintain high performance, HBMax performs seed selection using bitwise operations (AND, XOR, POPCOUNT) directly on Bitmax structures, avoiding the overhead of decompression. Furthermore, the framework introduces a Parallel Merge-based Reduction strategy. This approach coordinates the search for influential nodes across multiple CPU cores, bypassing the synchronization bottlenecks typically associated with standard OpenMP reductions.
Experimental Evaluation
The authors evaluated HBMax using eight diverse real-world datasets, ranging from standard benchmarks like DBLP and YouTube to large-scale networks such as Arabic-2005 (22.7M vertices) and Twitter7 (41.6M vertices, 1.46B edges).
Memory Efficiency and Scalability
HBMax demonstrated significant memory savings across all test cases, with a peak reduction of 82.1% on the LiveJournal graph. Crucially, while the baseline Ripples framework crashed due to OOM errors on the Twitter7 dataset, HBMax processed the graph successfully, achieving a 5.9x compression ratio.
Performance Gains
Contrary to the intuition that compression adds computational overhead, HBMax actually improved execution speeds. On the Twitter7 graph, it achieved a 2.2x speedup over projected baseline performance. This improvement is attributed to the reduced memory footprint, which minimizes "page faults" and allows more data to reside in the CPU’s fast cache. The system also showed strong linear scaling up to 64 CPU cores, particularly when utilizing the Bitmax approach.
Conclusion
HBMax proves that memory efficiency and computational speed are not mutually exclusive in large-scale graph analysis. By implementing a lossless "compress-to-compute" strategy, the framework provides the same mathematical guarantees as the original IMM algorithm while making billion-edge social network analysis accessible on standard multicore architectures. Future work will explore extending these techniques to GPU architectures and applying similar hybrid compression models to other memory-intensive graph problems like community detection.
Summary updated