NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Finite Domain Constraint Solver Learning

Arnaud Lallouet, Thi-Bich-Hanh Dao, Andrei Legtchenko, AbdelAli Ed-DbaliIJCAI 2003

Introduction

Constraint Satisfaction Problems (CSPs) are foundational to a wide array of optimization tasks, including scheduling, routing, and layout design. Solving these problems efficiently relies on "filtering" operators—local consistency rules that prune the search space by removing values from variable domains that cannot possibly be part of a solution. Historically, designing these filtering operators has been an expert-driven "black art," requiring a delicate balance between the strength of the pruning and the computational overhead of the check. This paper introduces an abstract framework for automatically learning these solvers from examples, moving toward a more automated and efficient approach to constraint programming.

The Problem: Automating Solver Design

The primary challenge addressed by the authors is the automation of filtering operator design. Specifically, they ask: can we learn an efficient, correct, and monotonic filtering operator simply by observing how a constraint behaves?

In the past, systems like PROPMINER attempted to automate this but were often limited to small boolean or finite domains due to the combinatorial explosion of the search space. This research seeks to overcome those limitations by focusing on bound-consistency and leveraging the "indexical" language of Gnu-Prolog.

Methodology

The authors treat solver learning as a functional optimization problem. The goal is to find an operator $l$ within a specific language that minimizes the error (or distance) from a target consistency $cs_c$ over a sample set of search states $E$.

Defining Pre-consistencies

A central theoretical insight of the paper is the definition of "pre-consistencies." For a solver operator to be effective and reliable, it must satisfy two properties:

  1. Monotonicity: If a variable's domain shrinks, the output of the operator should not grow.
  2. Contraction: The operator should only ever remove values from a domain, never add them.

By ensuring these properties, the authors prove that a solver's correctness can be verified by testing it against "singleton" states (where variables are assigned a single value) rather than every possible domain state.

Language Bias and Indexicals

To make the search space manageable, the framework uses the indexical language of Gnu-Prolog. Indexicals are expressions of the form X in r, where r defines the allowed range for variable X based on the domains of other variables. To maintain monotonicity, the system enforces syntactic constraints on the coefficients of the linear and piecewise-linear functions it generates.

Reparation

Because achieving "singleton completeness" (the ability to fully solve a constraint when only one value remains) is difficult to learn through optimization alone, the authors use a "reparation" method. This ensures that even if a learned indexical is slightly imperfect, the solver remains correct and capable of recognizing valid solutions.

Evaluation and Key Results

The system was evaluated on a complex global constraint defined by a conjunction of five linear inequalities, forming a 2D polyhedron over a $50 \times 50$ domain.

  • Performance Gains: The learned operators executed in 290 ms, significantly outperforming the 400 ms required by the original, non-decomposed global constraint implementation. This suggests that automated decomposition into indexicals can lead to more efficient execution than manual designs.
  • Scalability: Unlike previous methods, this framework handles larger domains and higher "arity" (constraints involving more variables) by using a sampled example space rather than an exhaustive one.
  • Automation: The system successfully generated complex indexical expressions involving min, max, and val operators that would be non-trivial for a human to optimize manually.

Limitations and Future Work

While the framework is powerful, it currently relies on linear and piecewise-linear forms. If a constraint's ideal filtering is highly non-linear, the learned indexical will only be an approximation. Additionally, while the framework is abstract, the current implementation is specific to Gnu-Prolog. Future work could involve extending this to other constraint programming environments or exploring more complex non-linear functional forms for the indexicals.

Conclusion

By shifting the focus to bound-consistency and utilizing the indexical language, the authors have provided a scalable path for the automated design of constraint solvers. This framework reduces the reliance on expert intuition and demonstrates that learned, decomposed operators can actually exceed the performance of traditional global constraints.

Summary updated

BibTeX
@inproceedings{lallouet2003finite,
  author = {Arnaud Lallouet and Thi-Bich-Hanh Dao and Andrei Legtchenko and AbdelAli Ed-Dbali},
  title = {{Finite Domain Constraint Solver Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2003},
}
Figure