Proceedings

Guiding Large Language Models in Modeling Optimization Problems via Question Partitioning

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 2657-2665.

https://doi.org/10.24963/ijcai.2025/296

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.

  1. [Achterberg, 2009] Tobias Achterberg. Scip: solving con- straint integer programs. Mathematical Programming Computation, 1:1-41, 2009.
  2. [AhmadiTeshnizi et al., 2024] Ali AhmadiTeshnizi, Wenzhi Gao, and Madeleine Udell. Optimus: Scalable optimiza- tion modeling with (mi) lp solvers and large language models. arXiv preprint arXiv:2402.10172, 2024.
  3. [Besta et al., 2024] Maciej Besta, Nils Blach, Ales Ku- bicek, Robert Gerstenberger, Michal Podstawski, Lukas Gianinazzi, Joanna Gajda, Tomasz Lehmann, Hubert Niewiadomski, Piotr Nyczyk, et al. Graph of thoughts: Solving elaborate problems with large language models. In Proceedings of the AAAI Conference on Artificial Intel- ligence, volume 38, pages 17682-17690, 2024.
  4. [Britz et al., 2013] Wolfgang Britz, Michael Ferris, and Arnim Kuhn. Modeling water allocating institutions based on multiple optimization problems with equilibrium con- straints. Environmental Modelling & Software, 46:196- 207, 2013.
  5. [Burn and McBean, 1985] Donald H Burn and Edward A McBean. Optimization modeling of water quality in an uncertain environment. Water Resources Research, 21(7):934-940, 1985.
  6. [Cuchỳ et al., 2024] Marek Cuchỳ, Jiří Vokřínek, and Michal Jakob. Multi-objective electric vehicle route and charging planning with contraction hierarchies. In Pro- ceedings of the International Conference on Automated Planning and Scheduling, volume 34, pages 114-122, 2024.
  7. [Fourer et al., 1987] Robert Fourer, David M Gay, and Brian W Kernighan. AMPL: A mathematical programming language. Citeseer, 1987.
  8. [Gao et al., 2023] Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. Pal: Program-aided language models. In International Conference on Machine Learning, pages 10764-10799. PMLR, 2023.
  9. [Gasse et al., 2019] Maxime Gasse, Didier Chételat, Nicola Ferroni, Laurent Charlin, and Andrea Lodi. Exact combi- natorial optimization with graph convolutional neural net- works. Advances in neural information processing sys- tems, 32, 2019.
  10. [Gurobi Optimization, 2021] LLC Gurobi Optimization. Gurobi optimizer reference manual, 2021. https://www. gurobi.com/documentation/current/refman/index.html. Link
  11. [Lewis et al., 2020] Patrick Lewis, Ethan Perez, Aleksan- dra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Infor- mation Processing Systems, 33:9459-9474, 2020.
  12. [Li et al., 2023] Jiaqi Li, Mengmeng Wang, Zilong Zheng, and Muhan Zhang. Loogle: Can long-context lan- guage models understand long contexts? arXiv preprint arXiv:2311.04939, 2023.
  13. [Li et al., 2024] Tianle Li, Ge Zhang, Quy Duc Do, Xi- ang Yue, and Wenhu Chen. Long-context llms strug- gle with long in-context learning. arXiv preprint arXiv:2404.02060, 2024.
  14. [Liu et al., 2024] Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language mod- els use long contexts. Transactions of the Association for Computational Linguistics, 12:157-173, 2024.
  15. [Mazzoli et al., 2024] Tommaso Mannelli Mazzoli, Lucas Kletzander, Pascal Van Hentenryck, and Nysret Musliu. Investigating large neighbourhood search for bus driver scheduling. In Proceedings of the International Confer- ence on Automated Planning and Scheduling, volume 34, pages 360-368, 2024.
  16. [Middleton et al., 2012] Richard S Middleton, Michael J Kuby, and Jeffrey M Bielicki. Generating candidate net- works for optimization: The co2 capture and storage op- timization problem. Computers, Environment and Urban Systems, 36(1):18-29, 2012.
  17. [Min et al., 2003] Jun-Ki Min, Myung-Jae Park, and Chin- Wan Chung. Xpress: A queriable compression for xml data. In Proceedings of the 2003 ACM SIGMOD interna- tional conference on Management of data, pages 122-133, 2003.
  18. [Pennington et al., 2014] Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vec- tors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532-1543, 2014.
  19. [Shinn et al., 2023] Noah Shinn, Beck Labash, and Ash- win Gopinath. Reflexion: an autonomous agent with dynamic memory and self-reflection. arXiv preprint arXiv:2303.11366, 2023.
  20. [Shinn et al., 2024] Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflex- ion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems, 36, 2024.
  21. [Sitek and Wikarek, 2018] Paweł Sitek and Jarosław Wikarek. A multi-level approach to ubiquitous modeling and solving constraints in combinatorial optimization problems in production and distribution. Applied Intelligence, 48:1344-1367, 2018.
  22. [Wei et al., 2022] Jason Wei, Xuezhi Wang, Dale Schuur- mans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837, 2022.
  23. [Welleck et al., 2022] Sean Welleck, Jiacheng Liu, Ximing Lu, Hannaneh Hajishirzi, and Yejin Choi. Naturalprover: Grounded mathematical proof generation with language models. Advances in Neural Information Processing Sys- tems, 35:4913-4927, 2022.
  24. [Xiao et al., 2023] Ziyang Xiao, Dongxiang Zhang, Yangjun Wu, Lilin Xu, Yuan Jessica Wang, Xiongwei Han, Xiao- jin Fu, Tao Zhong, Jia Zeng, Mingli Song, et al. Chain- of-experts: When llms meet complex operations research problems. In The Twelfth International Conference on Learning Representations, 2023.
  25. [Yao et al., 2024] Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Tom Griffiths, Yuan Cao, and Karthik Narasimhan. Tree of thoughts: Deliberate problem solving with large language models. Advances in Neural Informa- tion Processing Systems, 36, 2024.
  26. [Zhang et al., 2023] Kechi Zhang, Zhuo Li, Jia Li, Ge Li, and Zhi Jin. Self-edit: Fault-aware code editor for code generation. arXiv preprint arXiv:2305.04087, 2023.
  27. [Zheng et al., 2023] Chuanyang Zheng, Zhengying Liu, Enze Xie, Zhenguo Li, and Yu Li. Progressive-hint prompting improves reasoning in large language models. arXiv preprint arXiv:2304.09797, 2023.
  28. [Zhu et al., 2023] Xinhua
  29. Zhu, Zhongjie Kuang, and Lan- fang Zhang. A prompt model with combined semantic refinement for aspect sentiment analysis. Information Pro- cessing & Management, 60(5):103462, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards