Prediction-Based Adaptive Variable Ordering Heuristics for Constraint Satisfaction Problems
Jitao Xu, Yaling Wu, Hongbo Li, Minghao Yin
Abstract
Variable ordering heuristics (VOH) play a central role in solving Constraint Satisfaction Problems (CSP). The performance of different VOHs may vary greatly when solving the same CSP instance, so identifying an efficient candidate VOH for a given CSP has been a key issue in the community. In this study, we propose a prediction-based approach to adaptively select efficient VOHs for different CSPs from a set of candidates. Our work demonstrates that efficient candidate VOHs can be identified by learning from the topology of search trees. Specifically, we propose to represent the topology of a binary search tree by the sequence of the Numbers of Positive Decisions (NPD) made before each failure occurs. Based on the representation, we predict the total failure number of a search tree from its beginning part. When solving a CSP, we run a probing procedure to obtain the NPD sequences generated by candidate VOHs and select an efficient one for the resolution according to the prediction results. Our experiments show that the Long Short Term Memory model and Gradient Boosting Decision Tree models trained with the search trees sampled from easy instances are effective in identifying efficient VOHs for hard instances. The models capture some common structure properties hidden in the search trees of different problems. Our approach outperforms the state-of-the-art adaptive VOHs in terms of the number of solved instances and the PAR2 score of runtime.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Related papers
- Right Branches Matter in Failure-based Variable Ordering HeuristicsYang Zhang, Hongbo LiAAAI 2026
- Guiding CDCL SAT Search via Random Exploration amid Conflict DepressionMd. Solimul Chowdhury, Martin Müller, Jia-Huai YouAAAI 2020 · 5 citations
- Suggesting Variable Order for Cylindrical Algebraic Decomposition via Reinforcement LearningFuqi Jia, Yuhang Dong, Minghao Liu, Pei Huang et al.NeurIPS 2023 · 9 citations
- Finding Good Subtrees for Constraint Optimization Problems Using Frequent Pattern MiningHongbo Li, Jimmy Lee, He Mi, Minghao YinAAAI 2020 · 6 citations
- Efficiently Computing Join Orders with Heuristic SearchImmanuel Haffner, Jens DittrichSIGMOD 2023 · 8 citations
