TL;DR
Large language models (LLMs) are pretty good at translating textbook optimization problems into solver code, but real-world operations research requires designing scalable algorithms that don't choke on massive datasets. FrontierOR is a new benchmark of 180 large-scale optimization tasks pulled from top operations research journals, testing whether LLMs can write code that is not just executable, but actually fast and accurate. The verdict? Even the strongest model succeeds on only 39% of tasks in one shot—though iterative, test-time self-evolution can push that to 78% on the hardest problems.
What Problem Does This Paper Address?
If you ask an LLM to solve a small routing or scheduling problem, it will happily write a Python script that feeds the whole thing into a commercial solver like Gurobi. On a toy example, that works fine. In the real world—where a supply chain or airline schedule might involve tens of millions of variables—a naive "formulate-and-solve" approach hits a brick wall. Human experts get around this by exploiting problem structure: decomposing the problem, writing custom heuristics, or building hybrid algorithms.
Existing LLM-for-optimization benchmarks mostly test whether models can translate natural language into correct mathematical formulations on small, textbook-scale problems. They rarely test whether an LLM can design an efficient algorithm at realistic scale. FrontierOR closes this gap by asking: Can LLMs read a real-world decision problem and implement an algorithm that competes with an expert-verified Gurobi baseline?
Methods
Each FrontierOR task gives the LLM only a natural-language problem description and input/output schemas—withholding the mathematical formulation, test data, and reference code. The generated Python program is evaluated inside a strict, network-free Docker container (1 CPU core, 1-hour time limit, Python 3.13, Gurobi 12).
Evaluation happens in two stages:
- Tiny-instance gate: The program gets up to five self-debugging iterations to fix runtime errors, and must produce a feasible solution within a 10% optimality gap on a tiny instance.
- Large-instance evaluation: Programs that pass the gate are tested on five large instances across four metrics: Execution rate, Feasibility, Solution quality (feasible and within a 1% objective gap of Gurobi), and Quality–Time Efficiency (QTE)—the headline metric, which counts a win only if the program is feasible, within 1% of Gurobi's objective, and at least as fast.
The authors test 12 recent LLMs in a one-shot setting, and then evaluate three test-time self-evolution frameworks on a 50-task Hard subset (using GPT-5.6-Sol with a budget of 20 candidate evaluations per task): OpenEvolve (an open-source AlphaEvolve replication), EoH (Evolution of Heuristics), and CORAL (an autonomous multi-agent system with shared memory).
Datasets
FrontierOR consists of 180 tasks curated from papers published between 1992 and 2025 in leading operations research journals (including 69 from 2020 or later), verified by 15 OR PhD researchers.
- Scale: Large instances reach up to $\sim 10^8$ decision variables and $> 10^7$ constraints (median: ~40,000 variables and 18,000 constraints). Under a 1-hour budget, 48.1% of Gurobi reference runs time out, and 52.3% return feasible incumbents rather than certified optima.
- Hard subset: A 50-task subset selected for combinatorial blow-up, large scale, and Gurobi runtime saturation.
Compared to prior benchmarks like CO-Bench (36 problems) or MIPLIB-NL (223 problems), FrontierOR uniquely combines literature-grounded tasks, natural-language inputs, large-scale instances, solver baselines, and a complete feasibility-and-efficiency evaluation protocol.
Key Insights and Ideas
- Executability isn't the bottleneck—scalability is. Top models achieve 98%–99% execution rates on tiny instances, but their feasibility and solution quality plummet on large instances.
- Stronger models strategize; weaker models brute-force. Earlier or smaller models rely almost entirely on direct solver calls (e.g., 98% for LLaMA-4-Maverick, 72% for Qwen3-Coder-Plus). Stronger models like Claude Fable 5 and Opus 4.6 diversify into local search, metaheuristics, and hybrid matheuristics, which directly boosts QTE.
- Where LLMs trip up: The most common failure modes are constraint-specification errors (e.g., forgetting capacity or flow-conservation constraints) and interface/schema violations, followed by implementation bugs.
- Test-time evolution helps, but doesn't always generalize. Iterative feedback dramatically improves performance on development instances, yet 7–10 tasks per framework still regressed on held-out test instances, showing that overfitting to dev instances remains a challenge.
Key Results
- One-shot performance: On the Full set ($N=180$), the strongest model (Claude Fable 5) achieves 0.99 execution rate, 0.69 feasibility, 0.60 solution quality, and 0.39 QTE. Claude Opus 4.6 follows at 0.30 QTE, while LLaMA-4-Maverick trails at 0.04 QTE. On the Hard subset ($N=50$), Claude Fable 5 reaches 0.51 QTE (higher than on Full, because Gurobi saturates its 1-hour budget on nearly all Hard tasks).
- Test-time evolution (Hard subset): Starting from the best one-shot program (0.51 Test QTE), all three frameworks deliver major gains on held-out test instances: OpenEvolve and EoH both reach 0.76 QTE (+25 percentage points), while CORAL reaches 0.78 QTE (+27 percentage points) and 0.96 feasibility.
Limitations and Future Work
The authors note that FrontierOR's coverage is bounded by the source OR literature and that its fixed set of instances per task may not capture all real-world operational distributions. Additionally, QTE evaluates final output quality under a fixed 1-hour budget rather than anytime performance curves. Future work should focus on evolution strategies with stronger cross-instance generalization so that improvements on development instances reliably transfer to unseen test cases.
Summary updated