cs.AIAug 17, 2026

Synthesizing Feature Extractors: An Agentic Approach for Algorithm Selection

Authors: Hai Xia, Carlos Ansótegui, Stefan Szeider

Organizations: Algorithms and Complexity Group, TU Wien, Vienna, Austria · Logic & Optimization Group, University of Lleida, Lleida, Spain

Abstract

Algorithm selection for constraint satisfaction problems requires extracting features that capture problem structure. Manually designing feature extractors demands deep domain expertise and quickly becomes a bottleneck when new problem classes appear. We present an automated approach that uses Large Language Models (LLMs) in an agentic check--fix--verify loop to synthesize executable Python scripts that act as interpretable, problem-specific feature extractors. Given a high-level MiniZinc model and an instance, the LLM agent generates code that constructs a typed graph representation and computes structural properties such as graph density, variable clustering, and constraint tightness. We evaluate our approach on three combinatorial problems (vehicle routing, car sequencing, fixed-length error-correcting codes) with a portfolio of five state-of-the-art solvers. The synthesized extractors yield algorithm selectors that consistently outperform both expert-curated mzn2feat features (up to 8.38.3 percentage points (pp) test-set accuracy on FLECC) and the best transformer-based trans2feat variants. In the meanwhile, the synthesized feature extractors remain inspectable.

Figures & tables

Appendix figures & tables17 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Using Weisfeiler-Leman Features for Algorithm Selection in Constraint Optimisation

    Oct 8, 2026Alessio Pellegrino, Jacopo MauroAlgorithm SelectionConstraint Programming

  2. Formalize, Don't Optimize: The Heuristic Trap in LLM-Generated Combinatorial Solvers

    May 12, 2026Haoyu Wang, Yuliang Song, Tao Li +5Large Language Model-Guided OptimizationLLM-Based Program Synthesis

  3. LLM-Guided Graph Generation for Structure-Based Local Improvement Methods

    Aug 13, 2026Hai Xia, Vaidyanathan Peruvemba Ramaswamy, Stefan SzeiderAutomated Heuristic DesignMetaheuristic Optimization