Understanding the Impact of Value Selection Heuristics in Scheduling Problems

Tim Luchterhand, Emmanuel Hebrard, Sylvie ThiébauxCP 2025

TL;DR

This paper investigates why value selection heuristics, which choose the specific value a variable takes in optimization problems, have a surprisingly small impact on performance, especially for difficult instances. The authors reveal that while these heuristics become less accurate on harder problems, the penalty for making a wrong choice increases dramatically, leading to a complex interplay that limits their effectiveness.

What Problem Does This Paper Address?

In solving complex optimization problems, especially those tackled by constraint programming (CP) solvers, the search for solutions can be incredibly challenging. Heuristics are crucial for guiding this search efficiently. These heuristics are typically divided into two categories: variable selection (which variable to branch on next) and value selection (which value to assign to that variable). While variable selection heuristics have been extensively studied and have shown significant impact, value selection heuristics have historically been considered less influential, particularly on hard problem instances. The common belief is that on difficult problems, solvers spend most of their time in "UNSAT" (unsatisfiable) regions of the search space, where the choice of value is irrelevant. This paper aims to delve deeper into this phenomenon, offering a more nuanced explanation for the limited impact of value selection heuristics.

Methods

The authors employ a self-developed CP solver named "tempo" to analyze the behavior of various value selection heuristics on scheduling problems. They introduce metrics to quantify heuristic performance, including:

  • Relevant vs. Irrelevant Choices: Distinguishing between choices that could lead to a solution (relevant) and those that cannot (irrelevant). Irrelevant choices are further categorized into those within UNSAT subtrees (ICUs) and those within SAT subtrees (ICSs).
  • Heuristic Accuracy: Defined as the ratio of relevant and correct choices to the total number of relevant choices.
  • Error Penalty: A measure of how much time is wasted in UNSAT subtrees after a wrong heuristic decision.

They analyze four types of scheduling problems (JSP, OSP, JSTL, RCPSP) and compare five heuristics: random (baseline), max-slack, impact, max-slack solution-guided (MSSG), and a graph neural network (GNN) based heuristic. The experiments are conducted by solving a sequence of satisfiability problems with progressively tighter bounds on the objective, simulating an optimization process.

Datasets

The paper evaluates heuristics on four standard benchmark sets for scheduling problems:

  • Job Shop Problems (JSP): 48 instances.
  • Open Shop Problems (OSP): 24 instances.
  • Job Shop with Time Lags (JSTL): 58 instances.
  • Resource-Constrained Project Scheduling Problems (RCPSP): 20 instances.

These are existing, well-established benchmarks in the scheduling domain.

Key Insights and Ideas

  • The "UNSAT region" explanation is incomplete: While solvers do spend more time in UNSAT regions as problems get harder, the remaining "relevant" choices become far more critical.
  • Heuristic accuracy degrades on harder problems: As the optimality gap shrinks (problems get harder), the accuracy of informed value selection heuristics decreases. This is counter-intuitive, as one might expect heuristics to be more important when the stakes are highest.
  • The penalty for mistakes skyrockets: The cost of making a wrong value selection choice increases dramatically as the optimality gap shrinks. This means a single bad decision can be far more damaging on harder instances.
  • Accurate heuristics pay a higher price for errors: Surprisingly, more accurate heuristics (like MSSG) tend to suffer a larger error penalty when they do make a mistake. This suggests that their "correct" choices are often very subtle, and when they err, it's on a difficult decision that takes a long time to refute.
  • Interaction with Constraint Propagation: The authors hypothesize that the degradation in heuristic accuracy is due to an alignment between value selection heuristics and constraint propagation. Constraint propagation often prunes away "easy" choices that align with the heuristic's intuition, leaving the heuristic to make decisions on more difficult, less intuitive branches.

Key Results

  • Irrelevant choices (ICUs) increase with gap: The percentage of choices made in UNSAT subtrees (ICUs) generally increases as the optimality gap decreases (problems become harder).
  • Relevant choices show varied trends: The percentage of relevant choices doesn't uniformly decrease with the gap. On RCPSP, it decreases, but on OSP, it increases, and on JSP/JSTL, the trends are more complex.
  • Accuracy drops significantly: For most heuristics (except random, which stays at 50%), accuracy drops as the optimality gap shrinks. For example, on JSP, accuracy can drop from around 0.8 to 0.4.
  • Error penalty increases with gap: The error penalty (time wasted on wrong decisions) consistently increases as the optimality gap decreases across all problem types and heuristics. This penalty can increase by up to an order of magnitude.
  • GNN heuristic shows no significant advantage: The GNN-based heuristic, despite its complexity, did not consistently outperform simpler heuristics like MSSG or even max-slack on these scheduling problems.

Limitations and Future Work

  • Solver-specific analysis: The analysis is performed on a specific CP solver ("tempo") with particular features like 2-way branching and strong propagation. The results might differ on solvers with different architectures or propagation strengths.
  • Approximate analysis with learning: The procedure for analyzing heuristic behavior is approximate when using learning mechanisms (like no-good-learning) due to how backjumping can obscure the direct cause of a failure.
  • Future Work:
    • Investigate whether the observed phenomena (degrading accuracy, increasing error penalty) hold in settings with weaker constraint propagation.
  • Explore the design of algorithms that can perform exact analysis even with learning mechanisms.
  • Extend experiments to a broader range of CSPs with different value domains and phase transitions to see if the observations are scheduling-specific or more general.
  • The authors suggest that for finding high-quality solutions quickly (when optimality is not paramount), heuristics that are "dumb but fast" might be more effective. Conversely, for achieving true optimality, the complex interplay of accuracy and penalty needs careful consideration.

Summary updated

BibTeX
@inproceedings{luchterhand2025understanding,
  author = {Tim Luchterhand and Emmanuel Hebrard and Sylvie Thiébaux},
  title = {{Understanding the Impact of Value Selection Heuristics in Scheduling Problems}},
  booktitle = {CP},
  year = {2025},
  doi = {10.4230/lipics.cp.2025.27},
}

Loading related content...

Figure