Guiding Large Language Models in Modeling Optimization Problems via Question Partitioning
Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2657-2665.
https://doi.org/10.24963/ijcai.2025/296
Keywords
- Constraint Satisfaction and Optimization: CSO: Modeling
- Natural Language Processing: NLP: Applications
Abstract
Optimization problems are ubiquitous across various domains, such as resource scheduling, production planning, and sales management. Traditionally, they are modeled manually, leading to inefficiencies due to difficulties in communication and collaboration between modeling and domain experts. The emergence of Large Language Models (LLMs) has made automated modeling possible. However, real-world applications are often large-scale and have numerous variables and constraints, limiting the applicability of existing methods. To address this, we propose PaMOP, a novel modeling framework based on LLMs, to model optimization problems automatically, given only natural language descriptions. Specifically, we extract and partition the problems using a tree structure, guiding the LLMs to model each set of constraints with self-augmented prompts, thus reducing the demands on the LLM's capabilities of large contents. The mathematical model is then iteratively corrected and validated through our correction procedures. The experiments demonstrate that our method improves performance on the common benchmark dataset NLP4LP, achieving an accuracy of 62.3% and a code executability rate of 86.8% when tested on GPT-4. Additionally, we demonstrate the effectiveness of our PaMOP in handling large real-world problems.
@inproceedings{ijcai2025p296,
title = {Guiding Large Language Models in Modeling Optimization Problems via Question Partitioning},
author = {Pan, Xiaotian and Fang, Junhao and Wu, Feng and Zhang, Sijia and Hu, Yi-Xiang and Li, Shaoang and Li, Xiang-Yang},
booktitle = {Proceedings of the Thirty-Fourth International Joint Conference on
Artificial Intelligence, {IJCAI-25}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {James Kwok},
pages = {2657--2665},
year = {2025},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2025/296},
url = {https://doi.org/10.24963/ijcai.2025/296},
}
TY - CPAPER TI - Guiding Large Language Models in Modeling Optimization Problems via Question Partitioning AU - Pan, Xiaotian AU - Fang, Junhao AU - Wu, Feng AU - Zhang, Sijia AU - Hu, Yi-Xiang AU - Li, Shaoang AU - Li, Xiang-Yang T2 - Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2025 SP - 2657 EP - 2665 DO - 10.24963/ijcai.2025/296 UR - https://doi.org/10.24963/ijcai.2025/296 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: