Organizations: College of Computer Science, Sichuan University · Department of Industrial Engineering&Innovation Sciences, Eindhoven University of Technology · Institute of Marine Science and Technology, Shandong University · School of Cybersecurity, Chengdu University of Information Technology
Large language models (LLMs) have provided a unified interface for end-to-end combinatorial optimization (CO), but textual serialization alone may obscure spatial and relational structures that are important for generating effective CO solutions. This paper presents a general-purpose vision-language solver that augments textual instance descriptions with input-derived visual representations. A single vision-language model (VLM) is applied across different CO tasks and trained using supervised fine-tuning followed by verifier-guided reinforcement learning. While the visual inputs contain no gold solutions or solution-derived information, our experiments show that the VLM generally improves solution quality over its text-only counterpart, with particularly clear gains on more complex CO problems such as CVRP and JSSP. The advantage of visual information is more pronounced at large problem scales.
Figures & tables
Figure 1 : Overview of the proposed vision-language CO solver.
Figure 2 : Visual Representation of CVRP (left) and MIS (right).
Method
TSP
OP
CVRP
MIS
MVC
PFSP
JSSP
Time
Feas.
Gap
Feas.
Gap
Feas.
Gap
Feas.
Gap
Feas.
Gap
Feas.
Gap
Feas.
Gap
General-purpose Language Models
GPT-4o
39%
33.79% ±16.6
59%
55.19% ±15.7
15%
76.62% ±7.9
8%
11.70% ±11.8
6%
16.67% ±7.0
88%
20.57% ±9.2
7%
97.85% ±23.7
5.3s
Claude-Sonnet
66%
24.53% ±10.7
49%
34.62% ±14.1
30%
38.34% ±15.9
13%
12.51% ±12.5
2%
6.25% ±6.3
100%
18.42% ±8.9
10%
90.00% ±21.6
5.4s
DeepSeek-V3
73%
35.75% ±15.4
50%
46.10% ±13.4
21%
58.22% ±26.8
5%
12.05% ±12.9
15%
37.15% ±24.8
58%
20.81% ±9.4
52%
103.19% ±26.9
26.4s
Llama3.3-70B
50%
69.08% ±31.4
27%
48.98% ±14.6
31%
97.31% ±69.3
8%
37.12% ±29.5
20%
22.86% ±13.6
98%
21.97% ±8.4
29%
105.01% ±24.5
2.1s
Table 1 : Evaluation of feasibility (Feas. ↑ ), relative gap (Gap ↓ ), and average time for different methods on the seven CO problems.
TSP
Method
Small instances
Medium instances
Large instances
Gap
Gap@1
Gap@5
Gap@10
Gap
Gap@1
Gap@5
Gap@10
Gap
Gap@1
Gap@5
Gap@10
OR-Tools
0.82%
76%
96%
99%
2.59%
28%
86%
99%
3.59%
12%
80%
99%
ACO
1.98%
48%
88%
100%
17.98%
0%
1%
6%
36.69%
0%
0%
0%
LLM
0.14 %
96%
100%
100%
0.70%
74%
100%
100%
1.34%
44%
100%
100%
Ours
0.20%
95%
100%
100%
0.65%
81%
100%
100%
1.21%
55%
100%
100%
OP
Tsili
3.85%
21%
68%
96%
9.54%
0%
2%
55%
13.80%
0%
0%
8%
Table 2 : Performance comparison across CO problems with different instance scales.
Large Language Models (LLMs) struggle to solve complex combinatorial problems through direct reasoning, so recent neuro-symbolic systems increasingly use them to synthesize executable solvers. A central design question is how the LLM should represent the solver, and whether it should also attempt to optimize search. We introduce CP-SynC-XL, a benchmark of 100 combinatorial problems (4,577 instances), and evaluate three solver-construction paradigms: native algorithmic search (Python), constraint modeling through a Python solver API (Python + OR-Tools), and declarative constraint modeling (MiniZinc + OR-Tools). We find a consistent representational divergence: Python + OR-Tools attains the highest correctness across LLMs, while MiniZinc + OR-Tools has lower absolute coverage despite using the same OR-Tools back-end. Native Python is the most likely to return a schema-valid solution that fails verification, whereas solver-backed paths preserve higher conditional fidelity. On the heuristic axis, prompting for search optimization yields only small median speed-ups (1.03-1.12x) and a strongly bimodal effect: many instances slow down, and correctness drops sharply on a long tail of problems. A paired code-level audit traces these regressions to a recurring heuristic trap. Under an efficiency-oriented prompt, the LLM may replace complete search with local approximations (Python), inject unverified bounds (Python + OR-Tools), or add redundant declarative machinery that overwhelms or over-constrains the model (MiniZinc + OR-Tools). These findings support a conservative design principle for LLM-generated combinatorial solvers: use the LLM primarily to formalize variables, constraints, and objectives for verified solvers, and separately check any LLM-authored search optimization before use.
Haoyu Wang, Yuliang Song, Tao Li +5
University of Pennsylvania · University of Toronto · Google DeepMind +1
Large language models (LLMs) can generate executable solver code from natural-language descriptions of optimization problems. However, existing verification signals focus on whether the generated formulation produces the correct objective value. Such signals can overlook constraint-level errors: incorrect formulations may still produce the same optimum when extra or missing constraints do not affect the tested instance. We propose constraint injection, a verification method that directly tests whether the generated code implements the intended constraints. We use feasible solutions to detect incorrectly added constraints and one-constraint-violating solutions to detect omissions. Together with the optimal value check, these tests verify both the objective and the constraint set. We evaluate this approach on vehicle routing problems (VRPs), which provide a challenging testbed with diverse, tightly coupled operational constraints. We develop VRPCoder, an 8B model for generating Gurobi code from natural-language VRP descriptions, and VRPBench, an expert-verified benchmark spanning 21 VRP variants across four subsets. The verifier serves as a rejection-sampling criterion for synthetic data construction and as a rollout-level reward for reinforcement learning (RL). On VRPBench, VRPCoder-RL reaches 93% overall Pass@1, outperforms Gemini-3.1-Pro Preview on three subsets, exceeds Claude-Sonnet-4.5 by 28 percentage points, and exceeds the strongest prior OR-LLM by 78 percentage points.
Xizi Luo, Changhong He, Dongdong Geng +2
Beihang University, Beijing, China · Baidu Inc., Beijing, China
Large language models (LLMs) typically approach combinatorial optimization as an inference-time procedure, solving each instance separately through sampling, search, or repeated prompting. We ask whether reinforcement learning can instead shift part of this reasoning cost into the weights of a code LLM, so that the model synthesizes a reusable solver for an entire problem family. We study this question on Synergistic Dependency Selection (SDS), a controlled variant of constrained Quadratic Knapsack designed to expose a specific failure mode: local signals and strict feasibility constraints make greedy heuristics attractive but unreliable. Under identical scaffolding, Best-of-64 base-model sampling saturates at an approximately 28.7% gap to the global Virtual Best Solver (VBS); code audits show that the base model often retrieves Simulated Annealing templates but misimplements the Metropolis acceptance rule. We fine-tune Qwen2.5-Coder-14B-Instruct with Group Relative Policy Optimization (GRPO) using a feasibility-gated reward and light structural scaffolding. The resulting policy converges to a constraint-aware Simulated Annealing template in 99.8% of feasible SDS outputs, achieves a 5.0% gap to that VBS, and is 91 times cheaper in post-generation execution/search cost than cumulative Best-of-64 evaluation. A compile-once check shows that one best frozen solver per seed remains highly competitive when reused unchanged across the SDS test set, while an additional-domain evaluation on Job Shop Scheduling provides narrower but positive evidence that the scaffold transfers beyond SDS. Negative ablations reveal the limits of this recipe: standard stabilizers degrade performance, a soft feasibility gate fails, and results remain sensitive to reward normalization and domain-specific design choices.
Soheyl Massoudi, Gabriel Apaza, Milad Habibi +1
ETH Zürich Zürich, Switzerland · University of Maryland College Park, MD, USA