Stochastic Constraint Optimization using Propagation on Ordered Binary Decision Diagrams

Anna L. D. Latour, Behrouz Babaki, Siegfried NijssenarXiv 2018

TL;DR

This paper introduces a novel constraint programming (CP) propagator that operates directly on Ordered Binary Decision Diagrams (OBDDs) to solve Stochastic Constraint Optimization Problems (SCOPs). By avoiding the traditional approach of decomposing OBDDs into a network of smaller constraints, the new propagator maintains domain consistency in linear time, significantly reducing the search space for optimization under uncertainty.

What Problem Does This Paper Address?

Many real-world decision-making problems—such as maximizing the reach of a viral marketing campaign or compressing a biological interaction network—involve a mix of hard constraints, optimization goals, and probabilistic uncertainty. These are known as Stochastic Constraint Optimization Problems (SCOPs).

A recent toolchain called SC-ProbLog models these problems by compiling probabilistic logic programs into Ordered Binary Decision Diagrams (OBDDs), which track the probabilities of different outcomes based on decision variables. To solve the resulting optimization problem, previous methods decomposed these OBDDs into a collection of smaller, linear constraints suitable for standard Mixed Integer Programming (MIP) or CP solvers.

However, the authors point out a major flaw in this decomposition approach: it destroys the global structure of the problem. Standard solvers looking at the fragmented constraints cannot maintain domain consistency. This means the solver cannot deduce when a decision variable's choice (true or false) is completely incompatible with the threshold constraint, forcing the search algorithm to waste time branching on unnecessary choices.

Methods

Instead of treating the solver as a black box and feeding it decomposed constraints, the authors propose opening the black box and introducing a dedicated OBDD-based stochastic constraint propagator.

A naive domain-consistent propagator would test every single free decision variable by setting it to false (assuming all others are true due to the problem's monotonic nature) and running a bottom-up traversal of the OBDD to see if the threshold is violated. However, this takes $O(mn)$ time, where $m$ is the size of the OBDD and $n$ is the number of decision variables—a costly operation to run at every node of a search tree.

To achieve a highly efficient $O(m + n)$ linear-time propagator, the authors adapt a differential approach:

  1. Top-Down Pass: Computes the "path weights" ($\pi$) from the root to every node in the OBDD.
  2. Bottom-Up Pass: Computes the values ($v$) for all nodes and simultaneously calculates the partial derivatives of the objective function with respect to each decision variable.

By utilizing these partial derivatives, the propagator can evaluate the exact impact of changing any decision variable in a single pass, allowing it to immediately prune invalid choices from the variable domains.

Figure 2: An OBDD representing the probability that infor- mation can travel from a to c in figure 1, i.e. the probabil- ity that φa→c evaluates to true given any strategy σ. The variable order corresponding to this OBDD is tcd < dcd < dac < tac < tad < dad < dbd < tbd < tab < dab. Cir- cular nodes represent stochastic variables, squares represent decision variables. No specific strategy is reflected here.

Datasets

Not discussed in the paper. This paper focuses purely on the theoretical framework, mathematical proofs, and algorithmic design. The authors note that empirical evaluation on data benchmarks is slated for future work.

Key Insights and Ideas

  • The Power of Monotonicity: In many relational AI problems (e.g., adding an edge to a network or selecting a marketing target), setting a decision variable to true never decreases the probability of the target event. The authors exploit this monotonic property to establish that the "best-case scenario" for satisfying a threshold always occurs when all remaining free variables are set to true.
  • Decomposition Blinds the Solver: As illustrated in Figure 3, when an OBDD is broken down into a series of localized linear equations, the solver loses the ability to look ahead globally. It fails to realize that certain variables are forced to a specific value before the search even begins.
  • Derivatives Simplify Propagation: Computing partial derivatives over computational graphs (like OBDDs) acts as a shortcut. Instead of re-evaluating the entire network for every single variable configuration, calculus allows the solver to determine the global impact of all variables simultaneously.
Figure 3: A small OBDD (left) with three stochastic vari- ables and two decision variables. The two nodes correspond- ing to decision variable y are indexed for clarity. The MIP on the right is constructed using equation (3).

Key Results

  • Theoretical Complexity Leap: The paper mathematically proves that their derivative-based propagation algorithm guarantees domain consistency with a worst-case time complexity of $O(m + n)$, down from the naive approach of $O(mn)$.
  • Exploiting Localized Traversals: The authors demonstrate that because fixing a variable to true does not alter path weights below it, the propagator only needs to execute full updates when a variable is fixed to false. Furthermore, they outline how the active calculation can be confined to a "window" between the highest and lowest free variables in the OBDD, paving the way for highly efficient incremental propagation in practice.

Limitations and Future Work

  • Monotonicity Restriction: The proposed linear-time propagator strictly requires the stochastic constraints to be monotonic and free of negation or negative weights.
  • Binary Variables Only: The framework is currently limited to Boolean decision and stochastic variables.
  • Next Steps: The authors identify several immediate directions for ongoing research, including:
  • Implementing the propagator inside an actual CP solver.
  • Conducting empirical evaluations and benchmarks against the old decomposition method.
  • Extending the approach to handle non-monotonic distributions and other advanced knowledge compilation structures, such as Sentential Decision Diagrams (SDDs).

Summary updated

BibTeX
@misc{latour2018stochastic,
  author = {Anna L. D. Latour and Behrouz Babaki and Siegfried Nijssen},
  title = {{Stochastic Constraint Optimization using Propagation on Ordered Binary Decision Diagrams}},
  year = {2018},
  eprint = {1807.01079},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.01079},
}
Figure