atlas

Research map / Large language models / Agents, code and math

Large Language Models as End-to-end Combinatorial Optimization Solvers

NeurIPS 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Fine-tunes a 7B Qwen2.5 with SFT on solver-generated solutions and then FOARL (GRPO-based feasibility- and optimality-aware RL) plus best-of-N inference to act as an end-to-end LLM solver for seven NP-hard combinatorial optimization problems.

Problem

LLMs struggle to map natural-language-described NP-hard combinatorial optimization problems directly to feasible, high-quality solutions; prior approaches rely on code generation or solver calls, and SFT alone yields constraint-violating over-greedy outputs.

Approach

Treat CO solving as language generation: SFT on textual (instruction, heuristic-feature input, solver solution) pairs, then GRPO-based RL with rule-based feasibility rewards plus an optimality reward to correct constraint violations, and best-of-N sampling at inference.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add FOARL after SFT (ablation)Qwen2.5-7B CO solver · OPfeasibility rate: 54% -> 92%Helped
add FOARL after SFT (ablation)Qwen2.5-7B CO solver · CVRPfeasibility rate: 59% -> 80%Helped
add FOARL after SFT (ablation)Qwen2.5-7B CO solver · OPoptimality gap: 2.32%$_{\pm2.6}$ -> 4.25%$_{\pm2.9}$Hurt
add FOARL after SFT (ablation)Qwen2.5-7B CO solver · TSPoptimality gap: 2.30%$_{\pm1.9}$ -> 2.32%$_{\pm2.2}$No clear effect
add Best-of-N inference (ablation)SFT+RL Qwen2.5-7B CO solver · TSPfeasibility rate: 91% -> 100%Helped
add Best-of-N inference (ablation)SFT+RL Qwen2.5-7B CO solver · OPfeasibility rate: 92% -> 100%Helped
add Best-of-N inference (ablation)SFT+RL Qwen2.5-7B CO solver · CVRPfeasibility rate: 80% -> 100%Helped
increase BoN sample count from N=8 to N=64 (ablation)SFT+RL JSSP solver · Taillard 15x15optimality gap: 14.22% -> 11.34%Helped
increase BoN sample count from N=8 to N=64 (ablation)SFT+RL JSSP solver · Taillard 20x15optimality gap: 21.16% -> 17.26%Helped
increase BoN sample count from N=8 to N=64 (ablation)SFT+RL JSSP solver · Taillard 20x20optimality gap: 23.30% -> 20.01%Helped
remove heuristic features from TAI prompts (ablation)Qwen2.5-7B CO solver · CO problemsoptimality gapMixed

Surprising findings

Limitations

Experimental setup

Datasets: solver-generated synthetic instances for TSP, OP, CVRP, MIS, MVC, PFSP, JSSP Taillard (TA) benchmark TSPLib

Benchmarks: Synthetic test sets for seven CO problems (TSP, OP, CVRP, MIS, MVC, PFSP, JSSP) Taillard JSSP benchmark (TA 15x15, 20x15, 20x20) TSPLib

Metrics: feasibility rate average optimality gap Gap@K average solving time

Baselines: GPT-4o GPT-4o-mini Claude-3.7-Sonnet Claude-3.5-Haiku DeepSeek-V3 Llama3.3-70B Qwen2.5-72B GPT-o3-mini GPT-o1 DeepSeek-R1 OPRO LMEA

Builds on: GRPO LoRA Instruction tuning Text-attributed instance framework

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy