PEARL: Solver-in-the-Loop Interactive Optimization Modeling from Natural Language
Hongliang Lu, Zhong Li, Yuxuan Chen, Lan Yuan, Fan Zhang, Zaiwen Wen
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › Evolutionary Optimization with AI Agents · Type: new method · Keywords: interactive optimization modeling, solver-in-the-loop, natural language to code, iterative refinement, mathematical programming
Summary
PEARL is a system for interactive optimization modeling that uses solver-in-the-loop execution to iteratively refine formulations and solver code from natural language descriptions.
Explained to a 5-year-old
People want to turn words into math problems that computers can solve. Usually, a computer writes the math once and stops. This paper makes the computer try the math, see if it works, fix mistakes, and try again until it gets the right answer. It helps computers solve more problems correctly. This way, the computer can learn from its mistakes just like a student.
Explained to a 5-year-old, longer
When we have a problem described in words, we need to turn it into math so a computer can solve it. Usually, a program reads the words and writes down a math formula all at once. After that, it gives the formula to a solver and hopes it works. Sometimes the formula is wrong, so the solver cannot find an answer. The new idea is to let the computer check the formula, see if it works, and fix it if it does not. It does this by running the formula, looking at the results, and learning what to change. The computer can try a small part of the formula first, see if that part makes sense, and then adjust the rest. It keeps doing this in cycles: try, check, fix, try again. This process is like a student practicing a problem, getting feedback, and correcting mistakes. By doing many tries, the computer can solve more problems correctly than before. The approach also works with many different kinds of problems, like scheduling, planning, and resource allocation. In the end, the computer becomes a helpful assistant that turns natural language into reliable math solutions.
For a technical reader
The system runs a language model that writes optimization code and then executes it in Python, using a solver to check feasibility. It iteratively refines the generated code based on solver diagnostics and intermediate execution results, learning when to test partial models and when to stop. This interactive loop improves both the correctness of the formulation and the efficiency of the solver. The approach can be integrated into existing toolchains as a plug-in that provides real-time feedback. Overall, it turns a one-shot generation pipeline into a robust, self-debugging optimization assistant.
Problem
Translating real-world decision problems described in natural language into correct mathematical formulations and executable solver code is challenging, especially when models currently produce one-shot solutions without iterative debugging.
Method
The approach integrates Python execution and mathematical programming solvers within an interactive loop, using intermediate execution results and solver diagnostics to iteratively test partial models, revise formulations and code, and decide when to stop. It learns to adapt its debugging strategy based on feasibility signals and solution checks, operating in a multi-turn tool-integrated setting.
Results
The approach achieves substantially higher verified solve rates than one-shot and tool-augmented baselines, and its smaller model variant outperforms a much larger baseline on macro- and micro-averaged accuracy.
Contributions
The paper introduces an interactive optimization modeling framework that learns to iteratively refine formulations and solver code using solver feedback, and demonstrates superior performance on diverse optimization benchmarks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction