[Paper Review] SUNNY: a Lazy Portfolio Approach for Constraint Solving
SUNNY proposes a lazy portfolio approach for constraint satisfaction problems (CSPs) that uses k-nearest neighbors (k-NN) to select solvers based on instance similarity, without requiring offline learning. It dynamically schedules solvers by prioritizing those solving the most instances in the nearest neighbor set, achieving performance that surpasses state-of-the-art portfolio solvers like CPHydra, 3S, and SATzilla in simulations and in practice via the sunny-csp solver.
*** To appear in Theory and Practice of Logic Programming (TPLP) *** Within the context of constraint solving, a portfolio approach allows one to exploit the synergy between different solvers in order to create a globally better solver. In this paper we present SUNNY: a simple and flexible algorithm that takes advantage of a portfolio of constraint solvers in order to compute --- without learning an explicit model --- a schedule of them for solving a given Constraint Satisfaction Problem (CSP). Motivated by the performance reached by SUNNY vs. different simulations of other state of the art approaches, we developed sunny-csp, an effective portfolio solver that exploits the underlying SUNNY algorithm in order to solve a given CSP. Empirical tests conducted on exhaustive benchmarks of MiniZinc models show that the actual performance of SUNNY conforms to the predictions. This is encouraging both for improving the power of CSP portfolio solvers and for trying to export them to fields such as Answer Set Programming and Constraint Logic Programming.
Motivation & Objective
- To bridge the gap between SAT and CSP portfolio solvers by enabling practical, lightweight portfolio usage in constraint solving.
- To address the limitations of existing portfolio solvers that require complex, computationally expensive offline training phases.
- To develop a flexible, incremental, and deployable portfolio solver suitable for real-world applications beyond competitive settings.
- To evaluate the effectiveness of a lazy, similarity-based solver selection mechanism in CSP solving.
- To extend the applicability of portfolio solvers to emerging domains such as Answer Set Programming and Constraint Logic Programming.
Proposed method
- SUNNY uses a k-Nearest Neighbors (k-NN) algorithm to identify the k most similar instances from a training set to a new, unseen CSP instance.
- It constructs a sub-portfolio of solvers based on the minimal set that solves the maximum number of instances in the k-NN neighborhood.
- Solver time allocation is proportional to the number of instances in the neighborhood that each solver successfully solves.
- The approach avoids explicit model learning by relying solely on instance similarity and historical solver performance.
- The method is implemented in sunny-csp, a MiniZinc-compatible portfolio solver using 11 constituent solvers.
- The framework is designed to be extensible to parallel portfolios and adaptable to other domains like ASP and CLP.
Experimental results
Research questions
- RQ1Can a lazy, similarity-based portfolio approach outperform state-of-the-art portfolio solvers in CSP solving without requiring offline model training?
- RQ2How effective is k-NN-based solver selection in predicting the best solver for a new CSP instance?
- RQ3To what extent does the SUNNY algorithm scale and generalize across diverse MiniZinc benchmarks?
- RQ4Can a portfolio solver built on SUNNY achieve better performance than individual constituent solvers in practice?
- RQ5How does the SUNNY approach compare to non-lazy, learning-based portfolio methods in terms of both performance and practical deployability?
Key findings
- SUNNY outperformed all evaluated state-of-the-art portfolio solvers — including CPHydra, 3S, and SATzilla — in simulation-based performance comparisons.
- The actual implementation, sunny-csp, significantly outperformed each of its 11 constituent solvers on exhaustive MiniZinc benchmarks.
- Empirical results confirmed that the performance of sunny-csp closely matched the predicted behavior from SUNNY simulations.
- The approach demonstrated strong potential for deployment in non-competitive, real-world settings due to its simplicity and lack of training overhead.
- The method is adaptable to other domains such as Answer-Set Programming and Constraint Logic Programming, with promising initial results on optimization problems.
- The framework supports future extensions, including online learning, dynamic knowledge base updates, and parallel portfolio execution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.