Abstract
Scaling probabilistic inference to massive, irregular datasets is a significant challenge in modern AI. This paper introduces DBRSplash, a distributed inference algorithm designed for large factor graphs. By employing "over-partitioning" to balance workloads and a belief-based scheduling priority, DBRSplash achieves linear to super-linear speedups on computer clusters, overcoming common bottlenecks in communication and convergence.
Introduction
Probabilistic inference—specifically calculating marginal distributions in factor graphs—is essential for applications ranging from computer vision to sensor networks. However, as datasets grow to include millions of variables and factors, single-machine processing becomes infeasible. While Belief Propagation (BP) is inherently parallel, its implementation in distributed environments faces three primary hurdles:
- Work Imbalance: Irregular graphs often lead to processors idling while others are overloaded.
- Scheduling Inefficiency: Communication overhead in clusters can negate the benefits of parallelization.
- Premature Convergence: Standard message-based residuals can cause algorithms to stop before reaching the correct solution in complex graphs.
Methods: The DBRSplash Algorithm
The proposed algorithm, Distributed Belief Residual Splash (DBRSplash), addresses these challenges through three key innovations:
Over-Partitioning
Instead of dividing a graph into $p$ pieces for $p$ processors, DBRSplash cuts it into $k \times p$ pieces (e.g., 10x more pieces than processors) and distributes them randomly. This "uninformed" approach statistically prevents "hot spots" of high-activity nodes from overloading a single processor, balancing the workload more effectively than complex heuristics.
Belief Residual Scheduling
Traditional methods prioritize updates based on how much a message changed. DBRSplash instead tracks the cumulative change in a node's belief (its marginal probability). This is more robust and prevents the algorithm from terminating early on complex, loopy graphs where small message changes might hide significant shifts in underlying beliefs.
Fixed-Work Splashes
To prevent high-degree nodes from dominating resources, the "Splash" operation—a local update—is limited by a total work budget ($W_{max}$) rather than a fixed node count. This ensures that every processor completes its tasks in roughly the same amount of time.
Evaluation and Key Results
The authors evaluated DBRSplash using a synthetic image denoising task and real-world Markov Logic Networks (MLNs) such as the UW-CSE and Cora datasets.
- Scalability: On a 120-processor cluster, DBRSplash demonstrated linear to super-linear performance gains. Super-linear speedups occur because distributing data increases the total available cache and memory bandwidth, reducing hardware-level bottlenecks.
- Efficiency: Over-partitioning significantly reduced processor idle time, maintaining high CPU activity throughout the computation. As shown in the experimental results, increasing the partition factor helps manage communication costs while improving work balance.
- Accuracy: On the high-degree
cora-1dataset, message-based scheduling failed to converge, while DBRSplash's belief-based scheduling reached high accuracy rapidly.
Conclusion
DBRSplash provides a scalable solution for distributed inference on large, irregular factor graphs. By rethinking partitioning and scheduling priorities, the authors demonstrate that high-performance probabilistic inference is achievable on standard computer clusters. Future work includes parallelizing the initial partitioning phase and developing dynamic auto-tuning for algorithm parameters like the over-partitioning factor $k$.
Summary updated