atlas

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

LLMOPT: Learning to Define and Solve General Optimization Problems from Scratch

ICLR 2025 · Large language models › Agents, code and math · approach: LLMs for optimization and heuristics · 3 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.

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LLMOPT instead of the strongest listed learning-based or prompt-based baselineQwen1.5-14B · NL4Opt, Mamo Easy, Mamo Complex, IndustryOR, NLP4LP, ComplexORSA: +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, ComplexORSA: 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, ComplexORSA: 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, ComplexORSA: 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

Limitations

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

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