SAILOR: Solver-Assisted Interactive LLM-based Optimization Recovery
Organizations: Future Cities Institute, University of Waterloo, ON, Canada · Electrical and Computer Engineering, University of Waterloo, ON, Canada · Department of Applied Mathematics, University of Waterloo, ON, Canada
Abstract
Natural-language descriptions of optimization problems may be incomplete or vague about numerical information that a solver requires, including costs, capacities, demands, bounds, and penalties. A language model can translate the description into code, but when a required value is absent it must either stop or guess. We present SAILOR, a proof-of-concept system that detects such unsupported numerical choices, asks the user targeted follow-up questions, and updates the optimization model before returning a solution. Questions are prioritized using uncertainty and solver-derived estimates of how strongly each missing value affects the current model. We evaluate the pipeline on 1,723 instances from seven masked benchmarks using an idealized simulator that returns ground-truth values. Exact objective-value agreement ranges from 27.0% to 87.6% across datasets, with 1.4--5.7 questions per instance on average. These results establish feasibility under controlled branch-and-reveal feedback; they do not measure performance with human users or general structural model repair. Code is available at: https://github.com/sshaghayeghs/SAILOR.
Figures & tables
| Dataset | Instances | Avg Params | Source | Description |
|---|---|---|---|---|
| NL4OPT | 228 | 3.5 | Ramamonjison et al. (2023) | Simple two-variable linear programs. |
| NL4LP | 178 | 3.9 | Xiao et al. (2025) | Linear programs of moderate complexity. |
| ReSocratic | 403 | Xiao et al. (2025) | Socratic-style optimization problems. | |
| EasyLP | 652 | ( Huang et al., 2024 ) | Small linear programs from MAMO. | |
| ComplexLP | 211 | 8.4 | ( Huang et al., 2024 ) | Complex LPs, up to parameters. |
| IndustryOR | 42 | 5.8 | Xiao et al. (2025) | Industrial scheduling, – parameters. |
| Metric | NL4LP | EasyLP | NL4OPT | ReSocratic | IndustryOR | ComplexOR | ComplexLP |
|---|---|---|---|---|---|---|---|
| Exact | 87.6% | 79.8% | 78.1% | 77.9% | 64.3% | 50.0% | 27.0% |
| No-interact. | 16.3 71.3 | 34.2 45.6 | 13.2 64.9 | 13.1 64.8 | 15.0 49.3 | 5.6 44.4 | 5.7 21.3 |
| 1% | 88.2% 0.6 | 80.2% 0.4 | 80.7% 2.6 | 81.6% 3.7 | 64.3% 0.0 | 50.0% 0.0 | 32.2% 5.2 |
| 5% | 90.4% 2.8 | 82.2% 2.4 | 85.1% 7.0 | 83.9% 6.0 | 64.3% 0.0 | 55.6% 5.6 | 53.1% 26.1 |
| 10% | 91.6% 4.0 | 83.1% 3.3 | 87.3% 9.2 | 86.6% 8.7 | 66.7% 2.4 | 61.1% 11.1 | 62.6% 35.6 |
| Gap | 5.5% | 12.0% | 8.1% | 8.0% | 22.7% | 21.1% | 25.2% |
| Configuration | NL4LP | EasyLP | NL4OPT | ReSoc | IndOR | CmplxOR | CmplxLP | Macro avg. |
|---|---|---|---|---|---|---|---|---|
| SAILOR | 87.6 | 79.8 | 78.1 | 77.9 | 64.3 | 50.0 | 27.0 | 66.4 |
| w/o importance | 89.9 2.3 | 81.3 1.5 | 77.6 0.5 | 76.7 1.2 | 61.9 2.4 | 44.4 5.6 | 30.8 3.8 | 66.1 0.3 |
| w/o refinement | 86.5 1.1 | 80.7 0.9 | 76.8 1.3 | 77.9 0 | 59.5 4.8 | 38.9 11.1 | 29.4 2.4 | 64.2 2.2 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Large Language Model-Guided Optimization
Large Language Model-Guided Optimization uses language models to propose, steer, and refine solutions to hard search and design problems.
See all 587 papers