Abstract
Standard parallel Belief Propagation (BP) is often computationally inefficient, sometimes running slower on multiple cores than a single-threaded sequential version. This paper introduces ResidualSplash, an algorithm that combines local sequential updates ("splashes") with a priority-based scheduling system to achieve optimal parallel scaling and significantly faster inference in large graphical models.
Introduction
Belief Propagation (BP) is a fundamental algorithm for performing inference in graphical models, used in everything from computer vision to bioinformatics. As we move into the multi-core era, the "obvious" way to parallelize BP is Synchronous BP: every node in the graph updates its messages simultaneously based on the previous time step.
However, Synchronous BP is asymptotically inefficient. In a chain-like graph of $n$ nodes, information only travels one step per iteration. This means it takes $O(n)$ iterations to converge. If you have $p$ processors, the total work becomes $O(n^2/p)$, which is actually worse than the $O(n)$ time a single processor takes using a smart sequential ordering. The challenge is to find a parallel scheme that respects the sequential "flow" of information (awareness) without sacrificing the speed of multi-core execution.
Methodology
The authors propose two main innovations to solve the parallel bottleneck:
1. The Splash Operation
Instead of updating a single node, a processor picks a "root" node and performs a sequential update on a local neighborhood (a Breadth-First Search tree of height $h$). It passes messages from the leaves to the root and back down to the leaves. This "splash" ensures that information propagates deeply within a local region in a single step.
2. Residual Scheduling
Not all parts of a graph need updating at the same rate. The algorithm maintains a global priority queue of "residuals"—a measure of how much a node's incoming messages have changed. Processors greedily grab the node with the highest residual and perform a "splash" around it. This focuses computational power on the parts of the model that haven't converged yet.
Key Insights and Results
- Synchronous BP is a Trap: Simple parallelization ignores the sequential component of information flow. ResidualSplash achieves the theoretical lower bound for parallel running time on chain graphs, turning the $O(n^2/p)$ nightmare into an optimal $O(n/p + \tau)$ performance.
- Cache Efficiency: Working on local subgraphs keeps data in the CPU's L3 cache, reducing memory latency and bus contention.
- Empirical Performance: On protein side-chain prediction and large-scale video reconstruction tasks (~460k vertices), ResidualSplash achieved near-linear speedup up to 8 cores. In the video task, ResidualSplash on a single core was nearly as fast as standard parallel BP on eight cores.
Conclusion
ResidualSplash effectively parallelizes Belief Propagation by combining local sequential efficiency with global priority scheduling. While the current implementation relies on shared-memory architectures and requires tuning the splash height $h$, it demonstrates that respecting information flow is critical for efficient parallel inference. Future work includes scaling to distributed systems and extending formal proofs to general cyclic graphs.
Summary updated