Canonical Intermediate Representation for LLM-based optimization problem formulation and code generation
Zhongyuan Lyu, Shuoyu Hu, Lujie Liu, Hongxia Yang, Ming LI

TL;DR
This paper introduces the Canonical Intermediate Representation (CIR) schema and the rule-to-constraint (R2C) framework to improve LLM-based formulation of complex optimization problems, achieving state-of-the-art accuracy.
Contribution
The paper proposes CIR as a novel schema for explicit problem modeling and R2C as a multi-agent pipeline, advancing LLM-based optimization problem formulation.
Findings
R2C achieves 47.2% accuracy on the new benchmark.
R2C performs competitively on existing benchmarks.
Reflection mechanism improves R2C's performance.
Abstract
Automatically formulating optimization models from natural language descriptions is a growing focus in operations research, yet current LLM-based approaches struggle with the composite constraints and appropriate modeling paradigms required by complex operational rules. To address this, we introduce the Canonical Intermediate Representation (CIR): a schema that LLMs explicitly generate between problem descriptions and optimization models. CIR encodes the semantics of operational rules through constraint archetypes and candidate modeling paradigms, thereby decoupling rule logic from its mathematical instantiation. Upon a newly generated CIR knowledge base, we develop the rule-to-constraint (R2C) framework, a multi-agent pipeline that parses problem texts, synthesizes CIR implementations by retrieving domain knowledge, and instantiates optimization models. To systematically evaluate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · AI-based Problem Solving and Planning · Advanced Multi-Objective Optimization Algorithms
