OptiMind:通过建模引导与多轮学习提升小型语言模型的优化建模能力
OptiMind: Improving Small Language Models for Optimization Modeling through Formulation Guidance and Multi-Turn Learning
OptiMind 结合数据清洗、类别专属提示与求解器反馈训练,将反复出现的建模错误蒸馏为提示,用于修复歧义问题并重新生成求解轨迹。基于该可靠数据做多轮强化学习后,20B 的 OptiMind-RL 在三个清洗后的基准上优于强开源基线,并在相同协议下达到前沿模型水平。提示库、清洗后测试数据、清洗日志与评测代码已在 Github 公开,训练模型已上线 Hugging Face。
arXiv:2509.22979v3 Announce Type: replace Abstract: 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).
来源:arXiv (AI + Vision + Imaging) · arxiv.org