arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.11389cs.AI
收藏

约束编程求解器的超参数优化

Hyperparameter Optimization of Constraint Programming Solvers

Interdisciplinary Centre for Security, Reliability and Trust (SnT)(安全、可靠性与信任跨学科中心);University of Luxembourg(卢森堡大学);Faculty of Science, Technology and Medicine (FSTM)(科学、技术与医学学院)

Hedieh Haddad, Thibault Falque, Pierre Talbot, Pascal Bouvry

AI总结:

本文提出探查与求解算法,通过贝叶斯优化提升约束编程求解器性能,实现对不同问题实例的高效优化。

摘要:

约束编程求解器的性能对其超参数的选择非常敏感。手动找到最佳求解器配置是一项困难且耗时的任务,通常需要专业知识。在本文中,我们引入了探查与求解算法,这是一种集成到CPMpy库中的新型两阶段框架,用于自动化超参数优化。该方法将可用的时间预算分为两个阶段:一个探查阶段,使用可配置的超参数优化方法探索不同的超参数集,随后是一个求解阶段,利用找到的最佳配置在剩余时间内解决该问题。我们实现了并比较了探查与求解算法中的两种超参数优化方法:贝叶斯优化和汉明距离搜索。我们对两个不同的约束编程求解器,ACE和Choco,在114个组合问题实例上评估了该算法,将其性能与求解器的默认配置进行比较。结果表明,使用贝叶斯优化,该算法在ACE求解器的25.4%的实例中提高了解决方案质量,在57.9%的实例中与默认性能相当;在Choco求解器中,有38.6%的实例实现了更优的结果。它还一致在相同框架下优于汉明距离搜索,证实了基于模型的探索优于简单的局部搜索。总体而言,探查与求解算法提供了一种实用且资源敏感的调整约束求解器的方法,能够针对各种问题类型产生稳健的改进。

英文摘要:

The performance of constraint programming solvers is highly sensitive to the choice of their hyperparameters. Manually finding the best solver configuration is a difficult, time-consuming task that typically requires expert knowledge. In this paper, we introduce probe and solve algorithm, a novel two-phase framework for automated hyperparameter optimization integrated into the CPMpy library. This approach partitions the available time budget into two phases: a probing phase that explores different sets of hyperparameters using configurable hyperparameter optimization methods, followed by a solving phase where the best configuration found is used to tackle the problem within the remaining time. We implement and compare two hyperparameter optimization methods within the probe and solve algorithm: Bayesian optimization and Hamming distance search. We evaluate the algorithm on two different constraint programming solvers, ACE and Choco, across 114 combinatorial problem instances, comparing their performance against the solver's default configurations. Results show that using Bayesian optimization, the algorithm outperforms the solver's default configurations, improving solution quality for ACE in 25.4% of instances and matching the default performance in 57.9%, and for Choco, achieving superior results in 38.6% of instances. It also consistently surpasses Hamming distance search within the same framework, confirming the advantage of model-based exploration over simple local search. Overall, the probe and solve algorithm offers a practical, resource-aware approach for tuning constraint solvers that yields robust improvements across diverse problem types.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑