arXiv:2610.12119cs.LGOct 2026

Manuscript Offprint

arXiv:2610.12119

Using Weisfeiler-Leman Features for Algorithm Selection in Constraint Optimisation

Alessio Pellegrino, Jacopo Mauro

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Algorithm Selection is essential for efficient Constraint Programming. Over the years, many algorithm selectors based on machine learning methods have been successfully applied, yet traditional feature extraction methods often rely on manually decided instance-level statistics that fail to capture the underlying problem structure.

In this paper we aim to bridge this gap by introducing a novel, automated feature extraction methodology that integrates graph conversion and Weisfeiler-Lehman graph kernels to generate robust structural representations of problem instances. The 1-WL test bounds the graph-distinguishing power of standard message-passing Graph Neural Networks (GNNs), and suitable GNN architectures match this bound [Xu et al., 2018]. WL-based features offer an alternative that does not require training a GNN. Our primary contribution is a cut-based representation (WLc) designed to model structural partitions and provide a more nuanced predictive signal. We evaluate our approach on instances from the 2023–2025 MiniZinc Challenges across two tasks: maximizing Borda count scores and maximizing predictive accuracy. Experimental results across Support Vector Machines, Random Forests, and Multi-Layer Perceptrons demonstrate that cut-based features outperform fzn2feat with SVMs, while results with RFs and MLPs are closer.

1 Introduction

Algorithm Selection, the process of selecting the most appropriate algorithm from a portfolio for a given problem instance, is a critical component in the efficient execution of Constraint Programming models, as solver performance varies significantly across different problem instances. Traditional feature extraction methodologies, such as fzn2feat, primarily rely on instance-level statistics that may fail to capture the underlying latent structure or the complex interconnections between variables. While graph-based representations are designed to capture these structural nuances, they are typically coupled with deep neural networks that require substantial computational overhead. This creates a representational gap: non-neural machine learning techniques remain largely “structure-blind,” while structure-aware models are often too expensive for practical deployment.

This paper proposes a novel methodology to bridge this gap by implementing a graph conversion algorithm compatible with both classical and deep machine learning paradigms. Our approach utilizes Weisfeiler-Lehman graph kernels to generate robust representations of problem instances [Morris et al., 2023]. The primary innovation is the introduction of a cut-based representation, which explicitly models structural partitions to provide a more nuanced predictive signal than standard graph features.

To evaluate the efficacy of these features, we constructed two distinct algorithm selection tasks using instances from the 2023, 2024, and 2025 MiniZinc Challenges. 1^{1} Experimental results across Support Vector Machines, Random Forests, and Multi-Layer Perceptrons demonstrate that our cut-based features outperform fzn2feat on both tasks when paired with SVMs. Comparisons with RFs and MLPs show smaller differences, with fzn2feat achieving slightly better results in several RF configurations. Our work effectively demonstrates that graph-based structural information can be leveraged to enhance traditional machine learning architectures, ensuring performance gains that are robust across diverse algorithmic structures.

References (33)