Research map / Large language models / Agents, code and math
LLMOPT: Learning to Define and Solve General Optimization Problems from Scratch
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.
Proposes LLMOPT, which fine-tunes Qwen1.5-14B with a five-element optimization formulation, multi-instruction SFT, KTO alignment, and execution-feedback self-correction to formulate and solve diverse optimization problems from natural language.
Problem
Automating the formulation and solver-code generation for optimization problems described in natural language suffers from low accuracy and limited generality across optimization problem types.
Approach
A universal five-element formulation (Sets, Parameters, Variables, Objective, Constraints) as an intermediate representation, trained via multi-instruction SFT and KTO alignment on expert- and GPT-4-labeled data, plus an auto-testing loop that self-corrects based on solver execution output.
Key results
- LLMOPT (Qwen1.5-14B) reaches 93.0% solving accuracy on NL4Opt, 97.0% on Mamo Easy, 68.0% on Mamo Complex, and 46.0% on IndustryOR, versus 86.5%, 82.3%, 37.9%, 38.0% for the best ORLM variants.
- On prompt-based comparisons, LLMOPT reaches 83.8% on NLP4LP and 72.7% on ComplexOR versus OptiMUS's 72.0% and 66.7%.
- Authors report an average 11.08% solving accuracy improvement over state-of-the-art across six datasets; removing self-correction drops NL4Opt SA from 93.0% to 57.0%.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use LLMOPT instead of the strongest listed learning-based or prompt-based baseline | Qwen1.5-14B · NL4Opt, Mamo Easy, Mamo Complex, IndustryOR, NLP4LP, ComplexOR | SA: +6.5%; +14.7%; +30.1%; +8.0%; +11.8%; +6.0% | Helped |
| Add the five-element formulation (ablation) | LLMOPT · NL4Opt, Mamo Easy, Mamo Complex, IndustryOR, NLP4LP, ComplexOR | SA: 91.0% -> 93.0%; 96.0% -> 97.0%; 64.0% -> 68.0%; 41.0% -> 46.0%; 73.0% -> 83.8%; 72.7% -> 72.7% | Helped |
| Add KTO alignment (ablation) | LLMOPT · NL4Opt, Mamo Easy, Mamo Complex, IndustryOR, NLP4LP, ComplexOR | SA: 90.0% -> 93.0%; 97.0% -> 97.0%; 65.0% -> 68.0%; 43.0% -> 46.0%; 64.9% -> 83.8%; 54.6% -> 72.7% | Helped |
| Add self-correction (ablation) | LLMOPT · NL4Opt, Mamo Easy, Mamo Complex, IndustryOR, NLP4LP, ComplexOR | SA: 57.0% -> 93.0%; 71.0% -> 97.0%; 32.0% -> 68.0%; 31.0% -> 46.0%; 35.2% -> 83.8%; 18.2% -> 72.7% | Helped |
Surprising findings
- Five-element formulation can slightly lower execution rate even while improving solving accuracy, as the LLM otherwise oversimplifies problems into error-free but inaccurate code.
- Fine-tuning on optimization data showed no significant seesaw degradation on 10 general tasks (average +0.3%).
Limitations
- Relies on expert-labeled and GPT-4-labeled data, which is scarce and time-consuming to produce.
- Does not address large-scale problems whose data reside in databases or files rather than natural language.
- Several comparisons cite published numbers from prior papers rather than re-running them, and the o1 evaluation is limited to 20 problems.
Experimental setup
Datasets: NL4Opt Mamo Easy Mamo Complex IndustryOR NLP4LP ComplexOR UltraFeedback (KTO, binarized) Tulu-style instruction data (AllenAI)
Benchmarks: NL4Opt Mamo Easy Mamo Complex IndustryOR NLP4LP ComplexOR
Metrics: solving accuracy execution rate average solving times
Baselines: GPT-4 GPT-4o GPT-4-turbo ORLM Reflexion Chain-of-Experts OptiMUS Qwen2-72B
Builds on: KTO ORLM Chain-of-Experts OptiMUS Reflexion
Closest papers by meaning
- Autoformulation of Mathematical Optimization Models Using LLMs (ICML 2025 · similarity 0.90)
- OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modeling (ICLR 2025 · similarity 0.90)
- OptMATH: A Scalable Bidirectional Data Synthesis Framework for Optimization Modeling (ICML 2025 · similarity 0.89)
- SolverLLM: Leveraging Test-Time Scaling for Optimization Problem via LLM-Guided Search (NeurIPS 2025 · similarity 0.89)
- Large Language Models as End-to-end Combinatorial Optimization Solvers (NeurIPS 2025 · similarity 0.89)
- MM-OptBench: A Solver-Grounded Benchmark for Multimodal Optimization Modeling (NeurIPS 2026 · similarity 0.89)
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.
