Papers › Towards a Generic Representation of Combinatorial Problems for Learning-Based Approaches

Towards a Generic Representation of Combinatorial Problems for Learning-Based Approaches

9 Mar 2024arXiv:2403.06026archive 2025-07-28

Léo Boisvert, Hélène Verhaeghe, Quentin Cappart

In recent years, there has been a growing interest in using learning-based approaches for solving combinatorial problems, either in an end-to-end manner or in conjunction with traditional optimization algorithms. In both scenarios, the challenge lies in encoding the targeted combinatorial problems into a structure compatible with the learning algorithm. Many existing works have proposed problem-specific representations, often in the form of a graph, to leverage the advantages of \textit{graph neural networks}. However, these approaches lack generality, as the representation cannot be easily transferred from one combinatorial problem to another one. While some attempts have been made to bridge this gap, they still offer a partial generality only. In response to this challenge, this paper advocates for progress toward a fully generic representation of combinatorial problems for learning-based approaches. The approach we propose involves constructing a graph by breaking down any constraint of a combinatorial problem into an abstract syntax tree and expressing relationships (e.g., a variable involved in a constraint) through the edges. Furthermore, we introduce a graph neural network architecture capable of efficiently learning from this representation. The tool provided operates on combinatorial problems expressed in the XCSP3 format, handling all the constraints available in the 2023 mini-track competition. Experimental results on four combinatorial problems demonstrate that our architecture achieves performance comparable to dedicated architectures while maintaining generality. Our code and trained models are publicly available at \url{https://github.com/corail-research/learning-generic-csp}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.06026")

Code

Syntology Ran 11 of 16 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

corail-research/learning-generic-csp officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 11 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
5unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from corail-research/learning-generic-csp. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_variable corail-research/learning-generic-csp/src/generic_xcsp/variable_parsing.py official repository ran no licence file found · pointer only · f23e1348c626e075 · report
files_exist corail-research/learning-generic-csp/src/generic_xcsp/dataset.py official repository ran no licence file found · pointer only · a2bed3dc1c938772 · report
parse_coeffs corail-research/learning-generic-csp/src/generic_xcsp/sum_constraint.py official repository ran no licence file found · pointer only · ca6cea5d83ca57b3 · report
parse_constraint_section corail-research/learning-generic-csp/src/generic_xcsp/constraints.py official repository ran no licence file found · pointer only · 4be7c7d106563d39 · report
parse_element_constraint corail-research/learning-generic-csp/src/generic_xcsp/element.py official repository ran no licence file found · pointer only · 22c6fdfffbb766bb · report
parse_element_group corail-research/learning-generic-csp/src/generic_xcsp/element.py official repository ran no licence file found · pointer only · 8bcd60e69af0841c · report
parse_extension_constraint corail-research/learning-generic-csp/src/generic_xcsp/constraints.py official repository ran no licence file found · pointer only · c27ab8b44cf6f1df · report
parse_intension_constraint corail-research/learning-generic-csp/src/generic_xcsp/intension_utils.py official repository ran no licence file found · pointer only · 42d25a67e0abe887 · report
parse_intension_group corail-research/learning-generic-csp/src/generic_xcsp/intension_utils.py official repository ran no licence file found · pointer only · 2a9312d517946c1c · report
parse_objective_type corail-research/learning-generic-csp/src/generic_xcsp/instance.py official repository ran no licence file found · pointer only · 9137e841d497d264 · report
replace_placeholders corail-research/learning-generic-csp/src/generic_xcsp/intension_utils.py official repository ran fingerprinted no licence file found · pointer only · 8989174eed170106 · report
parse_all_variables corail-research/learning-generic-csp/src/generic_xcsp/variable_parsing.py official repository unverified no licence file found · pointer only · 15665d7c69101847 · report
parse_array_variables corail-research/learning-generic-csp/src/generic_xcsp/variable_parsing.py official repository unverified no licence file found · pointer only · a1baabf907df2579 · report
parse_group corail-research/learning-generic-csp/src/generic_xcsp/constraints.py official repository unverified no licence file found · pointer only · dcb15033262fe468 · report
parse_sum corail-research/learning-generic-csp/src/generic_xcsp/sum_constraint.py official repository unverified no licence file found · pointer only · 1bb8828ef0b858d9 · report
parse_sum_group corail-research/learning-generic-csp/src/generic_xcsp/sum_constraint.py official repository unverified no licence file found · pointer only · fef8b5c5f2f924f0 · report

Tasks

Graph Neural Network

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Graph Neural Network

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections