Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Learning to Rank Propagators in Constraint Programming

Learned propagator priorities let Choco solve more hard XCSP3 instances

  • Problem Constraint solvers run propagators in fixed, hand-designed orders that ignore each instance's structure. Order can change solving time a lot, but no label says which priority each propagator should get.
  • Method The authors train a self-attention model that scores propagators for each instance. Training uses pairwise runtime preferences between randomized priority orderings, and the predicted ranking is mapped to Choco's seven priority levels before search.
  • Results On 698 hard XCSP3 test instances, the learned priorities solved 654 instances compared with 634 for Choco's default priorities. Median solver runtime fell by 27.93%.

Why propagator order is hard to tune

Propagation repeats throughout the search tree, so these small scheduling differences accumulate into large differences in solving time. Most solvers rely on priority-based scheduling, but those priorities are typically fixed or hand-designed. As a result, they don't adapt to the structure of a particular instance.

The solver's runtime under a given priority assignment can be measured, so the quality of a whole assignment is observable. No label, however, says which priority each individual propagator should receive. The authors handle this by comparing the solver runtimes of two complete priority assignments, since their relative quality can be estimated that way.

The paper frames prediction of static, instance-dependent propagator priorities as a learning-to-rank problem. Runtime comparisons between complete priority assignments serve as the supervision, instead of per-propagator labels. Training runs Choco under multiple randomized priority orderings per instance, and the resulting pairwise preferences train a ranking model.

The model is built on the SetRank architecture, which fits this set-based view because the alternatives are the propagators in each model.

Learning scores from ordering comparisons

The authors give each propagator a real-valued score and sort by those scores, so lower scores mean earlier execution. Training never sees an optimal ordering; it only sees which of two complete orderings ran faster on the same instance. For each training instance, Choco runs under several randomized priority assignments, and each run records its priorities and solver runtime.

The supervision compares whole orderings, while the network outputs one score per propagator, so the authors need a bridge between the two levels.

Runs that hit the time limit T get an effective runtime of λT, with λ at least 1, so timeouts still carry a signal. Two runs on the same instance form a preference pair only when their effective runtimes differ, and the faster run is preferred. The relative difference Δ between a faster run and a slower run is compared against a threshold δ, and only pairs reaching it are kept in the main variant.

The authors use the Plackett–Luce model to turn scores into the likelihood of a complete ordering, with each propagator's utility taken as −s_i. Higher likelihood goes to orderings that place high-utility propagators earlier, and only propagators present in the instance enter the sum. The margin loss is zero only when the faster ordering's likelihood beats the slower one's by at least the margin γ.

Training minimizes the mean of these losses, weighted by log(1 + Δ), so clearer runtime gaps count more without large ratios dominating.

Training uses Adam with gradients clipped by global norm, and Optuna tunes the learning rate, margin, dropout and pair-mining settings on the validation set. Instead of keeping the checkpoint with the lowest training loss, the authors keep the one with the lowest expected effective runtime on validation instances. The training loss is only a surrogate, so this runtime-based criterion stays closer to the goal of reducing solver runtime.

The ranking model and the priority mapping

Each propagator starts from a learned embedding that is shared across every instance in which that propagator occurs. The embedding is projected into the model's hidden space, while the static features are normalized with training-set statistics and projected into one instance vector c(x). The model concatenates c(x) with each propagator's representation, so every propagator starts from both propagator-specific and instance-level information.

Self-attention lets a propagator's representation reflect the other propagators present, instead of treating its preference as independent of them. Because propagators form a set, the authors add no positional encodings, and missing propagators are padded and masked when instances of different sizes share a batch. A single score head is then applied to each propagator representation separately, giving its score s_i.

Although the score head runs on each propagator alone, its inputs already include information from the whole set.

The architecture follows SetRank, a set-based ranking model that the authors adapt to propagators. Lower scores mean earlier execution, so sorting the scores in ascending order yields the predicted ranking. The model can only score propagators in its training vocabulary, so evaluation instances must contain only propagators from that vocabulary.

Choco has seven priority levels, from Unary down to VerySlow, and the predicted ranking must be mapped onto them.

If an instance has at most seven distinct propagators, successive propagators in the ranking receive successive priority levels. With more than seven propagators, the ranking must be compressed, so each propagator starts in its own group. This keeps the overall ranking while letting propagators with similar predicted preferences share a level.

The priorities are set before search begins and stay fixed for the whole run, so Choco's event handling, propagation and search code is left as it is.

Dataset and difficulty split

The authors started from 21,631 XCSP3 instances and kept 3,941 of them for their experiments. They kept only instances whose solving time under a single run with randomized propagator priorities fell between 5 seconds and 20 minutes. The filter removes instances that are too easy, where measurement noise dominates runtime, and instances that are too hard, where every measured run would time out.

Because the filter relies on one randomized run, inclusion can depend on the sampled priority assignment, a limitation the authors return to in Section 6. They preferred this filter because it isn't biased toward the default Choco ordering or any other ordering. The selected instances span 99 problem classes, derived from instance names.

Each instance received a maximum of 20 runs with different randomized propagator priorities, under a 20 minute timeout. The cap keeps data collection affordable while still sampling several alternative priority assignments per instance. Instances with n≤3 propagators used only the number of distinct orderings available to them. Each run stored the present propagators and their priority levels, out of seven, with lower values meaning higher priority.

In total, the measurements produced 62,994 runs over 62 distinct propagators.

The split is performed separately within each problem class, so every class contributes to training, validation and testing. Within each class, the authors order instances by the fraction of timed-out randomized orderings, then by median solver runtime. The easiest 70% of each class go to training, the next 15% to validation, and the hardest 15% to testing.

Classes with fewer than seven instances go entirely to the test set. This yields 2,672 training instances, 571 validation instances and 698 test instances. Each instance is described by 77 static features covering constraint, domain, global constraint, objective, goal and variable statistics.

The split deliberately shifts difficulty from training to testing, so the test results measure generalization toward harder instances. The authors argue this regime matters because scheduling improvements have the largest consequences on difficult instances. Figure 2 shows the distribution of instances by median solver runtime, with 39.20% below 10s and 2.59% at timeout.

Over one quarter of the dataset has a median runtime above one minute, and 102 instances have a median runtime equal to timeout.

Test results against default priorities

The learned threshold pair-mining model solved 654 of 698 hard test instances, compared to 634 for Choco's default priorities. Median solver runtime fell by 27.93%, from 167.88s under the default priorities to 120.99s under the learned model. Aggregate PAR1 solver runtime fell by 12.65%, from 235,260s to 205,510s. The test set is the hardest 15% of each problem class, so these comparisons describe the hard end of the collection.

Solver runtime counts only the time Choco spends solving, while walltime covers the whole execution. For the learned model, walltime also includes collecting propagators, extracting instance features, running inference and assigning priorities. Even with that overhead, median walltime still fell by 14.98%, from 168.37s to 143.14s. The gap widens under PAR2 and PAR10, which weight timeouts more heavily.

Aggregate solver runtime falls by 17.22% under PAR2 and by 26.53% under PAR10, so the authors tie the larger gains to the model solving more instances.

Where the gains appear across runtime bands and problem classes

Grouping test instances by Choco's default runtime shows that the learned ordering doesn't help every difficulty range. For instances the default solves in under 10 seconds, median solver runtime rises from 6.11s to 6.63s. For instances solved by the default in under one minute, the predicted priorities provide little benefit and can increase solver runtime.

The benefit grows on harder instances, where the 5 to 20 minute group falls from a median of 566.09s to 447.09s. The strongest effect appears on the 64 instances where the default ordering timed out. There, the learned ordering solves 38 of them, while the default solves none.

The model's own cost explains part of the loss on easy instances. This overhead matters most for easy instances, because the potential runtime reduction there is small.

Across problem classes the effect is uneven, so the authors group test instances by class name. Crossword shows the largest improvement, with 46 instances solved under the model against 38 under the default. In Table 3, PAR1 diff is the default's aggregate solver runtime minus the learned ordering's, so a negative value means the learned ordering was slower.

TravellingSalesman, SchurrLemma and Fischer show regressions, which suggests the usefulness depends strongly on the problem class.

Classes with fewer than seven test instances give mixed results. The model solves one additional instance there and reduces aggregate PAR1 walltime by 2.1%. Its median walltime is higher, at 16.08s compared to 10.86s for the default. The authors suggest that adaptive propagators, whose behavior depends on the earlier search trajectory, may explain the class-dependent benefit.

They didn't test this explanation, leaving a detailed analysis for future work.

Choosing per class with a validation gate

The gate works class by class, comparing the learned and default priorities on the validation instances of each class. For each class it compares aggregate PAR1 walltimes and solved counts, named A_model(c) and A_default(c) and N_model(c) and N_default(c). The learned model is selected for a class only when its aggregate PAR1 walltime is lower and its solved count is at least as high.

Otherwise Choco's default priorities are used, so the gate can keep the learned model away from classes where it is unlikely to help. Classes missing from the validation set fall back to the learned model.

On the test set, the gated policy solves 657 instances, compared with 654 for the ungated threshold model. Aggregate PAR1 walltime drops by 2.86 percent, from 210,410s to 204,399s. Median solver runtime gets slightly worse, moving from 120.99s to 127.83s. The authors explain the walltime gain as avoided model overhead on classes assigned to the default ordering.

Across the gated comparison, the gate improves most metrics, but not every one. The PAR1 solver runtime changes by 1.10 percent, and the PAR10 walltime changes by 5.60 percent. The authors read these results as support for problem-class dependence of the learned ordering. They suggest that adaptive propagators, whose behavior depends on the previous solving trajectory, may explain why some classes benefit more.

They leave a detailed analysis of this effect for future work.

The next section compares alternative pair-mining strategies against the threshold variant used here. Those strategies, weighted, top-K/bottom-K and all-pairs, keep pairs by different rules.

Pair-mining variants

The authors compared four ways of choosing which measured ordering pairs train the model. Threshold mining keeps only pairs whose relative runtime difference reaches a selected threshold. Weighted mining keeps pairs probabilistically, favouring larger differences while a floor hyperparameter sets a minimum keep probability. Top-K/bottom-K mining builds pairs only between the K fastest and K slowest orderings, with K set as a model hyperparameter.

All-pairs mining skips selection and keeps every pair with unequal effective runtime.

Threshold mining solved 654 of 698 test instances, the most of the four variants. Weighted mining solved 650, top-K/bottom-K solved 647 and all-pairs solved 648. Top-K/bottom-K gave slightly lower aggregate and median times, with 210,377s aggregate walltime and 137.20s median walltime against 210,410s and 143.14s for threshold mining. The authors read these results as similar, so performance is fairly insensitive to the exact pair-mining rule.

They also argue that dropping small-difference pairs isn't essential, since all-pairs solved 648 instances.

The authors keep threshold mining as the central model because robustness on difficult instances is their main goal. This choice ties to the solved count, which is the metric that matters most on hard instances.

Limitations of the evidence

The evidence is bounded first by how the instances were selected for the study. Filtering keeps instances with solving time between 5 seconds and 20 minutes under a single randomized-priority run. Because that run is one sampled priority assignment, inclusion in the subset can depend on which assignment was drawn. The authors argue the filter is not biased towards the default Choco ordering, since it does not favour any ordering.

Each instance received a maximum of 20 runs, so the fastest measured ordering need not be the optimal one.

The model is also bounded by its vocabulary of propagators. It operates over the propagators observed during training, so evaluation instances must contain only propagators from that vocabulary. The authors note that representations able to generalize to previously unseen propagators would be needed to lift this restriction. The method also needs supervision from measured runtimes, since direct supervision for individual propagator scores is unavailable.

The class-dependent benefit has a plausible explanation that the study does not test. Adaptive propagators can depend on the previous solving trajectory, so reordering them may change later search state more strongly. The authors leave a detailed analysis of this effect for future work. Gating could perhaps be learned from instance characteristics instead of predefined problem-class labels, which the authors also leave open.

Per-class results for the smallest classes are mixed, with the median walltime at 16.08s versus 10.86s for the default ordering.

Many problem classes contribute only a handful of test instances, so their per-class differences rest on small counts. For example, the qwh class has 5 test instances, and the default ordering solved none of them. The pair-mining comparison also differs by only a few instances across variants, which limits how much it separates them.

Paper info

Authors
Matija Lojović, Mladen Nikolić
Venue
arXiv · Preprint
First published
2026-11-8
Added
2026-11-10
Updated
2026-11-8
Version
v1
arXiv
2611.11447
Category
cs.LG · cs.AI
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

The order in which propagators are executed can substantially affect the performance of constraint programming solvers, yet propagator priorities are typically determined by fixed, manually designed heuristics. In this work, we explore learning instance-dependent propagator priorities from static problem features. We formulate the task as a learning-to-rank problem, addressing the challenge that the quality of a priority assignment can be measured through solver runtime, while the desired priorities of individual propagators are not directly observable. A self-attention-based model jointly scores the propagators present in an instance and is trained using pairwise preferences derived from solver runtimes measured under randomized propagator priority assignments, with a Plackett-Luce-based ranking objective. Predicted rankings are mapped to the discrete priority levels of the Choco solver before search begins, without modifying its propagation or search procedures. We evaluate the approach on XCSP3 instances and demonstrate that propagator ordering can have a substantial impact on solving time. On a test set of 698 instances, picked out as most difficult by problem class, the learned priorities increase the number of solved instances from 634 to 654, reduce median solver runtime by 27.93%, and reduce aggregate penalized runtime (PAR1) by 12.65% compared with Choco's default priorities. We further observe that improvements vary across problem classes and show that a simple policy selecting between learned and default priorities further increases the number of solved instances. These results demonstrate the potential of learning instance-dependent propagator priorities to improve constraint programming performance, particularly on difficult instances.

Quote from the paper

Matija Lojović, Mladen Nikolić (2026). Learning to Rank Propagators in Constraint Programming. arXiv:2611.11447v1. https://arxiv.org/abs/2611.11447v1

BibTeX
@misc{lojovi2026learning,
  title = {{Learning to Rank Propagators in Constraint Programming}},
  author = {Matija Lojović and Mladen Nikolić},
  year = {2026},
  eprint = {2611.11447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11447v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up