SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.18256 · 2026

PEARL: Solver-in-the-Loop Interactive Optimization Modeling from Natural Language

Fan Zhang, Zhong Li, Zaiwen Wen, Yuxuan Chen, Hongliang Lu, Yuan Lan, Qw

arXiv · PDF

Code that ran

9 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 5 failures of our instrument; 7 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.18256.json · badge: /api/ran/2607.18256.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AuroraLHL/PEARL community
Papers with Code archive
9 ran · 7 no recorded run
FunctionStatusWhere it lives
Sample Ran
ran on a synthesized input · constructed an object; no result was computed
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("8fdecdf0e3c196ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_check_code_safety Ran
ran; our contract draft was wrong, not the code
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("990a22a57fc982db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_get_apply_chat_template_kwargs Ran
ran; our contract draft was wrong, not the code
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("f30db1440c1e5178")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_get_solver Ran
ran; our contract draft was wrong, not the code
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("f79e0cd8bc343658")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_infer_model_max_context_len Ran
ran, honoured the contract we drafted
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("760629b635fa27b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_is_qwen3_8b Ran
ran, violated the contract we drafted
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("c6568ee709d2cdd2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_parse_memory_limit_bytes Ran
ran, honoured the contract we drafted
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("8d54666c882e7c67")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess_predictions Ran
ran; our contract draft was wrong, not the code
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("dc74da45fbb0f193")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess_responses Ran
ran; our contract draft was wrong, not the code
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("4829f2582e6a9123")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_PythonExecResult Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("61932d73abd6c6e6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_ensure_system_prompt_messages Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("7f2ee5e2818913bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_execute_python_blocking Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("814e5cd5f3185f07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_get_system_prompt Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("5eed851ee3f9ef6d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

execute_predictions Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("f75c6aa1bad1024c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

execute_python Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("a3f3636aa4b42f33")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate Not yet run
unverified (harvested, no recorded run)
AuroraLHL/PEARL/core/generate_with_code.py
pointer only (licence: NONE) · get_code("fe6c8218a8e96089")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AuroraLHL/PEARL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Optimization modeling is the process of translating real-world decision problems, often described in natural language, into formal mathematical formulations and executable solver code. While recent advances in large language models have shown promise in automating this process, most existing approaches remain oneshot: a model produces a formulation once, without executing it, conditioning on solver feedback, or iteratively revising errors. This stands in sharp contrast to real-world optimization modeling, which is inherently interactive and proceeds through repeated solve-debug-revise cycles. We introduce PEARL, a system for interactive optimization modeling that uses Python execution and mathematical programming solvers inside this loop. Rather than relying on a fixed repair workflow, PEARL learns when to test partial models, how to revise from solver diagnostics, and when to stop. It operates in a multi-turn tool-integrated setting where intermediate execution results, feasibility signals, and solution checks are used to improve both formulations and solver code before finalization. Across diverse optimization benchmarks, PEARL substantially improves verified solve rates over strong one-shot and tool-augmented baselines; notably, our PEARL-Qwen3-4B model outperforms the much larger DeepSeek-V3.2-685B in both macro-and micro-averaged accuracy on optimization modeling tasks. Recent advances in large language models (LLMs) have spurred growing interest in automating optimization modeling from natural language [Xiao et al., 2025]. Existing approaches can be broadly grouped into three categories. Prompting-based methods [Prasath and Karande, 2023] treat optimization modeling as a single-pass or weakly iterative generation task. Workflow-based systems [Xiao et al., 2024, Ahmaditeshnizi et al., 2024] decompose modeling into multiple stages such as drafting, execution, and repair, typically orchestrated by fixed prompting logic or search Preprint.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.18256")
get_code_for_paper("2607.18256")
have("2607.18256")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.18256.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.18256.svg)](https://syntology.ai/paper/2607.18256)

Connect an agent — have() is free.