atlas

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

Autoformulation of Mathematical Optimization Models Using LLMs

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

Frames LLM-based autoformulation of LP/MILP models as a hierarchical MCTS search with SMT-based pruning of equivalent candidates and LLM rank/comparative evaluation, reaching higher formulation accuracy than GPT-4 baselines and ORLM on four benchmarks.

Problem

Automatically translating natural language optimization problem descriptions into solver-ready mathematical optimization models (autoformulation), which has a large problem-dependent hypothesis space, redundant equivalent candidates, and no reliable correctness signal.

Approach

Decompose optimization model formulation into four hierarchical levels (parameters/variables, objective, equality constraints, inequality constraints) and search them with MCTS where an LLM generates and ranks candidate components, SMT solvers prune functionally equivalent candidates, and terminal rewards combine solver feedback with a pairwise LLM comparison against baseline models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase MCTS rollouts from 1 to 3Autoformulator · NL4OPTaccuracy: 85.24 % -> 92.21 %Helped
increase MCTS rollouts from 1 to 3Autoformulator · IndustryORaccuracy: 35.0 % -> 42.0 %Helped
increase MCTS rollouts from 1 to 3Autoformulator · MAMO (ComplexLP)accuracy: 43.8% -> 61.4%Helped
increase MCTS rollouts from 1 to 3Autoformulator · ComplexORaccuracy: 66.7% -> 72.2%Helped
replace MCTS search with Depth-First Search without uncertainty guidance or search feedback (ablation)Autoformulator · NL4OPTaccuracy: 92.21 % -> 66.53%Hurt
replace MCTS search with Depth-First Search without uncertainty guidance or search feedback (ablation)Autoformulator · IndustryORaccuracy: 42.0% -> 28.0%Hurt
use sequential component sampling without structured search or pruning (ablation)Autoformulator · NL4OPTaccuracy: 92.21 % -> 60.82%Hurt
use sequential component sampling without structured search or pruning (ablation)Autoformulator · IndustryORaccuracy: 42.0% -> 28.0%Hurt
use comparative evaluation against consistent baselines instead of independent direct scoringIndustryOR formulation evaluation · IndustryOR problems with correct solutionsbiserial correlation: 0.23 -> 0.48Helped
add LLM-based prior scores to guide greedy partial-formulation selectionMCTS autoformulator · Autoformulation search treeformulation correctnessHelped
add symbolic pruning of redundant formulationsMCTS autoformulator · Formulation searchformulation generations required: 1000xHelped

Surprising findings

Limitations

Experimental setup

Datasets: NL4OPT IndustryOR MAMO (ComplexLP) ComplexOR

Benchmarks: NL4OPT IndustryOR MAMO (ComplexLP) ComplexOR

Metrics: execution accuracy Pass@N Best-of-N

Baselines: Standard GPT-4 Reflexion Chain-of-Experts OptiMUS ORLM Tree-of-Thought Sequential sampling

Builds on: Monte-Carlo Tree Search UCT Reflexion Tree-of-Thoughts

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