A Message Passing Algorithm for the Problem of Path Packing in Graphs

Patrick Eschenfeldt, David GamarnikarXiv 2016

Abstract

Node-disjoint path packing is a critical combinatorial optimization problem with significant applications in logistics and healthcare, most notably in kidney exchange programs. While traditional Integer Programming (IP) solvers provide exact solutions, they often fail to scale to large-scale networks. This paper introduces a novel message-passing algorithm based on Belief Propagation (BP) to address the maximum node-disjoint path packing problem. By reformulating the problem into an efficient "A-H form," the algorithm achieves linear scaling, enabling the processing of graphs with hundreds of thousands of nodes. Experimental results on synthetic and real-world datasets demonstrate that the BP approach outperforms greedy heuristics and handles instances where traditional IP solvers become computationally intractable.

Introduction

In kidney exchange programs, the goal is to maximize the number of transplants by identifying "chains" of donations. These chains typically begin with an altruistic donor and proceed through a series of incompatible donor-recipient pairs. Mathematically, this is modeled as finding the optimal set of non-overlapping (node-disjoint) paths in a directed graph. As these networks grow to include tens of thousands of potential participants, the underlying optimization problem becomes increasingly difficult for standard solvers.

Patrick Eschenfeldt and David Gamarnik propose a scalable alternative in "A Message Passing Algorithm for the Problem of Path Packing in Graphs." By leveraging Belief Propagation, the authors provide a heuristic framework that maintains high solution quality while offering the linear time complexity necessary for massive datasets.

Problem Formulation

The core challenge is defined as node-disjoint path packing. Given a directed graph $G = (V, E)$ and a set of "root" nodes (representing altruistic donors), the objective is to find a collection of paths such that:

  1. Each path originates at a root node.
  2. Paths are node-disjoint (no node is shared between paths).
  3. Each path has a maximum length $K$.
  4. The total number of nodes included in the paths is maximized.

This problem is NP-hard. While Integer Programming (IP) formulations like the Kidney Exchange Problem (KEP) model are effective for small-to-medium graphs, they encounter a "complexity wall" in large-scale applications due to exponential growth in constraints or variables.

Methodology

The Graphical Model

To apply Belief Propagation, the authors reformulate path packing as a graphical model. Each node $i$ is assigned a state represented by a triplet: $(depth, parent, child)$. Local compatibility rules ensure global path integrity:

  • If node $A$ identifies node $B$ as its child, node $B$ must identify node $A$ as its parent.
  • The depth of node $B$ must be exactly the depth of node $A$ plus one.
  • Root nodes must have a depth of zero and no parent.

The A-H Form Efficiency

A standard BP implementation on this state space would result in a complexity of $O(n^2 \Delta^6 K^2)$, where $\Delta$ is the maximum degree of the graph. To make this practical, the authors derive the A-H form. By exploiting the sparsity of valid configurations—specifically, that a node can have at most one parent and one child—they reduce the complexity to $O(n \Delta K)$. This linear scaling is the primary breakthrough allowing the algorithm to function on massive networks.

Solution Construction

Because BP may not converge on graphs with many cycles, the algorithm treats BP messages as "beliefs" or max-marginals. At each iteration, the current beliefs are used to greedily construct a feasible solution. The algorithm tracks the best solution found across a fixed number of iterations, ensuring that even in the absence of convergence, a high-quality feasible result is produced.

Experimental Evaluation

The algorithm was evaluated using synthetic random graphs and several real-world networks from the SNAP collection, including Epinions (68k nodes), Slashdot (75k nodes), and Amazon (261k nodes).

Scaling and Performance

The BP algorithm demonstrated superior scaling compared to traditional IP solvers. On the Amazon dataset (~261k nodes), standard KEP IP solvers failed due to memory and time constraints. In contrast, the BP algorithm successfully identified a solution covering over 180,000 nodes in approximately four hours.

In comparative tests against a standard greedy heuristic, the BP approach consistently found 4% to 15% more nodes across most real-world datasets. Furthermore, the authors introduced a new IP formulation called Parent-Child-Depth (PCD). For longer path lengths ($K=15$), the PCD formulation often reached optimal solutions faster than existing KEP models, providing a secondary contribution to the field of exact solvers.

Discussion and Limitations

Despite its strengths, the BP approach has limitations. As a heuristic, it does not provide a proof of optimality. Additionally, its performance can be sensitive to graph topology. In the Slashdot dataset, a simple greedy algorithm outperformed BP, likely due to high-degree nodes or specific structural properties that hinder BP convergence.

Future research directions include extending the model to accommodate cycles (closed loops of donors), which are a common feature in kidney exchange programs but were outside the scope of this path-centric study.

Conclusion

The message-passing approach developed by Eschenfeldt and Gamarnik represents a significant advancement in large-scale combinatorial optimization. By transforming the path-packing problem into an efficient A-H form, the authors provide a tool capable of handling real-world networks that were previously inaccessible to optimization software, offering a promising path forward for logistical challenges in healthcare and beyond.

Summary updated

BibTeX
@misc{eschenfeldt2016message,
  author = {Patrick Eschenfeldt and David Gamarnik},
  title = {{A Message Passing Algorithm for the Problem of Path Packing in Graphs}},
  year = {2016},
  eprint = {1603.06002},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.06002},
}
Figure