In the quest of the best form of local consistency for Weighted CSP

Javier Larrosa, Thomas SchiexIJCAI 2003

Abstract

Weighted Constraint Satisfaction Problems (WCSPs) extend classical CSPs by associating costs with constraint violations, transforming a satisfaction problem into an optimization one. This paper explores refined local consistency properties, specifically Directional Arc Consistency (DAC) and Full Directional Arc Consistency (FDAC), to prune the search space more effectively. Empirical results demonstrate that maintaining FDAC* during search significantly outperforms simpler consistency methods, particularly in sparse and tight problem instances.

Introduction

In classical Constraint Satisfaction Problems (CSPs), constraints are binary: they are either satisfied or violated. Local consistency techniques, such as Arc Consistency, are used to eliminate values that cannot participate in any solution, thereby reducing the search space. However, in many real-world scenarios, constraints are "soft," meaning they can be violated at a certain cost. Weighted CSPs (WCSPs) provide a framework for these optimization problems, where the goal is to find a complete assignment of values to variables that minimizes the total cost.

The primary challenge in solving WCSPs is determining the optimal balance between the computational effort spent on enforcing local consistency and the resulting reduction in the search tree. This paper investigates advanced forms of local consistency to improve solver efficiency.

Local Consistency and Cost Shifting

The authors introduce refined versions of local consistency: Directional Arc Consistency (DAC) and Full Directional Arc Consistency (FDAC). These properties incorporate Node Consistency and a global lower bound, denoted as $C_\emptyset$.

The core mechanism for enforcing these consistencies involves two fundamental operations:

  1. Projection: Moving costs from a binary constraint to a unary constraint or directly to the global lower bound $C_\emptyset$.
  2. Extension: The inverse operation, moving costs from a variable back to a constraint.

These operations allow for "shifting" costs while maintaining problem equivalence. By concentrating costs into $C_\emptyset$, the solver can identify subproblems that will inevitably exceed the current best solution's cost, enabling earlier backtracking.

Sequence of cost transformations (a-f) illustrating projection and extension to increase the global lower bound $C_\emptyset$.

As shown in the figure above, the process starts with an initial state (a) where $C_\emptyset = 0$. Through successive projections and extensions (b-f), costs are redistributed, eventually increasing the global lower bound, which provides a more informed heuristic for the search algorithm.

Experimental Evaluation

The algorithms were evaluated using random binary WCSPs generated via a four-parameter model $(n, d, e, t)$, representing the number of variables, domain size, graph density, and constraint tightness, respectively. Four problem categories were tested: Sparse Loose (SL), Sparse Tight (ST), Dense Loose (DL), and Dense Tight (DT).

Key Results

  • Performance Gains: In "Sparse Tight" instances, maintaining FDAC* was up to 50 times faster than basic Node Consistency.
  • Search Space Reduction: FDAC and DAC dramatically reduced the number of nodes visited, with ratios as high as 300:1 compared to weaker consistency forms.
  • Complexity Trade-offs: While FDAC is more expensive to compute per node, its pruning power makes it the most effective strategy for most complex problems. An exception was noted in "Dense Loose" problems, where the simplicity of the instances made the overhead of FDAC unjustifiable.

Conclusion

The study concludes that maintaining strong local consistency, specifically FDAC*, is a highly effective strategy for solving WCSPs. By effectively concentrating costs into a global lower bound, these methods provide significant speedups and search space reductions. Future work includes optimizing variable ordering heuristics and extending these techniques to n-ary constraints for broader real-world applicability.

Summary updated

BibTeX
@inproceedings{larrosa2003quest,
  author = {Javier Larrosa and Thomas Schiex},
  title = {{In the quest of the best form of local consistency for Weighted CSP}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure