Metraipolis › archive › dc_a5aac71ec230
IR2Solve: Structured Intermediate Representations for Cost-Efficient Optimization Autoformulation — arXiv:2608.02641
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.02641
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T12:17:29.098Z
- SHA-256 of the archived text
1c6bab32f7e9d0abf18af209338a21d5b316e508c4798f2bab935fcfb3e68cd5- Stable URL of this page
https://metraipolis.com/documento/dc_a5aac71ec230
How to cite
IR2Solve: Structured Intermediate Representations for Cost-Efficient Optimization Autoformulation — arXiv:2608.02641 — arXiv (en), https://arxiv.org/abs/2608.02641 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a5aac71ec230 (Metraipolis archive dc_a5aac71ec230, sha256 1c6bab32f7e9d0abf18af209338a21d5b316e508c4798f2bab935fcfb3e68cd5)
BibTeX
@misc{dca5aac71ec230,
title = {IR2Solve: Structured Intermediate Representations for Cost-Efficient Optimization Autoformulation — arXiv:2608.02641},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.02641},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a5aac71ec230; sha256 1c6bab32f7e9d0abf18af209338a21d5b316e508c4798f2bab935fcfb3e68cd5},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.02641. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language models (LLMs) can translate natural-language optimization problems into solver-ready formulations, but direct code generation is brittle: schema, indexing, and semantic errors can cause compilation failures, infeasible models, or incorrect objectives, while iterative repair, search, and multi-agent workflows increase inference cost. We present IR2Solve, an intermediate-representation-first autoformulation pipeline that uses a single semantic LLM call to produce a schema-constrained ModelIR, followed by two deterministic stages: verification and IR-to-solver compilation. ModelIR explicitly represents sets, parameters, variables, objectives, and constraints using restricted Python-like expression strings. A concrete scalar-constraint convention represents finite per-index constraint families as individual entries, reducing free-index and implicit-quantification errors while simplifying downstream verification and compilation. Across six cleaned optimization benchmarks, IR2Solve achieves strong objective correctness and remains competitive with recent optimization-modeling systems. A controlled ablation on 153 IndustryOR and ComplexLP instances shows sequential gains from the structured IR interface, the scalar-constraint instruction, and deterministic verification. On a matched ten-instance cost panel, IR2Solve uses one semantic call per instance, whereas Chain-of-Experts and SAC-Opt use 8 and 39 calls per instance and consume 3.3 and 22.9 times the token volume of IR2Solve, respectively. These results show that structured intermediate representations, combined with deterministic post-generation processing, provide a practical accuracy-cost trade-off for LLM-based optimization autoformulation. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-05 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2608.02641 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-31T12:05:52.902Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).