atlas

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

OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modeling

ICLR 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.

Introduces OptiBench, an end-to-end optimization-modeling benchmark (605 problems, linear/nonlinear, with/without tables) and ReSocratic, a reverse-Socratic data synthesis method that yields the 29k-example ReSocratic-29k dataset for SFT of open-source models.

Problem

Existing optimization-modeling benchmarks focus on linear programs, omit tabular inputs and end-to-end numerical solving, and open-source small LLMs lack optimization training data.

Approach

Synthesize formatted optimization demonstrations step by step (variables, objective, constraints with math formalization) from seed examples, then back-translate them into natural-language questions and generate solver code, instead of forward question-then-answer synthesis.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
SFT on ReSocratic-29kLlama-2-7B-Chat · OptiBenchaccuracy: 0.0% to 30.6%Helped
SFT on ReSocratic-29kLlama-3-8B-Instruct · OptiBenchaccuracy: 13.6% to 51.1%Helped
add step questions to ReSocratic training data (ablation)Llama-2-7B-Chat · OptiBench SFTaccuracy: 28.9% -> 30.6%Helped
add step questions to ReSocratic training data (ablation)Llama-3-8B-Instruct · OptiBench SFTaccuracy: 50.2% -> 51.1%Helped
apply rule and similarity filters to ReSocratic data (ablation)Llama-2-7B-Chat · OptiBench SFTaccuracy: 29.6% -> 30.6%Helped
apply rule and similarity filters to ReSocratic data (ablation)Llama-3-8B-Instruct · OptiBench SFTaccuracy: 49.4% -> 51.1%Helped
use reverse ReSocratic synthesis instead of forward Self-Instruct synthesisLlama-2-7B-Chat · OptiBench SFT, 1k responsesaccuracy: 10.7% -> 14.4%Helped
use reverse ReSocratic synthesis instead of forward Evol-Instruct synthesisLlama-2-7B-Chat · OptiBench SFT, 1k responsesaccuracy: 11.1% -> 14.4%Helped
generate reasoning before writing code in the few-shot promptGPT-3.5-Turbo · OptiBench few-shotoverall accuracy: 56.4 -> 55.5 (-0.9)Hurt
generate reasoning before writing code in the few-shot promptGPT-4 · OptiBench few-shotoverall accuracy: 65.5 -> 63.8 (-1.7)Hurt
generate reasoning before writing code in the few-shot promptGPT-4o-mini · OptiBench few-shotoverall accuracy: 55.0 -> 54.9 (-0.1)No clear effect
generate reasoning before writing code in the few-shot promptGPT-4o · OptiBench few-shotoverall accuracy: 69.4 -> 67.1 (-2.3)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ReSocratic-29k NL4OPT ComplexOR NLP4LP MAMO

Benchmarks: OptiBench

Metrics: answer accuracy code pass rate pass@k

Baselines: GPT-4 GPT-4o GPT-3.5-Turbo Llama-3-70B-Instruct DeepSeek-V2 DeepSeek-V2.5 Qwen2-7B-Instruct Mistral-7B-Instruct-v0.3 Self-Instruct Evol-Instruct WizardLM

Builds on: Rejection Sampling Fine-Tuning GSM8K Socratic dataset WizardLM MAmmoTH MetaMath

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