[Paper Review] Learning Robust Search Strategies Using a Bandit-Based Approach
This paper proposes a bandit-based online learning approach to automatically select among multiple variable ordering heuristics during constraint satisfaction problem (CSP) solving. By modeling heuristic selection as a multi-armed bandit problem and using UCB1 and Thompson Sampling with reward feedback from search failures, the method dynamically adapts to problem structure, achieving more robust and often faster performance than individual heuristics across diverse CSP benchmarks.
Effective solving of constraint problems often requires choosing good or specific search heuristics. However, choosing or designing a good search heuristic is non-trivial and is often a manual process. In this paper, rather than manually choosing/designing search heuristics, we propose the use of bandit-based learning techniques to automatically select search heuristics. Our approach is online where the solver learns and selects from a set of heuristics during search. The goal is to obtain automatic search heuristics which give robust performance. Preliminary experiments show that our adaptive technique is more robust than the original search heuristics. It can also outperform the original heuristics.
Motivation & Objective
- To address the challenge of manually selecting or designing effective search heuristics for constraint satisfaction problems (CSPs), which is time-consuming and problem-dependent.
- To develop an online, adaptive learning mechanism that selects from multiple existing heuristics during search, rather than relying on a single fixed heuristic.
- To improve solver robustness and performance across diverse CSP problem instances by learning from search feedback in real time.
- To reduce the need for expert tuning by enabling the solver to automatically determine the best heuristic strategy during execution.
Proposed method
- Model the selection of variable ordering heuristics as a multi-armed bandit (MAB) problem, where each heuristic is an 'arm' to be selected.
- Use UCB1 and Thompson Sampling algorithms to balance exploration and exploitation in heuristic selection during search.
- Define reward functions based on search performance: failures at a node are treated as rewards for the heuristic choice that led to them, guiding future selections.
- Collect feedback online during solving—no offline training or labeled examples are required—making the method suitable for real-time adaptation.
- Integrate the MAB-based heuristic selector within a CP solver to dynamically switch between candidate heuristics (e.g., ddeg/dom, wdeg/dom, activity, impact, corr) at each search node.
- Evaluate the method on non-binary CSP benchmarks, comparing it against individual heuristics and a random baseline.
Experimental results
Research questions
- RQ1Can a bandit-based online learning approach dynamically select variable ordering heuristics to improve robustness across diverse CSP instances?
- RQ2How does the performance of MAB-based heuristic selection compare to individual heuristics in terms of solving time and variance across problem families?
- RQ3Does the adaptive selection mechanism reduce the risk of poor heuristic choices that lead to exponential performance degradation?
- RQ4How does the frequency of heuristic usage in the MAB framework correlate with problem-solving behavior and performance?
Key findings
- The MAB-based heuristics (UCB1 and Thompson Sampling) significantly reduced performance variance across different problem families compared to individual heuristics, demonstrating greater robustness.
- On many problem instances, the MAB-based methods outperformed the best individual heuristics, achieving faster solving times and fewer explored search nodes.
- For the BIBD instance, while the activity heuristic was the worst-performing individually, it was selected most frequently by UCB1 and Thompson Sampling, indicating adaptive learning identified its beneficial context-specific use.
- The sequential PSS (sPSS) baseline was much slower than the MAB methods, with 507K total search nodes on rand3-20-20-1 versus 73K for MAB-UCB1, due to high overhead from solving all subproblems sequentially.
- The total runtime of sPSS was 116.8s on ruler-34-9-a4, compared to 6.9s for MAB-UCB1, showing that sPSS lacks efficiency without sufficient parallelism.
- The performance of sPSS was highly sensitive to decomposition strategy, indicating lower robustness compared to the MAB-based approach.
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.