OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modeling

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Zhicheng, Wang, Yiwei, Huang, Yinya, Guo, Zhijiang, Shi, Wei, Han, Xiongwei, Feng, Liang, Song, Linqi, Liang, Xiaodan, Tang, Jing
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909635454173184
author Yang, Zhicheng
Wang, Yiwei
Huang, Yinya
Guo, Zhijiang
Shi, Wei
Han, Xiongwei
Feng, Liang
Song, Linqi
Liang, Xiaodan
Tang, Jing
author_facet Yang, Zhicheng
Wang, Yiwei
Huang, Yinya
Guo, Zhijiang
Shi, Wei
Han, Xiongwei
Feng, Liang
Song, Linqi
Liang, Xiaodan
Tang, Jing
contents Large language models (LLMs) have exhibited their problem-solving abilities in mathematical reasoning. Solving realistic optimization (OPT) problems in application scenarios requires advanced and applied mathematics ability. However, current OPT benchmarks that merely solve linear programming are far from complex realistic situations. In this work, we propose OptiBench, a benchmark for End-to-end optimization problem-solving with human-readable inputs and outputs. OptiBench contains rich optimization problems, including linear and nonlinear programming with or without tabular data, which can comprehensively evaluate LLMs' solving ability. In our benchmark, LLMs are required to call a code solver to provide precise numerical answers. Furthermore, to alleviate the data scarcity for optimization problems, and to bridge the gap between open-source LLMs on a small scale (e.g., Llama-3-8b) and closed-source LLMs (e.g., GPT-4), we further propose a data synthesis method namely ReSocratic. Unlike general data synthesis methods that proceed from questions to answers, \ReSocratic first incrementally synthesizes formatted optimization demonstration with mathematical formulations step by step and then back-translates the generated demonstrations into questions. Based on this, we synthesize the ReSocratic-29k dataset. We further conduct supervised fine-tuning with ReSocratic-29k on multiple open-source models. Experimental results show that ReSocratic-29k significantly improves the performance of open-source models.
format Preprint
id arxiv_https___arxiv_org_abs_2407_09887
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modeling
Yang, Zhicheng
Wang, Yiwei
Huang, Yinya
Guo, Zhijiang
Shi, Wei
Han, Xiongwei
Feng, Liang
Song, Linqi
Liang, Xiaodan
Tang, Jing
Machine Learning
Optimization and Control
Large language models (LLMs) have exhibited their problem-solving abilities in mathematical reasoning. Solving realistic optimization (OPT) problems in application scenarios requires advanced and applied mathematics ability. However, current OPT benchmarks that merely solve linear programming are far from complex realistic situations. In this work, we propose OptiBench, a benchmark for End-to-end optimization problem-solving with human-readable inputs and outputs. OptiBench contains rich optimization problems, including linear and nonlinear programming with or without tabular data, which can comprehensively evaluate LLMs' solving ability. In our benchmark, LLMs are required to call a code solver to provide precise numerical answers. Furthermore, to alleviate the data scarcity for optimization problems, and to bridge the gap between open-source LLMs on a small scale (e.g., Llama-3-8b) and closed-source LLMs (e.g., GPT-4), we further propose a data synthesis method namely ReSocratic. Unlike general data synthesis methods that proceed from questions to answers, \ReSocratic first incrementally synthesizes formatted optimization demonstration with mathematical formulations step by step and then back-translates the generated demonstrations into questions. Based on this, we synthesize the ReSocratic-29k dataset. We further conduct supervised fine-tuning with ReSocratic-29k on multiple open-source models. Experimental results show that ReSocratic-29k significantly improves the performance of open-source models.
title OptiBench Meets ReSocratic: Measure and Improve LLMs for Optimization Modeling
topic Machine Learning
Optimization and Control
url https://arxiv.org/abs/2407.09887