arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.22979cs.LG
收藏

OptiMind: 教授大语言模型像优化专家一样思考

OptiMind: Improving Small Language Models for Optimization Modeling through Formulation Guidance and Multi-Turn Learning

Xinzhi Zhang, Zeyi Chen, Humishka Zope, Hugo Barbalho, Konstantina Mellou, Marco Molinaro, Janardhan Kulkarni, Ishai Menache, Sirui Li

AI总结:

OptiMind通过整合优化专业知识,提升大语言模型在混合整数线性规划中的公式准确性,实现20.7%的提升。

摘要:

数学规划——将操作和决策问题精确地用数学语言表达——是跨领域的基础,但仍然是一个需要运筹学专业知识的技能密集型过程。最近在复杂推理方面的大语言模型进展激发了自动化这一任务的兴趣,即把自然语言转化为可执行的优化模型。然而,当前方法由于训练数据稀缺且嘈杂,且未利用领域知识,导致准确率有限。在本工作中,我们系统地整合优化专业知识,以提高混合整数线性规划的公式准确性,这是数学规划的重要家族。我们的OptiMind框架利用半自动化、基于类别的错误分析来指导训练和推理,明确防止每个优化类别中的常见错误。我们得到的微调LLM在多个优化基准上将公式准确性提高了20.7%,在测试时缩放方法如自一致性与多轮反馈下表现一致,使进一步向稳健的LLM辅助优化公式化迈进成为可能。

英文摘要:

Mathematical optimization drives decisions in supply chains, logistics, energy, and scheduling, but translating natural-language problems into solver-executable formulations remains a bottleneck. While frontier models show promise for this task, many deployments require small language models (SLMs) that run locally under privacy, latency, and cost constraints. Existing SLMs are limited by noisy data, ambiguous benchmarks, and one-shot inference that ignores the iterative, feedback-driven nature of optimization modeling. To address these challenges, we introduce OptiMind, a system that combines data cleaning and class-specific hints with training using solver feedback. OptiMind distills recurring formulation errors into class-specific hints that guide the repair of ambiguous problems and the regeneration of solution trajectories. This process provides reliable training data, which is then used for multi-turn RL to teach models to revise their formulations in response to solver feedback. At inference time, the same hint library guides further refinement as models revise their solutions over successive turns. To support reliable evaluation, we clean three challenging benchmarks from the literature. On these cleaned benchmarks, our 20B OptiMind-RL model outperforms strong open-source baselines and reaches frontier-model performance under the same protocol. The full hint library, cleaned test data, cleaning logs, and evaluation code are publicly available on Github (https://github.com/microsoft/OptiGuide/tree/main/optimind), and our trained OptiMind-RL model is available on Hugging Face (https://huggingface.co/microsoft/OptiMind-RL).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑