# Learning to Rank Propagators in Constraint Programming

제약 프로그래밍에서 전파기 순위를 학습하기

Matija Lojović, Mladen Nikolić · arXiv · 2026년 11월 8일

- **연구 문제** Choco 솔버에서 전파자 실행 우선순위를 고정된 수작업 규칙 대신 정적 인스턴스 특징으로부터 학습할 수 있는지 검토합니다.
- **연구 방법** 전파자 점수를 자기주의 모델로 예측하고 Plackett–Luce 기반 margin loss로 실행 시간 선호를 학습한 뒤, 정렬된 순위를 Choco의 7개 우선순위 수준에 매핑합니다.
- **주요 결과** 698개 테스트 인스턴스에서 해결 수는 634개에서 654개로 늘었고 PAR1 솔버 실행 시간은 12.65% 줄었습니다. 효과는 문제 클래스와 난이도에 따라 달라졌습니다.

## 전파자 실행 순서 문제

제약 프로그래밍(CP) 솔버는 제약 전파로 변수 도메인을 줄이고 탐색을 수행합니다. 이때 여러 전파자가 큐에 동시에 대기하면 어느 전파자를 먼저 실행할지가 해결 시간에 영향을 줍니다. 저렴한 전파자를 먼저 실행하면 비용이 적지만, 비싼 전파자가 더 강한 가지치기로 이후 전파와 탐색을 줄일 수 있으므로 실행 순서의 효과는 단순한 비용 순서로 정해지지 않습니다. 대부분의 솔버는 우선순위 기반 스케줄링을 쓰지만, 이 우선순위는 대개 고정되거나 사람이 설계한 값이며 개별 인스턴스의 구조에 맞춰 조정되지 않습니다. 이 논문은 정적 인스턴스 특징으로부터 인스턴스 의존적인 전파자 우선순위를 예측하는 문제를 다룹니다.

문제의 핵심은 솔버 실행 시간은 측정할 수 있지만 개별 전파자에게 맞는 우선순위의 직접적인 정답은 관측되지 않는다는 점입니다.

## 순위 학습 방식과 우선순위 매핑

이 연구는 전파자 우선순위 예측을 learning to rank 문제로 정식화합니다. 각 학습 인스턴스를 Choco에서 여러 번 무작위 우선순위 할당으로 실행해 실행 시간을 기록하고, 같은 인스턴스 안의 두 실행을 비교해 더 빠른 순서를 선호하는 쌍을 만듭니다. 모델은 자기주의 블록을 사용해 인스턴스에 포함된 전파자 집합에 점수를 부여합니다. 전파자 임베딩과 정적 특징 표현을 결합한 뒤 자기주의로 다른 전파자 정보를 반영하고, 점수는 오름차순으로 정렬되며 낮은 점수가 먼저 실행되는 방향으로 해석됩니다. 점수 순위는 Choco의 7개 우선순위 수준에 매핑되며, 전파자가 7개를 넘으면 인접 그룹 중 점수 간격이 가장 작은 쌍을 병합합니다.

이 매핑은 탐색 전에 한 번 적용되고 실행 중에는 고정됩니다.

학습 목적은 완전한 순서의 Plackett–Luce 로그 가능도에 margin loss를 적용하는 것입니다. 빠른 순서의 가능도가 느린 순서보다 여유 γ 이상 높도록 벌점을 주며, 쌍의 가중치는 상대 실행 시간 차이의 로그에 따릅니다. 보고된 주 모델에서는 상대 차이가 임계값 이상인 쌍만 사용합니다.

## 테스트 집합에서의 주 모델 결과

주 모델은 가장 어려운 15%로 구성된 698개 테스트 인스턴스에서 Choco 기본 우선순위와 비교되었습니다. 해결 인스턴스 수는 기본 우선순위의 634개에서 654개로 늘었고, 중앙값 솔버 실행 시간은 27.93% 줄었으며 PAR1 집계 솔버 실행 시간은 12.65% 줄었습니다. PAR2와 PAR10에서도 개선이 보고되었는데, 이는 시간 초과 실행에 더 큰 벌점을 주는 지표이므로 해결 수 증가의 영향이 더 크게 반영된 결과로 해석됩니다. 중앙값 walltime은 14.98% 줄었지만 walltime에는 전파자 수집과 특징 추출, 추론 오버헤드가 포함됩니다. 이 결과는 특정 필터링과 시간 제한 20분, 최대 20개 무작위 실행이라는 조건에서 얻은 것입니다.

## 기본 실행 시간 구간별 성능

결과는 테스트 인스턴스를 기본 우선순위의 솔버 실행 시간으로 나눈 구간에서 다르게 나타납니다. 기본 순서로 1분 이내에 풀리던 쉬운 인스턴스에서는 학습 모델이 실행 시간을 줄이지 못했고 일부 구간에서는 늘렸습니다. 저자들은 이 차이에 평균 1.72초 규모의 추론 오버헤드가 관여한다고 해석합니다. 기본 순서로 5분에서 20분 사이에 풀리던 인스턴스에서는 중앙값 솔버 실행 시간이 566.09초에서 447.09초로 줄었습니다. 기본 순서가 시간 초과한 64개 인스턴스에서는 학습 순서가 38개를 해결했습니다. 이는 어려운 인스턴스에서 우선순위 예측이 유용할 수 있다는 관찰이지만, 모든 어려운 인스턴스에 대한 보편 결론으로 확장하지는 않습니다.

## 검증 기반 게이트 정책

문제 클래스별 차이를 고려해 검증 집합에서 클래스마다 학습 모델과 기본 우선순위의 PAR1 walltime 및 해결 수를 비교하는 게이트 정책을 평가했습니다. 학습 모델의 PAR1 walltime이 더 낮고 해결 수가 더 많거나 같은 클래스에는 학습 모델을 선택하며, 그렇지 않으면 기본 우선순위를 씁니다. 검증 집합에 없던 클래스는 학습 모델로 대체됩니다. 이 정책은 테스트 해결 수를 657개로 늘려 주 모델보다 3개 더 많이 풀었고 PAR1 walltime을 2.86% 줄였습니다. 그러나 중앙값 솔버 실행 시간은 주 모델보다 나빠졌습니다(-5.66%). 저자들은 walltime 감소가 기본 순서를 쓰는 클래스에서 모델 오버헤드를 피한 데서 온다고 설명합니다.

## 데이터 필터링과 어휘 제약

이 방법에는 몇 가지 적용 범위 제한이 있습니다. 실험 부분집합은 하나의 무작위 우선순위 실행으로 필터링되었으므로, 포함 여부 자체가 샘플링된 우선순위 할당에 의존할 수 있습니다. 또한 학습 모델은 학습 중 관측된 전파자 어휘 안의 전파자만 평가할 수 있으며, 새로운 전파자에 대한 일반화는 이 논문에서 다루지 않았습니다. 클래스별 차이가 크다는 점도 정책 선택의 필요성을 보여 주지만, 정책 자체는 검증 집합의 클래스 정보에 의존합니다. 따라서 결과는 XCSP3 인스턴스와 Choco 솔버, 설명된 측정 조건에서 해석해야 합니다.

## 논문 정보

- **저자**: Matija Lojović, Mladen Nikolić
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 8일
- **등록일**: 2026년 11월 10일
- **수정일**: 2026년 11월 8일
- **버전**: v1
- **arXiv**: 2611.11447
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.11447v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.11447v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

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}
}
```

## 이 논문의 용어

- [Self-attention](https://refivu.com/terms/426589b81077-self-attention)
- [margin loss](https://refivu.com/terms/08de464716e2-margin-loss)

## 다른 논문 해설

- [Spectral Bias Reduction in Local Gated ReLU Architectures](https://refivu.com/papers/14053dfd-730a-4213-9a76-d0fbdc864e12-spectral-bias-reduction-in-local-gated-relu-architectures.md)
- [Pixels over Symbols: Sensory Realism Improves Behavioral Alignment in Models of Cognition](https://refivu.com/papers/f163388c-619b-4473-b0c2-357e1b91ea25-pixels-over-symbols-sensory-realism-improves-behavioral.md)
- [Guiding future global temperature distributions with simulations and observations](https://refivu.com/papers/0f0e0eec-05c1-4800-8206-66b04e61e097-guiding-future-global-temperature-distributions-with.md)
- [How Short Is Too Short? Length-Conditional Calibration and Abstention for Detecting AI-Generated Text](https://refivu.com/papers/8b255657-6543-4f68-a396-c51596a73ede-how-short-is-too-short-length-conditional-calibration.md)
- [Beyond the Mean Gap: What Transferred-Angle QAOA Retains on a Superconducting Processor](https://refivu.com/papers/8f033d4e-6221-47eb-ba57-a9271b2927e9-beyond-the-mean-gap-what-transferred-angle-qaoa.md)
- [No Second Run: Does RSI Stop at Frontier Pre-training?](https://refivu.com/papers/dba88920-bad4-4d52-b341-5c70637671ef-no-second-run-does-rsi-stop-at-frontier.md)
- [How to "train" a surgeon? Benchmarking generalist agents in surgical scene understanding](https://refivu.com/papers/c14fcb0f-7658-4cdb-aab2-a512b0b5e61c-how-to-train-a-surgeon-benchmarking-generalist-agents.md)
- [Matchability-Aware Conformal Prediction for Open-Ended Language Model Generation](https://refivu.com/papers/230dfc6e-2929-4e1d-8260-c6e191fb4331-matchability-aware-conformal-prediction-for-open-ended.md)
- [Locating and Repairing Domain Shift in VLM Trajectory Planning](https://refivu.com/papers/b4cf2384-2217-433a-9675-c0676f9fb38d-locating-and-repairing-domain-shift-in-vlm-trajectory.md)
- [AbductionBench: Benchmarking Abductive Reasoning in Large Language Models](https://refivu.com/papers/5447aa31-8498-47e7-ac8b-ac02bc06c0bc-abductionbench-benchmarking-abductive-reasoning-in-large.md)
- [Machine Hearing: Can Audio LLMs Generalize Beyond Human Auditory Perception?](https://refivu.com/papers/0cabc2f0-42fb-4be8-9cca-d705df6b4273-machine-hearing-can-audio-llms-generalize-beyond-human.md)
- [On the Geometric Bottlenecks of Cross-Lingual Knowledge Editing](https://refivu.com/papers/61270a9a-c45d-4170-8199-14152ca3ec72-on-the-geometric-bottlenecks-of-cross-lingual-knowledge.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/c113b866-d02f-420e-897f-5b5ecb0f1080-learning-to-rank-propagators-in-constraint-programming)
